From 6efb3d459502ab0c15888f14c61ceff483c762fb Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 Date: Wed, 8 Apr 2026 11:29:55 +0800 Subject: [PATCH 1/7] generated from swagger:23faa02bb223549c97da5f4c1c4aa2e02d49c419 --- .../azure-mgmt-appcontainers/CHANGELOG.md | 4 + .../azure-mgmt-appcontainers/_metadata.json | 6 +- .../mgmt/appcontainers/_configuration.py | 4 +- .../_container_apps_api_client.py | 2 +- .../appcontainers/_utils/serialization.py | 19 +- .../azure/mgmt/appcontainers/_version.py | 2 +- .../mgmt/appcontainers/aio/_configuration.py | 4 +- .../aio/_container_apps_api_client.py | 2 +- ..._available_workload_profiles_operations.py | 5 +- .../operations/_billing_meters_operations.py | 5 +- .../operations/_certificates_operations.py | 25 +- ...ed_environments_certificates_operations.py | 25 +- ...environments_dapr_components_operations.py | 25 +- .../_connected_environments_operations.py | 35 +- ...nected_environments_storages_operations.py | 20 +- .../_container_apps_api_client_operations.py | 10 +- ..._container_apps_auth_configs_operations.py | 20 +- .../_container_apps_diagnostics_operations.py | 25 +- .../operations/_container_apps_operations.py | 55 +- ...ainer_apps_revision_replicas_operations.py | 10 +- .../_container_apps_revisions_operations.py | 25 +- ...container_apps_session_pools_operations.py | 30 +- ...ntainer_apps_source_controls_operations.py | 20 +- .../operations/_dapr_components_operations.py | 25 +- .../_http_route_config_operations.py | 25 +- .../operations/_java_components_operations.py | 25 +- .../operations/_jobs_executions_operations.py | 5 +- .../aio/operations/_jobs_operations.py | 65 +- .../aio/operations/_logic_apps_operations.py | 30 +- .../_maintenance_configurations_operations.py | 20 +- .../_managed_certificates_operations.py | 25 +- ...aged_environment_diagnostics_operations.py | 10 +- ...private_endpoint_connections_operations.py | 20 +- ...nment_private_link_resources_operations.py | 5 +- .../_managed_environment_usages_operations.py | 5 +- ...ged_environments_diagnostics_operations.py | 5 +- .../_managed_environments_operations.py | 40 +- ...anaged_environments_storages_operations.py | 20 +- .../aio/operations/_namespaces_operations.py | 5 +- .../aio/operations/_operations.py | 5 +- .../aio/operations/_usages_operations.py | 5 +- .../_container_apps_api_client_enums.py | 12 +- .../mgmt/appcontainers/models/_models_py3.py | 177 +- ..._available_workload_profiles_operations.py | 7 +- .../operations/_billing_meters_operations.py | 7 +- .../operations/_certificates_operations.py | 35 +- ...ed_environments_certificates_operations.py | 35 +- ...environments_dapr_components_operations.py | 35 +- .../_connected_environments_operations.py | 49 +- ...nected_environments_storages_operations.py | 28 +- .../_container_apps_api_client_operations.py | 14 +- ..._container_apps_auth_configs_operations.py | 28 +- .../_container_apps_diagnostics_operations.py | 35 +- .../operations/_container_apps_operations.py | 77 +- ...ainer_apps_revision_replicas_operations.py | 14 +- .../_container_apps_revisions_operations.py | 35 +- ...container_apps_session_pools_operations.py | 44 +- ...ntainer_apps_source_controls_operations.py | 28 +- .../operations/_dapr_components_operations.py | 35 +- .../_http_route_config_operations.py | 35 +- .../operations/_java_components_operations.py | 35 +- .../operations/_jobs_executions_operations.py | 7 +- .../operations/_jobs_operations.py | 91 +- .../operations/_logic_apps_operations.py | 42 +- .../_maintenance_configurations_operations.py | 28 +- .../_managed_certificates_operations.py | 35 +- ...aged_environment_diagnostics_operations.py | 14 +- ...private_endpoint_connections_operations.py | 28 +- ...nment_private_link_resources_operations.py | 7 +- .../_managed_environment_usages_operations.py | 7 +- ...ged_environments_diagnostics_operations.py | 7 +- .../_managed_environments_operations.py | 56 +- ...anaged_environments_storages_operations.py | 28 +- .../operations/_namespaces_operations.py | 7 +- .../appcontainers/operations/_operations.py | 7 +- .../operations/_usages_operations.py | 7 +- .../code_report_swagger.json | 47586 ++++++++++++++++ .../auth_configs_create_or_update.py | 2 +- .../generated_samples/auth_configs_delete.py | 2 +- .../generated_samples/auth_configs_get.py | 2 +- .../auth_configs_list_by_container.py | 2 +- .../available_workload_profiles_get.py | 2 +- .../generated_samples/billing_meters_get.py | 2 +- .../certificate_create_or_update.py | 2 +- ...ificate_create_or_update_from_key_vault.py | 2 +- .../generated_samples/certificate_delete.py | 2 +- .../generated_samples/certificate_get.py | 2 +- .../certificates_check_name_availability.py | 2 +- ...ertificates_list_by_managed_environment.py | 2 +- .../generated_samples/certificates_patch.py | 2 +- ...vironments_certificate_create_or_update.py | 2 +- ...nnected_environments_certificate_delete.py | 2 +- .../connected_environments_certificate_get.py | 2 +- ...ts_certificates_check_name_availability.py | 2 +- ...tificates_list_by_connected_environment.py | 2 +- ...nnected_environments_certificates_patch.py | 2 +- ...connected_environments_create_or_update.py | 2 +- ...nments_dapr_components_create_or_update.py | 2 +- ...ted_environments_dapr_components_delete.py | 2 +- ...nected_environments_dapr_components_get.py | 2 +- ...ected_environments_dapr_components_list.py | 2 +- ...vironments_dapr_components_list_secrets.py | 2 +- .../connected_environments_delete.py | 2 +- .../connected_environments_get.py | 2 +- ...ted_environments_list_by_resource_group.py | 2 +- ...ected_environments_list_by_subscription.py | 2 +- .../connected_environments_patch.py | 2 +- ..._environments_storages_create_or_update.py | 2 +- .../connected_environments_storages_delete.py | 2 +- .../connected_environments_storages_get.py | 2 +- .../connected_environments_storages_list.py | 2 +- .../container_apps_check_name_availability.py | 2 +- .../container_apps_create_or_update.py | 2 +- .../container_apps_delete.py | 2 +- .../container_apps_diagnostics_get.py | 2 +- .../container_apps_diagnostics_list.py | 2 +- .../generated_samples/container_apps_get.py | 2 +- .../container_apps_get_auth_token.py | 2 +- ...apps_kind_function_app_create_or_update.py | 2 +- ...apps_kind_workflow_app_create_or_update.py | 2 +- .../container_apps_list_by_resource_group.py | 2 +- .../container_apps_list_by_subscription.py | 2 +- ...ner_apps_list_custom_host_name_analysis.py | 2 +- .../container_apps_list_secrets.py | 2 +- ...tainer_apps_managed_by_create_or_update.py | 2 +- .../generated_samples/container_apps_patch.py | 2 +- .../generated_samples/container_apps_start.py | 2 +- .../generated_samples/container_apps_stop.py | 2 +- ...container_apps_tcp_app_create_or_update.py | 2 +- ...create_or_update_secret_store_component.py | 2 +- ...apr_components_create_or_update_secrets.py | 2 +- .../dapr_components_delete.py | 2 +- ...r_components_get_secret_store_component.py | 2 +- .../dapr_components_get_secrets.py | 2 +- .../generated_samples/dapr_components_list.py | 2 +- .../dapr_components_list_secrets.py | 2 +- .../http_route_config_create_or_update.py | 2 +- ...config_create_or_update_path_sep_prefix.py | 2 +- ...tp_route_config_create_or_update_prefix.py | 2 +- .../http_route_config_delete.py | 2 +- .../http_route_config_get.py | 2 +- ...oute_config_list_by_managed_environment.py | 2 +- .../http_route_config_patch.py | 2 +- .../java_components_create_or_update.py | 2 +- ...omponents_create_or_update_service_bind.py | 2 +- .../java_components_delete.py | 2 +- .../generated_samples/java_components_get.py | 2 +- .../java_components_get_service_bind.py | 2 +- .../generated_samples/java_components_list.py | 2 +- .../java_components_list_service_bind.py | 2 +- .../java_components_patch.py | 2 +- .../java_components_patch_service_bind.py | 2 +- .../generated_samples/job_createor_update.py | 149 + .../job_createor_update_event_trigger.py | 149 + .../generated_samples/job_delete.py | 2 +- .../generated_samples/job_execution_get.py | 2 +- .../generated_samples/job_executions_get.py | 2 +- .../generated_samples/job_get.py | 2 +- .../generated_samples/job_get_detector.py | 2 +- .../generated_samples/job_list_detectors.py | 2 +- .../generated_samples/job_list_secrets.py | 2 +- .../generated_samples/job_patch.py | 137 + .../generated_samples/job_proxy_get.py | 2 +- .../generated_samples/job_start.py | 2 +- .../generated_samples/job_stop_execution.py | 2 +- .../generated_samples/job_stop_multiple.py | 2 +- .../jobs_list_by_resource_group.py | 2 +- .../jobs_list_by_subscription.py | 2 +- .../generated_samples/logic_apps_create.py | 2 +- .../generated_samples/logic_apps_delete.py | 2 +- .../generated_samples/logic_apps_get.py | 2 +- .../logic_apps_get_workflow.py | 2 +- .../logic_apps_list_connections.py | 2 +- .../logic_apps_list_workflows.py | 2 +- .../managed_certificate_create_or_update.py | 2 +- .../managed_certificate_delete.py | 2 +- .../managed_certificate_get.py | 2 +- ...ertificates_list_by_managed_environment.py | 2 +- .../managed_certificates_patch.py | 2 +- .../managed_environment_diagnostics_get.py | 2 +- .../managed_environment_diagnostics_list.py | 2 +- ...tenance_configurations_create_or_update.py | 2 +- ...nment_maintenance_configurations_delete.py | 2 +- ...ironment_maintenance_configurations_get.py | 2 +- ...ronment_maintenance_configurations_list.py | 2 +- ...e_endpoint_connections_create_or_update.py | 2 +- ...ent_private_endpoint_connections_delete.py | 2 +- ...onment_private_endpoint_connections_get.py | 2 +- ...nment_private_endpoint_connections_list.py | 2 +- ...environment_private_link_resources_list.py | 2 +- .../managed_environment_usages_list.py | 2 +- .../managed_environments_create_or_update.py | 2 +- ...om_infrastructure_resource_group_create.py | 2 +- .../managed_environments_delete.py | 2 +- .../managed_environments_get.py | 2 +- .../managed_environments_get_auth_token.py | 2 +- ...ged_environments_list_by_resource_group.py | 2 +- ...naged_environments_list_by_subscription.py | 2 +- ...vironments_list_workload_profile_states.py | 2 +- .../managed_environments_patch.py | 2 +- ..._environments_storages_create_or_update.py | 2 +- ...torages_create_or_update_nfs_azure_file.py | 2 +- .../managed_environments_storages_delete.py | 2 +- .../managed_environments_storages_get.py | 2 +- ...nvironments_storages_get_nfs_azure_file.py | 2 +- .../managed_environments_storages_list.py | 2 +- .../generated_samples/operations_list.py | 2 +- .../generated_samples/replicas_get.py | 2 +- .../generated_samples/replicas_list.py | 2 +- .../generated_samples/revisions_activate.py | 2 +- .../generated_samples/revisions_deactivate.py | 2 +- .../generated_samples/revisions_get.py | 2 +- .../generated_samples/revisions_list.py | 2 +- .../generated_samples/revisions_restart.py | 2 +- .../generated_samples/session_pools_delete.py | 2 +- .../generated_samples/session_pools_get.py | 2 +- ...ycle_on_container_exit_create_or_update.py | 2 +- ..._pools_lifecycle_timed_create_or_update.py | 2 +- .../session_pools_list_by_resource_group.py | 2 +- .../session_pools_list_by_subscription.py | 2 +- .../generated_samples/session_pools_patch.py | 2 +- .../source_controls_create_or_update.py | 2 +- .../source_controls_delete.py | 2 +- .../generated_samples/source_controls_get.py | 2 +- .../source_controls_list_by_container.py | 2 +- ...tions_get_custom_domain_verification_id.py | 2 +- .../generated_samples/usages_list.py | 2 +- .../test_container_apps_api.py | 4 +- .../test_container_apps_api_async.py | 4 +- ..._available_workload_profiles_operations.py | 2 +- ...able_workload_profiles_operations_async.py | 2 +- ...iner_apps_api_billing_meters_operations.py | 2 +- ...pps_api_billing_meters_operations_async.py | 2 +- ...tainer_apps_api_certificates_operations.py | 10 +- ..._apps_api_certificates_operations_async.py | 10 +- ...ed_environments_certificates_operations.py | 10 +- ...ironments_certificates_operations_async.py | 10 +- ...environments_dapr_components_operations.py | 10 +- ...nments_dapr_components_operations_async.py | 10 +- ...s_api_connected_environments_operations.py | 14 +- ...connected_environments_operations_async.py | 14 +- ...nected_environments_storages_operations.py | 8 +- ..._environments_storages_operations_async.py | 8 +- ..._container_apps_auth_configs_operations.py | 8 +- ...iner_apps_auth_configs_operations_async.py | 8 +- ...i_container_apps_diagnostics_operations.py | 10 +- ...ainer_apps_diagnostics_operations_async.py | 10 +- ...iner_apps_api_container_apps_operations.py | 22 +- ...pps_api_container_apps_operations_async.py | 22 +- ...ainer_apps_revision_replicas_operations.py | 4 +- ...apps_revision_replicas_operations_async.py | 4 +- ...api_container_apps_revisions_operations.py | 10 +- ...ntainer_apps_revisions_operations_async.py | 10 +- ...container_apps_session_pools_operations.py | 12 +- ...ner_apps_session_pools_operations_async.py | 12 +- ...ntainer_apps_source_controls_operations.py | 8 +- ...r_apps_source_controls_operations_async.py | 8 +- ...ner_apps_api_dapr_components_operations.py | 10 +- ...ps_api_dapr_components_operations_async.py | 10 +- ...r_apps_api_http_route_config_operations.py | 10 +- ..._api_http_route_config_operations_async.py | 10 +- ...ner_apps_api_java_components_operations.py | 10 +- ...ps_api_java_components_operations_async.py | 10 +- ...ner_apps_api_jobs_executions_operations.py | 2 +- ...ps_api_jobs_executions_operations_async.py | 2 +- ...test_container_apps_api_jobs_operations.py | 26 +- ...ontainer_apps_api_jobs_operations_async.py | 26 +- ...ontainer_apps_api_logic_apps_operations.py | 12 +- ...er_apps_api_logic_apps_operations_async.py | 12 +- ...i_maintenance_configurations_operations.py | 8 +- ...tenance_configurations_operations_async.py | 8 +- ...pps_api_managed_certificates_operations.py | 10 +- ...i_managed_certificates_operations_async.py | 10 +- ...aged_environment_diagnostics_operations.py | 4 +- ...nvironment_diagnostics_operations_async.py | 4 +- ...private_endpoint_connections_operations.py | 8 +- ...e_endpoint_connections_operations_async.py | 8 +- ...nment_private_link_resources_operations.py | 2 +- ...private_link_resources_operations_async.py | 2 +- ...i_managed_environment_usages_operations.py | 2 +- ...ged_environment_usages_operations_async.py | 2 +- ...ged_environments_diagnostics_operations.py | 2 +- ...vironments_diagnostics_operations_async.py | 2 +- ...pps_api_managed_environments_operations.py | 16 +- ...i_managed_environments_operations_async.py | 16 +- ...anaged_environments_storages_operations.py | 8 +- ..._environments_storages_operations_async.py | 8 +- ...ontainer_apps_api_namespaces_operations.py | 2 +- ...er_apps_api_namespaces_operations_async.py | 2 +- .../test_container_apps_api_operations.py | 2 +- ...est_container_apps_api_operations_async.py | 2 +- ...st_container_apps_api_usages_operations.py | 2 +- ...tainer_apps_api_usages_operations_async.py | 2 +- .../azure-mgmt-appcontainers/pyproject.toml | 4 +- 294 files changed, 49767 insertions(+), 946 deletions(-) create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/code_report_swagger.json create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_createor_update.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_createor_update_event_trigger.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_patch.py diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/CHANGELOG.md b/sdk/appcontainers/azure-mgmt-appcontainers/CHANGELOG.md index e0ebb7533b35..e44f8041121a 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/CHANGELOG.md +++ b/sdk/appcontainers/azure-mgmt-appcontainers/CHANGELOG.md @@ -1,5 +1,9 @@ # Release History +## 4.1.0 (2026-04-08) + +skip changelog generation + ## 4.0.0 (2025-10-24) ### Features Added diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/_metadata.json b/sdk/appcontainers/azure-mgmt-appcontainers/_metadata.json index a290a8dd1c4b..31162b19277f 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/_metadata.json +++ b/sdk/appcontainers/azure-mgmt-appcontainers/_metadata.json @@ -1,11 +1,11 @@ { - "commit": "aae85aa3e7e4fda95ea2d3abac0ba1d8159db214", + "commit": "23faa02bb223549c97da5f4c1c4aa2e02d49c419", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "autorest": "3.10.2", "use": [ - "@autorest/python@6.40.0", + "@autorest/python@6.50.0", "@autorest/modelerfour@4.27.0" ], - "autorest_command": "autorest specification/app/resource-manager/Microsoft.App/ContainerApps/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --package-mode=azure-mgmt --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.40.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False", + "autorest_command": "autorest specification/app/resource-manager/Microsoft.App/ContainerApps/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --package-mode=azure-mgmt --python --python-sdks-folder=/home/v-chenjiang/spec/worktrees/sdk-azure-mgmt-appcontainers/sdk --use=@autorest/python@6.50.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False", "readme": "specification/app/resource-manager/Microsoft.App/ContainerApps/readme.md" } \ No newline at end of file diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_configuration.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_configuration.py index f687b612533b..b2ce2d9abbae 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_configuration.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_configuration.py @@ -31,7 +31,7 @@ class ContainerAppsAPIClientConfiguration: # pylint: disable=too-many-instance- :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2025-07-01". Note that overriding this + :keyword api_version: Api Version. Default value is "2026-01-01". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ @@ -43,7 +43,7 @@ def __init__( cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: - api_version: str = kwargs.pop("api_version", "2025-07-01") + api_version: str = kwargs.pop("api_version", "2026-01-01") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_container_apps_api_client.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_container_apps_api_client.py index dee1e34a401a..adf5c6aaa972 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_container_apps_api_client.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_container_apps_api_client.py @@ -162,7 +162,7 @@ class ContainerAppsAPIClient(_ContainerAppsAPIClientOperationsMixin): # pylint: :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2025-07-01". Note that overriding this + :keyword api_version: Api Version. Default value is "2026-01-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 diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_utils/serialization.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_utils/serialization.py index 5f250836cf4b..6da830e0cf4a 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_utils/serialization.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_utils/serialization.py @@ -787,7 +787,7 @@ def serialize_data(self, data, data_type, **kwargs): # If dependencies is empty, try with current data class # It has to be a subclass of Enum anyway - enum_type = self.dependencies.get(data_type, data.__class__) + enum_type = self.dependencies.get(data_type, cast(type, data.__class__)) if issubclass(enum_type, Enum): return Serializer.serialize_enum(data, enum_obj=enum_type) @@ -821,13 +821,20 @@ def serialize_basic(cls, data, data_type, **kwargs): :param str data_type: Type of object in the iterable. :rtype: str, int, float, bool :return: serialized object + :raises TypeError: raise if data_type is not one of str, int, float, bool. """ custom_serializer = cls._get_custom_serializers(data_type, **kwargs) if custom_serializer: return custom_serializer(data) if data_type == "str": return cls.serialize_unicode(data) - return eval(data_type)(data) # nosec # pylint: disable=eval-used + if data_type == "int": + return int(data) + if data_type == "float": + return float(data) + if data_type == "bool": + return bool(data) + raise TypeError("Unknown basic data type: {}".format(data_type)) @classmethod def serialize_unicode(cls, data): @@ -1757,7 +1764,7 @@ def deserialize_basic(self, attr, data_type): # pylint: disable=too-many-return :param str data_type: deserialization data type. :return: Deserialized basic type. :rtype: str, int, float or bool - :raises TypeError: if string format is not valid. + :raises TypeError: if string format is not valid or data_type is not one of str, int, float, bool. """ # If we're here, data is supposed to be a basic type. # If it's still an XML node, take the text @@ -1783,7 +1790,11 @@ def deserialize_basic(self, attr, data_type): # pylint: disable=too-many-return if data_type == "str": return self.deserialize_unicode(attr) - return eval(data_type)(attr) # nosec # pylint: disable=eval-used + if data_type == "int": + return int(attr) + if data_type == "float": + return float(attr) + raise TypeError("Unknown basic data type: {}".format(data_type)) @staticmethod def deserialize_unicode(data): diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_version.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_version.py index 77f53a3589c6..73d8f69961be 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_version.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "4.0.0" +VERSION = "4.1.0" diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/_configuration.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/_configuration.py index 8f82acdae321..d45e3f376d05 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/_configuration.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/_configuration.py @@ -31,7 +31,7 @@ class ContainerAppsAPIClientConfiguration: # pylint: disable=too-many-instance- :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2025-07-01". Note that overriding this + :keyword api_version: Api Version. Default value is "2026-01-01". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ @@ -43,7 +43,7 @@ def __init__( cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: - api_version: str = kwargs.pop("api_version", "2025-07-01") + api_version: str = kwargs.pop("api_version", "2026-01-01") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/_container_apps_api_client.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/_container_apps_api_client.py index 007b3eb1a42c..be68784e7121 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/_container_apps_api_client.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/_container_apps_api_client.py @@ -162,7 +162,7 @@ class ContainerAppsAPIClient(_ContainerAppsAPIClientOperationsMixin): # pylint: :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2025-07-01". Note that overriding this + :keyword api_version: Api Version. Default value is "2026-01-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 diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_available_workload_profiles_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_available_workload_profiles_operations.py index c59c17eb62e3..cc99674a97b0 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_available_workload_profiles_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_available_workload_profiles_operations.py @@ -129,7 +129,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_billing_meters_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_billing_meters_operations.py index 5f7f423f304d..ed6b2c93e2ff 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_billing_meters_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_billing_meters_operations.py @@ -96,7 +96,10 @@ async def get(self, location: str, **kwargs: Any) -> _models.BillingMeterCollect if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("BillingMeterCollection", pipeline_response.http_response) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_certificates_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_certificates_operations.py index c9489245f8c4..618c45d74c88 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_certificates_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_certificates_operations.py @@ -141,7 +141,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -201,7 +204,10 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("Certificate", pipeline_response.http_response) @@ -352,7 +358,10 @@ async def create_or_update( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("Certificate", pipeline_response.http_response) @@ -415,7 +424,10 @@ async def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -558,7 +570,10 @@ async def update( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("Certificate", pipeline_response.http_response) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_connected_environments_certificates_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_connected_environments_certificates_operations.py index a8443320b711..444b4438059d 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_connected_environments_certificates_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_connected_environments_certificates_operations.py @@ -145,7 +145,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -205,7 +208,10 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("Certificate", pipeline_response.http_response) @@ -278,7 +284,10 @@ async def _create_or_update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -482,7 +491,10 @@ async def _delete_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -617,7 +629,10 @@ async def _update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_connected_environments_dapr_components_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_connected_environments_dapr_components_operations.py index 277822c0166c..05fb7f878542 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_connected_environments_dapr_components_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_connected_environments_dapr_components_operations.py @@ -145,7 +145,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -205,7 +208,10 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("DaprComponent", pipeline_response.http_response) @@ -274,7 +280,10 @@ async def _create_or_update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -477,7 +486,10 @@ async def _delete_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -606,7 +618,10 @@ async def list_secrets( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("DaprSecretsCollection", pipeline_response.http_response) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_connected_environments_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_connected_environments_operations.py index 1ca43ca17d26..aa7ee77f490d 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_connected_environments_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_connected_environments_operations.py @@ -140,7 +140,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -223,7 +226,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -278,7 +284,10 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ConnectedEnvironment", pipeline_response.http_response) @@ -345,7 +354,10 @@ async def _create_or_update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -534,7 +546,10 @@ async def _delete_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -735,7 +750,10 @@ async def update( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ConnectedEnvironment", pipeline_response.http_response) @@ -876,7 +894,10 @@ async def check_name_availability( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("CheckNameAvailabilityResponse", pipeline_response.http_response) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_connected_environments_storages_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_connected_environments_storages_operations.py index b95a0a856e4b..3ddb41fea9c2 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_connected_environments_storages_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_connected_environments_storages_operations.py @@ -112,7 +112,10 @@ async def list( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ConnectedEnvironmentStoragesCollection", pipeline_response.http_response) @@ -175,7 +178,10 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ConnectedEnvironmentStorage", pipeline_response.http_response) @@ -244,7 +250,10 @@ async def _create_or_update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -451,7 +460,10 @@ async def _delete_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_api_client_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_api_client_operations.py index 7fdd02de99c0..23e242b22326 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_api_client_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_api_client_operations.py @@ -94,7 +94,10 @@ async def job_execution( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("JobExecution", pipeline_response.http_response) @@ -143,7 +146,10 @@ async def get_custom_domain_verification_id(self, **kwargs: Any) -> str: if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("str", pipeline_response.http_response) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_auth_configs_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_auth_configs_operations.py index e51cac7372e9..bdfc35f7d2ad 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_auth_configs_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_auth_configs_operations.py @@ -140,7 +140,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -200,7 +203,10 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("AuthConfig", pipeline_response.http_response) @@ -347,7 +353,10 @@ async def create_or_update( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("AuthConfig", pipeline_response.http_response) @@ -410,7 +419,10 @@ async def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_diagnostics_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_diagnostics_operations.py index c5760f30edb8..1e6021eb7830 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_diagnostics_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_diagnostics_operations.py @@ -141,7 +141,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -201,7 +204,10 @@ async def get_detector( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("Diagnostics", pipeline_response.http_response) @@ -293,7 +299,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -353,7 +362,10 @@ async def get_revision( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("Revision", pipeline_response.http_response) @@ -411,7 +423,10 @@ async def get_root(self, resource_group_name: str, container_app_name: str, **kw if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ContainerApp", pipeline_response.http_response) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_operations.py index e2bd2292eec6..c2a219e26054 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_operations.py @@ -143,7 +143,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -224,7 +227,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -279,7 +285,10 @@ async def get(self, resource_group_name: str, container_app_name: str, **kwargs: if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ContainerApp", pipeline_response.http_response) @@ -346,7 +355,10 @@ async def _create_or_update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -532,7 +544,10 @@ async def _delete_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -662,7 +677,10 @@ async def _update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -861,7 +879,10 @@ async def list_custom_host_name_analysis( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("CustomHostnameAnalysisResult", pipeline_response.http_response) @@ -921,7 +942,10 @@ async def list_secrets( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("SecretsCollection", pipeline_response.http_response) @@ -981,7 +1005,10 @@ async def get_auth_token( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ContainerAppAuthToken", pipeline_response.http_response) @@ -1032,7 +1059,10 @@ async def _start_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -1151,7 +1181,10 @@ async def _stop_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_revision_replicas_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_revision_replicas_operations.py index 9b5d28160a8c..a8d9b146238c 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_revision_replicas_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_revision_replicas_operations.py @@ -111,7 +111,10 @@ async def get_replica( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("Replica", pipeline_response.http_response) @@ -174,7 +177,10 @@ async def list_replicas( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ReplicaCollection", pipeline_response.http_response) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_revisions_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_revisions_operations.py index f0e99e5455a7..ed694d64648c 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_revisions_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_revisions_operations.py @@ -143,7 +143,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -203,7 +206,10 @@ async def get_revision( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("Revision", pipeline_response.http_response) @@ -266,7 +272,10 @@ async def activate_revision( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -325,7 +334,10 @@ async def deactivate_revision( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -384,7 +396,10 @@ async def restart_revision( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_session_pools_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_session_pools_operations.py index 6999b35a36a8..c7df20c61f24 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_session_pools_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_session_pools_operations.py @@ -137,7 +137,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -218,7 +221,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -273,7 +279,10 @@ async def get(self, resource_group_name: str, session_pool_name: str, **kwargs: if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("SessionPool", pipeline_response.http_response) @@ -340,7 +349,10 @@ async def _create_or_update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -542,7 +554,10 @@ async def _update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -733,7 +748,10 @@ async def _delete_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_source_controls_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_source_controls_operations.py index f11359303b88..c701a80ac4ec 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_source_controls_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_source_controls_operations.py @@ -144,7 +144,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -204,7 +207,10 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("SourceControl", pipeline_response.http_response) @@ -273,7 +279,10 @@ async def _create_or_update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -469,7 +478,10 @@ async def _delete_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_dapr_components_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_dapr_components_operations.py index 038974c5d76d..47e5d49bace5 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_dapr_components_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_dapr_components_operations.py @@ -141,7 +141,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -201,7 +204,10 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("DaprComponent", pipeline_response.http_response) @@ -348,7 +354,10 @@ async def create_or_update( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("DaprComponent", pipeline_response.http_response) @@ -409,7 +418,10 @@ async def delete(self, resource_group_name: str, environment_name: str, componen if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -468,7 +480,10 @@ async def list_secrets( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("DaprSecretsCollection", pipeline_response.http_response) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_http_route_config_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_http_route_config_operations.py index 89961c6dcba2..3f332e2ec34d 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_http_route_config_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_http_route_config_operations.py @@ -119,7 +119,10 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("HttpRouteConfig", pipeline_response.http_response) @@ -272,7 +275,10 @@ async def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("HttpRouteConfig", pipeline_response.http_response) @@ -421,7 +427,10 @@ async def update( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("HttpRouteConfig", pipeline_response.http_response) @@ -473,7 +482,10 @@ async def _delete_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -627,7 +639,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_java_components_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_java_components_operations.py index cff41a861fa2..0f9d6550dc48 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_java_components_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_java_components_operations.py @@ -145,7 +145,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -205,7 +208,10 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("JavaComponent", pipeline_response.http_response) @@ -274,7 +280,10 @@ async def _create_or_update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -488,7 +497,10 @@ async def _update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -686,7 +698,10 @@ async def _delete_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_jobs_executions_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_jobs_executions_operations.py index a14ba6325a95..a36abbb5509f 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_jobs_executions_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_jobs_executions_operations.py @@ -136,7 +136,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_jobs_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_jobs_operations.py index a88d8698b9f7..d2da50c0cf47 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_jobs_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_jobs_operations.py @@ -154,7 +154,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -214,7 +217,10 @@ async def get_detector( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("Diagnostics", pipeline_response.http_response) @@ -275,7 +281,10 @@ async def proxy_get(self, resource_group_name: str, job_name: str, api_name: str if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("Job", pipeline_response.http_response) @@ -355,7 +364,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -436,7 +448,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -491,7 +506,10 @@ async def get(self, resource_group_name: str, job_name: str, **kwargs: Any) -> _ if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("Job", pipeline_response.http_response) @@ -554,7 +572,10 @@ async def _create_or_update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -731,7 +752,10 @@ async def _delete_initial(self, resource_group_name: str, job_name: str, **kwarg except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -859,7 +883,10 @@ async def _update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -1063,7 +1090,10 @@ async def _start_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -1254,7 +1284,10 @@ async def _stop_execution_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -1371,7 +1404,10 @@ async def _stop_multiple_executions_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -1500,7 +1536,10 @@ async def list_secrets( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("JobSecretsCollection", pipeline_response.http_response) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_logic_apps_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_logic_apps_operations.py index f0a54b13f110..1b03afd36699 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_logic_apps_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_logic_apps_operations.py @@ -116,7 +116,10 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("LogicApp", pipeline_response.http_response) @@ -261,7 +264,10 @@ async def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("LogicApp", pipeline_response.http_response) @@ -322,7 +328,10 @@ async def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -411,7 +420,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -474,7 +486,10 @@ async def get_workflow( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("WorkflowEnvelope", pipeline_response.http_response) @@ -537,7 +552,10 @@ async def list_workflows_connections( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("WorkflowEnvelope", pipeline_response.http_response) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_maintenance_configurations_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_maintenance_configurations_operations.py index f1f23254b3e3..aa7bf5238c14 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_maintenance_configurations_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_maintenance_configurations_operations.py @@ -140,7 +140,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -283,7 +286,10 @@ async def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("MaintenanceConfigurationResource", pipeline_response.http_response) @@ -342,7 +348,10 @@ async def delete(self, resource_group_name: str, environment_name: str, config_n if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -399,7 +408,10 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("MaintenanceConfigurationResource", pipeline_response.http_response) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_certificates_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_certificates_operations.py index 89a6d4e0e2e8..c17feaef2e35 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_certificates_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_certificates_operations.py @@ -119,7 +119,10 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ManagedCertificate", pipeline_response.http_response) @@ -192,7 +195,10 @@ async def _create_or_update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -404,7 +410,10 @@ async def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -550,7 +559,10 @@ async def update( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ManagedCertificate", pipeline_response.http_response) @@ -640,7 +652,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environment_diagnostics_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environment_diagnostics_operations.py index bc82bb500218..1bf155d287ac 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environment_diagnostics_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environment_diagnostics_operations.py @@ -105,7 +105,10 @@ async def list_detectors( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("DiagnosticsCollection", pipeline_response.http_response) @@ -168,7 +171,10 @@ async def get_detector( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("Diagnostics", pipeline_response.http_response) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environment_private_endpoint_connections_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environment_private_endpoint_connections_operations.py index d92668332a34..859b90b1fc7f 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environment_private_endpoint_connections_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environment_private_endpoint_connections_operations.py @@ -146,7 +146,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -207,7 +210,10 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("PrivateEndpointConnection", pipeline_response.http_response) @@ -276,7 +282,10 @@ async def _create_or_update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -480,7 +489,10 @@ async def _delete_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environment_private_link_resources_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environment_private_link_resources_operations.py index 836b3fb8bf16..70650ec6eb2e 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environment_private_link_resources_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environment_private_link_resources_operations.py @@ -134,7 +134,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environment_usages_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environment_usages_operations.py index 8013073797c9..bd7eb9f3dd0a 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environment_usages_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environment_usages_operations.py @@ -129,7 +129,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environments_diagnostics_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environments_diagnostics_operations.py index bb30b30ebe3d..100717f79399 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environments_diagnostics_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environments_diagnostics_operations.py @@ -102,7 +102,10 @@ async def get_root( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ManagedEnvironment", pipeline_response.http_response) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environments_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environments_operations.py index 7fce65770208..e7a434aeeba7 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environments_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environments_operations.py @@ -140,7 +140,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -224,7 +227,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -279,7 +285,10 @@ async def get(self, resource_group_name: str, environment_name: str, **kwargs: A if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ManagedEnvironment", pipeline_response.http_response) @@ -346,7 +355,10 @@ async def _create_or_update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -529,7 +541,10 @@ async def _delete_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -653,7 +668,10 @@ async def _update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -845,7 +863,10 @@ async def get_auth_token( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("EnvironmentAuthToken", pipeline_response.http_response) @@ -936,7 +957,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environments_storages_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environments_storages_operations.py index 44b6d0a2e135..95f802adc23a 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environments_storages_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environments_storages_operations.py @@ -108,7 +108,10 @@ async def list( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ManagedEnvironmentStoragesCollection", pipeline_response.http_response) @@ -171,7 +174,10 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ManagedEnvironmentStorage", pipeline_response.http_response) @@ -318,7 +324,10 @@ async def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ManagedEnvironmentStorage", pipeline_response.http_response) @@ -379,7 +388,10 @@ async def delete(self, resource_group_name: str, environment_name: str, storage_ if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_namespaces_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_namespaces_operations.py index 9d4f23953cd6..12203d5952ab 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_namespaces_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_namespaces_operations.py @@ -182,7 +182,10 @@ async def check_name_availability( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("CheckNameAvailabilityResponse", pipeline_response.http_response) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_operations.py index b22c74b3c9f2..4b6854065cfa 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_operations.py @@ -122,7 +122,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_usages_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_usages_operations.py index c698981affd9..32c0c4869b2f 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_usages_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_usages_operations.py @@ -126,7 +126,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_container_apps_api_client_enums.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_container_apps_api_client_enums.py index 4206b7f8cd06..ccb7d7b1b55f 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_container_apps_api_client_enums.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_container_apps_api_client_enums.py @@ -103,7 +103,9 @@ class ConnectedEnvironmentProvisioningState(str, Enum, metaclass=CaseInsensitive SCHEDULED_FOR_DELETE = "ScheduledForDelete" -class ConnectedEnvironmentStorageProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): +class ConnectedEnvironmentStorageProvisioningState( # pylint: disable=name-too-long + str, Enum, metaclass=CaseInsensitiveEnumMeta +): """Provisioning state of the storage.""" SUCCEEDED = "Succeeded" @@ -334,7 +336,9 @@ class LogLevel(str, Enum, metaclass=CaseInsensitiveEnumMeta): ERROR = "error" -class ManagedCertificateDomainControlValidation(str, Enum, metaclass=CaseInsensitiveEnumMeta): +class ManagedCertificateDomainControlValidation( # pylint: disable=name-too-long + str, Enum, metaclass=CaseInsensitiveEnumMeta +): """Selected type of domain control validation for managed certificates.""" CNAME = "CNAME" @@ -360,7 +364,9 @@ class PoolManagementType(str, Enum, metaclass=CaseInsensitiveEnumMeta): DYNAMIC = "Dynamic" -class PrivateEndpointConnectionProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): +class PrivateEndpointConnectionProvisioningState( # pylint: disable=name-too-long + str, Enum, metaclass=CaseInsensitiveEnumMeta +): """The current provisioning state.""" SUCCEEDED = "Succeeded" diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_models_py3.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_models_py3.py index 43a0b93b2abe..6091c1f3fb11 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_models_py3.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_models_py3.py @@ -401,9 +401,8 @@ class AuthPlatform(_serialization.Model): enabled for the current app; otherwise, :code:`false`. :vartype enabled: bool :ivar runtime_version: The RuntimeVersion of the Authentication / Authorization feature in use - for the current app. - The setting in this value can control the behavior of certain features in the Authentication / - Authorization module. + for the current app. The setting in this value can control the behavior of certain features in + the Authentication / Authorization module. :vartype runtime_version: str """ @@ -418,9 +417,8 @@ def __init__(self, *, enabled: Optional[bool] = None, runtime_version: Optional[ enabled for the current app; otherwise, :code:`false`. :paramtype enabled: bool :keyword runtime_version: The RuntimeVersion of the Authentication / Authorization feature in - use for the current app. - The setting in this value can control the behavior of certain features in the Authentication / - Authorization module. + use for the current app. The setting in this value can control the behavior of certain features + in the Authentication / Authorization module. :paramtype runtime_version: str """ super().__init__(**kwargs) @@ -433,8 +431,8 @@ class AvailableOperations(_serialization.Model): :ivar value: Collection of available operation details. :vartype value: list[~azure.mgmt.appcontainers.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. + :ivar next_link: URL client should use to fetch the next page (per server side paging). It's + null for now, added for future use. :vartype next_link: str """ @@ -449,8 +447,8 @@ def __init__( """ :keyword value: Collection of available operation details. :paramtype value: list[~azure.mgmt.appcontainers.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. + :keyword next_link: URL client should use to fetch the next page (per server side paging). It's + null for now, added for future use. :paramtype next_link: str """ super().__init__(**kwargs) @@ -623,10 +621,8 @@ class AzureActiveDirectory(_serialization.Model): flow. :vartype validation: ~azure.mgmt.appcontainers.models.AzureActiveDirectoryValidation :ivar is_auto_provisioned: Gets a value indicating whether the Azure AD configuration was - auto-provisioned using 1st party tooling. - This is an internal flag primarily intended to support the Azure Management Portal. Users - should not - read or write to this property. + auto-provisioned using 1st party tooling. This is an internal flag primarily intended to + support the Azure Management Portal. Users should not read or write to this property. :vartype is_auto_provisioned: bool """ @@ -661,10 +657,8 @@ def __init__( flow. :paramtype validation: ~azure.mgmt.appcontainers.models.AzureActiveDirectoryValidation :keyword is_auto_provisioned: Gets a value indicating whether the Azure AD configuration was - auto-provisioned using 1st party tooling. - This is an internal flag primarily intended to support the Azure Management Portal. Users - should not - read or write to this property. + auto-provisioned using 1st party tooling. This is an internal flag primarily intended to + support the Azure Management Portal. Users should not read or write to this property. :paramtype is_auto_provisioned: bool """ super().__init__(**kwargs) @@ -679,8 +673,7 @@ class AzureActiveDirectoryLogin(_serialization.Model): """The configuration settings of the Azure Active Directory login flow. :ivar login_parameters: Login parameters to send to the OpenID Connect authorization endpoint - when - a user logs in. Each parameter must be in the form "key=value". + when a user logs in. Each parameter must be in the form "key=value". :vartype login_parameters: list[str] :ivar disable_www_authenticate: :code:`true` if the www-authenticate provider should be omitted from the request; otherwise, :code:`false`. @@ -701,8 +694,7 @@ def __init__( ) -> None: """ :keyword login_parameters: Login parameters to send to the OpenID Connect authorization - endpoint when - a user logs in. Each parameter must be in the form "key=value". + endpoint when a user logs in. Each parameter must be in the form "key=value". :paramtype login_parameters: list[str] :keyword disable_www_authenticate: :code:`true` if the www-authenticate provider should be omitted from the request; otherwise, :code:`false`. @@ -717,34 +709,31 @@ class AzureActiveDirectoryRegistration(_serialization.Model): """The configuration settings of the Azure Active Directory app registration. :ivar open_id_issuer: The OpenID Connect Issuer URI that represents the entity which issues - access tokens for this application. - When using Azure Active Directory, this value is the URI of the directory tenant, e.g. - https://login.microsoftonline.com/v2.0/{tenant-guid}/. - This URI is a case-sensitive identifier for the token issuer. - More information on OpenID Connect Discovery: + access tokens for this application. When using Azure Active Directory, this value is the URI of + the directory tenant, e.g. https://login.microsoftonline.com/v2.0/{tenant-guid}/. This URI is a + case-sensitive identifier for the token issuer. More information on OpenID Connect Discovery: http://openid.net/specs/openid-connect-discovery-1_0.html. :vartype open_id_issuer: str - :ivar client_id: The Client ID of this relying party application, known as the client_id. - This setting is required for enabling OpenID Connection authentication with Azure Active - Directory or - other 3rd party OpenID Connect providers. - More information on OpenID Connect: http://openid.net/specs/openid-connect-core-1_0.html. + :ivar client_id: The Client ID of this relying party application, known as the client_id. This + setting is required for enabling OpenID Connection authentication with Azure Active Directory + or other 3rd party OpenID Connect providers. More information on OpenID Connect: + http://openid.net/specs/openid-connect-core-1_0.html. :vartype client_id: str :ivar client_secret_setting_name: The app setting name that contains the client secret of the relying party application. :vartype client_secret_setting_name: str :ivar client_secret_certificate_thumbprint: An alternative to the client secret, that is the - thumbprint of a certificate used for signing purposes. This property acts as - a replacement for the Client Secret. It is also optional. + thumbprint of a certificate used for signing purposes. This property acts as a replacement for + the Client Secret. It is also optional. :vartype client_secret_certificate_thumbprint: str :ivar client_secret_certificate_subject_alternative_name: An alternative to the client secret thumbprint, that is the subject alternative name of a certificate used for signing purposes. - This property acts as - a replacement for the Client Secret Certificate Thumbprint. It is also optional. + This property acts as a replacement for the Client Secret Certificate Thumbprint. It is also + optional. :vartype client_secret_certificate_subject_alternative_name: str :ivar client_secret_certificate_issuer: An alternative to the client secret thumbprint, that is - the issuer of a certificate used for signing purposes. This property acts as - a replacement for the Client Secret Certificate Thumbprint. It is also optional. + the issuer of a certificate used for signing purposes. This property acts as a replacement for + the Client Secret Certificate Thumbprint. It is also optional. :vartype client_secret_certificate_issuer: str """ @@ -773,34 +762,31 @@ def __init__( ) -> None: """ :keyword open_id_issuer: The OpenID Connect Issuer URI that represents the entity which issues - access tokens for this application. - When using Azure Active Directory, this value is the URI of the directory tenant, e.g. - https://login.microsoftonline.com/v2.0/{tenant-guid}/. - This URI is a case-sensitive identifier for the token issuer. - More information on OpenID Connect Discovery: + access tokens for this application. When using Azure Active Directory, this value is the URI of + the directory tenant, e.g. https://login.microsoftonline.com/v2.0/{tenant-guid}/. This URI is a + case-sensitive identifier for the token issuer. More information on OpenID Connect Discovery: http://openid.net/specs/openid-connect-discovery-1_0.html. :paramtype open_id_issuer: str :keyword client_id: The Client ID of this relying party application, known as the client_id. This setting is required for enabling OpenID Connection authentication with Azure Active - Directory or - other 3rd party OpenID Connect providers. - More information on OpenID Connect: http://openid.net/specs/openid-connect-core-1_0.html. + Directory or other 3rd party OpenID Connect providers. More information on OpenID Connect: + http://openid.net/specs/openid-connect-core-1_0.html. :paramtype client_id: str :keyword client_secret_setting_name: The app setting name that contains the client secret of the relying party application. :paramtype client_secret_setting_name: str :keyword client_secret_certificate_thumbprint: An alternative to the client secret, that is the - thumbprint of a certificate used for signing purposes. This property acts as - a replacement for the Client Secret. It is also optional. + thumbprint of a certificate used for signing purposes. This property acts as a replacement for + the Client Secret. It is also optional. :paramtype client_secret_certificate_thumbprint: str :keyword client_secret_certificate_subject_alternative_name: An alternative to the client secret thumbprint, that is the subject alternative name of a certificate used for signing - purposes. This property acts as - a replacement for the Client Secret Certificate Thumbprint. It is also optional. + purposes. This property acts as a replacement for the Client Secret Certificate Thumbprint. It + is also optional. :paramtype client_secret_certificate_subject_alternative_name: str :keyword client_secret_certificate_issuer: An alternative to the client secret thumbprint, that - is the issuer of a certificate used for signing purposes. This property acts as - a replacement for the Client Secret Certificate Thumbprint. It is also optional. + is the issuer of a certificate used for signing purposes. This property acts as a replacement + for the Client Secret Certificate Thumbprint. It is also optional. :paramtype client_secret_certificate_issuer: str """ super().__init__(**kwargs) @@ -3225,8 +3211,7 @@ def __init__( class CustomScaleRule(_serialization.Model): """Container App container Custom scaling rule. - :ivar type: Type of the custom scale rule - eg: azure-servicebus, redis etc. + :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] @@ -3254,8 +3239,7 @@ def __init__( **kwargs: Any ) -> None: """ - :keyword type: Type of the custom scale rule - eg: azure-servicebus, redis etc. + :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] @@ -4881,9 +4865,8 @@ class GlobalValidation(_serialization.Model): :vartype unauthenticated_client_action: str or ~azure.mgmt.appcontainers.models.UnauthenticatedClientActionV2 :ivar redirect_to_provider: The default authentication provider to use when multiple providers - are configured. - This setting is only needed if multiple providers are configured and the unauthenticated client - action is set to "RedirectToLoginPage". + are configured. This setting is only needed if multiple providers are configured and the + unauthenticated client action is set to "RedirectToLoginPage". :vartype redirect_to_provider: str :ivar excluded_paths: The paths for which unauthenticated flow would not be redirected to the login page. @@ -4911,9 +4894,8 @@ def __init__( :paramtype unauthenticated_client_action: str or ~azure.mgmt.appcontainers.models.UnauthenticatedClientActionV2 :keyword redirect_to_provider: The default authentication provider to use when multiple - providers are configured. - This setting is only needed if multiple providers are configured and the unauthenticated client - action is set to "RedirectToLoginPage". + providers are configured. This setting is only needed if multiple providers are configured and + the unauthenticated client action is set to "RedirectToLoginPage". :paramtype redirect_to_provider: str :keyword excluded_paths: The paths for which unauthenticated flow would not be redirected to the login page. @@ -5436,8 +5418,7 @@ class IdentityProviders(_serialization.Model): :ivar azure_static_web_apps: The configuration settings of the Azure Static Web Apps provider. :vartype azure_static_web_apps: ~azure.mgmt.appcontainers.models.AzureStaticWebApps :ivar custom_open_id_connect_providers: The map of the name of the alias of each custom Open ID - Connect provider to the - configuration settings of the custom Open ID Connect provider. + Connect provider to the configuration settings of the custom Open ID Connect provider. :vartype custom_open_id_connect_providers: dict[str, ~azure.mgmt.appcontainers.models.CustomOpenIdConnectProvider] """ @@ -5487,8 +5468,7 @@ def __init__( provider. :paramtype azure_static_web_apps: ~azure.mgmt.appcontainers.models.AzureStaticWebApps :keyword custom_open_id_connect_providers: The map of the name of the alias of each custom Open - ID Connect provider to the - configuration settings of the custom Open ID Connect provider. + ID Connect provider to the configuration settings of the custom Open ID Connect provider. :paramtype custom_open_id_connect_providers: dict[str, ~azure.mgmt.appcontainers.models.CustomOpenIdConnectProvider] """ @@ -6827,8 +6807,7 @@ class JobScaleRule(_serialization.Model): :ivar name: Scale Rule Name. :vartype name: str - :ivar type: Type of the scale rule - eg: azure-servicebus, redis etc. + :ivar type: Type of the scale rule eg: azure-servicebus, redis etc. :vartype type: str :ivar metadata: Metadata properties to describe the scale rule. :vartype metadata: JSON @@ -6860,8 +6839,7 @@ def __init__( """ :keyword name: Scale Rule Name. :paramtype name: str - :keyword type: Type of the scale rule - eg: azure-servicebus, redis etc. + :keyword type: Type of the scale rule eg: azure-servicebus, redis etc. :paramtype type: str :keyword metadata: Metadata properties to describe the scale rule. :paramtype metadata: JSON @@ -7167,8 +7145,8 @@ class Login(_serialization.Model): :vartype preserve_url_fragments_for_logins: bool :ivar allowed_external_redirect_urls: External URLs that can be redirected to as part of logging in or logging out of the app. Note that the query string part of the URL is ignored. - This is an advanced setting typically only needed by Windows Store application backends. - Note that URLs within the current domain are always implicitly allowed. + This is an advanced setting typically only needed by Windows Store application backends. Note + that URLs within the current domain are always implicitly allowed. :vartype allowed_external_redirect_urls: list[str] :ivar cookie_expiration: The configuration settings of the session cookie's expiration. :vartype cookie_expiration: ~azure.mgmt.appcontainers.models.CookieExpiration @@ -7206,8 +7184,8 @@ def __init__( :paramtype preserve_url_fragments_for_logins: bool :keyword allowed_external_redirect_urls: External URLs that can be redirected to as part of logging in or logging out of the app. Note that the query string part of the URL is ignored. - This is an advanced setting typically only needed by Windows Store application backends. - Note that URLs within the current domain are always implicitly allowed. + This is an advanced setting typically only needed by Windows Store application backends. Note + that URLs within the current domain are always implicitly allowed. :paramtype allowed_external_redirect_urls: list[str] :keyword cookie_expiration: The configuration settings of the session cookie's expiration. :paramtype cookie_expiration: ~azure.mgmt.appcontainers.models.CookieExpiration @@ -9005,17 +8983,15 @@ class Revision(ProxyResource): :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy information. :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData - :ivar created_time: Timestamp describing when the revision was created - by controller. + :ivar created_time: Timestamp describing when the revision was created by controller. :vartype created_time: ~datetime.datetime :ivar last_active_time: Timestamp describing when the revision was last active. Only meaningful when revision is inactive. :vartype last_active_time: ~datetime.datetime :ivar fqdn: Fully qualified domain name of the revision. :vartype fqdn: str - :ivar template: Container App Revision Template with all possible settings and the - defaults if user did not provide them. The defaults are populated - as they were at the creation time. + :ivar template: Container App Revision Template with all possible settings and the defaults if + user did not provide them. The defaults are populated as they were at the creation time. :vartype template: ~azure.mgmt.appcontainers.models.Template :ivar active: Boolean describing if the Revision is Active. :vartype active: bool @@ -10074,9 +10050,8 @@ class SourceControl(ProxyResource): :ivar branch: The branch which will trigger the auto deployment. :vartype branch: str :ivar github_action_configuration: Container App Revision Template with all possible settings - and the - defaults if user did not provide them. The defaults are populated - as they were at the creation time. + and the defaults if user did not provide them. The defaults are populated as they were at the + creation time. :vartype github_action_configuration: ~azure.mgmt.appcontainers.models.GithubActionConfiguration """ @@ -10117,9 +10092,8 @@ def __init__( :keyword branch: The branch which will trigger the auto deployment. :paramtype branch: str :keyword github_action_configuration: Container App Revision Template with all possible - settings and the - defaults if user did not provide them. The defaults are populated - as they were at the creation time. + settings and the defaults if user did not provide them. The defaults are populated as they were + at the creation time. :paramtype github_action_configuration: ~azure.mgmt.appcontainers.models.GithubActionConfiguration """ @@ -10454,9 +10428,8 @@ def __init__( class Template(_serialization.Model): - """Container App versioned application definition. - Defines the desired state of an immutable revision. - Any changes to this section Will result in a new revision being created. + """Container App versioned application definition. Defines the desired state of an immutable + revision. Any changes to this section Will result in a new revision being created. :ivar revision_suffix: User friendly suffix that is appended to the revision name. :vartype revision_suffix: str @@ -10534,12 +10507,11 @@ class TokenStore(_serialization.Model): """The configuration settings of the token store. :ivar enabled: :code:`true` to durably store platform-specific security tokens - that are obtained during login flows; otherwise, :code:`false`. - The default is :code:`false`. + that are obtained during login flows; otherwise, :code:`false`. The default is + :code:`false`. :vartype enabled: bool :ivar token_refresh_extension_hours: The number of hours after session token expiration that a - session token can be used to - call the token refresh API. The default is 72 hours. + session token can be used to call the token refresh API. The default is 72 hours. :vartype token_refresh_extension_hours: float :ivar azure_blob_storage: The configuration settings of the storage of the tokens if blob storage is used. @@ -10562,12 +10534,11 @@ def __init__( ) -> None: """ :keyword enabled: :code:`true` to durably store platform-specific security tokens - that are obtained during login flows; otherwise, :code:`false`. - The default is :code:`false`. + that are obtained during login flows; otherwise, :code:`false`. The default is + :code:`false`. :paramtype enabled: bool :keyword token_refresh_extension_hours: The number of hours after session token expiration that - a session token can be used to - call the token refresh API. The default is 72 hours. + a session token can be used to call the token refresh API. The default is 72 hours. :paramtype token_refresh_extension_hours: float :keyword azure_blob_storage: The configuration settings of the storage of the tokens if blob storage is used. @@ -10666,12 +10637,11 @@ class TwitterRegistration(_serialization.Model): """The configuration settings of the app registration for the Twitter provider. :ivar consumer_key: The OAuth 1.0a consumer key of the Twitter application used for sign-in. - This setting is required for enabling Twitter Sign-In. - Twitter Sign-In documentation: https://dev.twitter.com/web/sign-in. + This setting is required for enabling Twitter Sign-In. Twitter Sign-In documentation: + https://dev.twitter.com/web/sign-in. :vartype consumer_key: str :ivar consumer_secret_setting_name: The app setting name that contains the OAuth 1.0a consumer - secret of the Twitter - application used for sign-in. + secret of the Twitter application used for sign-in. :vartype consumer_secret_setting_name: str """ @@ -10685,12 +10655,11 @@ def __init__( ) -> None: """ :keyword consumer_key: The OAuth 1.0a consumer key of the Twitter application used for sign-in. - This setting is required for enabling Twitter Sign-In. - Twitter Sign-In documentation: https://dev.twitter.com/web/sign-in. + This setting is required for enabling Twitter Sign-In. Twitter Sign-In documentation: + https://dev.twitter.com/web/sign-in. :paramtype consumer_key: str :keyword consumer_secret_setting_name: The app setting name that contains the OAuth 1.0a - consumer secret of the Twitter - application used for sign-in. + consumer secret of the Twitter application used for sign-in. :paramtype consumer_secret_setting_name: str """ super().__init__(**kwargs) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_available_workload_profiles_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_available_workload_profiles_operations.py index bd3e934f6fc1..122ee6a24506 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_available_workload_profiles_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_available_workload_profiles_operations.py @@ -42,7 +42,7 @@ def build_get_request(location: str, subscription_id: str, **kwargs: Any) -> Htt _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -159,7 +159,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_billing_meters_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_billing_meters_operations.py index 78c0072e9b61..9af04a745252 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_billing_meters_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_billing_meters_operations.py @@ -39,7 +39,7 @@ def build_get_request(location: str, subscription_id: str, **kwargs: Any) -> Htt _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -125,7 +125,10 @@ def get(self, location: str, **kwargs: Any) -> _models.BillingMeterCollection: if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("BillingMeterCollection", pipeline_response.http_response) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_certificates_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_certificates_operations.py index 8befdee4374f..6dfd731cb85c 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_certificates_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_certificates_operations.py @@ -45,7 +45,7 @@ def build_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -78,7 +78,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -112,7 +112,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -149,7 +149,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -183,7 +183,7 @@ def build_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -310,7 +310,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -370,7 +373,10 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("Certificate", pipeline_response.http_response) @@ -521,7 +527,10 @@ def create_or_update( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("Certificate", pipeline_response.http_response) @@ -584,7 +593,10 @@ def delete( # pylint: disable=inconsistent-return-statements if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -727,7 +739,10 @@ def update( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("Certificate", pipeline_response.http_response) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_connected_environments_certificates_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_connected_environments_certificates_operations.py index d8ecf2002f6c..ddcfc22cdb1d 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_connected_environments_certificates_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_connected_environments_certificates_operations.py @@ -49,7 +49,7 @@ def build_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -86,7 +86,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -124,7 +124,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -165,7 +165,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -203,7 +203,7 @@ def build_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -332,7 +332,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -392,7 +395,10 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("Certificate", pipeline_response.http_response) @@ -465,7 +471,10 @@ def _create_or_update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -668,7 +677,10 @@ def _delete_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -803,7 +815,10 @@ def _update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_connected_environments_dapr_components_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_connected_environments_dapr_components_operations.py index 5346c24fcd14..b1f4e65de407 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_connected_environments_dapr_components_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_connected_environments_dapr_components_operations.py @@ -49,7 +49,7 @@ def build_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -82,7 +82,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -116,7 +116,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -153,7 +153,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -187,7 +187,7 @@ def build_list_secrets_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -313,7 +313,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -373,7 +376,10 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("DaprComponent", pipeline_response.http_response) @@ -442,7 +448,10 @@ def _create_or_update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -644,7 +653,10 @@ def _delete_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -773,7 +785,10 @@ def list_secrets( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("DaprSecretsCollection", pipeline_response.http_response) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_connected_environments_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_connected_environments_operations.py index a08eca4b1944..dec439666998 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_connected_environments_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_connected_environments_operations.py @@ -47,7 +47,7 @@ def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> H _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -71,7 +71,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -103,7 +103,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -136,7 +136,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -172,7 +172,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -205,7 +205,7 @@ def build_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -241,7 +241,7 @@ def build_check_name_availability_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -361,7 +361,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -443,7 +446,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -498,7 +504,10 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ConnectedEnvironment", pipeline_response.http_response) @@ -565,7 +574,10 @@ def _create_or_update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -750,7 +762,10 @@ def _delete_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -949,7 +964,10 @@ def update( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ConnectedEnvironment", pipeline_response.http_response) @@ -1090,7 +1108,10 @@ def check_name_availability( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("CheckNameAvailabilityResponse", pipeline_response.http_response) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_connected_environments_storages_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_connected_environments_storages_operations.py index d2c675ad6ee9..4c11d8aed136 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_connected_environments_storages_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_connected_environments_storages_operations.py @@ -47,7 +47,7 @@ def build_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -80,7 +80,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -114,7 +114,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -151,7 +151,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -248,7 +248,10 @@ def list( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ConnectedEnvironmentStoragesCollection", pipeline_response.http_response) @@ -311,7 +314,10 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ConnectedEnvironmentStorage", pipeline_response.http_response) @@ -380,7 +386,10 @@ def _create_or_update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -586,7 +595,10 @@ def _delete_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_api_client_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_api_client_operations.py index b43939c66ba5..4305d9110c5a 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_api_client_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_api_client_operations.py @@ -43,7 +43,7 @@ def build_job_execution_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -79,7 +79,7 @@ def build_get_custom_domain_verification_id_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -158,7 +158,10 @@ def job_execution( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("JobExecution", pipeline_response.http_response) @@ -207,7 +210,10 @@ def get_custom_domain_verification_id(self, **kwargs: Any) -> str: if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("str", pipeline_response.http_response) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_auth_configs_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_auth_configs_operations.py index bbaeae1a36c2..f17faa3e8015 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_auth_configs_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_auth_configs_operations.py @@ -45,7 +45,7 @@ def build_list_by_container_app_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -78,7 +78,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -112,7 +112,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -149,7 +149,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -275,7 +275,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -335,7 +338,10 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("AuthConfig", pipeline_response.http_response) @@ -482,7 +488,10 @@ def create_or_update( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("AuthConfig", pipeline_response.http_response) @@ -545,7 +554,10 @@ def delete( # pylint: disable=inconsistent-return-statements if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_diagnostics_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_diagnostics_operations.py index 2ac67b4b9112..e51fe103473a 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_diagnostics_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_diagnostics_operations.py @@ -44,7 +44,7 @@ def build_list_detectors_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -77,7 +77,7 @@ def build_get_detector_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -116,7 +116,7 @@ def build_list_revisions_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -151,7 +151,7 @@ def build_get_revision_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -185,7 +185,7 @@ def build_get_root_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -311,7 +311,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -371,7 +374,10 @@ def get_detector( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("Diagnostics", pipeline_response.http_response) @@ -463,7 +469,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -523,7 +532,10 @@ def get_revision( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("Revision", pipeline_response.http_response) @@ -581,7 +593,10 @@ def get_root(self, resource_group_name: str, container_app_name: str, **kwargs: if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ContainerApp", pipeline_response.http_response) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_operations.py index bc2769c99c03..bb500d31478f 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_operations.py @@ -47,7 +47,7 @@ def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> H _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -71,7 +71,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -103,7 +103,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -136,7 +136,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -172,7 +172,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -205,7 +205,7 @@ def build_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -246,7 +246,7 @@ def build_list_custom_host_name_analysis_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -281,7 +281,7 @@ def build_list_secrets_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -314,7 +314,7 @@ def build_get_auth_token_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -347,7 +347,7 @@ def build_start_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -382,7 +382,7 @@ def build_stop_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -500,7 +500,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -581,7 +584,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -636,7 +642,10 @@ def get(self, resource_group_name: str, container_app_name: str, **kwargs: Any) if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ContainerApp", pipeline_response.http_response) @@ -703,7 +712,10 @@ def _create_or_update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -886,7 +898,10 @@ def _delete_initial(self, resource_group_name: str, container_app_name: str, **k except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -1014,7 +1029,10 @@ def _update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -1213,7 +1231,10 @@ def list_custom_host_name_analysis( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("CustomHostnameAnalysisResult", pipeline_response.http_response) @@ -1273,7 +1294,10 @@ def list_secrets( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("SecretsCollection", pipeline_response.http_response) @@ -1333,7 +1357,10 @@ def get_auth_token( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ContainerAppAuthToken", pipeline_response.http_response) @@ -1382,7 +1409,10 @@ def _start_initial(self, resource_group_name: str, container_app_name: str, **kw except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -1499,7 +1529,10 @@ def _stop_initial(self, resource_group_name: str, container_app_name: str, **kwa except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_revision_replicas_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_revision_replicas_operations.py index 4a7dbc59414e..9328667c7f11 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_revision_replicas_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_revision_replicas_operations.py @@ -47,7 +47,7 @@ def build_get_replica_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -82,7 +82,7 @@ def build_list_replicas_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -185,7 +185,10 @@ def get_replica( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("Replica", pipeline_response.http_response) @@ -248,7 +251,10 @@ def list_replicas( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ReplicaCollection", pipeline_response.http_response) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_revisions_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_revisions_operations.py index d796b75e2a72..e03b08b8da60 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_revisions_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_revisions_operations.py @@ -49,7 +49,7 @@ def build_list_revisions_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -84,7 +84,7 @@ def build_get_revision_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -118,7 +118,7 @@ def build_activate_revision_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -152,7 +152,7 @@ def build_deactivate_revision_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -186,7 +186,7 @@ def build_restart_revision_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -315,7 +315,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -375,7 +378,10 @@ def get_revision( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("Revision", pipeline_response.http_response) @@ -438,7 +444,10 @@ def activate_revision( # pylint: disable=inconsistent-return-statements if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -497,7 +506,10 @@ def deactivate_revision( # pylint: disable=inconsistent-return-statements if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -556,7 +568,10 @@ def restart_revision( # pylint: disable=inconsistent-return-statements if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_session_pools_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_session_pools_operations.py index 0c111c90916b..2da205e4523c 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_session_pools_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_session_pools_operations.py @@ -1,4 +1,4 @@ -# pylint: disable=line-too-long,useless-suppression +# pylint: disable=line-too-long,useless-suppression,too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -47,7 +47,7 @@ def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> H _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -71,7 +71,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -103,7 +103,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -138,7 +138,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -176,7 +176,7 @@ def build_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -214,7 +214,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -332,7 +332,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -413,7 +416,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -468,7 +474,10 @@ def get(self, resource_group_name: str, session_pool_name: str, **kwargs: Any) - if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("SessionPool", pipeline_response.http_response) @@ -535,7 +544,10 @@ def _create_or_update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -736,7 +748,10 @@ def _update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -924,7 +939,10 @@ def _delete_initial(self, resource_group_name: str, session_pool_name: str, **kw except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_source_controls_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_source_controls_operations.py index 8e576d844c6a..db5bd720f3d6 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_source_controls_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_source_controls_operations.py @@ -49,7 +49,7 @@ def build_list_by_container_app_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -82,7 +82,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -116,7 +116,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -153,7 +153,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -279,7 +279,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -339,7 +342,10 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("SourceControl", pipeline_response.http_response) @@ -408,7 +414,10 @@ def _create_or_update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -604,7 +613,10 @@ def _delete_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_dapr_components_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_dapr_components_operations.py index e8f3dd51d312..c20031182449 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_dapr_components_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_dapr_components_operations.py @@ -45,7 +45,7 @@ def build_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -78,7 +78,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -112,7 +112,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -149,7 +149,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -183,7 +183,7 @@ def build_list_secrets_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -309,7 +309,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -369,7 +372,10 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("DaprComponent", pipeline_response.http_response) @@ -516,7 +522,10 @@ def create_or_update( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("DaprComponent", pipeline_response.http_response) @@ -579,7 +588,10 @@ def delete( # pylint: disable=inconsistent-return-statements if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -638,7 +650,10 @@ def list_secrets( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("DaprSecretsCollection", pipeline_response.http_response) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_http_route_config_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_http_route_config_operations.py index 97292abccd54..0dc1aed8049d 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_http_route_config_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_http_route_config_operations.py @@ -49,7 +49,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -85,7 +85,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -124,7 +124,7 @@ def build_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -161,7 +161,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -197,7 +197,7 @@ def build_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -296,7 +296,10 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("HttpRouteConfig", pipeline_response.http_response) @@ -449,7 +452,10 @@ def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("HttpRouteConfig", pipeline_response.http_response) @@ -598,7 +604,10 @@ def update( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("HttpRouteConfig", pipeline_response.http_response) @@ -650,7 +659,10 @@ def _delete_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -803,7 +815,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_java_components_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_java_components_operations.py index ce1623f66b06..63346d3320c9 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_java_components_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_java_components_operations.py @@ -49,7 +49,7 @@ def build_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -82,7 +82,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -116,7 +116,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -153,7 +153,7 @@ def build_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -190,7 +190,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -316,7 +316,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -374,7 +377,10 @@ def get(self, resource_group_name: str, environment_name: str, name: str, **kwar if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("JavaComponent", pipeline_response.http_response) @@ -443,7 +449,10 @@ def _create_or_update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -656,7 +665,10 @@ def _update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -854,7 +866,10 @@ def _delete_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_jobs_executions_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_jobs_executions_operations.py index 430ccb0a38ff..d6a4a3614f13 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_jobs_executions_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_jobs_executions_operations.py @@ -44,7 +44,7 @@ def build_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -174,7 +174,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_jobs_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_jobs_operations.py index e86afd61d2f0..396f5be50f50 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_jobs_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_jobs_operations.py @@ -49,7 +49,7 @@ def build_list_detectors_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -82,7 +82,7 @@ def build_get_detector_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -116,7 +116,7 @@ def build_proxy_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -148,7 +148,7 @@ def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> H _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -172,7 +172,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -202,7 +202,7 @@ def build_get_request(resource_group_name: str, job_name: str, subscription_id: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -235,7 +235,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -269,7 +269,7 @@ def build_delete_request(resource_group_name: str, job_name: str, subscription_i _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -300,7 +300,7 @@ def build_update_request(resource_group_name: str, job_name: str, subscription_i _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -334,7 +334,7 @@ def build_start_request(resource_group_name: str, job_name: str, subscription_id _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -370,7 +370,7 @@ def build_stop_execution_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -406,7 +406,7 @@ def build_stop_multiple_executions_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -439,7 +439,7 @@ def build_list_secrets_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -564,7 +564,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -624,7 +627,10 @@ def get_detector( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("Diagnostics", pipeline_response.http_response) @@ -685,7 +691,10 @@ def proxy_get(self, resource_group_name: str, job_name: str, api_name: str, **kw if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("Job", pipeline_response.http_response) @@ -765,7 +774,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -846,7 +858,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -901,7 +916,10 @@ def get(self, resource_group_name: str, job_name: str, **kwargs: Any) -> _models if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("Job", pipeline_response.http_response) @@ -964,7 +982,10 @@ def _create_or_update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -1138,7 +1159,10 @@ def _delete_initial(self, resource_group_name: str, job_name: str, **kwargs: Any except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -1266,7 +1290,10 @@ def _update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -1468,7 +1495,10 @@ def _start_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -1659,7 +1689,10 @@ def _stop_execution_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -1776,7 +1809,10 @@ def _stop_multiple_executions_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -1903,7 +1939,10 @@ def list_secrets(self, resource_group_name: str, job_name: str, **kwargs: Any) - if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("JobSecretsCollection", pipeline_response.http_response) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_logic_apps_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_logic_apps_operations.py index 94d1492cb76d..38155344395c 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_logic_apps_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_logic_apps_operations.py @@ -45,7 +45,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -81,7 +81,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -120,7 +120,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -156,7 +156,7 @@ def build_list_workflows_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -197,7 +197,7 @@ def build_get_workflow_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -236,7 +236,7 @@ def build_list_workflows_connections_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -338,7 +338,10 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("LogicApp", pipeline_response.http_response) @@ -483,7 +486,10 @@ def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("LogicApp", pipeline_response.http_response) @@ -544,7 +550,10 @@ def delete( # pylint: disable=inconsistent-return-statements if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -632,7 +641,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -695,7 +707,10 @@ def get_workflow( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("WorkflowEnvelope", pipeline_response.http_response) @@ -758,7 +773,10 @@ def list_workflows_connections( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("WorkflowEnvelope", pipeline_response.http_response) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_maintenance_configurations_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_maintenance_configurations_operations.py index b4ed384c51f9..3db0139bdc20 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_maintenance_configurations_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_maintenance_configurations_operations.py @@ -45,7 +45,7 @@ def build_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -78,7 +78,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -115,7 +115,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -149,7 +149,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -275,7 +275,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -418,7 +421,10 @@ def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("MaintenanceConfigurationResource", pipeline_response.http_response) @@ -479,7 +485,10 @@ def delete( # pylint: disable=inconsistent-return-statements if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -536,7 +545,10 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("MaintenanceConfigurationResource", pipeline_response.http_response) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_certificates_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_certificates_operations.py index b0365dfb821c..c25e25f03b7f 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_certificates_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_certificates_operations.py @@ -49,7 +49,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -83,7 +83,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -120,7 +120,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -154,7 +154,7 @@ def build_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -191,7 +191,7 @@ def build_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -290,7 +290,10 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ManagedCertificate", pipeline_response.http_response) @@ -363,7 +366,10 @@ def _create_or_update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -574,7 +580,10 @@ def delete( # pylint: disable=inconsistent-return-statements if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -720,7 +729,10 @@ def update( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ManagedCertificate", pipeline_response.http_response) @@ -809,7 +821,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environment_diagnostics_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environment_diagnostics_operations.py index 60f19ad5862e..66c0068ecb36 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environment_diagnostics_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environment_diagnostics_operations.py @@ -42,7 +42,7 @@ def build_list_detectors_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -75,7 +75,7 @@ def build_get_detector_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -172,7 +172,10 @@ def list_detectors( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("DiagnosticsCollection", pipeline_response.http_response) @@ -235,7 +238,10 @@ def get_detector( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("Diagnostics", pipeline_response.http_response) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environment_private_endpoint_connections_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environment_private_endpoint_connections_operations.py index 49a7d1332ee7..89c9ce0f1636 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environment_private_endpoint_connections_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environment_private_endpoint_connections_operations.py @@ -49,7 +49,7 @@ def build_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -86,7 +86,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -126,7 +126,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -169,7 +169,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -299,7 +299,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -360,7 +363,10 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("PrivateEndpointConnection", pipeline_response.http_response) @@ -429,7 +435,10 @@ def _create_or_update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -633,7 +642,10 @@ def _delete_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environment_private_link_resources_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environment_private_link_resources_operations.py index b90568e57d73..40821588daec 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environment_private_link_resources_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environment_private_link_resources_operations.py @@ -44,7 +44,7 @@ def build_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -169,7 +169,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environment_usages_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environment_usages_operations.py index b871dce97cda..71fac0ef3267 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environment_usages_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environment_usages_operations.py @@ -44,7 +44,7 @@ def build_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -165,7 +165,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environments_diagnostics_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environments_diagnostics_operations.py index bcd26753323a..37c1ce3c68e8 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environments_diagnostics_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environments_diagnostics_operations.py @@ -42,7 +42,7 @@ def build_get_root_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -136,7 +136,10 @@ def get_root(self, resource_group_name: str, environment_name: str, **kwargs: An if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ManagedEnvironment", pipeline_response.http_response) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environments_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environments_operations.py index 545616b1a5cf..a34da7ad7719 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environments_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environments_operations.py @@ -47,7 +47,7 @@ def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> H _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -71,7 +71,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -103,7 +103,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -136,7 +136,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -172,7 +172,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -205,7 +205,7 @@ def build_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -241,7 +241,7 @@ def build_get_auth_token_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -274,7 +274,7 @@ def build_list_workload_profile_states_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -390,7 +390,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -473,7 +476,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -528,7 +534,10 @@ def get(self, resource_group_name: str, environment_name: str, **kwargs: Any) -> if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ManagedEnvironment", pipeline_response.http_response) @@ -595,7 +604,10 @@ def _create_or_update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -776,7 +788,10 @@ def _delete_initial(self, resource_group_name: str, environment_name: str, **kwa except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -898,7 +913,10 @@ def _update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -1090,7 +1108,10 @@ def get_auth_token( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("EnvironmentAuthToken", pipeline_response.http_response) @@ -1180,7 +1201,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environments_storages_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environments_storages_operations.py index 4e6c4dae5f36..23595a41797c 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environments_storages_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environments_storages_operations.py @@ -43,7 +43,7 @@ def build_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -76,7 +76,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -110,7 +110,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -147,7 +147,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -244,7 +244,10 @@ def list( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ManagedEnvironmentStoragesCollection", pipeline_response.http_response) @@ -307,7 +310,10 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ManagedEnvironmentStorage", pipeline_response.http_response) @@ -454,7 +460,10 @@ def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ManagedEnvironmentStorage", pipeline_response.http_response) @@ -517,7 +526,10 @@ def delete( # pylint: disable=inconsistent-return-statements if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_namespaces_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_namespaces_operations.py index 9e0aca8a23b2..180a334d7eea 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_namespaces_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_namespaces_operations.py @@ -43,7 +43,7 @@ def build_check_name_availability_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -221,7 +221,10 @@ def check_name_availability( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("CheckNameAvailabilityResponse", pipeline_response.http_response) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_operations.py index 28ebcaa92500..b08a5d206986 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_operations.py @@ -41,7 +41,7 @@ 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", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -142,7 +142,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_usages_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_usages_operations.py index 74ff4f50f5b1..c36be2a754f4 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_usages_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_usages_operations.py @@ -41,7 +41,7 @@ def build_list_request(location: str, subscription_id: str, **kwargs: Any) -> Ht _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -155,7 +155,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.DefaultErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/code_report_swagger.json b/sdk/appcontainers/azure-mgmt-appcontainers/code_report_swagger.json new file mode 100644 index 000000000000..b116adeecdea --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/code_report_swagger.json @@ -0,0 +1,47586 @@ +{ + "azure.mgmt.appcontainers": { + "class_nodes": { + "ContainerAppsAPIClient": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "credential": { + "default": null, + "param_type": "positional_or_keyword" + }, + "subscription_id": { + "default": null, + "param_type": "positional_or_keyword" + }, + "base_url": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "cloud_setting": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "close": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_custom_domain_verification_id": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "job_execution": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_execution_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "client_side_validation": { + "attr_type": false + }, + "container_apps_auth_configs": { + "attr_type": "ContainerAppsAuthConfigsOperations" + }, + "available_workload_profiles": { + "attr_type": "AvailableWorkloadProfilesOperations" + }, + "billing_meters": { + "attr_type": "BillingMetersOperations" + }, + "connected_environments": { + "attr_type": "ConnectedEnvironmentsOperations" + }, + "connected_environments_certificates": { + "attr_type": "ConnectedEnvironmentsCertificatesOperations" + }, + "connected_environments_dapr_components": { + "attr_type": "ConnectedEnvironmentsDaprComponentsOperations" + }, + "connected_environments_storages": { + "attr_type": "ConnectedEnvironmentsStoragesOperations" + }, + "container_apps": { + "attr_type": "ContainerAppsOperations" + }, + "container_apps_revisions": { + "attr_type": "ContainerAppsRevisionsOperations" + }, + "container_apps_revision_replicas": { + "attr_type": "ContainerAppsRevisionReplicasOperations" + }, + "container_apps_diagnostics": { + "attr_type": "ContainerAppsDiagnosticsOperations" + }, + "managed_environment_diagnostics": { + "attr_type": "ManagedEnvironmentDiagnosticsOperations" + }, + "managed_environments_diagnostics": { + "attr_type": "ManagedEnvironmentsDiagnosticsOperations" + }, + "jobs": { + "attr_type": "JobsOperations" + }, + "operations": { + "attr_type": "Operations" + }, + "java_components": { + "attr_type": "JavaComponentsOperations" + }, + "jobs_executions": { + "attr_type": "JobsExecutionsOperations" + }, + "managed_environments": { + "attr_type": "ManagedEnvironmentsOperations" + }, + "certificates": { + "attr_type": "CertificatesOperations" + }, + "managed_certificates": { + "attr_type": "ManagedCertificatesOperations" + }, + "namespaces": { + "attr_type": "NamespacesOperations" + }, + "managed_environment_private_endpoint_connections": { + "attr_type": "ManagedEnvironmentPrivateEndpointConnectionsOperations" + }, + "managed_environment_private_link_resources": { + "attr_type": "ManagedEnvironmentPrivateLinkResourcesOperations" + }, + "dapr_components": { + "attr_type": "DaprComponentsOperations" + }, + "http_route_config": { + "attr_type": "HttpRouteConfigOperations" + }, + "maintenance_configurations": { + "attr_type": "MaintenanceConfigurationsOperations" + }, + "managed_environments_storages": { + "attr_type": "ManagedEnvironmentsStoragesOperations" + }, + "container_apps_session_pools": { + "attr_type": "ContainerAppsSessionPoolsOperations" + }, + "container_apps_source_controls": { + "attr_type": "ContainerAppsSourceControlsOperations" + }, + "usages": { + "attr_type": "UsagesOperations" + }, + "managed_environment_usages": { + "attr_type": "ManagedEnvironmentUsagesOperations" + }, + "logic_apps": { + "attr_type": "LogicAppsOperations" + }, + "url": { + "attr_type": "format_url" + } + } + } + }, + "function_nodes": {} + }, + "azure.mgmt.appcontainers.operations": { + "class_nodes": { + "AvailableWorkloadProfilesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "BillingMetersOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "CertificatesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "Optional[Certificate]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "Optional[IO[bytes]]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "CertificatePatch", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "ConnectedEnvironmentsCertificatesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "Optional[Certificate]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "Optional[IO[bytes]]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "CertificatePatch", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ConnectedEnvironmentsDaprComponentsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_envelope": { + "type": "DaprComponent", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_secrets": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ConnectedEnvironmentsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "ConnectedEnvironment", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "check_name_availability": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "check_name_availability_request": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "check_name_availability_request": { + "type": "CheckNameAvailabilityRequest", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "check_name_availability_request": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "ConnectedEnvironmentPatchResource", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "ConnectedEnvironmentsStoragesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_envelope": { + "type": "ConnectedEnvironmentStorage", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsAuthConfigsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_envelope": { + "type": "AuthConfig", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_container_app": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsDiagnosticsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_detector": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "detector_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_revision": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_root": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_detectors": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_revisions": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "filter": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_envelope": { + "type": "ContainerApp", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_start": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_stop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_envelope": { + "type": "ContainerApp", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_auth_token": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_custom_host_name_analysis": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "custom_hostname": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_secrets": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsRevisionReplicasOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_replica": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "replica_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_replicas": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsRevisionsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "activate_revision": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deactivate_revision": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_revision": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_revisions": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "filter": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "restart_revision": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsSessionPoolsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_envelope": { + "type": "SessionPool", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_envelope": { + "type": "SessionPoolUpdatableProperties", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsSourceControlsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_envelope": { + "type": "SourceControl", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_container_app": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "DaprComponentsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_envelope": { + "type": "DaprComponent", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_secrets": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "HttpRouteConfigOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_config_envelope": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_config_envelope": { + "type": "Optional[HttpRouteConfig]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_config_envelope": { + "type": "Optional[IO[bytes]]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_config_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_config_envelope": { + "type": "HttpRouteConfig", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_config_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "JavaComponentsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "java_component_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "java_component_envelope": { + "type": "JavaComponent", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "java_component_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "java_component_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "java_component_envelope": { + "type": "JavaComponent", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "java_component_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "JobsExecutionsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "filter": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "JobsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_envelope": { + "type": "Job", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_start": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "template": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "template": { + "type": "Optional[JobExecutionTemplate]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "template": { + "type": "Optional[IO[bytes]]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_stop_execution": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_execution_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_stop_multiple_executions": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_envelope": { + "type": "JobPatchProperties", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_detector": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "detector_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_detectors": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_secrets": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "proxy_get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "api_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "LogicAppsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "type": "Optional[LogicApp]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "type": "Optional[IO[bytes]]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_workflow": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "workflow_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_workflows": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_workflows_connections": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "MaintenanceConfigurationsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "config_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "maintenance_configuration_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "config_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "maintenance_configuration_envelope": { + "type": "MaintenanceConfigurationResource", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "config_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "maintenance_configuration_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "config_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "config_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ManagedCertificatesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_envelope": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_envelope": { + "type": "Optional[ManagedCertificate]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_envelope": { + "type": "Optional[IO[bytes]]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_envelope": { + "type": "ManagedCertificatePatch", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "ManagedEnvironmentDiagnosticsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_detector": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "detector_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_detectors": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ManagedEnvironmentPrivateEndpointConnectionsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_envelope": { + "type": "PrivateEndpointConnection", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ManagedEnvironmentPrivateLinkResourcesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ManagedEnvironmentUsagesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ManagedEnvironmentsDiagnosticsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_root": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ManagedEnvironmentsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "ManagedEnvironment", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "ManagedEnvironment", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_auth_token": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_workload_profile_states": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ManagedEnvironmentsStoragesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_envelope": { + "type": "ManagedEnvironmentStorage", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "NamespacesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "check_name_availability": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "check_name_availability_request": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "check_name_availability_request": { + "type": "CheckNameAvailabilityRequest", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "check_name_availability_request": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "Operations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "UsagesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + } + }, + "function_nodes": {} + }, + "azure.mgmt.appcontainers.models": { + "class_nodes": { + "AccessMode": { + "type": "Enum", + "methods": {}, + "properties": { + "READ_ONLY": "READ_ONLY", + "READ_WRITE": "READ_WRITE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "Action": { + "type": "Enum", + "methods": {}, + "properties": { + "ALLOW": "ALLOW", + "DENY": "DENY", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ActiveRevisionsMode": { + "type": "Enum", + "methods": {}, + "properties": { + "MULTIPLE": "MULTIPLE", + "SINGLE": "SINGLE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "Affinity": { + "type": "Enum", + "methods": {}, + "properties": { + "NONE": "NONE", + "STICKY": "STICKY", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "AllowedAudiencesValidation": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "allowed_audiences": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "allowed_audiences": { + "attr_type": "allowed_audiences" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "AllowedPrincipals": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "groups": { + "default": "none", + "param_type": "keyword_only" + }, + "identities": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "groups": { + "attr_type": "groups" + }, + "identities": { + "attr_type": "identities" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "AppLogsConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "destination": { + "default": "none", + "param_type": "keyword_only" + }, + "log_analytics_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "destination": { + "attr_type": "destination" + }, + "log_analytics_configuration": { + "attr_type": "log_analytics_configuration" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "AppProtocol": { + "type": "Enum", + "methods": {}, + "properties": { + "GRPC": "GRPC", + "HTTP": "HTTP", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "AppRegistration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "app_id": { + "default": "none", + "param_type": "keyword_only" + }, + "app_secret_setting_name": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "app_id": { + "attr_type": "app_id" + }, + "app_secret_setting_name": { + "attr_type": "app_secret_setting_name" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Apple": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "enabled": { + "default": "none", + "param_type": "keyword_only" + }, + "registration": { + "default": "none", + "param_type": "keyword_only" + }, + "login": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enabled": { + "attr_type": "enabled" + }, + "registration": { + "attr_type": "registration" + }, + "login": { + "attr_type": "login" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "AppleRegistration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_id": { + "default": "none", + "param_type": "keyword_only" + }, + "client_secret_setting_name": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "client_id": { + "attr_type": "client_id" + }, + "client_secret_setting_name": { + "attr_type": "client_secret_setting_name" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Applicability": { + "type": "Enum", + "methods": {}, + "properties": { + "CUSTOM": "CUSTOM", + "LOCATION_DEFAULT": "LOCATION_DEFAULT", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "AuthConfig": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "platform": { + "default": "none", + "param_type": "keyword_only" + }, + "global_validation": { + "default": "none", + "param_type": "keyword_only" + }, + "identity_providers": { + "default": "none", + "param_type": "keyword_only" + }, + "login": { + "default": "none", + "param_type": "keyword_only" + }, + "http_settings": { + "default": "none", + "param_type": "keyword_only" + }, + "encryption_settings": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "platform": { + "attr_type": "platform" + }, + "global_validation": { + "attr_type": "global_validation" + }, + "identity_providers": { + "attr_type": "identity_providers" + }, + "login": { + "attr_type": "login" + }, + "http_settings": { + "attr_type": "http_settings" + }, + "encryption_settings": { + "attr_type": "encryption_settings" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "AuthConfigCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "AuthPlatform": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "enabled": { + "default": "none", + "param_type": "keyword_only" + }, + "runtime_version": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enabled": { + "attr_type": "enabled" + }, + "runtime_version": { + "attr_type": "runtime_version" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "AvailableOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "next_link": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": "next_link" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "AvailableWorkloadProfile": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": "none", + "param_type": "keyword_only" + }, + "properties": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "location": { + "attr_type": "location" + }, + "properties": { + "attr_type": "properties" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "AvailableWorkloadProfileProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "category": { + "default": "none", + "param_type": "keyword_only" + }, + "applicability": { + "default": "none", + "param_type": "keyword_only" + }, + "cores": { + "default": "none", + "param_type": "keyword_only" + }, + "memory_gi_b": { + "default": "none", + "param_type": "keyword_only" + }, + "gpus": { + "default": "none", + "param_type": "keyword_only" + }, + "display_name": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "category": { + "attr_type": "category" + }, + "applicability": { + "attr_type": "applicability" + }, + "cores": { + "attr_type": "cores" + }, + "memory_gi_b": { + "attr_type": "memory_gi_b" + }, + "gpus": { + "attr_type": "gpus" + }, + "display_name": { + "attr_type": "display_name" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "AvailableWorkloadProfilesCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "AzureActiveDirectory": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "enabled": { + "default": "none", + "param_type": "keyword_only" + }, + "registration": { + "default": "none", + "param_type": "keyword_only" + }, + "login": { + "default": "none", + "param_type": "keyword_only" + }, + "validation": { + "default": "none", + "param_type": "keyword_only" + }, + "is_auto_provisioned": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enabled": { + "attr_type": "enabled" + }, + "registration": { + "attr_type": "registration" + }, + "login": { + "attr_type": "login" + }, + "validation": { + "attr_type": "validation" + }, + "is_auto_provisioned": { + "attr_type": "is_auto_provisioned" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "AzureActiveDirectoryLogin": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "login_parameters": { + "default": "none", + "param_type": "keyword_only" + }, + "disable_www_authenticate": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "login_parameters": { + "attr_type": "login_parameters" + }, + "disable_www_authenticate": { + "attr_type": "disable_www_authenticate" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "AzureActiveDirectoryRegistration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "open_id_issuer": { + "default": "none", + "param_type": "keyword_only" + }, + "client_id": { + "default": "none", + "param_type": "keyword_only" + }, + "client_secret_setting_name": { + "default": "none", + "param_type": "keyword_only" + }, + "client_secret_certificate_thumbprint": { + "default": "none", + "param_type": "keyword_only" + }, + "client_secret_certificate_subject_alternative_name": { + "default": "none", + "param_type": "keyword_only" + }, + "client_secret_certificate_issuer": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "open_id_issuer": { + "attr_type": "open_id_issuer" + }, + "client_id": { + "attr_type": "client_id" + }, + "client_secret_setting_name": { + "attr_type": "client_secret_setting_name" + }, + "client_secret_certificate_thumbprint": { + "attr_type": "client_secret_certificate_thumbprint" + }, + "client_secret_certificate_subject_alternative_name": { + "attr_type": "client_secret_certificate_subject_alternative_name" + }, + "client_secret_certificate_issuer": { + "attr_type": "client_secret_certificate_issuer" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "AzureActiveDirectoryValidation": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "jwt_claim_checks": { + "default": "none", + "param_type": "keyword_only" + }, + "allowed_audiences": { + "default": "none", + "param_type": "keyword_only" + }, + "default_authorization_policy": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "jwt_claim_checks": { + "attr_type": "jwt_claim_checks" + }, + "allowed_audiences": { + "attr_type": "allowed_audiences" + }, + "default_authorization_policy": { + "attr_type": "default_authorization_policy" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "AzureCredentials": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_id": { + "default": "none", + "param_type": "keyword_only" + }, + "client_secret": { + "default": "none", + "param_type": "keyword_only" + }, + "tenant_id": { + "default": "none", + "param_type": "keyword_only" + }, + "kind": { + "default": "none", + "param_type": "keyword_only" + }, + "subscription_id": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "client_id": { + "attr_type": "client_id" + }, + "client_secret": { + "attr_type": "client_secret" + }, + "tenant_id": { + "attr_type": "tenant_id" + }, + "kind": { + "attr_type": "kind" + }, + "subscription_id": { + "attr_type": "subscription_id" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "AzureFileProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "account_name": { + "default": "none", + "param_type": "keyword_only" + }, + "account_key": { + "default": "none", + "param_type": "keyword_only" + }, + "account_key_vault_properties": { + "default": "none", + "param_type": "keyword_only" + }, + "access_mode": { + "default": "none", + "param_type": "keyword_only" + }, + "share_name": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "account_name": { + "attr_type": "account_name" + }, + "account_key": { + "attr_type": "account_key" + }, + "account_key_vault_properties": { + "attr_type": "account_key_vault_properties" + }, + "access_mode": { + "attr_type": "access_mode" + }, + "share_name": { + "attr_type": "share_name" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "AzureStaticWebApps": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "enabled": { + "default": "none", + "param_type": "keyword_only" + }, + "registration": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enabled": { + "attr_type": "enabled" + }, + "registration": { + "attr_type": "registration" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "AzureStaticWebAppsRegistration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_id": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "client_id": { + "attr_type": "client_id" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "BaseContainer": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "image": { + "default": "none", + "param_type": "keyword_only" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "command": { + "default": "none", + "param_type": "keyword_only" + }, + "args": { + "default": "none", + "param_type": "keyword_only" + }, + "env": { + "default": "none", + "param_type": "keyword_only" + }, + "resources": { + "default": "none", + "param_type": "keyword_only" + }, + "volume_mounts": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "image": { + "attr_type": "image" + }, + "name": { + "attr_type": "name" + }, + "command": { + "attr_type": "command" + }, + "args": { + "attr_type": "args" + }, + "env": { + "attr_type": "env" + }, + "resources": { + "attr_type": "resources" + }, + "volume_mounts": { + "attr_type": "volume_mounts" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "BillingMeter": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": "none", + "param_type": "keyword_only" + }, + "properties": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "location": { + "attr_type": "location" + }, + "properties": { + "attr_type": "properties" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "BillingMeterCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "BillingMeterProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "category": { + "default": "none", + "param_type": "keyword_only" + }, + "meter_type": { + "default": "none", + "param_type": "keyword_only" + }, + "display_name": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "category": { + "attr_type": "category" + }, + "meter_type": { + "attr_type": "meter_type" + }, + "display_name": { + "attr_type": "display_name" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "BindingType": { + "type": "Enum", + "methods": {}, + "properties": { + "AUTO": "AUTO", + "DISABLED": "DISABLED", + "SNI_ENABLED": "SNI_ENABLED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "BlobStorageTokenStore": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sas_url_setting_name": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "sas_url_setting_name": { + "attr_type": "sas_url_setting_name" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Certificate": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "properties": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": { + "attr_type": "properties" + }, + "tags": { + "attr_type": "tags" + }, + "location": { + "attr_type": "location" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "CertificateCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "CertificateKeyVaultProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "key_vault_url": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "identity": { + "attr_type": "identity" + }, + "key_vault_url": { + "attr_type": "key_vault_url" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "CertificatePatch": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "tags": { + "attr_type": "tags" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "CertificateProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_key_vault_properties": { + "default": "none", + "param_type": "keyword_only" + }, + "password": { + "default": "none", + "param_type": "keyword_only" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "provisioning_state": { + "attr_type": null + }, + "deployment_errors": { + "attr_type": null + }, + "certificate_key_vault_properties": { + "attr_type": "certificate_key_vault_properties" + }, + "password": { + "attr_type": "password" + }, + "subject_name": { + "attr_type": null + }, + "subject_alternative_names": { + "attr_type": null + }, + "value": { + "attr_type": "value" + }, + "issuer": { + "attr_type": null + }, + "issue_date": { + "attr_type": null + }, + "expiration_date": { + "attr_type": null + }, + "thumbprint": { + "attr_type": null + }, + "valid": { + "attr_type": null + }, + "public_key_hash": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "CertificateProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "DELETE_FAILED": "DELETE_FAILED", + "DELETING": "DELETING", + "FAILED": "FAILED", + "PENDING": "PENDING", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "CheckNameAvailabilityReason": { + "type": "Enum", + "methods": {}, + "properties": { + "ALREADY_EXISTS": "ALREADY_EXISTS", + "INVALID": "INVALID", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "CheckNameAvailabilityRequest": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "type": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "type": { + "attr_type": "type" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "CheckNameAvailabilityResponse": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name_available": { + "default": "none", + "param_type": "keyword_only" + }, + "reason": { + "default": "none", + "param_type": "keyword_only" + }, + "message": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name_available": { + "attr_type": "name_available" + }, + "reason": { + "attr_type": "reason" + }, + "message": { + "attr_type": "message" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ClientRegistration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_id": { + "default": "none", + "param_type": "keyword_only" + }, + "client_secret_setting_name": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "client_id": { + "attr_type": "client_id" + }, + "client_secret_setting_name": { + "attr_type": "client_secret_setting_name" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Configuration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "secrets": { + "default": "none", + "param_type": "keyword_only" + }, + "active_revisions_mode": { + "default": "str", + "param_type": "keyword_only" + }, + "ingress": { + "default": "none", + "param_type": "keyword_only" + }, + "registries": { + "default": "none", + "param_type": "keyword_only" + }, + "dapr": { + "default": "none", + "param_type": "keyword_only" + }, + "runtime": { + "default": "none", + "param_type": "keyword_only" + }, + "max_inactive_revisions": { + "default": "none", + "param_type": "keyword_only" + }, + "service": { + "default": "none", + "param_type": "keyword_only" + }, + "identity_settings": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "secrets": { + "attr_type": "secrets" + }, + "active_revisions_mode": { + "attr_type": "active_revisions_mode" + }, + "ingress": { + "attr_type": "ingress" + }, + "registries": { + "attr_type": "registries" + }, + "dapr": { + "attr_type": "dapr" + }, + "runtime": { + "attr_type": "runtime" + }, + "max_inactive_revisions": { + "attr_type": "max_inactive_revisions" + }, + "service": { + "attr_type": "service" + }, + "identity_settings": { + "attr_type": "identity_settings" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectedEnvironment": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "extended_location": { + "default": "none", + "param_type": "keyword_only" + }, + "static_ip": { + "default": "none", + "param_type": "keyword_only" + }, + "dapr_ai_connection_string": { + "default": "none", + "param_type": "keyword_only" + }, + "custom_domain_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "extended_location": { + "attr_type": "extended_location" + }, + "provisioning_state": { + "attr_type": null + }, + "deployment_errors": { + "attr_type": null + }, + "default_domain": { + "attr_type": null + }, + "static_ip": { + "attr_type": "static_ip" + }, + "dapr_ai_connection_string": { + "attr_type": "dapr_ai_connection_string" + }, + "custom_domain_configuration": { + "attr_type": "custom_domain_configuration" + }, + "tags": { + "attr_type": "tags" + }, + "location": { + "attr_type": "location" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectedEnvironmentCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectedEnvironmentPatchResource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "tags": { + "attr_type": "tags" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectedEnvironmentProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "FAILED": "FAILED", + "INFRASTRUCTURE_SETUP_COMPLETE": "INFRASTRUCTURE_SETUP_COMPLETE", + "INFRASTRUCTURE_SETUP_IN_PROGRESS": "INFRASTRUCTURE_SETUP_IN_PROGRESS", + "INITIALIZATION_IN_PROGRESS": "INITIALIZATION_IN_PROGRESS", + "SCHEDULED_FOR_DELETE": "SCHEDULED_FOR_DELETE", + "SUCCEEDED": "SUCCEEDED", + "WAITING": "WAITING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ConnectedEnvironmentStorage": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": { + "attr_type": "properties" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectedEnvironmentStorageProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "azure_file": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "azure_file": { + "attr_type": "azure_file" + }, + "provisioning_state": { + "attr_type": null + }, + "deployment_errors": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectedEnvironmentStorageProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "DELETING": "DELETING", + "FAILED": "FAILED", + "IN_PROGRESS": "IN_PROGRESS", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ConnectedEnvironmentStoragesCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Container": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "image": { + "default": "none", + "param_type": "keyword_only" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "command": { + "default": "none", + "param_type": "keyword_only" + }, + "args": { + "default": "none", + "param_type": "keyword_only" + }, + "env": { + "default": "none", + "param_type": "keyword_only" + }, + "resources": { + "default": "none", + "param_type": "keyword_only" + }, + "volume_mounts": { + "default": "none", + "param_type": "keyword_only" + }, + "probes": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "probes": { + "attr_type": "probes" + }, + "image": { + "attr_type": "image" + }, + "name": { + "attr_type": "name" + }, + "command": { + "attr_type": "command" + }, + "args": { + "attr_type": "args" + }, + "env": { + "attr_type": "env" + }, + "resources": { + "attr_type": "resources" + }, + "volume_mounts": { + "attr_type": "volume_mounts" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerApp": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "extended_location": { + "default": "none", + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "managed_by": { + "default": "none", + "param_type": "keyword_only" + }, + "kind": { + "default": "none", + "param_type": "keyword_only" + }, + "managed_environment_id": { + "default": "none", + "param_type": "keyword_only" + }, + "environment_id": { + "default": "none", + "param_type": "keyword_only" + }, + "workload_profile_name": { + "default": "none", + "param_type": "keyword_only" + }, + "configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "template": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "extended_location": { + "attr_type": "extended_location" + }, + "identity": { + "attr_type": "identity" + }, + "managed_by": { + "attr_type": "managed_by" + }, + "kind": { + "attr_type": "kind" + }, + "provisioning_state": { + "attr_type": null + }, + "running_status": { + "attr_type": null + }, + "managed_environment_id": { + "attr_type": "managed_environment_id" + }, + "environment_id": { + "attr_type": "environment_id" + }, + "workload_profile_name": { + "attr_type": "workload_profile_name" + }, + "latest_revision_name": { + "attr_type": null + }, + "latest_ready_revision_name": { + "attr_type": null + }, + "latest_revision_fqdn": { + "attr_type": null + }, + "custom_domain_verification_id": { + "attr_type": null + }, + "configuration": { + "attr_type": "configuration" + }, + "template": { + "attr_type": "template" + }, + "outbound_ip_addresses": { + "attr_type": null + }, + "event_stream_endpoint": { + "attr_type": null + }, + "tags": { + "attr_type": "tags" + }, + "location": { + "attr_type": "location" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerAppAuthToken": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "token": { + "attr_type": null + }, + "expires": { + "attr_type": null + }, + "tags": { + "attr_type": "tags" + }, + "location": { + "attr_type": "location" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerAppCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerAppContainerRunningState": { + "type": "Enum", + "methods": {}, + "properties": { + "RUNNING": "RUNNING", + "TERMINATED": "TERMINATED", + "WAITING": "WAITING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerAppJobExecutions": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerAppProbe": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "failure_threshold": { + "default": "none", + "param_type": "keyword_only" + }, + "http_get": { + "default": "none", + "param_type": "keyword_only" + }, + "initial_delay_seconds": { + "default": "none", + "param_type": "keyword_only" + }, + "period_seconds": { + "default": "none", + "param_type": "keyword_only" + }, + "success_threshold": { + "default": "none", + "param_type": "keyword_only" + }, + "tcp_socket": { + "default": "none", + "param_type": "keyword_only" + }, + "termination_grace_period_seconds": { + "default": "none", + "param_type": "keyword_only" + }, + "timeout_seconds": { + "default": "none", + "param_type": "keyword_only" + }, + "type": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "failure_threshold": { + "attr_type": "failure_threshold" + }, + "http_get": { + "attr_type": "http_get" + }, + "initial_delay_seconds": { + "attr_type": "initial_delay_seconds" + }, + "period_seconds": { + "attr_type": "period_seconds" + }, + "success_threshold": { + "attr_type": "success_threshold" + }, + "tcp_socket": { + "attr_type": "tcp_socket" + }, + "termination_grace_period_seconds": { + "attr_type": "termination_grace_period_seconds" + }, + "timeout_seconds": { + "attr_type": "timeout_seconds" + }, + "type": { + "attr_type": "type" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerAppProbeHttpGet": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "port": { + "default": null, + "param_type": "keyword_only" + }, + "host": { + "default": "none", + "param_type": "keyword_only" + }, + "http_headers": { + "default": "none", + "param_type": "keyword_only" + }, + "path": { + "default": "none", + "param_type": "keyword_only" + }, + "scheme": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "host": { + "attr_type": "host" + }, + "http_headers": { + "attr_type": "http_headers" + }, + "path": { + "attr_type": "path" + }, + "port": { + "attr_type": "port" + }, + "scheme": { + "attr_type": "scheme" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerAppProbeHttpGetHttpHeadersItem": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "keyword_only" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "value": { + "attr_type": "value" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerAppProbeTcpSocket": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "port": { + "default": null, + "param_type": "keyword_only" + }, + "host": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "host": { + "attr_type": "host" + }, + "port": { + "attr_type": "port" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerAppProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "DELETING": "DELETING", + "FAILED": "FAILED", + "IN_PROGRESS": "IN_PROGRESS", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerAppReplicaRunningState": { + "type": "Enum", + "methods": {}, + "properties": { + "NOT_RUNNING": "NOT_RUNNING", + "RUNNING": "RUNNING", + "UNKNOWN": "UNKNOWN", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerAppRunningStatus": { + "type": "Enum", + "methods": {}, + "properties": { + "PROGRESSING": "PROGRESSING", + "READY": "READY", + "RUNNING": "RUNNING", + "STOPPED": "STOPPED", + "SUSPENDED": "SUSPENDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerAppSecret": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": null + }, + "value": { + "attr_type": null + }, + "identity": { + "attr_type": null + }, + "key_vault_url": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerResources": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "cpu": { + "default": "none", + "param_type": "keyword_only" + }, + "memory": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "cpu": { + "attr_type": "cpu" + }, + "memory": { + "attr_type": "memory" + }, + "ephemeral_storage": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ContainerType": { + "type": "Enum", + "methods": {}, + "properties": { + "CUSTOM_CONTAINER": "CUSTOM_CONTAINER", + "PYTHON_LTS": "PYTHON_LTS", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "CookieExpiration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "convention": { + "default": "none", + "param_type": "keyword_only" + }, + "time_to_expiration": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "convention": { + "attr_type": "convention" + }, + "time_to_expiration": { + "attr_type": "time_to_expiration" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "CookieExpirationConvention": { + "type": "Enum", + "methods": {}, + "properties": { + "FIXED_TIME": "FIXED_TIME", + "IDENTITY_PROVIDER_DERIVED": "IDENTITY_PROVIDER_DERIVED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "CorsPolicy": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "allowed_origins": { + "default": null, + "param_type": "keyword_only" + }, + "allowed_methods": { + "default": "none", + "param_type": "keyword_only" + }, + "allowed_headers": { + "default": "none", + "param_type": "keyword_only" + }, + "expose_headers": { + "default": "none", + "param_type": "keyword_only" + }, + "max_age": { + "default": "none", + "param_type": "keyword_only" + }, + "allow_credentials": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "allowed_origins": { + "attr_type": "allowed_origins" + }, + "allowed_methods": { + "attr_type": "allowed_methods" + }, + "allowed_headers": { + "attr_type": "allowed_headers" + }, + "expose_headers": { + "attr_type": "expose_headers" + }, + "max_age": { + "attr_type": "max_age" + }, + "allow_credentials": { + "attr_type": "allow_credentials" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "CreatedByType": { + "type": "Enum", + "methods": {}, + "properties": { + "APPLICATION": "APPLICATION", + "KEY": "KEY", + "MANAGED_IDENTITY": "MANAGED_IDENTITY", + "USER": "USER", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "CustomContainerTemplate": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "registry_credentials": { + "default": "none", + "param_type": "keyword_only" + }, + "containers": { + "default": "none", + "param_type": "keyword_only" + }, + "ingress": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "registry_credentials": { + "attr_type": "registry_credentials" + }, + "containers": { + "attr_type": "containers" + }, + "ingress": { + "attr_type": "ingress" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "CustomDomain": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "keyword_only" + }, + "binding_type": { + "default": "none", + "param_type": "keyword_only" + }, + "certificate_id": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "binding_type": { + "attr_type": "binding_type" + }, + "certificate_id": { + "attr_type": "certificate_id" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "CustomDomainConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "dns_suffix": { + "default": "none", + "param_type": "keyword_only" + }, + "certificate_key_vault_properties": { + "default": "none", + "param_type": "keyword_only" + }, + "certificate_value": { + "default": "none", + "param_type": "keyword_only" + }, + "certificate_password": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "custom_domain_verification_id": { + "attr_type": null + }, + "dns_suffix": { + "attr_type": "dns_suffix" + }, + "certificate_key_vault_properties": { + "attr_type": "certificate_key_vault_properties" + }, + "certificate_value": { + "attr_type": "certificate_value" + }, + "certificate_password": { + "attr_type": "certificate_password" + }, + "expiration_date": { + "attr_type": null + }, + "thumbprint": { + "attr_type": null + }, + "subject_name": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "CustomHostnameAnalysisResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "c_name_records": { + "default": "none", + "param_type": "keyword_only" + }, + "txt_records": { + "default": "none", + "param_type": "keyword_only" + }, + "a_records": { + "default": "none", + "param_type": "keyword_only" + }, + "alternate_c_name_records": { + "default": "none", + "param_type": "keyword_only" + }, + "alternate_txt_records": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "host_name": { + "attr_type": null + }, + "is_hostname_already_verified": { + "attr_type": null + }, + "custom_domain_verification_test": { + "attr_type": null + }, + "custom_domain_verification_failure_info": { + "attr_type": null + }, + "has_conflict_on_managed_environment": { + "attr_type": null + }, + "conflict_with_environment_custom_domain": { + "attr_type": null + }, + "conflicting_container_app_resource_id": { + "attr_type": null + }, + "c_name_records": { + "attr_type": "c_name_records" + }, + "txt_records": { + "attr_type": "txt_records" + }, + "a_records": { + "attr_type": "a_records" + }, + "alternate_c_name_records": { + "attr_type": "alternate_c_name_records" + }, + "alternate_txt_records": { + "attr_type": "alternate_txt_records" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "details": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "code": { + "attr_type": null + }, + "message": { + "attr_type": null + }, + "target": { + "attr_type": null + }, + "details": { + "attr_type": "details" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "CustomHostnameAnalysisResultCustomDomainVerificationFailureInfoDetailsItem": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "code": { + "attr_type": null + }, + "message": { + "attr_type": null + }, + "target": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "CustomOpenIdConnectProvider": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "enabled": { + "default": "none", + "param_type": "keyword_only" + }, + "registration": { + "default": "none", + "param_type": "keyword_only" + }, + "login": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enabled": { + "attr_type": "enabled" + }, + "registration": { + "attr_type": "registration" + }, + "login": { + "attr_type": "login" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "CustomScaleRule": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "type": { + "default": "none", + "param_type": "keyword_only" + }, + "metadata": { + "default": "none", + "param_type": "keyword_only" + }, + "auth": { + "default": "none", + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "type": { + "attr_type": "type" + }, + "metadata": { + "attr_type": "metadata" + }, + "auth": { + "attr_type": "auth" + }, + "identity": { + "attr_type": "identity" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Dapr": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "enabled": { + "default": "bool", + "param_type": "keyword_only" + }, + "app_id": { + "default": "none", + "param_type": "keyword_only" + }, + "app_protocol": { + "default": "str", + "param_type": "keyword_only" + }, + "app_port": { + "default": "none", + "param_type": "keyword_only" + }, + "http_read_buffer_size": { + "default": "none", + "param_type": "keyword_only" + }, + "http_max_request_size": { + "default": "none", + "param_type": "keyword_only" + }, + "log_level": { + "default": "none", + "param_type": "keyword_only" + }, + "enable_api_logging": { + "default": "none", + "param_type": "keyword_only" + }, + "app_health": { + "default": "none", + "param_type": "keyword_only" + }, + "max_concurrency": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enabled": { + "attr_type": "enabled" + }, + "app_id": { + "attr_type": "app_id" + }, + "app_protocol": { + "attr_type": "app_protocol" + }, + "app_port": { + "attr_type": "app_port" + }, + "http_read_buffer_size": { + "attr_type": "http_read_buffer_size" + }, + "http_max_request_size": { + "attr_type": "http_max_request_size" + }, + "log_level": { + "attr_type": "log_level" + }, + "enable_api_logging": { + "attr_type": "enable_api_logging" + }, + "app_health": { + "attr_type": "app_health" + }, + "max_concurrency": { + "attr_type": "max_concurrency" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DaprAppHealth": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "enabled": { + "default": "none", + "param_type": "keyword_only" + }, + "path": { + "default": "none", + "param_type": "keyword_only" + }, + "probe_interval_seconds": { + "default": "none", + "param_type": "keyword_only" + }, + "probe_timeout_milliseconds": { + "default": "none", + "param_type": "keyword_only" + }, + "threshold": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enabled": { + "attr_type": "enabled" + }, + "path": { + "attr_type": "path" + }, + "probe_interval_seconds": { + "attr_type": "probe_interval_seconds" + }, + "probe_timeout_milliseconds": { + "attr_type": "probe_timeout_milliseconds" + }, + "threshold": { + "attr_type": "threshold" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DaprComponent": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_type": { + "default": "none", + "param_type": "keyword_only" + }, + "version": { + "default": "none", + "param_type": "keyword_only" + }, + "ignore_errors": { + "default": "bool", + "param_type": "keyword_only" + }, + "init_timeout": { + "default": "none", + "param_type": "keyword_only" + }, + "secrets": { + "default": "none", + "param_type": "keyword_only" + }, + "secret_store_component": { + "default": "none", + "param_type": "keyword_only" + }, + "metadata": { + "default": "none", + "param_type": "keyword_only" + }, + "scopes": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "component_type": { + "attr_type": "component_type" + }, + "version": { + "attr_type": "version" + }, + "ignore_errors": { + "attr_type": "ignore_errors" + }, + "init_timeout": { + "attr_type": "init_timeout" + }, + "secrets": { + "attr_type": "secrets" + }, + "secret_store_component": { + "attr_type": "secret_store_component" + }, + "metadata": { + "attr_type": "metadata" + }, + "scopes": { + "attr_type": "scopes" + }, + "provisioning_state": { + "attr_type": null + }, + "deployment_errors": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DaprComponentProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "DELETING": "DELETING", + "FAILED": "FAILED", + "IN_PROGRESS": "IN_PROGRESS", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "DaprComponentsCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DaprConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "version": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DaprMetadata": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "secret_ref": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "value": { + "attr_type": "value" + }, + "secret_ref": { + "attr_type": "secret_ref" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DaprSecret": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": null + }, + "value": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DaprSecretsCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DefaultAuthorizationPolicy": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "allowed_principals": { + "default": "none", + "param_type": "keyword_only" + }, + "allowed_applications": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "allowed_principals": { + "attr_type": "allowed_principals" + }, + "allowed_applications": { + "attr_type": "allowed_applications" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DefaultErrorResponse": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "error": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DefaultErrorResponseError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "details": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "code": { + "attr_type": null + }, + "message": { + "attr_type": null + }, + "target": { + "attr_type": null + }, + "details": { + "attr_type": "details" + }, + "innererror": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DefaultErrorResponseErrorDetailsItem": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "code": { + "attr_type": null + }, + "message": { + "attr_type": null + }, + "target": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DiagnosticDataProviderMetadata": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "provider_name": { + "default": "none", + "param_type": "keyword_only" + }, + "property_bag": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "provider_name": { + "attr_type": "provider_name" + }, + "property_bag": { + "attr_type": "property_bag" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DiagnosticDataProviderMetadataPropertyBagItem": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "value": { + "attr_type": "value" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DiagnosticDataTableResponseColumn": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "column_name": { + "default": "none", + "param_type": "keyword_only" + }, + "data_type": { + "default": "none", + "param_type": "keyword_only" + }, + "column_type": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "column_name": { + "attr_type": "column_name" + }, + "data_type": { + "attr_type": "data_type" + }, + "column_type": { + "attr_type": "column_type" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DiagnosticDataTableResponseObject": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "table_name": { + "default": "none", + "param_type": "keyword_only" + }, + "columns": { + "default": "none", + "param_type": "keyword_only" + }, + "rows": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "table_name": { + "attr_type": "table_name" + }, + "columns": { + "attr_type": "columns" + }, + "rows": { + "attr_type": "rows" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DiagnosticRendering": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "type": { + "default": "none", + "param_type": "keyword_only" + }, + "title": { + "default": "none", + "param_type": "keyword_only" + }, + "description": { + "default": "none", + "param_type": "keyword_only" + }, + "is_visible": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "type": { + "attr_type": "type" + }, + "title": { + "attr_type": "title" + }, + "description": { + "attr_type": "description" + }, + "is_visible": { + "attr_type": "is_visible" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DiagnosticSupportTopic": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "pes_id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Diagnostics": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": { + "attr_type": "properties" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DiagnosticsCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DiagnosticsDataApiResponse": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "table": { + "default": "none", + "param_type": "keyword_only" + }, + "rendering_properties": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "table": { + "attr_type": "table" + }, + "rendering_properties": { + "attr_type": "rendering_properties" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DiagnosticsDefinition": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "support_topic_list": { + "default": "none", + "param_type": "keyword_only" + }, + "analysis_types": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "description": { + "attr_type": null + }, + "author": { + "attr_type": null + }, + "category": { + "attr_type": null + }, + "support_topic_list": { + "attr_type": "support_topic_list" + }, + "analysis_types": { + "attr_type": "analysis_types" + }, + "type": { + "attr_type": null + }, + "score": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DiagnosticsProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "metadata": { + "default": "none", + "param_type": "keyword_only" + }, + "dataset": { + "default": "none", + "param_type": "keyword_only" + }, + "status": { + "default": "none", + "param_type": "keyword_only" + }, + "data_provider_metadata": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "metadata": { + "attr_type": "metadata" + }, + "dataset": { + "attr_type": "dataset" + }, + "status": { + "attr_type": "status" + }, + "data_provider_metadata": { + "attr_type": "data_provider_metadata" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DiagnosticsStatus": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "message": { + "default": "none", + "param_type": "keyword_only" + }, + "status_id": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "message": { + "attr_type": "message" + }, + "status_id": { + "attr_type": "status_id" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DnsVerificationTestResult": { + "type": "Enum", + "methods": {}, + "properties": { + "FAILED": "FAILED", + "PASSED": "PASSED", + "SKIPPED": "SKIPPED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "DynamicPoolConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "lifecycle_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "lifecycle_configuration": { + "attr_type": "lifecycle_configuration" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "EncryptionSettings": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_auth_encryption_secret_name": { + "default": "none", + "param_type": "keyword_only" + }, + "container_app_auth_signing_secret_name": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "container_app_auth_encryption_secret_name": { + "attr_type": "container_app_auth_encryption_secret_name" + }, + "container_app_auth_signing_secret_name": { + "attr_type": "container_app_auth_signing_secret_name" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "EnvironmentAuthToken": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "token": { + "attr_type": null + }, + "expires": { + "attr_type": null + }, + "tags": { + "attr_type": "tags" + }, + "location": { + "attr_type": "location" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "EnvironmentProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "FAILED": "FAILED", + "INFRASTRUCTURE_SETUP_COMPLETE": "INFRASTRUCTURE_SETUP_COMPLETE", + "INFRASTRUCTURE_SETUP_IN_PROGRESS": "INFRASTRUCTURE_SETUP_IN_PROGRESS", + "INITIALIZATION_IN_PROGRESS": "INITIALIZATION_IN_PROGRESS", + "SCHEDULED_FOR_DELETE": "SCHEDULED_FOR_DELETE", + "SUCCEEDED": "SUCCEEDED", + "UPGRADE_FAILED": "UPGRADE_FAILED", + "UPGRADE_REQUESTED": "UPGRADE_REQUESTED", + "WAITING": "WAITING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "EnvironmentVar": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "secret_ref": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "value": { + "attr_type": "value" + }, + "secret_ref": { + "attr_type": "secret_ref" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ErrorAdditionalInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "type": { + "attr_type": null + }, + "info": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ErrorDetail": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "code": { + "attr_type": null + }, + "message": { + "attr_type": null + }, + "target": { + "attr_type": null + }, + "details": { + "attr_type": null + }, + "additional_info": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ErrorEntity": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "extended_code": { + "default": "none", + "param_type": "keyword_only" + }, + "message_template": { + "default": "none", + "param_type": "keyword_only" + }, + "parameters": { + "default": "none", + "param_type": "keyword_only" + }, + "inner_errors": { + "default": "none", + "param_type": "keyword_only" + }, + "details": { + "default": "none", + "param_type": "keyword_only" + }, + "target": { + "default": "none", + "param_type": "keyword_only" + }, + "code": { + "default": "none", + "param_type": "keyword_only" + }, + "message": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "extended_code": { + "attr_type": "extended_code" + }, + "message_template": { + "attr_type": "message_template" + }, + "parameters": { + "attr_type": "parameters" + }, + "inner_errors": { + "attr_type": "inner_errors" + }, + "details": { + "attr_type": "details" + }, + "target": { + "attr_type": "target" + }, + "code": { + "attr_type": "code" + }, + "message": { + "attr_type": "message" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ErrorResponse": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "error": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "error": { + "attr_type": "error" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ExtendedLocation": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "type": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "type": { + "attr_type": "type" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ExtendedLocationTypes": { + "type": "Enum", + "methods": {}, + "properties": { + "CUSTOM_LOCATION": "CUSTOM_LOCATION", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "Facebook": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "enabled": { + "default": "none", + "param_type": "keyword_only" + }, + "registration": { + "default": "none", + "param_type": "keyword_only" + }, + "graph_api_version": { + "default": "none", + "param_type": "keyword_only" + }, + "login": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enabled": { + "attr_type": "enabled" + }, + "registration": { + "attr_type": "registration" + }, + "graph_api_version": { + "attr_type": "graph_api_version" + }, + "login": { + "attr_type": "login" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ForwardProxy": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "convention": { + "default": "none", + "param_type": "keyword_only" + }, + "custom_host_header_name": { + "default": "none", + "param_type": "keyword_only" + }, + "custom_proto_header_name": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "convention": { + "attr_type": "convention" + }, + "custom_host_header_name": { + "attr_type": "custom_host_header_name" + }, + "custom_proto_header_name": { + "attr_type": "custom_proto_header_name" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ForwardProxyConvention": { + "type": "Enum", + "methods": {}, + "properties": { + "CUSTOM": "CUSTOM", + "NO_PROXY": "NO_PROXY", + "STANDARD": "STANDARD", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "GitHub": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "enabled": { + "default": "none", + "param_type": "keyword_only" + }, + "registration": { + "default": "none", + "param_type": "keyword_only" + }, + "login": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enabled": { + "attr_type": "enabled" + }, + "registration": { + "attr_type": "registration" + }, + "login": { + "attr_type": "login" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "GithubActionConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "registry_info": { + "default": "none", + "param_type": "keyword_only" + }, + "azure_credentials": { + "default": "none", + "param_type": "keyword_only" + }, + "context_path": { + "default": "none", + "param_type": "keyword_only" + }, + "github_personal_access_token": { + "default": "none", + "param_type": "keyword_only" + }, + "image": { + "default": "none", + "param_type": "keyword_only" + }, + "publish_type": { + "default": "none", + "param_type": "keyword_only" + }, + "os": { + "default": "none", + "param_type": "keyword_only" + }, + "runtime_stack": { + "default": "none", + "param_type": "keyword_only" + }, + "runtime_version": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "registry_info": { + "attr_type": "registry_info" + }, + "azure_credentials": { + "attr_type": "azure_credentials" + }, + "context_path": { + "attr_type": "context_path" + }, + "github_personal_access_token": { + "attr_type": "github_personal_access_token" + }, + "image": { + "attr_type": "image" + }, + "publish_type": { + "attr_type": "publish_type" + }, + "os": { + "attr_type": "os" + }, + "runtime_stack": { + "attr_type": "runtime_stack" + }, + "runtime_version": { + "attr_type": "runtime_version" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "GlobalValidation": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "unauthenticated_client_action": { + "default": "none", + "param_type": "keyword_only" + }, + "redirect_to_provider": { + "default": "none", + "param_type": "keyword_only" + }, + "excluded_paths": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "unauthenticated_client_action": { + "attr_type": "unauthenticated_client_action" + }, + "redirect_to_provider": { + "attr_type": "redirect_to_provider" + }, + "excluded_paths": { + "attr_type": "excluded_paths" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Google": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "enabled": { + "default": "none", + "param_type": "keyword_only" + }, + "registration": { + "default": "none", + "param_type": "keyword_only" + }, + "login": { + "default": "none", + "param_type": "keyword_only" + }, + "validation": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enabled": { + "attr_type": "enabled" + }, + "registration": { + "attr_type": "registration" + }, + "login": { + "attr_type": "login" + }, + "validation": { + "attr_type": "validation" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "HttpRoute": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "match": { + "default": "none", + "param_type": "keyword_only" + }, + "action": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "match": { + "attr_type": "match" + }, + "action": { + "attr_type": "action" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "HttpRouteAction": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "prefix_rewrite": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "prefix_rewrite": { + "attr_type": "prefix_rewrite" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "HttpRouteConfig": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": { + "attr_type": "properties" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "HttpRouteConfigCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "HttpRouteConfigProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "custom_domains": { + "default": "none", + "param_type": "keyword_only" + }, + "rules": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "provisioning_state": { + "attr_type": null + }, + "provisioning_errors": { + "attr_type": null + }, + "fqdn": { + "attr_type": null + }, + "custom_domains": { + "attr_type": "custom_domains" + }, + "rules": { + "attr_type": "rules" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "HttpRouteMatch": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "prefix": { + "default": "none", + "param_type": "keyword_only" + }, + "path": { + "default": "none", + "param_type": "keyword_only" + }, + "path_separated_prefix": { + "default": "none", + "param_type": "keyword_only" + }, + "case_sensitive": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "prefix": { + "attr_type": "prefix" + }, + "path": { + "attr_type": "path" + }, + "path_separated_prefix": { + "attr_type": "path_separated_prefix" + }, + "case_sensitive": { + "attr_type": "case_sensitive" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "HttpRouteProvisioningErrors": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "timestamp": { + "attr_type": null + }, + "message": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "HttpRouteProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "DELETING": "DELETING", + "FAILED": "FAILED", + "PENDING": "PENDING", + "SUCCEEDED": "SUCCEEDED", + "UPDATING": "UPDATING", + "WAITING": "WAITING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "HttpRouteRule": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "targets": { + "default": "none", + "param_type": "keyword_only" + }, + "routes": { + "default": "none", + "param_type": "keyword_only" + }, + "description": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "targets": { + "attr_type": "targets" + }, + "routes": { + "attr_type": "routes" + }, + "description": { + "attr_type": "description" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "HttpRouteTarget": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app": { + "default": null, + "param_type": "keyword_only" + }, + "revision": { + "default": "none", + "param_type": "keyword_only" + }, + "label": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "container_app": { + "attr_type": "container_app" + }, + "revision": { + "attr_type": "revision" + }, + "label": { + "attr_type": "label" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "HttpScaleRule": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "metadata": { + "default": "none", + "param_type": "keyword_only" + }, + "auth": { + "default": "none", + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "metadata": { + "attr_type": "metadata" + }, + "auth": { + "attr_type": "auth" + }, + "identity": { + "attr_type": "identity" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "HttpSettings": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "require_https": { + "default": "none", + "param_type": "keyword_only" + }, + "routes": { + "default": "none", + "param_type": "keyword_only" + }, + "forward_proxy": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "require_https": { + "attr_type": "require_https" + }, + "routes": { + "attr_type": "routes" + }, + "forward_proxy": { + "attr_type": "forward_proxy" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "HttpSettingsRoutes": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "api_prefix": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "api_prefix": { + "attr_type": "api_prefix" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "IdentityProviders": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "azure_active_directory": { + "default": "none", + "param_type": "keyword_only" + }, + "facebook": { + "default": "none", + "param_type": "keyword_only" + }, + "git_hub": { + "default": "none", + "param_type": "keyword_only" + }, + "google": { + "default": "none", + "param_type": "keyword_only" + }, + "twitter": { + "default": "none", + "param_type": "keyword_only" + }, + "apple": { + "default": "none", + "param_type": "keyword_only" + }, + "azure_static_web_apps": { + "default": "none", + "param_type": "keyword_only" + }, + "custom_open_id_connect_providers": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "azure_active_directory": { + "attr_type": "azure_active_directory" + }, + "facebook": { + "attr_type": "facebook" + }, + "git_hub": { + "attr_type": "git_hub" + }, + "google": { + "attr_type": "google" + }, + "twitter": { + "attr_type": "twitter" + }, + "apple": { + "attr_type": "apple" + }, + "azure_static_web_apps": { + "attr_type": "azure_static_web_apps" + }, + "custom_open_id_connect_providers": { + "attr_type": "custom_open_id_connect_providers" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "IdentitySettings": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "identity": { + "default": null, + "param_type": "keyword_only" + }, + "lifecycle": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "identity": { + "attr_type": "identity" + }, + "lifecycle": { + "attr_type": "lifecycle" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "IdentitySettingsLifeCycle": { + "type": "Enum", + "methods": {}, + "properties": { + "ALL": "ALL", + "INIT": "INIT", + "MAIN": "MAIN", + "NONE": "NONE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "Ingress": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "external": { + "default": "bool", + "param_type": "keyword_only" + }, + "target_port": { + "default": "none", + "param_type": "keyword_only" + }, + "exposed_port": { + "default": "none", + "param_type": "keyword_only" + }, + "transport": { + "default": "str", + "param_type": "keyword_only" + }, + "traffic": { + "default": "none", + "param_type": "keyword_only" + }, + "custom_domains": { + "default": "none", + "param_type": "keyword_only" + }, + "allow_insecure": { + "default": "bool", + "param_type": "keyword_only" + }, + "ip_security_restrictions": { + "default": "none", + "param_type": "keyword_only" + }, + "sticky_sessions": { + "default": "none", + "param_type": "keyword_only" + }, + "client_certificate_mode": { + "default": "none", + "param_type": "keyword_only" + }, + "cors_policy": { + "default": "none", + "param_type": "keyword_only" + }, + "additional_port_mappings": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "fqdn": { + "attr_type": null + }, + "external": { + "attr_type": "external" + }, + "target_port": { + "attr_type": "target_port" + }, + "exposed_port": { + "attr_type": "exposed_port" + }, + "transport": { + "attr_type": "transport" + }, + "traffic": { + "attr_type": "traffic" + }, + "custom_domains": { + "attr_type": "custom_domains" + }, + "allow_insecure": { + "attr_type": "allow_insecure" + }, + "ip_security_restrictions": { + "attr_type": "ip_security_restrictions" + }, + "sticky_sessions": { + "attr_type": "sticky_sessions" + }, + "client_certificate_mode": { + "attr_type": "client_certificate_mode" + }, + "cors_policy": { + "attr_type": "cors_policy" + }, + "additional_port_mappings": { + "attr_type": "additional_port_mappings" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "IngressClientCertificateMode": { + "type": "Enum", + "methods": {}, + "properties": { + "ACCEPT": "ACCEPT", + "IGNORE": "IGNORE", + "REQUIRE": "REQUIRE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "IngressConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "workload_profile_name": { + "default": "none", + "param_type": "keyword_only" + }, + "termination_grace_period_seconds": { + "default": "none", + "param_type": "keyword_only" + }, + "header_count_limit": { + "default": "none", + "param_type": "keyword_only" + }, + "request_idle_timeout": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "workload_profile_name": { + "attr_type": "workload_profile_name" + }, + "termination_grace_period_seconds": { + "attr_type": "termination_grace_period_seconds" + }, + "header_count_limit": { + "attr_type": "header_count_limit" + }, + "request_idle_timeout": { + "attr_type": "request_idle_timeout" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "IngressPortMapping": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "external": { + "default": null, + "param_type": "keyword_only" + }, + "target_port": { + "default": null, + "param_type": "keyword_only" + }, + "exposed_port": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "external": { + "attr_type": "external" + }, + "target_port": { + "attr_type": "target_port" + }, + "exposed_port": { + "attr_type": "exposed_port" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "IngressStickySessions": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "affinity": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "affinity": { + "attr_type": "affinity" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "IngressTransportMethod": { + "type": "Enum", + "methods": {}, + "properties": { + "AUTO": "AUTO", + "HTTP": "HTTP", + "HTTP2": "HTTP2", + "TCP": "TCP", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "InitContainer": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "image": { + "default": "none", + "param_type": "keyword_only" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "command": { + "default": "none", + "param_type": "keyword_only" + }, + "args": { + "default": "none", + "param_type": "keyword_only" + }, + "env": { + "default": "none", + "param_type": "keyword_only" + }, + "resources": { + "default": "none", + "param_type": "keyword_only" + }, + "volume_mounts": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "image": { + "attr_type": "image" + }, + "name": { + "attr_type": "name" + }, + "command": { + "attr_type": "command" + }, + "args": { + "attr_type": "args" + }, + "env": { + "attr_type": "env" + }, + "resources": { + "attr_type": "resources" + }, + "volume_mounts": { + "attr_type": "volume_mounts" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "IpSecurityRestrictionRule": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "keyword_only" + }, + "ip_address_range": { + "default": null, + "param_type": "keyword_only" + }, + "action": { + "default": null, + "param_type": "keyword_only" + }, + "description": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "description": { + "attr_type": "description" + }, + "ip_address_range": { + "attr_type": "ip_address_range" + }, + "action": { + "attr_type": "action" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "JavaComponent": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": { + "attr_type": "properties" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "JavaComponentConfigurationProperty": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "property_name": { + "default": "none", + "param_type": "keyword_only" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "property_name": { + "attr_type": "property_name" + }, + "value": { + "attr_type": "value" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "JavaComponentIngress": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "fqdn": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "JavaComponentProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "configurations": { + "default": "none", + "param_type": "keyword_only" + }, + "scale": { + "default": "none", + "param_type": "keyword_only" + }, + "service_binds": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "component_type": { + "attr_type": null + }, + "provisioning_state": { + "attr_type": null + }, + "configurations": { + "attr_type": "configurations" + }, + "scale": { + "attr_type": "scale" + }, + "service_binds": { + "attr_type": "service_binds" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "JavaComponentPropertiesScale": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "min_replicas": { + "default": "none", + "param_type": "keyword_only" + }, + "max_replicas": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "min_replicas": { + "attr_type": "min_replicas" + }, + "max_replicas": { + "attr_type": "max_replicas" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "JavaComponentProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "DELETING": "DELETING", + "FAILED": "FAILED", + "IN_PROGRESS": "IN_PROGRESS", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "JavaComponentServiceBind": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "service_id": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "service_id": { + "attr_type": "service_id" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "JavaComponentType": { + "type": "Enum", + "methods": {}, + "properties": { + "SPRING_BOOT_ADMIN": "SPRING_BOOT_ADMIN", + "SPRING_CLOUD_CONFIG": "SPRING_CLOUD_CONFIG", + "SPRING_CLOUD_EUREKA": "SPRING_CLOUD_EUREKA", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "JavaComponentsCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Job": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "environment_id": { + "default": "none", + "param_type": "keyword_only" + }, + "workload_profile_name": { + "default": "none", + "param_type": "keyword_only" + }, + "configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "template": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "identity": { + "attr_type": "identity" + }, + "provisioning_state": { + "attr_type": null + }, + "environment_id": { + "attr_type": "environment_id" + }, + "workload_profile_name": { + "attr_type": "workload_profile_name" + }, + "configuration": { + "attr_type": "configuration" + }, + "template": { + "attr_type": "template" + }, + "outbound_ip_addresses": { + "attr_type": null + }, + "event_stream_endpoint": { + "attr_type": null + }, + "tags": { + "attr_type": "tags" + }, + "location": { + "attr_type": "location" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "JobConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "trigger_type": { + "default": "str", + "param_type": "keyword_only" + }, + "replica_timeout": { + "default": null, + "param_type": "keyword_only" + }, + "secrets": { + "default": "none", + "param_type": "keyword_only" + }, + "replica_retry_limit": { + "default": "none", + "param_type": "keyword_only" + }, + "manual_trigger_config": { + "default": "none", + "param_type": "keyword_only" + }, + "schedule_trigger_config": { + "default": "none", + "param_type": "keyword_only" + }, + "event_trigger_config": { + "default": "none", + "param_type": "keyword_only" + }, + "registries": { + "default": "none", + "param_type": "keyword_only" + }, + "identity_settings": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "secrets": { + "attr_type": "secrets" + }, + "trigger_type": { + "attr_type": "trigger_type" + }, + "replica_timeout": { + "attr_type": "replica_timeout" + }, + "replica_retry_limit": { + "attr_type": "replica_retry_limit" + }, + "manual_trigger_config": { + "attr_type": "manual_trigger_config" + }, + "schedule_trigger_config": { + "attr_type": "schedule_trigger_config" + }, + "event_trigger_config": { + "attr_type": "event_trigger_config" + }, + "registries": { + "attr_type": "registries" + }, + "identity_settings": { + "attr_type": "identity_settings" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "JobConfigurationEventTriggerConfig": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "replica_completion_count": { + "default": "none", + "param_type": "keyword_only" + }, + "parallelism": { + "default": "none", + "param_type": "keyword_only" + }, + "scale": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "replica_completion_count": { + "attr_type": "replica_completion_count" + }, + "parallelism": { + "attr_type": "parallelism" + }, + "scale": { + "attr_type": "scale" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "JobConfigurationManualTriggerConfig": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "replica_completion_count": { + "default": "none", + "param_type": "keyword_only" + }, + "parallelism": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "replica_completion_count": { + "attr_type": "replica_completion_count" + }, + "parallelism": { + "attr_type": "parallelism" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "JobConfigurationScheduleTriggerConfig": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "cron_expression": { + "default": null, + "param_type": "keyword_only" + }, + "replica_completion_count": { + "default": "none", + "param_type": "keyword_only" + }, + "parallelism": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "replica_completion_count": { + "attr_type": "replica_completion_count" + }, + "cron_expression": { + "attr_type": "cron_expression" + }, + "parallelism": { + "attr_type": "parallelism" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "JobExecution": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "id": { + "default": "none", + "param_type": "keyword_only" + }, + "type": { + "default": "none", + "param_type": "keyword_only" + }, + "start_time": { + "default": "none", + "param_type": "keyword_only" + }, + "end_time": { + "default": "none", + "param_type": "keyword_only" + }, + "template": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "id": { + "attr_type": "id" + }, + "type": { + "attr_type": "type" + }, + "status": { + "attr_type": null + }, + "start_time": { + "attr_type": "start_time" + }, + "end_time": { + "attr_type": "end_time" + }, + "template": { + "attr_type": "template" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "JobExecutionBase": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "id": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "id": { + "attr_type": "id" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "JobExecutionContainer": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "image": { + "default": "none", + "param_type": "keyword_only" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "command": { + "default": "none", + "param_type": "keyword_only" + }, + "args": { + "default": "none", + "param_type": "keyword_only" + }, + "env": { + "default": "none", + "param_type": "keyword_only" + }, + "resources": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "image": { + "attr_type": "image" + }, + "name": { + "attr_type": "name" + }, + "command": { + "attr_type": "command" + }, + "args": { + "attr_type": "args" + }, + "env": { + "attr_type": "env" + }, + "resources": { + "attr_type": "resources" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "JobExecutionNamesCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "JobExecutionRunningState": { + "type": "Enum", + "methods": {}, + "properties": { + "DEGRADED": "DEGRADED", + "FAILED": "FAILED", + "PROCESSING": "PROCESSING", + "RUNNING": "RUNNING", + "STOPPED": "STOPPED", + "SUCCEEDED": "SUCCEEDED", + "UNKNOWN": "UNKNOWN", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "JobExecutionTemplate": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "containers": { + "default": "none", + "param_type": "keyword_only" + }, + "init_containers": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "containers": { + "attr_type": "containers" + }, + "init_containers": { + "attr_type": "init_containers" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "JobPatchProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "properties": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "identity": { + "attr_type": "identity" + }, + "tags": { + "attr_type": "tags" + }, + "properties": { + "attr_type": "properties" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "JobPatchPropertiesProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_id": { + "default": "none", + "param_type": "keyword_only" + }, + "configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "template": { + "default": "none", + "param_type": "keyword_only" + }, + "outbound_ip_addresses": { + "default": "none", + "param_type": "keyword_only" + }, + "event_stream_endpoint": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "environment_id": { + "attr_type": "environment_id" + }, + "configuration": { + "attr_type": "configuration" + }, + "template": { + "attr_type": "template" + }, + "outbound_ip_addresses": { + "attr_type": "outbound_ip_addresses" + }, + "event_stream_endpoint": { + "attr_type": "event_stream_endpoint" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "JobProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "DELETING": "DELETING", + "FAILED": "FAILED", + "IN_PROGRESS": "IN_PROGRESS", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "JobScale": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "polling_interval": { + "default": "none", + "param_type": "keyword_only" + }, + "min_executions": { + "default": "int", + "param_type": "keyword_only" + }, + "max_executions": { + "default": "int", + "param_type": "keyword_only" + }, + "rules": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "polling_interval": { + "attr_type": "polling_interval" + }, + "min_executions": { + "attr_type": "min_executions" + }, + "max_executions": { + "attr_type": "max_executions" + }, + "rules": { + "attr_type": "rules" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "JobScaleRule": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "type": { + "default": "none", + "param_type": "keyword_only" + }, + "metadata": { + "default": "none", + "param_type": "keyword_only" + }, + "auth": { + "default": "none", + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "type": { + "attr_type": "type" + }, + "metadata": { + "attr_type": "metadata" + }, + "auth": { + "attr_type": "auth" + }, + "identity": { + "attr_type": "identity" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "JobSecretsCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "JobTemplate": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "init_containers": { + "default": "none", + "param_type": "keyword_only" + }, + "containers": { + "default": "none", + "param_type": "keyword_only" + }, + "volumes": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "init_containers": { + "attr_type": "init_containers" + }, + "containers": { + "attr_type": "containers" + }, + "volumes": { + "attr_type": "volumes" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "JobsCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "JwtClaimChecks": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "allowed_groups": { + "default": "none", + "param_type": "keyword_only" + }, + "allowed_client_applications": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "allowed_groups": { + "attr_type": "allowed_groups" + }, + "allowed_client_applications": { + "attr_type": "allowed_client_applications" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "KedaConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "version": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Kind": { + "type": "Enum", + "methods": {}, + "properties": { + "FUNCTIONAPP": "FUNCTIONAPP", + "WORKFLOWAPP": "WORKFLOWAPP", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "LifecycleConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "lifecycle_type": { + "default": "none", + "param_type": "keyword_only" + }, + "cooldown_period_in_seconds": { + "default": "none", + "param_type": "keyword_only" + }, + "max_alive_period_in_seconds": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "lifecycle_type": { + "attr_type": "lifecycle_type" + }, + "cooldown_period_in_seconds": { + "attr_type": "cooldown_period_in_seconds" + }, + "max_alive_period_in_seconds": { + "attr_type": "max_alive_period_in_seconds" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "LifecycleType": { + "type": "Enum", + "methods": {}, + "properties": { + "ON_CONTAINER_EXIT": "ON_CONTAINER_EXIT", + "TIMED": "TIMED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ListUsagesResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "next_link": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": "next_link" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "LogAnalyticsConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "customer_id": { + "default": "none", + "param_type": "keyword_only" + }, + "shared_key": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "customer_id": { + "attr_type": "customer_id" + }, + "shared_key": { + "attr_type": "shared_key" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "LogLevel": { + "type": "Enum", + "methods": {}, + "properties": { + "DEBUG": "DEBUG", + "ERROR": "ERROR", + "INFO": "INFO", + "WARN": "WARN", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "LogicApp": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Login": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "routes": { + "default": "none", + "param_type": "keyword_only" + }, + "token_store": { + "default": "none", + "param_type": "keyword_only" + }, + "preserve_url_fragments_for_logins": { + "default": "none", + "param_type": "keyword_only" + }, + "allowed_external_redirect_urls": { + "default": "none", + "param_type": "keyword_only" + }, + "cookie_expiration": { + "default": "none", + "param_type": "keyword_only" + }, + "nonce": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "routes": { + "attr_type": "routes" + }, + "token_store": { + "attr_type": "token_store" + }, + "preserve_url_fragments_for_logins": { + "attr_type": "preserve_url_fragments_for_logins" + }, + "allowed_external_redirect_urls": { + "attr_type": "allowed_external_redirect_urls" + }, + "cookie_expiration": { + "attr_type": "cookie_expiration" + }, + "nonce": { + "attr_type": "nonce" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "LoginRoutes": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logout_endpoint": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "logout_endpoint": { + "attr_type": "logout_endpoint" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "LoginScopes": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "scopes": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "scopes": { + "attr_type": "scopes" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MaintenanceConfigurationCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MaintenanceConfigurationResource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "scheduled_entries": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "scheduled_entries": { + "attr_type": "scheduled_entries" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ManagedCertificate": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "properties": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": { + "attr_type": "properties" + }, + "tags": { + "attr_type": "tags" + }, + "location": { + "attr_type": "location" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ManagedCertificateCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ManagedCertificateDomainControlValidation": { + "type": "Enum", + "methods": {}, + "properties": { + "CNAME": "CNAME", + "HTTP": "HTTP", + "TXT": "TXT", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ManagedCertificatePatch": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "tags": { + "attr_type": "tags" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ManagedCertificateProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "subject_name": { + "default": "none", + "param_type": "keyword_only" + }, + "domain_control_validation": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "provisioning_state": { + "attr_type": null + }, + "subject_name": { + "attr_type": "subject_name" + }, + "error": { + "attr_type": null + }, + "domain_control_validation": { + "attr_type": "domain_control_validation" + }, + "validation_token": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ManagedEnvironment": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "kind": { + "default": "none", + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "dapr_ai_instrumentation_key": { + "default": "none", + "param_type": "keyword_only" + }, + "dapr_ai_connection_string": { + "default": "none", + "param_type": "keyword_only" + }, + "vnet_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "app_logs_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "zone_redundant": { + "default": "none", + "param_type": "keyword_only" + }, + "custom_domain_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "workload_profiles": { + "default": "none", + "param_type": "keyword_only" + }, + "keda_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "dapr_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "infrastructure_resource_group": { + "default": "none", + "param_type": "keyword_only" + }, + "peer_authentication": { + "default": "none", + "param_type": "keyword_only" + }, + "peer_traffic_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "ingress_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "public_network_access": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "kind": { + "attr_type": "kind" + }, + "identity": { + "attr_type": "identity" + }, + "provisioning_state": { + "attr_type": null + }, + "dapr_ai_instrumentation_key": { + "attr_type": "dapr_ai_instrumentation_key" + }, + "dapr_ai_connection_string": { + "attr_type": "dapr_ai_connection_string" + }, + "vnet_configuration": { + "attr_type": "vnet_configuration" + }, + "deployment_errors": { + "attr_type": null + }, + "default_domain": { + "attr_type": null + }, + "static_ip": { + "attr_type": null + }, + "app_logs_configuration": { + "attr_type": "app_logs_configuration" + }, + "zone_redundant": { + "attr_type": "zone_redundant" + }, + "custom_domain_configuration": { + "attr_type": "custom_domain_configuration" + }, + "event_stream_endpoint": { + "attr_type": null + }, + "workload_profiles": { + "attr_type": "workload_profiles" + }, + "keda_configuration": { + "attr_type": "keda_configuration" + }, + "dapr_configuration": { + "attr_type": "dapr_configuration" + }, + "infrastructure_resource_group": { + "attr_type": "infrastructure_resource_group" + }, + "peer_authentication": { + "attr_type": "peer_authentication" + }, + "peer_traffic_configuration": { + "attr_type": "peer_traffic_configuration" + }, + "ingress_configuration": { + "attr_type": "ingress_configuration" + }, + "private_endpoint_connections": { + "attr_type": null + }, + "public_network_access": { + "attr_type": "public_network_access" + }, + "tags": { + "attr_type": "tags" + }, + "location": { + "attr_type": "location" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ManagedEnvironmentPropertiesPeerAuthentication": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "mtls": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "mtls": { + "attr_type": "mtls" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ManagedEnvironmentPropertiesPeerTrafficConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "encryption": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "encryption": { + "attr_type": "encryption" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryption": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "enabled": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enabled": { + "attr_type": "enabled" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ManagedEnvironmentStorage": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": { + "attr_type": "properties" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ManagedEnvironmentStorageProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "azure_file": { + "default": "none", + "param_type": "keyword_only" + }, + "nfs_azure_file": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "azure_file": { + "attr_type": "azure_file" + }, + "nfs_azure_file": { + "attr_type": "nfs_azure_file" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ManagedEnvironmentStoragesCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ManagedEnvironmentsCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ManagedIdentitySetting": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "identity": { + "default": null, + "param_type": "keyword_only" + }, + "lifecycle": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "identity": { + "attr_type": "identity" + }, + "lifecycle": { + "attr_type": "lifecycle" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ManagedServiceIdentity": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "type": { + "default": null, + "param_type": "keyword_only" + }, + "user_assigned_identities": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "principal_id": { + "attr_type": null + }, + "tenant_id": { + "attr_type": null + }, + "type": { + "attr_type": "type" + }, + "user_assigned_identities": { + "attr_type": "user_assigned_identities" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ManagedServiceIdentityType": { + "type": "Enum", + "methods": {}, + "properties": { + "NONE": "NONE", + "SYSTEM_ASSIGNED": "SYSTEM_ASSIGNED", + "SYSTEM_ASSIGNED_USER_ASSIGNED": "SYSTEM_ASSIGNED_USER_ASSIGNED", + "USER_ASSIGNED": "USER_ASSIGNED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "Mtls": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "enabled": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enabled": { + "attr_type": "enabled" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "NfsAzureFileProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "server": { + "default": "none", + "param_type": "keyword_only" + }, + "access_mode": { + "default": "none", + "param_type": "keyword_only" + }, + "share_name": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "server": { + "attr_type": "server" + }, + "access_mode": { + "attr_type": "access_mode" + }, + "share_name": { + "attr_type": "share_name" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Nonce": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "validate_nonce": { + "default": "none", + "param_type": "keyword_only" + }, + "nonce_expiration_interval": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "validate_nonce": { + "attr_type": "validate_nonce" + }, + "nonce_expiration_interval": { + "attr_type": "nonce_expiration_interval" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "OpenIdConnectClientCredential": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "method": { + "default": "none", + "param_type": "keyword_only" + }, + "client_secret_setting_name": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "method": { + "attr_type": "method" + }, + "client_secret_setting_name": { + "attr_type": "client_secret_setting_name" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "OpenIdConnectConfig": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "authorization_endpoint": { + "default": "none", + "param_type": "keyword_only" + }, + "token_endpoint": { + "default": "none", + "param_type": "keyword_only" + }, + "issuer": { + "default": "none", + "param_type": "keyword_only" + }, + "certification_uri": { + "default": "none", + "param_type": "keyword_only" + }, + "well_known_open_id_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "authorization_endpoint": { + "attr_type": "authorization_endpoint" + }, + "token_endpoint": { + "attr_type": "token_endpoint" + }, + "issuer": { + "attr_type": "issuer" + }, + "certification_uri": { + "attr_type": "certification_uri" + }, + "well_known_open_id_configuration": { + "attr_type": "well_known_open_id_configuration" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "OpenIdConnectLogin": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name_claim_type": { + "default": "none", + "param_type": "keyword_only" + }, + "scopes": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name_claim_type": { + "attr_type": "name_claim_type" + }, + "scopes": { + "attr_type": "scopes" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "OpenIdConnectRegistration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_id": { + "default": "none", + "param_type": "keyword_only" + }, + "client_credential": { + "default": "none", + "param_type": "keyword_only" + }, + "open_id_connect_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "client_id": { + "attr_type": "client_id" + }, + "client_credential": { + "attr_type": "client_credential" + }, + "open_id_connect_configuration": { + "attr_type": "open_id_connect_configuration" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "OperationDetail": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "is_data_action": { + "default": "none", + "param_type": "keyword_only" + }, + "display": { + "default": "none", + "param_type": "keyword_only" + }, + "origin": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "is_data_action": { + "attr_type": "is_data_action" + }, + "display": { + "attr_type": "display" + }, + "origin": { + "attr_type": "origin" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "OperationDisplay": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "provider": { + "default": "none", + "param_type": "keyword_only" + }, + "resource": { + "default": "none", + "param_type": "keyword_only" + }, + "operation": { + "default": "none", + "param_type": "keyword_only" + }, + "description": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "provider": { + "attr_type": "provider" + }, + "resource": { + "attr_type": "resource" + }, + "operation": { + "attr_type": "operation" + }, + "description": { + "attr_type": "description" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "PoolManagementType": { + "type": "Enum", + "methods": {}, + "properties": { + "DYNAMIC": "DYNAMIC", + "MANUAL": "MANUAL", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "PrivateEndpoint": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "PrivateEndpointConnection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint": { + "default": "none", + "param_type": "keyword_only" + }, + "private_link_service_connection_state": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "group_ids": { + "attr_type": null + }, + "private_endpoint": { + "attr_type": "private_endpoint" + }, + "private_link_service_connection_state": { + "attr_type": "private_link_service_connection_state" + }, + "provisioning_state": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "PrivateEndpointConnectionListResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "PrivateEndpointConnectionProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "DELETING": "DELETING", + "FAILED": "FAILED", + "PENDING": "PENDING", + "SUCCEEDED": "SUCCEEDED", + "UPDATING": "UPDATING", + "WAITING": "WAITING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "PrivateEndpointServiceConnectionStatus": { + "type": "Enum", + "methods": {}, + "properties": { + "APPROVED": "APPROVED", + "DISCONNECTED": "DISCONNECTED", + "PENDING": "PENDING", + "REJECTED": "REJECTED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "PrivateLinkResource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "required_zone_names": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "group_id": { + "attr_type": null + }, + "required_members": { + "attr_type": null + }, + "required_zone_names": { + "attr_type": "required_zone_names" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "PrivateLinkResourceListResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "PrivateLinkServiceConnectionState": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "status": { + "default": "none", + "param_type": "keyword_only" + }, + "description": { + "default": "none", + "param_type": "keyword_only" + }, + "actions_required": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "status": { + "attr_type": "status" + }, + "description": { + "attr_type": "description" + }, + "actions_required": { + "attr_type": "actions_required" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ProxyResource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "PublicNetworkAccess": { + "type": "Enum", + "methods": {}, + "properties": { + "DISABLED": "DISABLED", + "ENABLED": "ENABLED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "QueueScaleRule": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "account_name": { + "default": "none", + "param_type": "keyword_only" + }, + "queue_name": { + "default": "none", + "param_type": "keyword_only" + }, + "queue_length": { + "default": "none", + "param_type": "keyword_only" + }, + "auth": { + "default": "none", + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "account_name": { + "attr_type": "account_name" + }, + "queue_name": { + "attr_type": "queue_name" + }, + "queue_length": { + "attr_type": "queue_length" + }, + "auth": { + "attr_type": "auth" + }, + "identity": { + "attr_type": "identity" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "RegistryCredentials": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "server": { + "default": "none", + "param_type": "keyword_only" + }, + "username": { + "default": "none", + "param_type": "keyword_only" + }, + "password_secret_ref": { + "default": "none", + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "server": { + "attr_type": "server" + }, + "username": { + "attr_type": "username" + }, + "password_secret_ref": { + "attr_type": "password_secret_ref" + }, + "identity": { + "attr_type": "identity" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "RegistryInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "registry_url": { + "default": "none", + "param_type": "keyword_only" + }, + "registry_user_name": { + "default": "none", + "param_type": "keyword_only" + }, + "registry_password": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "registry_url": { + "attr_type": "registry_url" + }, + "registry_user_name": { + "attr_type": "registry_user_name" + }, + "registry_password": { + "attr_type": "registry_password" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Replica": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "containers": { + "default": "none", + "param_type": "keyword_only" + }, + "init_containers": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "created_time": { + "attr_type": null + }, + "running_state": { + "attr_type": null + }, + "running_state_details": { + "attr_type": null + }, + "containers": { + "attr_type": "containers" + }, + "init_containers": { + "attr_type": "init_containers" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ReplicaCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ReplicaContainer": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "container_id": { + "default": "none", + "param_type": "keyword_only" + }, + "ready": { + "default": "none", + "param_type": "keyword_only" + }, + "started": { + "default": "none", + "param_type": "keyword_only" + }, + "restart_count": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "container_id": { + "attr_type": "container_id" + }, + "ready": { + "attr_type": "ready" + }, + "started": { + "attr_type": "started" + }, + "restart_count": { + "attr_type": "restart_count" + }, + "running_state": { + "attr_type": null + }, + "running_state_details": { + "attr_type": null + }, + "log_stream_endpoint": { + "attr_type": null + }, + "exec_endpoint": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Resource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ResourceTags": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "tags": { + "attr_type": "tags" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Revision": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "created_time": { + "attr_type": null + }, + "last_active_time": { + "attr_type": null + }, + "fqdn": { + "attr_type": null + }, + "template": { + "attr_type": null + }, + "active": { + "attr_type": null + }, + "replicas": { + "attr_type": null + }, + "traffic_weight": { + "attr_type": null + }, + "provisioning_error": { + "attr_type": null + }, + "health_state": { + "attr_type": null + }, + "provisioning_state": { + "attr_type": null + }, + "running_state": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "RevisionCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "RevisionHealthState": { + "type": "Enum", + "methods": {}, + "properties": { + "HEALTHY": "HEALTHY", + "NONE": "NONE", + "UNHEALTHY": "UNHEALTHY", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "RevisionProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "DEPROVISIONED": "DEPROVISIONED", + "DEPROVISIONING": "DEPROVISIONING", + "FAILED": "FAILED", + "PROVISIONED": "PROVISIONED", + "PROVISIONING": "PROVISIONING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "RevisionRunningState": { + "type": "Enum", + "methods": {}, + "properties": { + "DEGRADED": "DEGRADED", + "FAILED": "FAILED", + "PROCESSING": "PROCESSING", + "RUNNING": "RUNNING", + "STOPPED": "STOPPED", + "UNKNOWN": "UNKNOWN", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "Runtime": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "java": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "java": { + "attr_type": "java" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "RuntimeJava": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "enable_metrics": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enable_metrics": { + "attr_type": "enable_metrics" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Scale": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "min_replicas": { + "default": "none", + "param_type": "keyword_only" + }, + "max_replicas": { + "default": "int", + "param_type": "keyword_only" + }, + "cooldown_period": { + "default": "none", + "param_type": "keyword_only" + }, + "polling_interval": { + "default": "none", + "param_type": "keyword_only" + }, + "rules": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "min_replicas": { + "attr_type": "min_replicas" + }, + "max_replicas": { + "attr_type": "max_replicas" + }, + "cooldown_period": { + "attr_type": "cooldown_period" + }, + "polling_interval": { + "attr_type": "polling_interval" + }, + "rules": { + "attr_type": "rules" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ScaleConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "max_concurrent_sessions": { + "default": "none", + "param_type": "keyword_only" + }, + "ready_session_instances": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "max_concurrent_sessions": { + "attr_type": "max_concurrent_sessions" + }, + "ready_session_instances": { + "attr_type": "ready_session_instances" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ScaleRule": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "azure_queue": { + "default": "none", + "param_type": "keyword_only" + }, + "custom": { + "default": "none", + "param_type": "keyword_only" + }, + "http": { + "default": "none", + "param_type": "keyword_only" + }, + "tcp": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "azure_queue": { + "attr_type": "azure_queue" + }, + "custom": { + "attr_type": "custom" + }, + "http": { + "attr_type": "http" + }, + "tcp": { + "attr_type": "tcp" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ScaleRuleAuth": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "secret_ref": { + "default": "none", + "param_type": "keyword_only" + }, + "trigger_parameter": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "secret_ref": { + "attr_type": "secret_ref" + }, + "trigger_parameter": { + "attr_type": "trigger_parameter" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ScheduledEntry": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "week_day": { + "default": null, + "param_type": "keyword_only" + }, + "start_hour_utc": { + "default": null, + "param_type": "keyword_only" + }, + "duration_hours": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "week_day": { + "attr_type": "week_day" + }, + "start_hour_utc": { + "attr_type": "start_hour_utc" + }, + "duration_hours": { + "attr_type": "duration_hours" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Scheme": { + "type": "Enum", + "methods": {}, + "properties": { + "HTTP": "HTTP", + "HTTPS": "HTTPS", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "Secret": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "key_vault_url": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "value": { + "attr_type": "value" + }, + "identity": { + "attr_type": "identity" + }, + "key_vault_url": { + "attr_type": "key_vault_url" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SecretKeyVaultProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "key_vault_url": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "identity": { + "attr_type": "identity" + }, + "key_vault_url": { + "attr_type": "key_vault_url" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SecretVolumeItem": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "secret_ref": { + "default": "none", + "param_type": "keyword_only" + }, + "path": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "secret_ref": { + "attr_type": "secret_ref" + }, + "path": { + "attr_type": "path" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SecretsCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Service": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "type": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "type": { + "attr_type": "type" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ServiceBind": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_id": { + "default": "none", + "param_type": "keyword_only" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "service_id": { + "attr_type": "service_id" + }, + "name": { + "attr_type": "name" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SessionContainer": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "image": { + "default": "none", + "param_type": "keyword_only" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "command": { + "default": "none", + "param_type": "keyword_only" + }, + "args": { + "default": "none", + "param_type": "keyword_only" + }, + "env": { + "default": "none", + "param_type": "keyword_only" + }, + "resources": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "image": { + "attr_type": "image" + }, + "name": { + "attr_type": "name" + }, + "command": { + "attr_type": "command" + }, + "args": { + "attr_type": "args" + }, + "env": { + "attr_type": "env" + }, + "resources": { + "attr_type": "resources" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SessionContainerResources": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "cpu": { + "default": "none", + "param_type": "keyword_only" + }, + "memory": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "cpu": { + "attr_type": "cpu" + }, + "memory": { + "attr_type": "memory" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SessionIngress": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_port": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "target_port": { + "attr_type": "target_port" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SessionNetworkConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "status": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "status": { + "attr_type": "status" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SessionNetworkStatus": { + "type": "Enum", + "methods": {}, + "properties": { + "EGRESS_DISABLED": "EGRESS_DISABLED", + "EGRESS_ENABLED": "EGRESS_ENABLED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SessionPool": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "environment_id": { + "default": "none", + "param_type": "keyword_only" + }, + "container_type": { + "default": "none", + "param_type": "keyword_only" + }, + "pool_management_type": { + "default": "none", + "param_type": "keyword_only" + }, + "scale_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "secrets": { + "default": "none", + "param_type": "keyword_only" + }, + "dynamic_pool_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "custom_container_template": { + "default": "none", + "param_type": "keyword_only" + }, + "session_network_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "managed_identity_settings": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "identity": { + "attr_type": "identity" + }, + "environment_id": { + "attr_type": "environment_id" + }, + "container_type": { + "attr_type": "container_type" + }, + "pool_management_type": { + "attr_type": "pool_management_type" + }, + "node_count": { + "attr_type": null + }, + "scale_configuration": { + "attr_type": "scale_configuration" + }, + "secrets": { + "attr_type": "secrets" + }, + "dynamic_pool_configuration": { + "attr_type": "dynamic_pool_configuration" + }, + "custom_container_template": { + "attr_type": "custom_container_template" + }, + "session_network_configuration": { + "attr_type": "session_network_configuration" + }, + "pool_management_endpoint": { + "attr_type": null + }, + "provisioning_state": { + "attr_type": null + }, + "managed_identity_settings": { + "attr_type": "managed_identity_settings" + }, + "tags": { + "attr_type": "tags" + }, + "location": { + "attr_type": "location" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SessionPoolCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SessionPoolProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "DELETING": "DELETING", + "FAILED": "FAILED", + "IN_PROGRESS": "IN_PROGRESS", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SessionPoolSecret": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "value": { + "attr_type": "value" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SessionPoolUpdatableProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "scale_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "secrets": { + "default": "none", + "param_type": "keyword_only" + }, + "dynamic_pool_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "custom_container_template": { + "default": "none", + "param_type": "keyword_only" + }, + "session_network_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "tags": { + "attr_type": "tags" + }, + "identity": { + "attr_type": "identity" + }, + "scale_configuration": { + "attr_type": "scale_configuration" + }, + "secrets": { + "attr_type": "secrets" + }, + "dynamic_pool_configuration": { + "attr_type": "dynamic_pool_configuration" + }, + "custom_container_template": { + "attr_type": "custom_container_template" + }, + "session_network_configuration": { + "attr_type": "session_network_configuration" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SessionRegistryCredentials": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "server": { + "default": "none", + "param_type": "keyword_only" + }, + "username": { + "default": "none", + "param_type": "keyword_only" + }, + "password_secret_ref": { + "default": "none", + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "server": { + "attr_type": "server" + }, + "username": { + "attr_type": "username" + }, + "password_secret_ref": { + "attr_type": "password_secret_ref" + }, + "identity": { + "attr_type": "identity" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SourceControl": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "repo_url": { + "default": "none", + "param_type": "keyword_only" + }, + "branch": { + "default": "none", + "param_type": "keyword_only" + }, + "github_action_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "operation_state": { + "attr_type": null + }, + "repo_url": { + "attr_type": "repo_url" + }, + "branch": { + "attr_type": "branch" + }, + "github_action_configuration": { + "attr_type": "github_action_configuration" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SourceControlCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SourceControlOperationState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "FAILED": "FAILED", + "IN_PROGRESS": "IN_PROGRESS", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SpringBootAdminComponent": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "configurations": { + "default": "none", + "param_type": "keyword_only" + }, + "scale": { + "default": "none", + "param_type": "keyword_only" + }, + "service_binds": { + "default": "none", + "param_type": "keyword_only" + }, + "ingress": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "component_type": { + "attr_type": null + }, + "ingress": { + "attr_type": "ingress" + }, + "provisioning_state": { + "attr_type": null + }, + "configurations": { + "attr_type": "configurations" + }, + "scale": { + "attr_type": "scale" + }, + "service_binds": { + "attr_type": "service_binds" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SpringCloudConfigComponent": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "configurations": { + "default": "none", + "param_type": "keyword_only" + }, + "scale": { + "default": "none", + "param_type": "keyword_only" + }, + "service_binds": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "component_type": { + "attr_type": null + }, + "provisioning_state": { + "attr_type": null + }, + "configurations": { + "attr_type": "configurations" + }, + "scale": { + "attr_type": "scale" + }, + "service_binds": { + "attr_type": "service_binds" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SpringCloudEurekaComponent": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "configurations": { + "default": "none", + "param_type": "keyword_only" + }, + "scale": { + "default": "none", + "param_type": "keyword_only" + }, + "service_binds": { + "default": "none", + "param_type": "keyword_only" + }, + "ingress": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "component_type": { + "attr_type": null + }, + "ingress": { + "attr_type": "ingress" + }, + "provisioning_state": { + "attr_type": null + }, + "configurations": { + "attr_type": "configurations" + }, + "scale": { + "attr_type": "scale" + }, + "service_binds": { + "attr_type": "service_binds" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "StorageType": { + "type": "Enum", + "methods": {}, + "properties": { + "AZURE_FILE": "AZURE_FILE", + "EMPTY_DIR": "EMPTY_DIR", + "NFS_AZURE_FILE": "NFS_AZURE_FILE", + "SECRET": "SECRET", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SystemData": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "created_by": { + "default": "none", + "param_type": "keyword_only" + }, + "created_by_type": { + "default": "none", + "param_type": "keyword_only" + }, + "created_at": { + "default": "none", + "param_type": "keyword_only" + }, + "last_modified_by": { + "default": "none", + "param_type": "keyword_only" + }, + "last_modified_by_type": { + "default": "none", + "param_type": "keyword_only" + }, + "last_modified_at": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "created_by": { + "attr_type": "created_by" + }, + "created_by_type": { + "attr_type": "created_by_type" + }, + "created_at": { + "attr_type": "created_at" + }, + "last_modified_by": { + "attr_type": "last_modified_by" + }, + "last_modified_by_type": { + "attr_type": "last_modified_by_type" + }, + "last_modified_at": { + "attr_type": "last_modified_at" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "TcpScaleRule": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "metadata": { + "default": "none", + "param_type": "keyword_only" + }, + "auth": { + "default": "none", + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "metadata": { + "attr_type": "metadata" + }, + "auth": { + "attr_type": "auth" + }, + "identity": { + "attr_type": "identity" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Template": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_suffix": { + "default": "none", + "param_type": "keyword_only" + }, + "termination_grace_period_seconds": { + "default": "none", + "param_type": "keyword_only" + }, + "init_containers": { + "default": "none", + "param_type": "keyword_only" + }, + "containers": { + "default": "none", + "param_type": "keyword_only" + }, + "scale": { + "default": "none", + "param_type": "keyword_only" + }, + "volumes": { + "default": "none", + "param_type": "keyword_only" + }, + "service_binds": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "revision_suffix": { + "attr_type": "revision_suffix" + }, + "termination_grace_period_seconds": { + "attr_type": "termination_grace_period_seconds" + }, + "init_containers": { + "attr_type": "init_containers" + }, + "containers": { + "attr_type": "containers" + }, + "scale": { + "attr_type": "scale" + }, + "volumes": { + "attr_type": "volumes" + }, + "service_binds": { + "attr_type": "service_binds" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "TokenStore": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "enabled": { + "default": "none", + "param_type": "keyword_only" + }, + "token_refresh_extension_hours": { + "default": "none", + "param_type": "keyword_only" + }, + "azure_blob_storage": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enabled": { + "attr_type": "enabled" + }, + "token_refresh_extension_hours": { + "attr_type": "token_refresh_extension_hours" + }, + "azure_blob_storage": { + "attr_type": "azure_blob_storage" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "TrackedResource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "tags": { + "attr_type": "tags" + }, + "location": { + "attr_type": "location" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "TrafficWeight": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": "none", + "param_type": "keyword_only" + }, + "weight": { + "default": "none", + "param_type": "keyword_only" + }, + "latest_revision": { + "default": "bool", + "param_type": "keyword_only" + }, + "label": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "revision_name": { + "attr_type": "revision_name" + }, + "weight": { + "attr_type": "weight" + }, + "latest_revision": { + "attr_type": "latest_revision" + }, + "label": { + "attr_type": "label" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "TriggerType": { + "type": "Enum", + "methods": {}, + "properties": { + "EVENT": "EVENT", + "MANUAL": "MANUAL", + "SCHEDULE": "SCHEDULE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "Twitter": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "enabled": { + "default": "none", + "param_type": "keyword_only" + }, + "registration": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enabled": { + "attr_type": "enabled" + }, + "registration": { + "attr_type": "registration" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "TwitterRegistration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "consumer_key": { + "default": "none", + "param_type": "keyword_only" + }, + "consumer_secret_setting_name": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "consumer_key": { + "attr_type": "consumer_key" + }, + "consumer_secret_setting_name": { + "attr_type": "consumer_secret_setting_name" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Type": { + "type": "Enum", + "methods": {}, + "properties": { + "LIVENESS": "LIVENESS", + "READINESS": "READINESS", + "STARTUP": "STARTUP", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "UnauthenticatedClientActionV2": { + "type": "Enum", + "methods": {}, + "properties": { + "ALLOW_ANONYMOUS": "ALLOW_ANONYMOUS", + "REDIRECT_TO_LOGIN_PAGE": "REDIRECT_TO_LOGIN_PAGE", + "RETURN401": "RETURN401", + "RETURN403": "RETURN403", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "Usage": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "current_value": { + "default": null, + "param_type": "keyword_only" + }, + "limit": { + "default": null, + "param_type": "keyword_only" + }, + "name": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "current_value": { + "attr_type": "current_value" + }, + "limit": { + "attr_type": "limit" + }, + "name": { + "attr_type": "name" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "UsageName": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "localized_value": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "localized_value": { + "attr_type": "localized_value" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "UserAssignedIdentity": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "principal_id": { + "attr_type": null + }, + "client_id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "VnetConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "internal": { + "default": "none", + "param_type": "keyword_only" + }, + "infrastructure_subnet_id": { + "default": "none", + "param_type": "keyword_only" + }, + "docker_bridge_cidr": { + "default": "none", + "param_type": "keyword_only" + }, + "platform_reserved_cidr": { + "default": "none", + "param_type": "keyword_only" + }, + "platform_reserved_dns_ip": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "internal": { + "attr_type": "internal" + }, + "infrastructure_subnet_id": { + "attr_type": "infrastructure_subnet_id" + }, + "docker_bridge_cidr": { + "attr_type": "docker_bridge_cidr" + }, + "platform_reserved_cidr": { + "attr_type": "platform_reserved_cidr" + }, + "platform_reserved_dns_ip": { + "attr_type": "platform_reserved_dns_ip" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Volume": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "storage_type": { + "default": "none", + "param_type": "keyword_only" + }, + "storage_name": { + "default": "none", + "param_type": "keyword_only" + }, + "secrets": { + "default": "none", + "param_type": "keyword_only" + }, + "mount_options": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "storage_type": { + "attr_type": "storage_type" + }, + "storage_name": { + "attr_type": "storage_name" + }, + "secrets": { + "attr_type": "secrets" + }, + "mount_options": { + "attr_type": "mount_options" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "VolumeMount": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "volume_name": { + "default": "none", + "param_type": "keyword_only" + }, + "mount_path": { + "default": "none", + "param_type": "keyword_only" + }, + "sub_path": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "volume_name": { + "attr_type": "volume_name" + }, + "mount_path": { + "attr_type": "mount_path" + }, + "sub_path": { + "attr_type": "sub_path" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "WeekDay": { + "type": "Enum", + "methods": {}, + "properties": { + "FRIDAY": "FRIDAY", + "MONDAY": "MONDAY", + "SATURDAY": "SATURDAY", + "SUNDAY": "SUNDAY", + "THURSDAY": "THURSDAY", + "TUESDAY": "TUESDAY", + "WEDNESDAY": "WEDNESDAY", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "WorkflowEnvelope": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kind": { + "default": "none", + "param_type": "keyword_only" + }, + "properties": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "kind": { + "attr_type": "kind" + }, + "properties": { + "attr_type": "properties" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "WorkflowEnvelopeCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "WorkflowEnvelopeProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "files": { + "default": "none", + "param_type": "keyword_only" + }, + "flow_state": { + "default": "none", + "param_type": "keyword_only" + }, + "health": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "files": { + "attr_type": "files" + }, + "flow_state": { + "attr_type": "flow_state" + }, + "health": { + "attr_type": "health" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "WorkflowHealth": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "state": { + "default": null, + "param_type": "keyword_only" + }, + "error": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "state": { + "attr_type": "state" + }, + "error": { + "attr_type": "error" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "WorkflowHealthState": { + "type": "Enum", + "methods": {}, + "properties": { + "HEALTHY": "HEALTHY", + "NOT_SPECIFIED": "NOT_SPECIFIED", + "UNHEALTHY": "UNHEALTHY", + "UNKNOWN": "UNKNOWN", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "WorkflowKind": { + "type": "Enum", + "methods": {}, + "properties": { + "AGENTIC": "AGENTIC", + "STATEFUL": "STATEFUL", + "STATELESS": "STATELESS", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "WorkflowState": { + "type": "Enum", + "methods": {}, + "properties": { + "COMPLETED": "COMPLETED", + "DELETED": "DELETED", + "DISABLED": "DISABLED", + "ENABLED": "ENABLED", + "NOT_SPECIFIED": "NOT_SPECIFIED", + "SUSPENDED": "SUSPENDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "WorkloadProfile": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "keyword_only" + }, + "workload_profile_type": { + "default": null, + "param_type": "keyword_only" + }, + "minimum_count": { + "default": "none", + "param_type": "keyword_only" + }, + "maximum_count": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "workload_profile_type": { + "attr_type": "workload_profile_type" + }, + "minimum_count": { + "attr_type": "minimum_count" + }, + "maximum_count": { + "attr_type": "maximum_count" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "WorkloadProfileStates": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": { + "attr_type": "properties" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "WorkloadProfileStatesCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "WorkloadProfileStatesProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "minimum_count": { + "default": "none", + "param_type": "keyword_only" + }, + "maximum_count": { + "default": "none", + "param_type": "keyword_only" + }, + "current_count": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "minimum_count": { + "attr_type": "minimum_count" + }, + "maximum_count": { + "attr_type": "maximum_count" + }, + "current_count": { + "attr_type": "current_count" + }, + "additional_properties": { + "attr_type": null + } + } + } + }, + "function_nodes": {} + }, + "azure.mgmt.appcontainers.aio": { + "class_nodes": { + "ContainerAppsAPIClient": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "credential": { + "default": null, + "param_type": "positional_or_keyword" + }, + "subscription_id": { + "default": null, + "param_type": "positional_or_keyword" + }, + "base_url": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "cloud_setting": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "close": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get_custom_domain_verification_id": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "job_execution": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_execution_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": { + "client_side_validation": { + "attr_type": false + }, + "container_apps_auth_configs": { + "attr_type": "ContainerAppsAuthConfigsOperations" + }, + "available_workload_profiles": { + "attr_type": "AvailableWorkloadProfilesOperations" + }, + "billing_meters": { + "attr_type": "BillingMetersOperations" + }, + "connected_environments": { + "attr_type": "ConnectedEnvironmentsOperations" + }, + "connected_environments_certificates": { + "attr_type": "ConnectedEnvironmentsCertificatesOperations" + }, + "connected_environments_dapr_components": { + "attr_type": "ConnectedEnvironmentsDaprComponentsOperations" + }, + "connected_environments_storages": { + "attr_type": "ConnectedEnvironmentsStoragesOperations" + }, + "container_apps": { + "attr_type": "ContainerAppsOperations" + }, + "container_apps_revisions": { + "attr_type": "ContainerAppsRevisionsOperations" + }, + "container_apps_revision_replicas": { + "attr_type": "ContainerAppsRevisionReplicasOperations" + }, + "container_apps_diagnostics": { + "attr_type": "ContainerAppsDiagnosticsOperations" + }, + "managed_environment_diagnostics": { + "attr_type": "ManagedEnvironmentDiagnosticsOperations" + }, + "managed_environments_diagnostics": { + "attr_type": "ManagedEnvironmentsDiagnosticsOperations" + }, + "jobs": { + "attr_type": "JobsOperations" + }, + "operations": { + "attr_type": "Operations" + }, + "java_components": { + "attr_type": "JavaComponentsOperations" + }, + "jobs_executions": { + "attr_type": "JobsExecutionsOperations" + }, + "managed_environments": { + "attr_type": "ManagedEnvironmentsOperations" + }, + "certificates": { + "attr_type": "CertificatesOperations" + }, + "managed_certificates": { + "attr_type": "ManagedCertificatesOperations" + }, + "namespaces": { + "attr_type": "NamespacesOperations" + }, + "managed_environment_private_endpoint_connections": { + "attr_type": "ManagedEnvironmentPrivateEndpointConnectionsOperations" + }, + "managed_environment_private_link_resources": { + "attr_type": "ManagedEnvironmentPrivateLinkResourcesOperations" + }, + "dapr_components": { + "attr_type": "DaprComponentsOperations" + }, + "http_route_config": { + "attr_type": "HttpRouteConfigOperations" + }, + "maintenance_configurations": { + "attr_type": "MaintenanceConfigurationsOperations" + }, + "managed_environments_storages": { + "attr_type": "ManagedEnvironmentsStoragesOperations" + }, + "container_apps_session_pools": { + "attr_type": "ContainerAppsSessionPoolsOperations" + }, + "container_apps_source_controls": { + "attr_type": "ContainerAppsSourceControlsOperations" + }, + "usages": { + "attr_type": "UsagesOperations" + }, + "managed_environment_usages": { + "attr_type": "ManagedEnvironmentUsagesOperations" + }, + "logic_apps": { + "attr_type": "LogicAppsOperations" + } + } + } + }, + "function_nodes": {} + }, + "azure.mgmt.appcontainers.aio.operations": { + "class_nodes": { + "AvailableWorkloadProfilesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "BillingMetersOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "CertificatesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "Optional[Certificate]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "Optional[IO[bytes]]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "CertificatePatch", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "ConnectedEnvironmentsCertificatesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "Optional[Certificate]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "Optional[IO[bytes]]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "CertificatePatch", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ConnectedEnvironmentsDaprComponentsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_envelope": { + "type": "DaprComponent", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_secrets": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "ConnectedEnvironmentsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "ConnectedEnvironment", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "check_name_availability": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "check_name_availability_request": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "check_name_availability_request": { + "type": "CheckNameAvailabilityRequest", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "check_name_availability_request": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "ConnectedEnvironmentPatchResource", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "ConnectedEnvironmentsStoragesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_envelope": { + "type": "ConnectedEnvironmentStorage", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsAuthConfigsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_envelope": { + "type": "AuthConfig", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_by_container_app": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsDiagnosticsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_detector": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "detector_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get_revision": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get_root": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_detectors": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_revisions": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "filter": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_envelope": { + "type": "ContainerApp", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_start": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_stop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_envelope": { + "type": "ContainerApp", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get_auth_token": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_custom_host_name_analysis": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "custom_hostname": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_secrets": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsRevisionReplicasOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_replica": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "replica_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_replicas": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsRevisionsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "activate_revision": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "deactivate_revision": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get_revision": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_revisions": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "filter": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "restart_revision": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsSessionPoolsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_envelope": { + "type": "SessionPool", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_envelope": { + "type": "SessionPoolUpdatableProperties", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsSourceControlsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_envelope": { + "type": "SourceControl", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_by_container_app": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "DaprComponentsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_envelope": { + "type": "DaprComponent", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_secrets": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "HttpRouteConfigOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_config_envelope": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_config_envelope": { + "type": "Optional[HttpRouteConfig]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_config_envelope": { + "type": "Optional[IO[bytes]]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_config_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_config_envelope": { + "type": "HttpRouteConfig", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_config_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "JavaComponentsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "java_component_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "java_component_envelope": { + "type": "JavaComponent", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "java_component_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "java_component_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "java_component_envelope": { + "type": "JavaComponent", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "java_component_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "JobsExecutionsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "filter": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "JobsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_envelope": { + "type": "Job", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_start": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "template": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "template": { + "type": "Optional[JobExecutionTemplate]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "template": { + "type": "Optional[IO[bytes]]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_stop_execution": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_execution_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_stop_multiple_executions": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_envelope": { + "type": "JobPatchProperties", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get_detector": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "detector_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_detectors": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_secrets": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "proxy_get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "api_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "LogicAppsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "type": "Optional[LogicApp]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "type": "Optional[IO[bytes]]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get_workflow": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "workflow_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_workflows": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_workflows_connections": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "MaintenanceConfigurationsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "config_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "maintenance_configuration_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "config_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "maintenance_configuration_envelope": { + "type": "MaintenanceConfigurationResource", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "config_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "maintenance_configuration_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "config_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "config_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ManagedCertificatesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_envelope": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_envelope": { + "type": "Optional[ManagedCertificate]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_envelope": { + "type": "Optional[IO[bytes]]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_envelope": { + "type": "ManagedCertificatePatch", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "ManagedEnvironmentDiagnosticsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_detector": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "detector_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_detectors": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "ManagedEnvironmentPrivateEndpointConnectionsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_envelope": { + "type": "PrivateEndpointConnection", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ManagedEnvironmentPrivateLinkResourcesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ManagedEnvironmentUsagesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ManagedEnvironmentsDiagnosticsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_root": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "ManagedEnvironmentsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "ManagedEnvironment", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "ManagedEnvironment", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get_auth_token": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_workload_profile_states": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ManagedEnvironmentsStoragesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_envelope": { + "type": "ManagedEnvironmentStorage", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "NamespacesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "check_name_availability": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "check_name_availability_request": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "check_name_availability_request": { + "type": "CheckNameAvailabilityRequest", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "check_name_availability_request": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "Operations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "UsagesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + } + }, + "function_nodes": {} + } +} \ No newline at end of file diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_create_or_update.py index 930e008d5743..20023b03f7ca 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_create_or_update.py @@ -52,6 +52,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/AuthConfigs_CreateOrUpdate.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/AuthConfigs_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_delete.py index 55a2d544f8bd..0a0a7262544b 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_delete.py @@ -38,6 +38,6 @@ def main(): ) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/AuthConfigs_Delete.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/AuthConfigs_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_get.py index 22bbcae6742b..7e094b36fe79 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/AuthConfigs_Get.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/AuthConfigs_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_list_by_container.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_list_by_container.py index 37f0228ab6ad..87f614e20866 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_list_by_container.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_list_by_container.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/AuthConfigs_ListByContainer.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/AuthConfigs_ListByContainer.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/available_workload_profiles_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/available_workload_profiles_get.py index 00cc909ed6e9..eba82513b476 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/available_workload_profiles_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/available_workload_profiles_get.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/AvailableWorkloadProfiles_Get.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/AvailableWorkloadProfiles_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/billing_meters_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/billing_meters_get.py index ed617f07f758..b9e7fc3a0e1c 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/billing_meters_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/billing_meters_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/BillingMeters_Get.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/BillingMeters_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_create_or_update.py index cb712c0777ab..1b7f189b9a71 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_create_or_update.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/Certificate_CreateOrUpdate.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Certificate_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_create_or_update_from_key_vault.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_create_or_update_from_key_vault.py index 82f7bdd0221b..6e89f63b8200 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_create_or_update_from_key_vault.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_create_or_update_from_key_vault.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/Certificate_CreateOrUpdate_FromKeyVault.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Certificate_CreateOrUpdate_FromKeyVault.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_delete.py index 616a08d5d812..05b0f95f3ddd 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_delete.py @@ -38,6 +38,6 @@ def main(): ) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/Certificate_Delete.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Certificate_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_get.py index 2db14736f2ad..c6a094379dd6 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/Certificate_Get.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Certificate_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificates_check_name_availability.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificates_check_name_availability.py index 7d70a2d310e9..1177f653026d 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificates_check_name_availability.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificates_check_name_availability.py @@ -42,6 +42,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/Certificates_CheckNameAvailability.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Certificates_CheckNameAvailability.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificates_list_by_managed_environment.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificates_list_by_managed_environment.py index ebaed996c0f2..53f6e63d6285 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificates_list_by_managed_environment.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificates_list_by_managed_environment.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/Certificates_ListByManagedEnvironment.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Certificates_ListByManagedEnvironment.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificates_patch.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificates_patch.py index 1223254fd9cf..afc9dc4bedae 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificates_patch.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificates_patch.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/Certificates_Patch.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Certificates_Patch.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificate_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificate_create_or_update.py index c97b7225c3c7..03d9c95fff11 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificate_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificate_create_or_update.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ConnectedEnvironmentsCertificate_CreateOrUpdate.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironmentsCertificate_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificate_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificate_delete.py index 9049b0f506e2..44e36d3def7b 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificate_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificate_delete.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ConnectedEnvironmentsCertificate_Delete.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironmentsCertificate_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificate_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificate_get.py index 716cde416293..24ffadc63e90 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificate_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificate_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ConnectedEnvironmentsCertificate_Get.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironmentsCertificate_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificates_check_name_availability.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificates_check_name_availability.py index 212ecc8fbd3d..c802cfa785b2 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificates_check_name_availability.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificates_check_name_availability.py @@ -42,6 +42,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ConnectedEnvironmentsCertificates_CheckNameAvailability.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironmentsCertificates_CheckNameAvailability.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificates_list_by_connected_environment.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificates_list_by_connected_environment.py index f4f069807376..663790f3ade9 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificates_list_by_connected_environment.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificates_list_by_connected_environment.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificates_patch.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificates_patch.py index 658f673a9452..63f455f47236 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificates_patch.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificates_patch.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ConnectedEnvironmentsCertificates_Patch.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironmentsCertificates_Patch.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_create_or_update.py index 2278b9e69ee9..77008b279a76 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_create_or_update.py @@ -50,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ConnectedEnvironments_CreateOrUpdate.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironments_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_create_or_update.py index ddff5dd53de4..edfe74aa50cb 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_create_or_update.py @@ -55,6 +55,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_delete.py index 6529232fe0e7..76c7f571e7a4 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_delete.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ConnectedEnvironmentsDaprComponents_Delete.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironmentsDaprComponents_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_get.py index 3c7fda12acf7..0902ee663e17 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ConnectedEnvironmentsDaprComponents_Get.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironmentsDaprComponents_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_list.py index ff972c90d493..ad4ecace8076 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_list.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_list.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ConnectedEnvironmentsDaprComponents_List.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironmentsDaprComponents_List.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_list_secrets.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_list_secrets.py index 1ae6a3932ec8..76d65bddfe4b 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_list_secrets.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_list_secrets.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ConnectedEnvironmentsDaprComponents_ListSecrets.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironmentsDaprComponents_ListSecrets.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_delete.py index 0b29b10d8680..3537e2ab6337 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ConnectedEnvironments_Delete.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironments_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_get.py index 2fdba09193cd..d8240c49720d 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ConnectedEnvironments_Get.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironments_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_list_by_resource_group.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_list_by_resource_group.py index 32e20bf51cd6..91629dc8e694 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_list_by_resource_group.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_list_by_resource_group.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ConnectedEnvironments_ListByResourceGroup.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironments_ListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_list_by_subscription.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_list_by_subscription.py index 182249c6fdd7..072ae5464d5f 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_list_by_subscription.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_list_by_subscription.py @@ -36,6 +36,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ConnectedEnvironments_ListBySubscription.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironments_ListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_patch.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_patch.py index 928389eda75b..686aafd8d725 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_patch.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_patch.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ConnectedEnvironments_Patch.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironments_Patch.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_storages_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_storages_create_or_update.py index 4847fa7fb4dd..3773736c377c 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_storages_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_storages_create_or_update.py @@ -49,6 +49,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ConnectedEnvironmentsStorages_CreateOrUpdate.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironmentsStorages_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_storages_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_storages_delete.py index 49f16984c3b3..8b0d2985aa6e 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_storages_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_storages_delete.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ConnectedEnvironmentsStorages_Delete.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironmentsStorages_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_storages_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_storages_get.py index 5bda11a97ca8..46b2b6beda71 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_storages_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_storages_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ConnectedEnvironmentsStorages_Get.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironmentsStorages_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_storages_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_storages_list.py index 347c975c5dcb..136ffa1c573b 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_storages_list.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_storages_list.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ConnectedEnvironmentsStorages_List.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironmentsStorages_List.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_check_name_availability.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_check_name_availability.py index 0f89e29b9831..0a7dc9eeb0af 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_check_name_availability.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_check_name_availability.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ContainerApps_CheckNameAvailability.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerApps_CheckNameAvailability.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_create_or_update.py index 0bf29ebc7131..0d49ccea2892 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_create_or_update.py @@ -201,6 +201,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ContainerApps_CreateOrUpdate.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerApps_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_delete.py index 611308bf84bf..8b07a8308b82 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ContainerApps_Delete.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerApps_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_diagnostics_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_diagnostics_get.py index 06a266d10c6b..a68be73f90a7 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_diagnostics_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_diagnostics_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ContainerAppsDiagnostics_Get.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerAppsDiagnostics_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_diagnostics_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_diagnostics_list.py index eed871888b78..51e1a20cf2fc 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_diagnostics_list.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_diagnostics_list.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ContainerAppsDiagnostics_List.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerAppsDiagnostics_List.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_get.py index 315618f7cd3f..ddf3501b26f2 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ContainerApps_Get.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerApps_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_get_auth_token.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_get_auth_token.py index e70239609f64..ef97f6040791 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_get_auth_token.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_get_auth_token.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ContainerApps_GetAuthToken.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerApps_GetAuthToken.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_kind_function_app_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_kind_function_app_create_or_update.py index b26b2cf0340c..b8a977f5277b 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_kind_function_app_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_kind_function_app_create_or_update.py @@ -68,6 +68,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ContainerApps_Kind_FunctionApp_CreateOrUpdate.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerApps_Kind_FunctionApp_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_kind_workflow_app_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_kind_workflow_app_create_or_update.py index b149738ce305..229a40f40e29 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_kind_workflow_app_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_kind_workflow_app_create_or_update.py @@ -60,6 +60,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ContainerApps_Kind_WorkflowApp_CreateOrUpdate.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerApps_Kind_WorkflowApp_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_list_by_resource_group.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_list_by_resource_group.py index 083bf55efacc..5906eebffc8f 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_list_by_resource_group.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_list_by_resource_group.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ContainerApps_ListByResourceGroup.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerApps_ListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_list_by_subscription.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_list_by_subscription.py index 714ccb43e7d8..a3225c450d1c 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_list_by_subscription.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_list_by_subscription.py @@ -36,6 +36,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ContainerApps_ListBySubscription.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerApps_ListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_list_custom_host_name_analysis.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_list_custom_host_name_analysis.py index a6d08ac2d7e8..1e201abc3668 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_list_custom_host_name_analysis.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_list_custom_host_name_analysis.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ContainerApps_ListCustomHostNameAnalysis.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerApps_ListCustomHostNameAnalysis.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_list_secrets.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_list_secrets.py index 4232430e0295..d78e033a026e 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_list_secrets.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_list_secrets.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ContainerApps_ListSecrets.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerApps_ListSecrets.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_managed_by_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_managed_by_create_or_update.py index 451910f6247a..5944fef8d45f 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_managed_by_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_managed_by_create_or_update.py @@ -77,6 +77,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ContainerApps_ManagedBy_CreateOrUpdate.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerApps_ManagedBy_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_patch.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_patch.py index 8f622542ce55..f5b6c1676bd1 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_patch.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_patch.py @@ -143,6 +143,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ContainerApps_Patch.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerApps_Patch.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_start.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_start.py index 8db650206264..d85042cadf32 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_start.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_start.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ContainerApps_Start.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerApps_Start.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_stop.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_stop.py index 0f1ff5c2baf4..a6bad98fc8bd 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_stop.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_stop.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ContainerApps_Stop.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerApps_Stop.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_tcp_app_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_tcp_app_create_or_update.py index 9767f1637524..e0656e17c519 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_tcp_app_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_tcp_app_create_or_update.py @@ -76,6 +76,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ContainerApps_TcpApp_CreateOrUpdate.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerApps_TcpApp_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_create_or_update_secret_store_component.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_create_or_update_secret_store_component.py index 93fcb1f8448c..3e941dcc47b2 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_create_or_update_secret_store_component.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_create_or_update_secret_store_component.py @@ -55,6 +55,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/DaprComponents_CreateOrUpdate_SecretStoreComponent.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/DaprComponents_CreateOrUpdate_SecretStoreComponent.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_create_or_update_secrets.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_create_or_update_secrets.py index 184932747079..bde2fa2bbda3 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_create_or_update_secrets.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_create_or_update_secrets.py @@ -55,6 +55,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/DaprComponents_CreateOrUpdate_Secrets.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/DaprComponents_CreateOrUpdate_Secrets.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_delete.py index f2e89bd5ce45..56c5bca6f2ca 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_delete.py @@ -38,6 +38,6 @@ def main(): ) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/DaprComponents_Delete.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/DaprComponents_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_get_secret_store_component.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_get_secret_store_component.py index f5e08e3304ac..560ed2af8a43 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_get_secret_store_component.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_get_secret_store_component.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/DaprComponents_Get_SecretStoreComponent.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/DaprComponents_Get_SecretStoreComponent.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_get_secrets.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_get_secrets.py index 8fca65a11326..14ce4a78e98a 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_get_secrets.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_get_secrets.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/DaprComponents_Get_Secrets.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/DaprComponents_Get_Secrets.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_list.py index 27d111286677..fb3ba4ece258 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_list.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_list.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/DaprComponents_List.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/DaprComponents_List.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_list_secrets.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_list_secrets.py index a919e1f9b230..0250ff176406 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_list_secrets.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_list_secrets.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/DaprComponents_ListSecrets.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/DaprComponents_ListSecrets.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_create_or_update.py index b5c39fb8b639..419804ea9369 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_create_or_update.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/HttpRouteConfig_CreateOrUpdate.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/HttpRouteConfig_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_create_or_update_path_sep_prefix.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_create_or_update_path_sep_prefix.py index 679150ed081a..934a3e8563b3 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_create_or_update_path_sep_prefix.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_create_or_update_path_sep_prefix.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/HttpRouteConfig_CreateOrUpdate_PathSepPrefix.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/HttpRouteConfig_CreateOrUpdate_PathSepPrefix.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_create_or_update_prefix.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_create_or_update_prefix.py index 5ac067c33bb8..38740f3e384b 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_create_or_update_prefix.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_create_or_update_prefix.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/HttpRouteConfig_CreateOrUpdatePrefix.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/HttpRouteConfig_CreateOrUpdatePrefix.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_delete.py index 1bed5563ed31..f9746a20f9bc 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_delete.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/HttpRouteConfig_Delete.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/HttpRouteConfig_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_get.py index 97e5c37883bd..fcba88d850c5 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/HttpRouteConfig_Get.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/HttpRouteConfig_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_list_by_managed_environment.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_list_by_managed_environment.py index 13a373c0fde5..8bc00459c284 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_list_by_managed_environment.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_list_by_managed_environment.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/HttpRouteConfig_ListByManagedEnvironment.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/HttpRouteConfig_ListByManagedEnvironment.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_patch.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_patch.py index 1b694917b1ad..1f54384cfb19 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_patch.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_patch.py @@ -59,6 +59,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/HttpRouteConfig_Patch.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/HttpRouteConfig_Patch.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_create_or_update.py index 29acded4274d..9cb7ccd9f204 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_create_or_update.py @@ -49,6 +49,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/JavaComponents_CreateOrUpdate.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/JavaComponents_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_create_or_update_service_bind.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_create_or_update_service_bind.py index f0aae35d9587..9573f45a4243 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_create_or_update_service_bind.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_create_or_update_service_bind.py @@ -55,6 +55,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/JavaComponents_CreateOrUpdate_ServiceBind.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/JavaComponents_CreateOrUpdate_ServiceBind.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_delete.py index b55249093566..034d130dcb73 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_delete.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/JavaComponents_Delete.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/JavaComponents_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_get.py index 717306e14ac2..55c6d1b2b5b7 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/JavaComponents_Get.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/JavaComponents_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_get_service_bind.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_get_service_bind.py index 8e606ab49af8..e541e3345b2a 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_get_service_bind.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_get_service_bind.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/JavaComponents_Get_ServiceBind.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/JavaComponents_Get_ServiceBind.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_list.py index 6b6e067758f8..ce1d00172b51 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_list.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_list.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/JavaComponents_List.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/JavaComponents_List.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_list_service_bind.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_list_service_bind.py index e3b1f054670d..035b1eb8aa74 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_list_service_bind.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_list_service_bind.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/JavaComponents_List_ServiceBind.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/JavaComponents_List_ServiceBind.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_patch.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_patch.py index ffa442e38a9d..f535d6258502 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_patch.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_patch.py @@ -49,6 +49,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/JavaComponents_Patch.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/JavaComponents_Patch.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_patch_service_bind.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_patch_service_bind.py index 6d65c3609d4f..9aedb195a61c 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_patch_service_bind.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_patch_service_bind.py @@ -55,6 +55,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/JavaComponents_Patch_ServiceBind.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/JavaComponents_Patch_ServiceBind.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_createor_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_createor_update.py new file mode 100644 index 000000000000..4f6155c00c78 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_createor_update.py @@ -0,0 +1,149 @@ +# pylint: disable=line-too-long,useless-suppression +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license 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.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python job_createor_update.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + ) + + response = client.jobs.begin_create_or_update( + resource_group_name="rg", + job_name="testcontainerappsjob0", + job_envelope={ + "location": "str", + "configuration": { + "replicaTimeout": 0, + "triggerType": "Manual", + "eventTriggerConfig": { + "parallelism": 0, + "replicaCompletionCount": 0, + "scale": { + "maxExecutions": 100, + "minExecutions": 0, + "pollingInterval": 0, + "rules": [ + { + "auth": [{"secretRef": "str", "triggerParameter": "str"}], + "identity": "str", + "metadata": {}, + "name": "str", + "type": "str", + } + ], + }, + }, + "identitySettings": [{"identity": "str", "lifecycle": "str"}], + "manualTriggerConfig": {"parallelism": 0, "replicaCompletionCount": 0}, + "registries": [{"identity": "str", "passwordSecretRef": "str", "server": "str", "username": "str"}], + "replicaRetryLimit": 0, + "scheduleTriggerConfig": {"cronExpression": "str", "parallelism": 0, "replicaCompletionCount": 0}, + "secrets": [{"identity": "str", "keyVaultUrl": "str", "name": "str", "value": "str"}], + }, + "environmentId": "str", + "eventStreamEndpoint": "str", + "id": "str", + "identity": { + "type": "str", + "principalId": "str", + "tenantId": "str", + "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, + }, + "name": "str", + "outboundIpAddresses": ["str"], + "provisioningState": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "tags": {"str": "str"}, + "template": { + "containers": [ + { + "args": ["str"], + "command": ["str"], + "env": [{"name": "str", "secretRef": "str", "value": "str"}], + "image": "str", + "name": "str", + "probes": [ + { + "failureThreshold": 0, + "httpGet": { + "port": 0, + "host": "str", + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "tcpSocket": {"port": 0, "host": "str"}, + "terminationGracePeriodSeconds": 0, + "timeoutSeconds": 0, + "type": "str", + } + ], + "resources": {"cpu": 0.0, "ephemeralStorage": "str", "memory": "str"}, + "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], + } + ], + "initContainers": [ + { + "args": ["str"], + "command": ["str"], + "env": [{"name": "str", "secretRef": "str", "value": "str"}], + "image": "str", + "name": "str", + "resources": {"cpu": 0.0, "ephemeralStorage": "str", "memory": "str"}, + "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], + } + ], + "volumes": [ + { + "mountOptions": "str", + "name": "str", + "secrets": [{"path": "str", "secretRef": "str"}], + "storageName": "str", + "storageType": "str", + } + ], + }, + "type": "str", + "workloadProfileName": "str", + }, + ).result() + print(response) + + +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Job_CreateorUpdate.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_createor_update_event_trigger.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_createor_update_event_trigger.py new file mode 100644 index 000000000000..4936deff37f0 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_createor_update_event_trigger.py @@ -0,0 +1,149 @@ +# pylint: disable=line-too-long,useless-suppression +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license 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.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python job_createor_update_event_trigger.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + ) + + response = client.jobs.begin_create_or_update( + resource_group_name="rg", + job_name="testcontainerappsjob0", + job_envelope={ + "location": "str", + "configuration": { + "replicaTimeout": 0, + "triggerType": "Manual", + "eventTriggerConfig": { + "parallelism": 0, + "replicaCompletionCount": 0, + "scale": { + "maxExecutions": 100, + "minExecutions": 0, + "pollingInterval": 0, + "rules": [ + { + "auth": [{"secretRef": "str", "triggerParameter": "str"}], + "identity": "str", + "metadata": {}, + "name": "str", + "type": "str", + } + ], + }, + }, + "identitySettings": [{"identity": "str", "lifecycle": "str"}], + "manualTriggerConfig": {"parallelism": 0, "replicaCompletionCount": 0}, + "registries": [{"identity": "str", "passwordSecretRef": "str", "server": "str", "username": "str"}], + "replicaRetryLimit": 0, + "scheduleTriggerConfig": {"cronExpression": "str", "parallelism": 0, "replicaCompletionCount": 0}, + "secrets": [{"identity": "str", "keyVaultUrl": "str", "name": "str", "value": "str"}], + }, + "environmentId": "str", + "eventStreamEndpoint": "str", + "id": "str", + "identity": { + "type": "str", + "principalId": "str", + "tenantId": "str", + "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, + }, + "name": "str", + "outboundIpAddresses": ["str"], + "provisioningState": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "tags": {"str": "str"}, + "template": { + "containers": [ + { + "args": ["str"], + "command": ["str"], + "env": [{"name": "str", "secretRef": "str", "value": "str"}], + "image": "str", + "name": "str", + "probes": [ + { + "failureThreshold": 0, + "httpGet": { + "port": 0, + "host": "str", + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "tcpSocket": {"port": 0, "host": "str"}, + "terminationGracePeriodSeconds": 0, + "timeoutSeconds": 0, + "type": "str", + } + ], + "resources": {"cpu": 0.0, "ephemeralStorage": "str", "memory": "str"}, + "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], + } + ], + "initContainers": [ + { + "args": ["str"], + "command": ["str"], + "env": [{"name": "str", "secretRef": "str", "value": "str"}], + "image": "str", + "name": "str", + "resources": {"cpu": 0.0, "ephemeralStorage": "str", "memory": "str"}, + "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], + } + ], + "volumes": [ + { + "mountOptions": "str", + "name": "str", + "secrets": [{"path": "str", "secretRef": "str"}], + "storageName": "str", + "storageType": "str", + } + ], + }, + "type": "str", + "workloadProfileName": "str", + }, + ).result() + print(response) + + +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Job_CreateorUpdate_EventTrigger.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_delete.py index b4783645de88..c9f1d246234c 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/Job_Delete.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Job_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_execution_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_execution_get.py index 27e7f0c655cb..3cf1120022a4 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_execution_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_execution_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/Job_Execution_Get.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Job_Execution_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_executions_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_executions_get.py index cd546ffa9a4f..d0f86a308abb 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_executions_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_executions_get.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/Job_Executions_Get.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Job_Executions_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_get.py index 6d0545d7d81b..187acd927a35 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/Job_Get.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Job_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_get_detector.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_get_detector.py index 82b20b348c88..0b7689203611 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_get_detector.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_get_detector.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/Job_GetDetector.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Job_GetDetector.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_list_detectors.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_list_detectors.py index fe13e9ee271d..2109549b190f 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_list_detectors.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_list_detectors.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/Job_ListDetectors.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Job_ListDetectors.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_list_secrets.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_list_secrets.py index 8d63ce39ebc1..c4def9a302bc 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_list_secrets.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_list_secrets.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/Job_ListSecrets.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Job_ListSecrets.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_patch.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_patch.py new file mode 100644 index 000000000000..b1b296071e4c --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_patch.py @@ -0,0 +1,137 @@ +# pylint: disable=line-too-long,useless-suppression +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license 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.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python job_patch.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + ) + + response = client.jobs.begin_update( + resource_group_name="rg", + job_name="testcontainerappsjob0", + job_envelope={ + "identity": { + "type": "str", + "principalId": "str", + "tenantId": "str", + "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, + }, + "properties": { + "configuration": { + "replicaTimeout": 0, + "triggerType": "Manual", + "eventTriggerConfig": { + "parallelism": 0, + "replicaCompletionCount": 0, + "scale": { + "maxExecutions": 100, + "minExecutions": 0, + "pollingInterval": 0, + "rules": [ + { + "auth": [{"secretRef": "str", "triggerParameter": "str"}], + "identity": "str", + "metadata": {}, + "name": "str", + "type": "str", + } + ], + }, + }, + "identitySettings": [{"identity": "str", "lifecycle": "str"}], + "manualTriggerConfig": {"parallelism": 0, "replicaCompletionCount": 0}, + "registries": [{"identity": "str", "passwordSecretRef": "str", "server": "str", "username": "str"}], + "replicaRetryLimit": 0, + "scheduleTriggerConfig": {"cronExpression": "str", "parallelism": 0, "replicaCompletionCount": 0}, + "secrets": [{"identity": "str", "keyVaultUrl": "str", "name": "str", "value": "str"}], + }, + "environmentId": "str", + "eventStreamEndpoint": "str", + "outboundIpAddresses": ["str"], + "template": { + "containers": [ + { + "args": ["str"], + "command": ["str"], + "env": [{"name": "str", "secretRef": "str", "value": "str"}], + "image": "str", + "name": "str", + "probes": [ + { + "failureThreshold": 0, + "httpGet": { + "port": 0, + "host": "str", + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "tcpSocket": {"port": 0, "host": "str"}, + "terminationGracePeriodSeconds": 0, + "timeoutSeconds": 0, + "type": "str", + } + ], + "resources": {"cpu": 0.0, "ephemeralStorage": "str", "memory": "str"}, + "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], + } + ], + "initContainers": [ + { + "args": ["str"], + "command": ["str"], + "env": [{"name": "str", "secretRef": "str", "value": "str"}], + "image": "str", + "name": "str", + "resources": {"cpu": 0.0, "ephemeralStorage": "str", "memory": "str"}, + "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], + } + ], + "volumes": [ + { + "mountOptions": "str", + "name": "str", + "secrets": [{"path": "str", "secretRef": "str"}], + "storageName": "str", + "storageType": "str", + } + ], + }, + }, + "tags": {"str": "str"}, + }, + ).result() + print(response) + + +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Job_Patch.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_proxy_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_proxy_get.py index 6d84c977a642..feaabb19f3af 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_proxy_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_proxy_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/Job_ProxyGet.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Job_ProxyGet.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_start.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_start.py index 329aed03fb2a..bb9ef39b0ddc 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_start.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_start.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/Job_Start.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Job_Start.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_stop_execution.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_stop_execution.py index 1a95daa58880..5bc8b67a61a9 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_stop_execution.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_stop_execution.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/Job_Stop_Execution.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Job_Stop_Execution.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_stop_multiple.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_stop_multiple.py index f5ce357e2458..ad653ff1b639 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_stop_multiple.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_stop_multiple.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/Job_Stop_Multiple.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Job_Stop_Multiple.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/jobs_list_by_resource_group.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/jobs_list_by_resource_group.py index 2a77e12d61f9..8dc9771eb849 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/jobs_list_by_resource_group.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/jobs_list_by_resource_group.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/Jobs_ListByResourceGroup.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Jobs_ListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/jobs_list_by_subscription.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/jobs_list_by_subscription.py index bee15200c768..e195b7b89ed7 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/jobs_list_by_subscription.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/jobs_list_by_subscription.py @@ -36,6 +36,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/Jobs_ListBySubscription.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Jobs_ListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_create.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_create.py index 79f16fda78d0..2f5292cefe0d 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_create.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_create.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/LogicApps_Create.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/LogicApps_Create.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_delete.py index b5b6873175c1..5ef544ee508b 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_delete.py @@ -38,6 +38,6 @@ def main(): ) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/LogicApps_Delete.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/LogicApps_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_get.py index be2cba9dc6c8..88e6bc3be2e8 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/LogicApps_Get.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/LogicApps_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_get_workflow.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_get_workflow.py index d435562ae821..098c11ef5abc 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_get_workflow.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_get_workflow.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/LogicApps_GetWorkflow.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/LogicApps_GetWorkflow.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_list_connections.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_list_connections.py index b952733ba385..4cbfc2c77ee1 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_list_connections.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_list_connections.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/LogicApps_ListConnections.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/LogicApps_ListConnections.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_list_workflows.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_list_workflows.py index 771be353867e..086720921937 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_list_workflows.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_list_workflows.py @@ -40,6 +40,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/LogicApps_ListWorkflows.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/LogicApps_ListWorkflows.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificate_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificate_create_or_update.py index 638457d6b186..e6c0a82bd009 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificate_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificate_create_or_update.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ManagedCertificate_CreateOrUpdate.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedCertificate_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificate_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificate_delete.py index 13942617daf0..3396a9789efe 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificate_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificate_delete.py @@ -38,6 +38,6 @@ def main(): ) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ManagedCertificate_Delete.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedCertificate_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificate_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificate_get.py index 2d9261f743e0..dd1a312f2fcf 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificate_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificate_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ManagedCertificate_Get.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedCertificate_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificates_list_by_managed_environment.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificates_list_by_managed_environment.py index c89d532ffc83..28ca9ceeb08b 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificates_list_by_managed_environment.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificates_list_by_managed_environment.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ManagedCertificates_ListByManagedEnvironment.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedCertificates_ListByManagedEnvironment.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificates_patch.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificates_patch.py index f84b64a67227..e56212b61644 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificates_patch.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificates_patch.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ManagedCertificates_Patch.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedCertificates_Patch.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_diagnostics_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_diagnostics_get.py index b0fe48b9f985..9edb7e2945a6 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_diagnostics_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_diagnostics_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ManagedEnvironmentDiagnostics_Get.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironmentDiagnostics_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_diagnostics_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_diagnostics_list.py index bcff5eed7586..272d41001852 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_diagnostics_list.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_diagnostics_list.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ManagedEnvironmentDiagnostics_List.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironmentDiagnostics_List.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_create_or_update.py index b1d207c4a851..09584840d924 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_create_or_update.py @@ -42,6 +42,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ManagedEnvironment_MaintenanceConfigurations_CreateOrUpdate.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironment_MaintenanceConfigurations_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_delete.py index 29efb63e9109..84063fb21d09 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_delete.py @@ -38,6 +38,6 @@ def main(): ) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ManagedEnvironment_MaintenanceConfigurations_Delete.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironment_MaintenanceConfigurations_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_get.py index ac608f818077..40c1a2ab5d03 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ManagedEnvironment_MaintenanceConfigurations_Get.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironment_MaintenanceConfigurations_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_list.py index f31418b1678f..61779abecf2b 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_list.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_list.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ManagedEnvironment_MaintenanceConfigurations_List.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironment_MaintenanceConfigurations_List.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_endpoint_connections_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_endpoint_connections_create_or_update.py index 9e3b6f3e57b7..c00d9f0d0b44 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_endpoint_connections_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_endpoint_connections_create_or_update.py @@ -42,6 +42,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ManagedEnvironmentPrivateEndpointConnections_CreateOrUpdate.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironmentPrivateEndpointConnections_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_endpoint_connections_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_endpoint_connections_delete.py index c1c958187480..d833a1b7c25e 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_endpoint_connections_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_endpoint_connections_delete.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ManagedEnvironmentPrivateEndpointConnections_Delete.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironmentPrivateEndpointConnections_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_endpoint_connections_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_endpoint_connections_get.py index ac16aa93f5b3..a8f24ac2940e 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_endpoint_connections_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_endpoint_connections_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ManagedEnvironmentPrivateEndpointConnections_Get.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironmentPrivateEndpointConnections_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_endpoint_connections_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_endpoint_connections_list.py index 0a4e04c66740..ce1dcd9f325e 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_endpoint_connections_list.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_endpoint_connections_list.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ManagedEnvironmentPrivateEndpointConnections_List.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironmentPrivateEndpointConnections_List.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_link_resources_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_link_resources_list.py index 1c3f533b05e9..73c56387033f 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_link_resources_list.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_link_resources_list.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ManagedEnvironmentPrivateLinkResources_List.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironmentPrivateLinkResources_List.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_usages_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_usages_list.py index 12c581bdb979..77c9dd6044e2 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_usages_list.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_usages_list.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ManagedEnvironmentUsages_List.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironmentUsages_List.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_create_or_update.py index 61c3175f1112..40c777a6d844 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_create_or_update.py @@ -89,6 +89,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ManagedEnvironments_CreateOrUpdate.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironments_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_custom_infrastructure_resource_group_create.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_custom_infrastructure_resource_group_create.py index a5ad58a001c8..370fce8e051d 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_custom_infrastructure_resource_group_create.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_custom_infrastructure_resource_group_create.py @@ -76,6 +76,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ManagedEnvironments_CustomInfrastructureResourceGroup_Create.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironments_CustomInfrastructureResourceGroup_Create.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_delete.py index 801133fc0de0..629ad226bc19 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ManagedEnvironments_Delete.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironments_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_get.py index ebdf6ab5bbd0..b115358ed0ab 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ManagedEnvironments_Get.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironments_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_get_auth_token.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_get_auth_token.py index 266b40216ec9..387e02d47f6e 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_get_auth_token.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_get_auth_token.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ManagedEnvironments_GetAuthToken.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironments_GetAuthToken.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_list_by_resource_group.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_list_by_resource_group.py index 72690bb16cc8..42417e724cd5 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_list_by_resource_group.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_list_by_resource_group.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ManagedEnvironments_ListByResourceGroup.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironments_ListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_list_by_subscription.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_list_by_subscription.py index 765bc736eef6..afd1cea985f3 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_list_by_subscription.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_list_by_subscription.py @@ -36,6 +36,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ManagedEnvironments_ListBySubscription.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironments_ListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_list_workload_profile_states.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_list_workload_profile_states.py index 4041d90c5c92..106a7554eff3 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_list_workload_profile_states.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_list_workload_profile_states.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ManagedEnvironments_ListWorkloadProfileStates.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironments_ListWorkloadProfileStates.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_patch.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_patch.py index cdc5dbe86e24..676b64db5e5d 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_patch.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_patch.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ManagedEnvironments_Patch.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironments_Patch.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_create_or_update.py index cf94541f3460..ee25e1e43cb8 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_create_or_update.py @@ -49,6 +49,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_create_or_update_nfs_azure_file.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_create_or_update_nfs_azure_file.py index f36605e16d4f..d3fe6e29f2f5 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_create_or_update_nfs_azure_file.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_create_or_update_nfs_azure_file.py @@ -42,6 +42,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ManagedEnvironmentsStorages_CreateOrUpdate_NfsAzureFile.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironmentsStorages_CreateOrUpdate_NfsAzureFile.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_delete.py index 254f5ad2e811..976341a6aa6d 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_delete.py @@ -38,6 +38,6 @@ def main(): ) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ManagedEnvironmentsStorages_Delete.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironmentsStorages_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_get.py index c4dc9f0b82b6..e7ebfd474255 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ManagedEnvironmentsStorages_Get.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironmentsStorages_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_get_nfs_azure_file.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_get_nfs_azure_file.py index d151735030de..b629a158379c 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_get_nfs_azure_file.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_get_nfs_azure_file.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ManagedEnvironmentsStorages_Get_NfsAzureFile.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironmentsStorages_Get_NfsAzureFile.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_list.py index a247ccce98d4..c29274919ba7 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_list.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_list.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/ManagedEnvironmentsStorages_List.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironmentsStorages_List.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/operations_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/operations_list.py index 38663c7a1c0c..ff9462ad52d2 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/operations_list.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/operations_list.py @@ -36,6 +36,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/Operations_List.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Operations_List.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/replicas_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/replicas_get.py index 36cb1ed511ea..1e25a7f64d0c 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/replicas_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/replicas_get.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/Replicas_Get.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Replicas_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/replicas_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/replicas_list.py index b5584cb487fc..696175ae3362 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/replicas_list.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/replicas_list.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/Replicas_List.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Replicas_List.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_activate.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_activate.py index be458f375e3b..0631f7c15c18 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_activate.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_activate.py @@ -38,6 +38,6 @@ def main(): ) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/Revisions_Activate.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Revisions_Activate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_deactivate.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_deactivate.py index 73901ab28ffb..969e227a9848 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_deactivate.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_deactivate.py @@ -38,6 +38,6 @@ def main(): ) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/Revisions_Deactivate.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Revisions_Deactivate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_get.py index 8e3a78614094..a7554eb743ea 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/Revisions_Get.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Revisions_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_list.py index ec796479be75..0fe9b949c21d 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_list.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_list.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/Revisions_List.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Revisions_List.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_restart.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_restart.py index 206ddfc5553e..0f6769192259 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_restart.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_restart.py @@ -38,6 +38,6 @@ def main(): ) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/Revisions_Restart.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Revisions_Restart.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_delete.py index 1f84f9e8119f..1344dd047984 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/SessionPools_Delete.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/SessionPools_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_get.py index 071ad2d75ad4..16a3b3ddfaed 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/SessionPools_Get.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/SessionPools_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_lifecycle_on_container_exit_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_lifecycle_on_container_exit_create_or_update.py index 3a6ae17e2e4f..e2602554dbee 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_lifecycle_on_container_exit_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_lifecycle_on_container_exit_create_or_update.py @@ -69,6 +69,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/SessionPools_LifecycleOnContainerExit_CreateOrUpdate.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/SessionPools_LifecycleOnContainerExit_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_lifecycle_timed_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_lifecycle_timed_create_or_update.py index dc3ea998fcdf..f15f8bfe003a 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_lifecycle_timed_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_lifecycle_timed_create_or_update.py @@ -69,6 +69,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/SessionPools_LifecycleTimed_CreateOrUpdate.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/SessionPools_LifecycleTimed_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_list_by_resource_group.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_list_by_resource_group.py index f906662686f4..04ede2e47d42 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_list_by_resource_group.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_list_by_resource_group.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/SessionPools_ListByResourceGroup.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/SessionPools_ListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_list_by_subscription.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_list_by_subscription.py index 1e08785bada5..462e4c43dc60 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_list_by_subscription.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_list_by_subscription.py @@ -36,6 +36,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/SessionPools_ListBySubscription.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/SessionPools_ListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_patch.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_patch.py index c3d547f2e967..b52ed2d403b9 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_patch.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_patch.py @@ -56,6 +56,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/SessionPools_Patch.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/SessionPools_Patch.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/source_controls_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/source_controls_create_or_update.py index 5d2eb9238b26..999850f2e21f 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/source_controls_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/source_controls_create_or_update.py @@ -61,6 +61,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/SourceControls_CreateOrUpdate.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/SourceControls_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/source_controls_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/source_controls_delete.py index cc83ebbfe6c5..0f9aa4ef56b2 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/source_controls_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/source_controls_delete.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/SourceControls_Delete.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/SourceControls_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/source_controls_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/source_controls_get.py index 05b90b971b41..78e5ae241c72 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/source_controls_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/source_controls_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/SourceControls_Get.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/SourceControls_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/source_controls_list_by_container.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/source_controls_list_by_container.py index d687a2f08303..b9bb8a325f89 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/source_controls_list_by_container.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/source_controls_list_by_container.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/SourceControls_ListByContainer.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/SourceControls_ListByContainer.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/subscriptions_get_custom_domain_verification_id.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/subscriptions_get_custom_domain_verification_id.py index e14e82e888af..af6358afcce5 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/subscriptions_get_custom_domain_verification_id.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/subscriptions_get_custom_domain_verification_id.py @@ -35,6 +35,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/Subscriptions_GetCustomDomainVerificationId.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Subscriptions_GetCustomDomainVerificationId.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/usages_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/usages_list.py index c2b31b61b3b2..43a2b71e9da5 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/usages_list.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/usages_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2025-07-01/examples/Usages_List.json +# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Usages_List.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api.py index 962af06b34c6..57c5179fa411 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api.py @@ -25,7 +25,7 @@ def test_job_execution(self, resource_group): resource_group_name=resource_group.name, job_name="str", job_execution_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -35,7 +35,7 @@ def test_job_execution(self, resource_group): @recorded_by_proxy def test_get_custom_domain_verification_id(self, resource_group): response = self.client.get_custom_domain_verification_id( - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_async.py index b9253b639f31..196f63685076 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_async.py @@ -26,7 +26,7 @@ async def test_job_execution(self, resource_group): resource_group_name=resource_group.name, job_name="str", job_execution_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -36,7 +36,7 @@ async def test_job_execution(self, resource_group): @recorded_by_proxy_async async def test_get_custom_domain_verification_id(self, resource_group): response = await self.client.get_custom_domain_verification_id( - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_available_workload_profiles_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_available_workload_profiles_operations.py index 3fa7b8250016..44b8f0980aea 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_available_workload_profiles_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_available_workload_profiles_operations.py @@ -23,7 +23,7 @@ def setup_method(self, method): def test_available_workload_profiles_get(self, resource_group): response = self.client.available_workload_profiles.get( location="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_available_workload_profiles_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_available_workload_profiles_operations_async.py index 8d7b23630dfd..a5f83926f33a 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_available_workload_profiles_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_available_workload_profiles_operations_async.py @@ -24,7 +24,7 @@ def setup_method(self, method): async def test_available_workload_profiles_get(self, resource_group): response = self.client.available_workload_profiles.get( location="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_billing_meters_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_billing_meters_operations.py index 8fd13e4c2189..f4c4b8e5552d 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_billing_meters_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_billing_meters_operations.py @@ -23,7 +23,7 @@ def setup_method(self, method): def test_billing_meters_get(self, resource_group): response = self.client.billing_meters.get( location="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_billing_meters_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_billing_meters_operations_async.py index 7bac0413dfba..9bbf889a7815 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_billing_meters_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_billing_meters_operations_async.py @@ -24,7 +24,7 @@ def setup_method(self, method): async def test_billing_meters_get(self, resource_group): response = await self.client.billing_meters.get( location="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_certificates_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_certificates_operations.py index 9dd4462c9662..b126f48b983b 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_certificates_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_certificates_operations.py @@ -24,7 +24,7 @@ def test_certificates_list(self, resource_group): response = self.client.certificates.list( resource_group_name=resource_group.name, environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -37,7 +37,7 @@ def test_certificates_get(self, resource_group): resource_group_name=resource_group.name, environment_name="str", certificate_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -50,7 +50,7 @@ def test_certificates_create_or_update(self, resource_group): resource_group_name=resource_group.name, environment_name="str", certificate_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -63,7 +63,7 @@ def test_certificates_delete(self, resource_group): resource_group_name=resource_group.name, environment_name="str", certificate_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -77,7 +77,7 @@ def test_certificates_update(self, resource_group): environment_name="str", certificate_name="str", certificate_envelope={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_certificates_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_certificates_operations_async.py index ecf88033004f..cf7d98f3f9a6 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_certificates_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_certificates_operations_async.py @@ -25,7 +25,7 @@ async def test_certificates_list(self, resource_group): response = self.client.certificates.list( resource_group_name=resource_group.name, environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -38,7 +38,7 @@ async def test_certificates_get(self, resource_group): resource_group_name=resource_group.name, environment_name="str", certificate_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -51,7 +51,7 @@ async def test_certificates_create_or_update(self, resource_group): resource_group_name=resource_group.name, environment_name="str", certificate_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -64,7 +64,7 @@ async def test_certificates_delete(self, resource_group): resource_group_name=resource_group.name, environment_name="str", certificate_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -78,7 +78,7 @@ async def test_certificates_update(self, resource_group): environment_name="str", certificate_name="str", certificate_envelope={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_certificates_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_certificates_operations.py index c792943d20e8..45c22e0ae10b 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_certificates_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_certificates_operations.py @@ -24,7 +24,7 @@ def test_connected_environments_certificates_list(self, resource_group): response = self.client.connected_environments_certificates.list( resource_group_name=resource_group.name, connected_environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -37,7 +37,7 @@ def test_connected_environments_certificates_get(self, resource_group): resource_group_name=resource_group.name, connected_environment_name="str", certificate_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -50,7 +50,7 @@ def test_connected_environments_certificates_begin_create_or_update(self, resour resource_group_name=resource_group.name, connected_environment_name="str", certificate_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -63,7 +63,7 @@ def test_connected_environments_certificates_begin_delete(self, resource_group): resource_group_name=resource_group.name, connected_environment_name="str", certificate_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -77,7 +77,7 @@ def test_connected_environments_certificates_begin_update(self, resource_group): connected_environment_name="str", certificate_name="str", certificate_envelope={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_certificates_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_certificates_operations_async.py index 86412da0d74f..d25318ef2cd5 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_certificates_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_certificates_operations_async.py @@ -25,7 +25,7 @@ async def test_connected_environments_certificates_list(self, resource_group): response = self.client.connected_environments_certificates.list( resource_group_name=resource_group.name, connected_environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -38,7 +38,7 @@ async def test_connected_environments_certificates_get(self, resource_group): resource_group_name=resource_group.name, connected_environment_name="str", certificate_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -52,7 +52,7 @@ async def test_connected_environments_certificates_begin_create_or_update(self, resource_group_name=resource_group.name, connected_environment_name="str", certificate_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -67,7 +67,7 @@ async def test_connected_environments_certificates_begin_delete(self, resource_g resource_group_name=resource_group.name, connected_environment_name="str", certificate_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -83,7 +83,7 @@ async def test_connected_environments_certificates_begin_update(self, resource_g connected_environment_name="str", certificate_name="str", certificate_envelope={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_dapr_components_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_dapr_components_operations.py index 4ecf6294069d..2fd93bfbaca0 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_dapr_components_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_dapr_components_operations.py @@ -24,7 +24,7 @@ def test_connected_environments_dapr_components_list(self, resource_group): response = self.client.connected_environments_dapr_components.list( resource_group_name=resource_group.name, connected_environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -37,7 +37,7 @@ def test_connected_environments_dapr_components_get(self, resource_group): resource_group_name=resource_group.name, connected_environment_name="str", component_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -73,7 +73,7 @@ def test_connected_environments_dapr_components_begin_create_or_update(self, res "type": "str", "version": "str", }, - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -86,7 +86,7 @@ def test_connected_environments_dapr_components_begin_delete(self, resource_grou resource_group_name=resource_group.name, connected_environment_name="str", component_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -99,7 +99,7 @@ def test_connected_environments_dapr_components_list_secrets(self, resource_grou resource_group_name=resource_group.name, connected_environment_name="str", component_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_dapr_components_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_dapr_components_operations_async.py index a5bfe4c2b920..46e2cc9e402b 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_dapr_components_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_dapr_components_operations_async.py @@ -25,7 +25,7 @@ async def test_connected_environments_dapr_components_list(self, resource_group) response = self.client.connected_environments_dapr_components.list( resource_group_name=resource_group.name, connected_environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -38,7 +38,7 @@ async def test_connected_environments_dapr_components_get(self, resource_group): resource_group_name=resource_group.name, connected_environment_name="str", component_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -75,7 +75,7 @@ async def test_connected_environments_dapr_components_begin_create_or_update(sel "type": "str", "version": "str", }, - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -90,7 +90,7 @@ async def test_connected_environments_dapr_components_begin_delete(self, resourc resource_group_name=resource_group.name, connected_environment_name="str", component_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -104,7 +104,7 @@ async def test_connected_environments_dapr_components_list_secrets(self, resourc resource_group_name=resource_group.name, connected_environment_name="str", component_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_operations.py index 8e6a246e9aaf..f0244917f14f 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_operations.py @@ -22,7 +22,7 @@ def setup_method(self, method): @recorded_by_proxy def test_connected_environments_list_by_subscription(self, resource_group): response = self.client.connected_environments.list_by_subscription( - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -33,7 +33,7 @@ def test_connected_environments_list_by_subscription(self, resource_group): def test_connected_environments_list_by_resource_group(self, resource_group): response = self.client.connected_environments.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -45,7 +45,7 @@ def test_connected_environments_get(self, resource_group): response = self.client.connected_environments.get( resource_group_name=resource_group.name, connected_environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -88,7 +88,7 @@ def test_connected_environments_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -100,7 +100,7 @@ def test_connected_environments_begin_delete(self, resource_group): response = self.client.connected_environments.begin_delete( resource_group_name=resource_group.name, connected_environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -113,7 +113,7 @@ def test_connected_environments_update(self, resource_group): resource_group_name=resource_group.name, connected_environment_name="str", environment_envelope={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -126,7 +126,7 @@ def test_connected_environments_check_name_availability(self, resource_group): resource_group_name=resource_group.name, connected_environment_name="str", check_name_availability_request={"name": "str", "type": "str"}, - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_operations_async.py index 7e8bc1ef7e9f..98ecbef88eaa 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_operations_async.py @@ -23,7 +23,7 @@ def setup_method(self, method): @recorded_by_proxy_async async def test_connected_environments_list_by_subscription(self, resource_group): response = self.client.connected_environments.list_by_subscription( - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -34,7 +34,7 @@ async def test_connected_environments_list_by_subscription(self, resource_group) async def test_connected_environments_list_by_resource_group(self, resource_group): response = self.client.connected_environments.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -46,7 +46,7 @@ async def test_connected_environments_get(self, resource_group): response = await self.client.connected_environments.get( resource_group_name=resource_group.name, connected_environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -90,7 +90,7 @@ async def test_connected_environments_begin_create_or_update(self, resource_grou "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -104,7 +104,7 @@ async def test_connected_environments_begin_delete(self, resource_group): await self.client.connected_environments.begin_delete( resource_group_name=resource_group.name, connected_environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -118,7 +118,7 @@ async def test_connected_environments_update(self, resource_group): resource_group_name=resource_group.name, connected_environment_name="str", environment_envelope={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -131,7 +131,7 @@ async def test_connected_environments_check_name_availability(self, resource_gro resource_group_name=resource_group.name, connected_environment_name="str", check_name_availability_request={"name": "str", "type": "str"}, - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_storages_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_storages_operations.py index 9ce17b26456b..613e80e16cd9 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_storages_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_storages_operations.py @@ -24,7 +24,7 @@ def test_connected_environments_storages_list(self, resource_group): response = self.client.connected_environments_storages.list( resource_group_name=resource_group.name, connected_environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -37,7 +37,7 @@ def test_connected_environments_storages_get(self, resource_group): resource_group_name=resource_group.name, connected_environment_name="str", storage_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -74,7 +74,7 @@ def test_connected_environments_storages_begin_create_or_update(self, resource_g }, "type": "str", }, - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -87,7 +87,7 @@ def test_connected_environments_storages_begin_delete(self, resource_group): resource_group_name=resource_group.name, connected_environment_name="str", storage_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_storages_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_storages_operations_async.py index 6b93878352ee..d23db5f0feea 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_storages_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_storages_operations_async.py @@ -25,7 +25,7 @@ async def test_connected_environments_storages_list(self, resource_group): response = await self.client.connected_environments_storages.list( resource_group_name=resource_group.name, connected_environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -38,7 +38,7 @@ async def test_connected_environments_storages_get(self, resource_group): resource_group_name=resource_group.name, connected_environment_name="str", storage_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -76,7 +76,7 @@ async def test_connected_environments_storages_begin_create_or_update(self, reso }, "type": "str", }, - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -91,7 +91,7 @@ async def test_connected_environments_storages_begin_delete(self, resource_group resource_group_name=resource_group.name, connected_environment_name="str", storage_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_auth_configs_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_auth_configs_operations.py index fc4d1d1de65c..e5b30340227e 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_auth_configs_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_auth_configs_operations.py @@ -24,7 +24,7 @@ def test_container_apps_auth_configs_list_by_container_app(self, resource_group) response = self.client.container_apps_auth_configs.list_by_container_app( resource_group_name=resource_group.name, container_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -37,7 +37,7 @@ def test_container_apps_auth_configs_get(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", auth_config_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -161,7 +161,7 @@ def test_container_apps_auth_configs_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -174,7 +174,7 @@ def test_container_apps_auth_configs_delete(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", auth_config_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_auth_configs_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_auth_configs_operations_async.py index 401875b9ddea..9c8604d7da7a 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_auth_configs_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_auth_configs_operations_async.py @@ -25,7 +25,7 @@ async def test_container_apps_auth_configs_list_by_container_app(self, resource_ response = self.client.container_apps_auth_configs.list_by_container_app( resource_group_name=resource_group.name, container_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -38,7 +38,7 @@ async def test_container_apps_auth_configs_get(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", auth_config_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -162,7 +162,7 @@ async def test_container_apps_auth_configs_create_or_update(self, resource_group }, "type": "str", }, - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -175,7 +175,7 @@ async def test_container_apps_auth_configs_delete(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", auth_config_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_diagnostics_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_diagnostics_operations.py index e922cd3dd6ba..002b30276b76 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_diagnostics_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_diagnostics_operations.py @@ -24,7 +24,7 @@ def test_container_apps_diagnostics_list_detectors(self, resource_group): response = self.client.container_apps_diagnostics.list_detectors( resource_group_name=resource_group.name, container_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -37,7 +37,7 @@ def test_container_apps_diagnostics_get_detector(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", detector_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -49,7 +49,7 @@ def test_container_apps_diagnostics_list_revisions(self, resource_group): response = self.client.container_apps_diagnostics.list_revisions( resource_group_name=resource_group.name, container_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -62,7 +62,7 @@ def test_container_apps_diagnostics_get_revision(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", revision_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -74,7 +74,7 @@ def test_container_apps_diagnostics_get_root(self, resource_group): response = self.client.container_apps_diagnostics.get_root( resource_group_name=resource_group.name, container_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_diagnostics_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_diagnostics_operations_async.py index edb146cb6b8a..b1240f34f2d3 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_diagnostics_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_diagnostics_operations_async.py @@ -25,7 +25,7 @@ async def test_container_apps_diagnostics_list_detectors(self, resource_group): response = self.client.container_apps_diagnostics.list_detectors( resource_group_name=resource_group.name, container_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -38,7 +38,7 @@ async def test_container_apps_diagnostics_get_detector(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", detector_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -50,7 +50,7 @@ async def test_container_apps_diagnostics_list_revisions(self, resource_group): response = self.client.container_apps_diagnostics.list_revisions( resource_group_name=resource_group.name, container_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -63,7 +63,7 @@ async def test_container_apps_diagnostics_get_revision(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", revision_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -75,7 +75,7 @@ async def test_container_apps_diagnostics_get_root(self, resource_group): response = await self.client.container_apps_diagnostics.get_root( resource_group_name=resource_group.name, container_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_operations.py index 81c83761fbc3..a2cd8fd93fc9 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_operations.py @@ -22,7 +22,7 @@ def setup_method(self, method): @recorded_by_proxy def test_container_apps_list_by_subscription(self, resource_group): response = self.client.container_apps.list_by_subscription( - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -33,7 +33,7 @@ def test_container_apps_list_by_subscription(self, resource_group): def test_container_apps_list_by_resource_group(self, resource_group): response = self.client.container_apps.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -45,7 +45,7 @@ def test_container_apps_get(self, resource_group): response = self.client.container_apps.get( resource_group_name=resource_group.name, container_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -232,7 +232,7 @@ def test_container_apps_begin_create_or_update(self, resource_group): "type": "str", "workloadProfileName": "str", }, - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -244,7 +244,7 @@ def test_container_apps_begin_delete(self, resource_group): response = self.client.container_apps.begin_delete( resource_group_name=resource_group.name, container_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -431,7 +431,7 @@ def test_container_apps_begin_update(self, resource_group): "type": "str", "workloadProfileName": "str", }, - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -443,7 +443,7 @@ def test_container_apps_list_custom_host_name_analysis(self, resource_group): response = self.client.container_apps.list_custom_host_name_analysis( resource_group_name=resource_group.name, container_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -455,7 +455,7 @@ def test_container_apps_list_secrets(self, resource_group): response = self.client.container_apps.list_secrets( resource_group_name=resource_group.name, container_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -467,7 +467,7 @@ def test_container_apps_get_auth_token(self, resource_group): response = self.client.container_apps.get_auth_token( resource_group_name=resource_group.name, container_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -479,7 +479,7 @@ def test_container_apps_begin_start(self, resource_group): response = self.client.container_apps.begin_start( resource_group_name=resource_group.name, container_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -491,7 +491,7 @@ def test_container_apps_begin_stop(self, resource_group): response = self.client.container_apps.begin_stop( resource_group_name=resource_group.name, container_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_operations_async.py index 196b1d668989..2025e273f880 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_operations_async.py @@ -23,7 +23,7 @@ def setup_method(self, method): @recorded_by_proxy_async async def test_container_apps_list_by_subscription(self, resource_group): response = self.client.container_apps.list_by_subscription( - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -34,7 +34,7 @@ async def test_container_apps_list_by_subscription(self, resource_group): async def test_container_apps_list_by_resource_group(self, resource_group): response = self.client.container_apps.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -46,7 +46,7 @@ async def test_container_apps_get(self, resource_group): response = await self.client.container_apps.get( resource_group_name=resource_group.name, container_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -236,7 +236,7 @@ async def test_container_apps_begin_create_or_update(self, resource_group): "type": "str", "workloadProfileName": "str", }, - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -250,7 +250,7 @@ async def test_container_apps_begin_delete(self, resource_group): await self.client.container_apps.begin_delete( resource_group_name=resource_group.name, container_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -441,7 +441,7 @@ async def test_container_apps_begin_update(self, resource_group): "type": "str", "workloadProfileName": "str", }, - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -454,7 +454,7 @@ async def test_container_apps_list_custom_host_name_analysis(self, resource_grou response = await self.client.container_apps.list_custom_host_name_analysis( resource_group_name=resource_group.name, container_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -466,7 +466,7 @@ async def test_container_apps_list_secrets(self, resource_group): response = await self.client.container_apps.list_secrets( resource_group_name=resource_group.name, container_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -478,7 +478,7 @@ async def test_container_apps_get_auth_token(self, resource_group): response = await self.client.container_apps.get_auth_token( resource_group_name=resource_group.name, container_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -491,7 +491,7 @@ async def test_container_apps_begin_start(self, resource_group): await self.client.container_apps.begin_start( resource_group_name=resource_group.name, container_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -505,7 +505,7 @@ async def test_container_apps_begin_stop(self, resource_group): await self.client.container_apps.begin_stop( resource_group_name=resource_group.name, container_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revision_replicas_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revision_replicas_operations.py index 1d5c04ed2692..0b1678557338 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revision_replicas_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revision_replicas_operations.py @@ -26,7 +26,7 @@ def test_container_apps_revision_replicas_get_replica(self, resource_group): container_app_name="str", revision_name="str", replica_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -39,7 +39,7 @@ def test_container_apps_revision_replicas_list_replicas(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", revision_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revision_replicas_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revision_replicas_operations_async.py index 31a891c82f34..f736466fd111 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revision_replicas_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revision_replicas_operations_async.py @@ -27,7 +27,7 @@ async def test_container_apps_revision_replicas_get_replica(self, resource_group container_app_name="str", revision_name="str", replica_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -40,7 +40,7 @@ async def test_container_apps_revision_replicas_list_replicas(self, resource_gro resource_group_name=resource_group.name, container_app_name="str", revision_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revisions_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revisions_operations.py index 2aedb98d3805..a59042440daf 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revisions_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revisions_operations.py @@ -24,7 +24,7 @@ def test_container_apps_revisions_list_revisions(self, resource_group): response = self.client.container_apps_revisions.list_revisions( resource_group_name=resource_group.name, container_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -37,7 +37,7 @@ def test_container_apps_revisions_get_revision(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", revision_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -50,7 +50,7 @@ def test_container_apps_revisions_activate_revision(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", revision_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -63,7 +63,7 @@ def test_container_apps_revisions_deactivate_revision(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", revision_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -76,7 +76,7 @@ def test_container_apps_revisions_restart_revision(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", revision_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revisions_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revisions_operations_async.py index fdc32e24908a..22c7d51da89e 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revisions_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revisions_operations_async.py @@ -25,7 +25,7 @@ async def test_container_apps_revisions_list_revisions(self, resource_group): response = self.client.container_apps_revisions.list_revisions( resource_group_name=resource_group.name, container_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -38,7 +38,7 @@ async def test_container_apps_revisions_get_revision(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", revision_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -51,7 +51,7 @@ async def test_container_apps_revisions_activate_revision(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", revision_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -64,7 +64,7 @@ async def test_container_apps_revisions_deactivate_revision(self, resource_group resource_group_name=resource_group.name, container_app_name="str", revision_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -77,7 +77,7 @@ async def test_container_apps_revisions_restart_revision(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", revision_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_session_pools_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_session_pools_operations.py index 1c7e2bca8873..fb507de8d780 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_session_pools_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_session_pools_operations.py @@ -22,7 +22,7 @@ def setup_method(self, method): @recorded_by_proxy def test_container_apps_session_pools_list_by_subscription(self, resource_group): response = self.client.container_apps_session_pools.list_by_subscription( - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -33,7 +33,7 @@ def test_container_apps_session_pools_list_by_subscription(self, resource_group) def test_container_apps_session_pools_list_by_resource_group(self, resource_group): response = self.client.container_apps_session_pools.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -45,7 +45,7 @@ def test_container_apps_session_pools_get(self, resource_group): response = self.client.container_apps_session_pools.get( resource_group_name=resource_group.name, session_pool_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -114,7 +114,7 @@ def test_container_apps_session_pools_begin_create_or_update(self, resource_grou "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -164,7 +164,7 @@ def test_container_apps_session_pools_begin_update(self, resource_group): "sessionNetworkConfiguration": {"status": "str"}, "tags": {"str": "str"}, }, - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -176,7 +176,7 @@ def test_container_apps_session_pools_begin_delete(self, resource_group): response = self.client.container_apps_session_pools.begin_delete( resource_group_name=resource_group.name, session_pool_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_session_pools_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_session_pools_operations_async.py index 1060d04ea7d7..decacd5d32c4 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_session_pools_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_session_pools_operations_async.py @@ -23,7 +23,7 @@ def setup_method(self, method): @recorded_by_proxy_async async def test_container_apps_session_pools_list_by_subscription(self, resource_group): response = self.client.container_apps_session_pools.list_by_subscription( - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -34,7 +34,7 @@ async def test_container_apps_session_pools_list_by_subscription(self, resource_ async def test_container_apps_session_pools_list_by_resource_group(self, resource_group): response = self.client.container_apps_session_pools.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -46,7 +46,7 @@ async def test_container_apps_session_pools_get(self, resource_group): response = await self.client.container_apps_session_pools.get( resource_group_name=resource_group.name, session_pool_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -116,7 +116,7 @@ async def test_container_apps_session_pools_begin_create_or_update(self, resourc "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -168,7 +168,7 @@ async def test_container_apps_session_pools_begin_update(self, resource_group): "sessionNetworkConfiguration": {"status": "str"}, "tags": {"str": "str"}, }, - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -182,7 +182,7 @@ async def test_container_apps_session_pools_begin_delete(self, resource_group): await self.client.container_apps_session_pools.begin_delete( resource_group_name=resource_group.name, session_pool_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_source_controls_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_source_controls_operations.py index 95783e0cc540..8c72c4360830 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_source_controls_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_source_controls_operations.py @@ -24,7 +24,7 @@ def test_container_apps_source_controls_list_by_container_app(self, resource_gro response = self.client.container_apps_source_controls.list_by_container_app( resource_group_name=resource_group.name, container_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -37,7 +37,7 @@ def test_container_apps_source_controls_get(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", source_control_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -83,7 +83,7 @@ def test_container_apps_source_controls_begin_create_or_update(self, resource_gr }, "type": "str", }, - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -96,7 +96,7 @@ def test_container_apps_source_controls_begin_delete(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", source_control_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_source_controls_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_source_controls_operations_async.py index 6dfb6ee14573..9a953fedf4db 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_source_controls_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_source_controls_operations_async.py @@ -25,7 +25,7 @@ async def test_container_apps_source_controls_list_by_container_app(self, resour response = self.client.container_apps_source_controls.list_by_container_app( resource_group_name=resource_group.name, container_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -38,7 +38,7 @@ async def test_container_apps_source_controls_get(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", source_control_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -85,7 +85,7 @@ async def test_container_apps_source_controls_begin_create_or_update(self, resou }, "type": "str", }, - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -100,7 +100,7 @@ async def test_container_apps_source_controls_begin_delete(self, resource_group) resource_group_name=resource_group.name, container_app_name="str", source_control_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dapr_components_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dapr_components_operations.py index cdbe37740709..4deb35d3f465 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dapr_components_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dapr_components_operations.py @@ -24,7 +24,7 @@ def test_dapr_components_list(self, resource_group): response = self.client.dapr_components.list( resource_group_name=resource_group.name, environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -37,7 +37,7 @@ def test_dapr_components_get(self, resource_group): resource_group_name=resource_group.name, environment_name="str", component_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -73,7 +73,7 @@ def test_dapr_components_create_or_update(self, resource_group): "type": "str", "version": "str", }, - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -86,7 +86,7 @@ def test_dapr_components_delete(self, resource_group): resource_group_name=resource_group.name, environment_name="str", component_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -99,7 +99,7 @@ def test_dapr_components_list_secrets(self, resource_group): resource_group_name=resource_group.name, environment_name="str", component_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dapr_components_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dapr_components_operations_async.py index 8ce6196e8a7a..839fd0b3e8b6 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dapr_components_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dapr_components_operations_async.py @@ -25,7 +25,7 @@ async def test_dapr_components_list(self, resource_group): response = self.client.dapr_components.list( resource_group_name=resource_group.name, environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -38,7 +38,7 @@ async def test_dapr_components_get(self, resource_group): resource_group_name=resource_group.name, environment_name="str", component_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -74,7 +74,7 @@ async def test_dapr_components_create_or_update(self, resource_group): "type": "str", "version": "str", }, - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -87,7 +87,7 @@ async def test_dapr_components_delete(self, resource_group): resource_group_name=resource_group.name, environment_name="str", component_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -100,7 +100,7 @@ async def test_dapr_components_list_secrets(self, resource_group): resource_group_name=resource_group.name, environment_name="str", component_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_http_route_config_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_http_route_config_operations.py index 9f22791fb528..c2886c9ba2f2 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_http_route_config_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_http_route_config_operations.py @@ -25,7 +25,7 @@ def test_http_route_config_get(self, resource_group): resource_group_name=resource_group.name, environment_name="str", http_route_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -38,7 +38,7 @@ def test_http_route_config_create_or_update(self, resource_group): resource_group_name=resource_group.name, environment_name="str", http_route_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -87,7 +87,7 @@ def test_http_route_config_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -100,7 +100,7 @@ def test_http_route_config_begin_delete(self, resource_group): resource_group_name=resource_group.name, environment_name="str", http_route_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -112,7 +112,7 @@ def test_http_route_config_list(self, resource_group): response = self.client.http_route_config.list( resource_group_name=resource_group.name, environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_http_route_config_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_http_route_config_operations_async.py index a5d01d93240f..14f138d00282 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_http_route_config_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_http_route_config_operations_async.py @@ -26,7 +26,7 @@ async def test_http_route_config_get(self, resource_group): resource_group_name=resource_group.name, environment_name="str", http_route_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -39,7 +39,7 @@ async def test_http_route_config_create_or_update(self, resource_group): resource_group_name=resource_group.name, environment_name="str", http_route_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -88,7 +88,7 @@ async def test_http_route_config_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -102,7 +102,7 @@ async def test_http_route_config_begin_delete(self, resource_group): resource_group_name=resource_group.name, environment_name="str", http_route_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -115,7 +115,7 @@ async def test_http_route_config_list(self, resource_group): response = self.client.http_route_config.list( resource_group_name=resource_group.name, environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_java_components_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_java_components_operations.py index e0424956417b..b909e22f8123 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_java_components_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_java_components_operations.py @@ -24,7 +24,7 @@ def test_java_components_list(self, resource_group): response = self.client.java_components.list( resource_group_name=resource_group.name, environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -37,7 +37,7 @@ def test_java_components_get(self, resource_group): resource_group_name=resource_group.name, environment_name="str", name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -64,7 +64,7 @@ def test_java_components_begin_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -91,7 +91,7 @@ def test_java_components_begin_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -104,7 +104,7 @@ def test_java_components_begin_delete(self, resource_group): resource_group_name=resource_group.name, environment_name="str", name="str", - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_java_components_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_java_components_operations_async.py index 3d39d5bf06f7..73f1c37a42ac 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_java_components_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_java_components_operations_async.py @@ -25,7 +25,7 @@ async def test_java_components_list(self, resource_group): response = self.client.java_components.list( resource_group_name=resource_group.name, environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -38,7 +38,7 @@ async def test_java_components_get(self, resource_group): resource_group_name=resource_group.name, environment_name="str", name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -66,7 +66,7 @@ async def test_java_components_begin_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -95,7 +95,7 @@ async def test_java_components_begin_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -110,7 +110,7 @@ async def test_java_components_begin_delete(self, resource_group): resource_group_name=resource_group.name, environment_name="str", name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_executions_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_executions_operations.py index 33c0ddd6b74a..ef2c072e80d0 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_executions_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_executions_operations.py @@ -24,7 +24,7 @@ def test_jobs_executions_list(self, resource_group): response = self.client.jobs_executions.list( resource_group_name=resource_group.name, job_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_executions_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_executions_operations_async.py index bcaa730e6302..737b40760aef 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_executions_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_executions_operations_async.py @@ -25,7 +25,7 @@ async def test_jobs_executions_list(self, resource_group): response = self.client.jobs_executions.list( resource_group_name=resource_group.name, job_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_operations.py index fde00247cbf5..672917f1e35b 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_operations.py @@ -24,7 +24,7 @@ def test_jobs_list_detectors(self, resource_group): response = self.client.jobs.list_detectors( resource_group_name=resource_group.name, job_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -37,7 +37,7 @@ def test_jobs_get_detector(self, resource_group): resource_group_name=resource_group.name, job_name="str", detector_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -50,7 +50,7 @@ def test_jobs_proxy_get(self, resource_group): resource_group_name=resource_group.name, job_name="str", api_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -60,7 +60,7 @@ def test_jobs_proxy_get(self, resource_group): @recorded_by_proxy def test_jobs_list_by_subscription(self, resource_group): response = self.client.jobs.list_by_subscription( - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -71,7 +71,7 @@ def test_jobs_list_by_subscription(self, resource_group): def test_jobs_list_by_resource_group(self, resource_group): response = self.client.jobs.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -83,7 +83,7 @@ def test_jobs_get(self, resource_group): response = self.client.jobs.get( resource_group_name=resource_group.name, job_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -201,7 +201,7 @@ def test_jobs_begin_create_or_update(self, resource_group): "type": "str", "workloadProfileName": "str", }, - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -213,7 +213,7 @@ def test_jobs_begin_delete(self, resource_group): response = self.client.jobs.begin_delete( resource_group_name=resource_group.name, job_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -325,7 +325,7 @@ def test_jobs_begin_update(self, resource_group): }, "tags": {"str": "str"}, }, - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -337,7 +337,7 @@ def test_jobs_begin_start(self, resource_group): response = self.client.jobs.begin_start( resource_group_name=resource_group.name, job_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -350,7 +350,7 @@ def test_jobs_begin_stop_execution(self, resource_group): resource_group_name=resource_group.name, job_name="str", job_execution_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -362,7 +362,7 @@ def test_jobs_begin_stop_multiple_executions(self, resource_group): response = self.client.jobs.begin_stop_multiple_executions( resource_group_name=resource_group.name, job_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -374,7 +374,7 @@ def test_jobs_list_secrets(self, resource_group): response = self.client.jobs.list_secrets( resource_group_name=resource_group.name, job_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_operations_async.py index d23303386012..7b2be552180f 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_operations_async.py @@ -25,7 +25,7 @@ async def test_jobs_list_detectors(self, resource_group): response = self.client.jobs.list_detectors( resource_group_name=resource_group.name, job_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -38,7 +38,7 @@ async def test_jobs_get_detector(self, resource_group): resource_group_name=resource_group.name, job_name="str", detector_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -51,7 +51,7 @@ async def test_jobs_proxy_get(self, resource_group): resource_group_name=resource_group.name, job_name="str", api_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -61,7 +61,7 @@ async def test_jobs_proxy_get(self, resource_group): @recorded_by_proxy_async async def test_jobs_list_by_subscription(self, resource_group): response = self.client.jobs.list_by_subscription( - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -72,7 +72,7 @@ async def test_jobs_list_by_subscription(self, resource_group): async def test_jobs_list_by_resource_group(self, resource_group): response = self.client.jobs.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -84,7 +84,7 @@ async def test_jobs_get(self, resource_group): response = await self.client.jobs.get( resource_group_name=resource_group.name, job_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -209,7 +209,7 @@ async def test_jobs_begin_create_or_update(self, resource_group): "type": "str", "workloadProfileName": "str", }, - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -223,7 +223,7 @@ async def test_jobs_begin_delete(self, resource_group): await self.client.jobs.begin_delete( resource_group_name=resource_group.name, job_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -337,7 +337,7 @@ async def test_jobs_begin_update(self, resource_group): }, "tags": {"str": "str"}, }, - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -351,7 +351,7 @@ async def test_jobs_begin_start(self, resource_group): await self.client.jobs.begin_start( resource_group_name=resource_group.name, job_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -366,7 +366,7 @@ async def test_jobs_begin_stop_execution(self, resource_group): resource_group_name=resource_group.name, job_name="str", job_execution_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -380,7 +380,7 @@ async def test_jobs_begin_stop_multiple_executions(self, resource_group): await self.client.jobs.begin_stop_multiple_executions( resource_group_name=resource_group.name, job_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -393,7 +393,7 @@ async def test_jobs_list_secrets(self, resource_group): response = await self.client.jobs.list_secrets( resource_group_name=resource_group.name, job_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_logic_apps_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_logic_apps_operations.py index 86d1ba4a22aa..e371b45e84d2 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_logic_apps_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_logic_apps_operations.py @@ -25,7 +25,7 @@ def test_logic_apps_get(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", logic_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -38,7 +38,7 @@ def test_logic_apps_create_or_update(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", logic_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -51,7 +51,7 @@ def test_logic_apps_delete(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", logic_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -64,7 +64,7 @@ def test_logic_apps_list_workflows(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", logic_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -78,7 +78,7 @@ def test_logic_apps_get_workflow(self, resource_group): container_app_name="str", logic_app_name="str", workflow_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -91,7 +91,7 @@ def test_logic_apps_list_workflows_connections(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", logic_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_logic_apps_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_logic_apps_operations_async.py index 5436a7332a6f..5652e2404390 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_logic_apps_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_logic_apps_operations_async.py @@ -26,7 +26,7 @@ async def test_logic_apps_get(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", logic_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -39,7 +39,7 @@ async def test_logic_apps_create_or_update(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", logic_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -52,7 +52,7 @@ async def test_logic_apps_delete(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", logic_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -65,7 +65,7 @@ async def test_logic_apps_list_workflows(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", logic_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -79,7 +79,7 @@ async def test_logic_apps_get_workflow(self, resource_group): container_app_name="str", logic_app_name="str", workflow_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -92,7 +92,7 @@ async def test_logic_apps_list_workflows_connections(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", logic_app_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_maintenance_configurations_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_maintenance_configurations_operations.py index 34f191fc09df..f9aca351e74c 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_maintenance_configurations_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_maintenance_configurations_operations.py @@ -24,7 +24,7 @@ def test_maintenance_configurations_list(self, resource_group): response = self.client.maintenance_configurations.list( resource_group_name=resource_group.name, environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -51,7 +51,7 @@ def test_maintenance_configurations_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -64,7 +64,7 @@ def test_maintenance_configurations_delete(self, resource_group): resource_group_name=resource_group.name, environment_name="str", config_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -77,7 +77,7 @@ def test_maintenance_configurations_get(self, resource_group): resource_group_name=resource_group.name, environment_name="str", config_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_maintenance_configurations_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_maintenance_configurations_operations_async.py index 416604646859..e5cc98adcd65 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_maintenance_configurations_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_maintenance_configurations_operations_async.py @@ -25,7 +25,7 @@ async def test_maintenance_configurations_list(self, resource_group): response = self.client.maintenance_configurations.list( resource_group_name=resource_group.name, environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -52,7 +52,7 @@ async def test_maintenance_configurations_create_or_update(self, resource_group) }, "type": "str", }, - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -65,7 +65,7 @@ async def test_maintenance_configurations_delete(self, resource_group): resource_group_name=resource_group.name, environment_name="str", config_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -78,7 +78,7 @@ async def test_maintenance_configurations_get(self, resource_group): resource_group_name=resource_group.name, environment_name="str", config_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_certificates_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_certificates_operations.py index 145e40a554fa..2e399a8a7aed 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_certificates_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_certificates_operations.py @@ -25,7 +25,7 @@ def test_managed_certificates_get(self, resource_group): resource_group_name=resource_group.name, environment_name="str", managed_certificate_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -38,7 +38,7 @@ def test_managed_certificates_begin_create_or_update(self, resource_group): resource_group_name=resource_group.name, environment_name="str", managed_certificate_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -51,7 +51,7 @@ def test_managed_certificates_delete(self, resource_group): resource_group_name=resource_group.name, environment_name="str", managed_certificate_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -65,7 +65,7 @@ def test_managed_certificates_update(self, resource_group): environment_name="str", managed_certificate_name="str", managed_certificate_envelope={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -77,7 +77,7 @@ def test_managed_certificates_list(self, resource_group): response = self.client.managed_certificates.list( resource_group_name=resource_group.name, environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_certificates_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_certificates_operations_async.py index 2bf3aabee373..cb3e6cd06423 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_certificates_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_certificates_operations_async.py @@ -26,7 +26,7 @@ async def test_managed_certificates_get(self, resource_group): resource_group_name=resource_group.name, environment_name="str", managed_certificate_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -40,7 +40,7 @@ async def test_managed_certificates_begin_create_or_update(self, resource_group) resource_group_name=resource_group.name, environment_name="str", managed_certificate_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -54,7 +54,7 @@ async def test_managed_certificates_delete(self, resource_group): resource_group_name=resource_group.name, environment_name="str", managed_certificate_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -68,7 +68,7 @@ async def test_managed_certificates_update(self, resource_group): environment_name="str", managed_certificate_name="str", managed_certificate_envelope={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -80,7 +80,7 @@ async def test_managed_certificates_list(self, resource_group): response = self.client.managed_certificates.list( resource_group_name=resource_group.name, environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_diagnostics_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_diagnostics_operations.py index 4fa04092ae12..280f0243b94f 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_diagnostics_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_diagnostics_operations.py @@ -24,7 +24,7 @@ def test_managed_environment_diagnostics_list_detectors(self, resource_group): response = self.client.managed_environment_diagnostics.list_detectors( resource_group_name=resource_group.name, environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -37,7 +37,7 @@ def test_managed_environment_diagnostics_get_detector(self, resource_group): resource_group_name=resource_group.name, environment_name="str", detector_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_diagnostics_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_diagnostics_operations_async.py index ec26192a8bbf..bf383213f21b 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_diagnostics_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_diagnostics_operations_async.py @@ -25,7 +25,7 @@ async def test_managed_environment_diagnostics_list_detectors(self, resource_gro response = await self.client.managed_environment_diagnostics.list_detectors( resource_group_name=resource_group.name, environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -38,7 +38,7 @@ async def test_managed_environment_diagnostics_get_detector(self, resource_group resource_group_name=resource_group.name, environment_name="str", detector_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_private_endpoint_connections_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_private_endpoint_connections_operations.py index 9357c0921acc..84eecb130471 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_private_endpoint_connections_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_private_endpoint_connections_operations.py @@ -24,7 +24,7 @@ def test_managed_environment_private_endpoint_connections_list(self, resource_gr response = self.client.managed_environment_private_endpoint_connections.list( resource_group_name=resource_group.name, environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -37,7 +37,7 @@ def test_managed_environment_private_endpoint_connections_get(self, resource_gro resource_group_name=resource_group.name, environment_name="str", private_endpoint_connection_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -67,7 +67,7 @@ def test_managed_environment_private_endpoint_connections_begin_create_or_update }, "type": "str", }, - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -80,7 +80,7 @@ def test_managed_environment_private_endpoint_connections_begin_delete(self, res resource_group_name=resource_group.name, environment_name="str", private_endpoint_connection_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_private_endpoint_connections_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_private_endpoint_connections_operations_async.py index a31b6f89627d..2d40d4e89cc1 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_private_endpoint_connections_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_private_endpoint_connections_operations_async.py @@ -25,7 +25,7 @@ async def test_managed_environment_private_endpoint_connections_list(self, resou response = self.client.managed_environment_private_endpoint_connections.list( resource_group_name=resource_group.name, environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -38,7 +38,7 @@ async def test_managed_environment_private_endpoint_connections_get(self, resour resource_group_name=resource_group.name, environment_name="str", private_endpoint_connection_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -73,7 +73,7 @@ async def test_managed_environment_private_endpoint_connections_begin_create_or_ }, "type": "str", }, - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -88,7 +88,7 @@ async def test_managed_environment_private_endpoint_connections_begin_delete(sel resource_group_name=resource_group.name, environment_name="str", private_endpoint_connection_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_private_link_resources_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_private_link_resources_operations.py index aad9419b12fe..18bdb8736dd5 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_private_link_resources_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_private_link_resources_operations.py @@ -24,7 +24,7 @@ def test_managed_environment_private_link_resources_list(self, resource_group): response = self.client.managed_environment_private_link_resources.list( resource_group_name=resource_group.name, environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_private_link_resources_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_private_link_resources_operations_async.py index b55e21af615b..7e8d25ae87ed 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_private_link_resources_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_private_link_resources_operations_async.py @@ -25,7 +25,7 @@ async def test_managed_environment_private_link_resources_list(self, resource_gr response = self.client.managed_environment_private_link_resources.list( resource_group_name=resource_group.name, environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_usages_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_usages_operations.py index 9276d38b7214..f2c77d504d9e 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_usages_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_usages_operations.py @@ -24,7 +24,7 @@ def test_managed_environment_usages_list(self, resource_group): response = self.client.managed_environment_usages.list( resource_group_name=resource_group.name, environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_usages_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_usages_operations_async.py index 75fe5b1904ef..c31e8f177571 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_usages_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_usages_operations_async.py @@ -25,7 +25,7 @@ async def test_managed_environment_usages_list(self, resource_group): response = self.client.managed_environment_usages.list( resource_group_name=resource_group.name, environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_diagnostics_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_diagnostics_operations.py index 2dd3a2c02a02..df3df6ff65fb 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_diagnostics_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_diagnostics_operations.py @@ -24,7 +24,7 @@ def test_managed_environments_diagnostics_get_root(self, resource_group): response = self.client.managed_environments_diagnostics.get_root( resource_group_name=resource_group.name, environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_diagnostics_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_diagnostics_operations_async.py index 9c7cdab05f81..cd2ecfcae312 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_diagnostics_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_diagnostics_operations_async.py @@ -25,7 +25,7 @@ async def test_managed_environments_diagnostics_get_root(self, resource_group): response = await self.client.managed_environments_diagnostics.get_root( resource_group_name=resource_group.name, environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_operations.py index 8cb64662a657..a97c6df2125b 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_operations.py @@ -22,7 +22,7 @@ def setup_method(self, method): @recorded_by_proxy def test_managed_environments_list_by_subscription(self, resource_group): response = self.client.managed_environments.list_by_subscription( - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -33,7 +33,7 @@ def test_managed_environments_list_by_subscription(self, resource_group): def test_managed_environments_list_by_resource_group(self, resource_group): response = self.client.managed_environments.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -45,7 +45,7 @@ def test_managed_environments_get(self, resource_group): response = self.client.managed_environments.get( resource_group_name=resource_group.name, environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -146,7 +146,7 @@ def test_managed_environments_begin_create_or_update(self, resource_group): ], "zoneRedundant": bool, }, - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -158,7 +158,7 @@ def test_managed_environments_begin_delete(self, resource_group): response = self.client.managed_environments.begin_delete( resource_group_name=resource_group.name, environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -259,7 +259,7 @@ def test_managed_environments_begin_update(self, resource_group): ], "zoneRedundant": bool, }, - api_version="2025-07-01", + api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -271,7 +271,7 @@ def test_managed_environments_get_auth_token(self, resource_group): response = self.client.managed_environments.get_auth_token( resource_group_name=resource_group.name, environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -283,7 +283,7 @@ def test_managed_environments_list_workload_profile_states(self, resource_group) response = self.client.managed_environments.list_workload_profile_states( resource_group_name=resource_group.name, environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_operations_async.py index 4bb914e1d878..66dd97e6e1e6 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_operations_async.py @@ -23,7 +23,7 @@ def setup_method(self, method): @recorded_by_proxy_async async def test_managed_environments_list_by_subscription(self, resource_group): response = self.client.managed_environments.list_by_subscription( - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -34,7 +34,7 @@ async def test_managed_environments_list_by_subscription(self, resource_group): async def test_managed_environments_list_by_resource_group(self, resource_group): response = self.client.managed_environments.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -46,7 +46,7 @@ async def test_managed_environments_get(self, resource_group): response = await self.client.managed_environments.get( resource_group_name=resource_group.name, environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -148,7 +148,7 @@ async def test_managed_environments_begin_create_or_update(self, resource_group) ], "zoneRedundant": bool, }, - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -162,7 +162,7 @@ async def test_managed_environments_begin_delete(self, resource_group): await self.client.managed_environments.begin_delete( resource_group_name=resource_group.name, environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -265,7 +265,7 @@ async def test_managed_environments_begin_update(self, resource_group): ], "zoneRedundant": bool, }, - api_version="2025-07-01", + api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -278,7 +278,7 @@ async def test_managed_environments_get_auth_token(self, resource_group): response = await self.client.managed_environments.get_auth_token( resource_group_name=resource_group.name, environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -290,7 +290,7 @@ async def test_managed_environments_list_workload_profile_states(self, resource_ response = self.client.managed_environments.list_workload_profile_states( resource_group_name=resource_group.name, environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_storages_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_storages_operations.py index 0b7229e3f962..162f1cec15cf 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_storages_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_storages_operations.py @@ -24,7 +24,7 @@ def test_managed_environments_storages_list(self, resource_group): response = self.client.managed_environments_storages.list( resource_group_name=resource_group.name, environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -37,7 +37,7 @@ def test_managed_environments_storages_get(self, resource_group): resource_group_name=resource_group.name, environment_name="str", storage_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -73,7 +73,7 @@ def test_managed_environments_storages_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -86,7 +86,7 @@ def test_managed_environments_storages_delete(self, resource_group): resource_group_name=resource_group.name, environment_name="str", storage_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_storages_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_storages_operations_async.py index a366dc54d87a..2eefc35b55f2 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_storages_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_storages_operations_async.py @@ -25,7 +25,7 @@ async def test_managed_environments_storages_list(self, resource_group): response = await self.client.managed_environments_storages.list( resource_group_name=resource_group.name, environment_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -38,7 +38,7 @@ async def test_managed_environments_storages_get(self, resource_group): resource_group_name=resource_group.name, environment_name="str", storage_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -74,7 +74,7 @@ async def test_managed_environments_storages_create_or_update(self, resource_gro }, "type": "str", }, - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself @@ -87,7 +87,7 @@ async def test_managed_environments_storages_delete(self, resource_group): resource_group_name=resource_group.name, environment_name="str", storage_name="str", - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_namespaces_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_namespaces_operations.py index c96cedc2d1e7..88dd65c75c1a 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_namespaces_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_namespaces_operations.py @@ -25,7 +25,7 @@ def test_namespaces_check_name_availability(self, resource_group): resource_group_name=resource_group.name, environment_name="str", check_name_availability_request={"name": "str", "type": "str"}, - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_namespaces_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_namespaces_operations_async.py index fb0581efac84..247eed9906ce 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_namespaces_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_namespaces_operations_async.py @@ -26,7 +26,7 @@ async def test_namespaces_check_name_availability(self, resource_group): resource_group_name=resource_group.name, environment_name="str", check_name_availability_request={"name": "str", "type": "str"}, - api_version="2025-07-01", + api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_operations.py index 3ca2f707b7e1..4ea664d5c0ca 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_operations.py @@ -22,7 +22,7 @@ def setup_method(self, method): @recorded_by_proxy def test_operations_list(self, resource_group): response = self.client.operations.list( - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_operations_async.py index 8fd6479c6f7a..f53d7454fb44 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_operations_async.py @@ -23,7 +23,7 @@ def setup_method(self, method): @recorded_by_proxy_async async def test_operations_list(self, resource_group): response = self.client.operations.list( - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_usages_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_usages_operations.py index 307d204ac3c4..5c1fc5e53b0f 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_usages_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_usages_operations.py @@ -23,7 +23,7 @@ def setup_method(self, method): def test_usages_list(self, resource_group): response = self.client.usages.list( location="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_usages_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_usages_operations_async.py index 8b6537ad9deb..1c308a76feee 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_usages_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_usages_operations_async.py @@ -24,7 +24,7 @@ def setup_method(self, method): async def test_usages_list(self, resource_group): response = self.client.usages.list( location="str", - api_version="2025-07-01", + api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/pyproject.toml b/sdk/appcontainers/azure-mgmt-appcontainers/pyproject.toml index aa5e42049fe6..42b92ca34d65 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/pyproject.toml +++ b/sdk/appcontainers/azure-mgmt-appcontainers/pyproject.toml @@ -29,7 +29,7 @@ keywords = [ "azure sdk", ] dependencies = [ - "msrest>=0.7.1", + "isodate>=0.6.1", "azure-mgmt-core>=1.6.0", "typing-extensions>=4.6.0", ] @@ -54,8 +54,8 @@ content-type = "text/markdown" [tool.setuptools.packages.find] exclude = [ "tests*", - "samples*", "generated_tests*", + "samples*", "generated_samples*", "doc*", "azure", From 75dec78cac2699d6d2af78948215beaa68e2c3fb Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 Date: Wed, 8 Apr 2026 11:34:07 +0800 Subject: [PATCH 2/7] generated from typespec:8adb6c33d91b2c9d401dd9a062a37dc5054884e8 --- .../azure-mgmt-appcontainers/CHANGELOG.md | 4 + .../azure-mgmt-appcontainers/_metadata.json | 15 +- .../apiview-properties.json | 1349 +- .../azure/mgmt/appcontainers/__init__.py | 4 +- ...ontainer_apps_api_client.py => _client.py} | 295 +- .../mgmt/appcontainers/_configuration.py | 17 +- .../azure/mgmt/appcontainers/_patch.py | 39 +- .../mgmt/appcontainers/_utils/__init__.py | 2 +- .../mgmt/appcontainers/_utils/model_base.py | 1350 + .../appcontainers/_utils/serialization.py | 2 +- .../azure/mgmt/appcontainers/_utils/utils.py | 2 +- .../azure/mgmt/appcontainers/_version.py | 4 +- .../azure/mgmt/appcontainers/aio/__init__.py | 4 +- ...ontainer_apps_api_client.py => _client.py} | 297 +- .../mgmt/appcontainers/aio/_configuration.py | 17 +- .../azure/mgmt/appcontainers/aio/_patch.py | 39 +- .../appcontainers/aio/operations/__init__.py | 139 +- ..._available_workload_profiles_operations.py | 140 - .../operations/_billing_meters_operations.py | 110 - .../operations/_certificates_operations.py | 584 - ...ed_environments_certificates_operations.py | 791 - ...environments_dapr_components_operations.py | 632 - .../_connected_environments_operations.py | 908 - ...nected_environments_storages_operations.py | 540 - .../_container_apps_api_client_operations.py | 160 - ..._container_apps_auth_configs_operations.py | 429 - .../_container_apps_diagnostics_operations.py | 437 - .../operations/_container_apps_operations.py | 1263 - ...ainer_apps_revision_replicas_operations.py | 191 - .../_container_apps_revisions_operations.py | 406 - ...container_apps_session_pools_operations.py | 825 - ...ntainer_apps_source_controls_operations.py | 552 - .../operations/_dapr_components_operations.py | 494 - .../_http_route_config_operations.py | 650 - .../operations/_java_components_operations.py | 778 - .../operations/_jobs_executions_operations.py | 147 - .../aio/operations/_jobs_operations.py | 1550 - .../aio/operations/_logic_apps_operations.py | 566 - .../_maintenance_configurations_operations.py | 422 - .../_managed_certificates_operations.py | 663 - ...aged_environment_diagnostics_operations.py | 185 - ...private_endpoint_connections_operations.py | 568 - ...nment_private_link_resources_operations.py | 145 - .../_managed_environment_usages_operations.py | 140 - ...ged_environments_diagnostics_operations.py | 116 - .../_managed_environments_operations.py | 968 - ...anaged_environments_storages_operations.py | 398 - .../aio/operations/_namespaces_operations.py | 196 - .../aio/operations/_operations.py | 23694 +++- .../appcontainers/aio/operations/_patch.py | 13 +- .../aio/operations/_usages_operations.py | 137 - .../mgmt/appcontainers/models/__init__.py | 304 +- ...ner_apps_api_client_enums.py => _enums.py} | 471 +- .../mgmt/appcontainers/models/_models.py | 15503 +++ .../mgmt/appcontainers/models/_models_py3.py | 11280 -- .../azure/mgmt/appcontainers/models/_patch.py | 13 +- .../mgmt/appcontainers/operations/__init__.py | 139 +- ..._available_workload_profiles_operations.py | 170 - .../operations/_billing_meters_operations.py | 139 - .../operations/_certificates_operations.py | 753 - ...ed_environments_certificates_operations.py | 977 - ...environments_dapr_components_operations.py | 799 - .../_connected_environments_operations.py | 1122 - ...nected_environments_storages_operations.py | 675 - .../_container_apps_api_client_operations.py | 224 - ..._container_apps_auth_configs_operations.py | 564 - .../_container_apps_diagnostics_operations.py | 607 - .../operations/_container_apps_operations.py | 1611 - ...ainer_apps_revision_replicas_operations.py | 265 - .../_container_apps_revisions_operations.py | 578 - ...container_apps_session_pools_operations.py | 1014 - ...ntainer_apps_source_controls_operations.py | 687 - .../operations/_dapr_components_operations.py | 664 - .../_http_route_config_operations.py | 826 - .../operations/_java_components_operations.py | 946 - .../operations/_jobs_executions_operations.py | 185 - .../operations/_jobs_operations.py | 1953 - .../operations/_logic_apps_operations.py | 787 - .../_maintenance_configurations_operations.py | 559 - .../_managed_certificates_operations.py | 832 - ...aged_environment_diagnostics_operations.py | 252 - ...private_endpoint_connections_operations.py | 721 - ...nment_private_link_resources_operations.py | 180 - .../_managed_environment_usages_operations.py | 176 - ...ged_environments_diagnostics_operations.py | 150 - .../_managed_environments_operations.py | 1212 - ...anaged_environments_storages_operations.py | 536 - .../operations/_namespaces_operations.py | 235 - .../appcontainers/operations/_operations.py | 28770 ++++- .../mgmt/appcontainers/operations/_patch.py | 13 +- .../operations/_usages_operations.py | 166 - .../code_report_typespec.json | 97163 ++++++++++++++++ .../app_resiliency_create_or_update.py | 61 + .../app_resiliency_delete.py | 42 + .../generated_samples/app_resiliency_get.py | 43 + .../generated_samples/app_resiliency_list.py | 43 + .../generated_samples/app_resiliency_patch.py | 46 + ..._token_store_client_id_create_or_update.py | 64 + ...ob_storage_token_store_create_or_update.py | 65 + .../auth_configs_create_or_update.py | 7 +- .../generated_samples/auth_configs_delete.py | 7 +- .../generated_samples/auth_configs_get.py | 7 +- .../auth_configs_list_by_container.py | 7 +- .../available_workload_profiles_get.py | 7 +- .../generated_samples/billing_meters_get.py | 7 +- .../builders_create_or_update.py | 66 + .../generated_samples/builders_delete.py | 41 + .../generated_samples/builders_get.py | 42 + .../builders_list_by_resource_group.py | 42 + .../builders_list_by_subscription.py | 40 + .../generated_samples/builders_update.py | 43 + .../builds_create_or_update.py | 70 + .../builds_create_or_update_no_config.py | 77 + .../generated_samples/builds_delete.py | 42 + .../generated_samples/builds_get.py | 43 + .../builds_list_auth_token.py | 43 + .../builds_list_by_builder_resource.py | 43 + .../certificate_create_or_update.py | 7 +- ...ificate_create_or_update_from_key_vault.py | 7 +- .../generated_samples/certificate_delete.py | 7 +- .../generated_samples/certificate_get.py | 7 +- .../certificates_check_name_availability.py | 7 +- ...ertificates_list_by_managed_environment.py | 7 +- .../generated_samples/certificates_patch.py | 7 +- ...vironments_certificate_create_or_update.py | 7 +- ...nnected_environments_certificate_delete.py | 7 +- .../connected_environments_certificate_get.py | 7 +- ...ts_certificates_check_name_availability.py | 7 +- ...tificates_list_by_connected_environment.py | 7 +- ...nnected_environments_certificates_patch.py | 7 +- ...connected_environments_create_or_update.py | 6 +- ...nments_dapr_components_create_or_update.py | 13 +- ...ted_environments_dapr_components_delete.py | 7 +- ...nected_environments_dapr_components_get.py | 7 +- ...ected_environments_dapr_components_list.py | 7 +- ...vironments_dapr_components_list_secrets.py | 7 +- .../connected_environments_delete.py | 7 +- .../connected_environments_get.py | 7 +- ...ted_environments_list_by_resource_group.py | 7 +- ...ected_environments_list_by_subscription.py | 7 +- .../connected_environments_patch.py | 8 +- ..._environments_storages_create_or_update.py | 7 +- .../connected_environments_storages_delete.py | 7 +- .../connected_environments_storages_get.py | 7 +- .../connected_environments_storages_list.py | 7 +- .../container_apps_builds_delete.py | 42 + .../container_apps_builds_get.py | 43 + ...ainer_apps_builds_list_by_container_app.py | 43 + .../container_apps_check_name_availability.py | 7 +- .../container_apps_create_or_update.py | 34 +- ..._create_or_update_connected_environment.py | 164 + .../container_apps_delete.py | 9 +- .../container_apps_diagnostics_get.py | 7 +- .../container_apps_diagnostics_list.py | 7 +- .../container_apps_functions_get.py | 43 + .../container_apps_functions_list.py | 43 + .../generated_samples/container_apps_get.py | 9 +- .../generated_samples/container_apps_get1.py | 42 + .../container_apps_get_auth_token.py | 9 +- ...apps_kind_function_app_create_or_update.py | 6 +- ...apps_kind_workflow_app_create_or_update.py | 6 +- .../container_apps_list_by_resource_group.py | 7 +- .../container_apps_list_by_subscription.py | 7 +- ...ner_apps_list_custom_host_name_analysis.py | 9 +- .../container_apps_list_secrets.py | 9 +- ...tainer_apps_managed_by_create_or_update.py | 14 +- .../generated_samples/container_apps_patch.py | 34 +- .../container_apps_patches_apply.py | 43 + .../container_apps_patches_delete.py | 42 + .../container_apps_patches_get.py | 43 + ...iner_apps_patches_list_by_container_app.py | 43 + .../container_apps_patches_skip_configure.py | 43 + .../container_apps_revision_functions_get.py | 44 + .../container_apps_revision_functions_list.py | 44 + ...ps_source_to_cloud_app_create_or_update.py | 168 + .../generated_samples/container_apps_start.py | 9 +- .../generated_samples/container_apps_stop.py | 9 +- ...container_apps_tcp_app_create_or_update.py | 14 +- ...pr_component_resiliency_policies_delete.py | 43 + .../dapr_component_resiliency_policies_get.py | 44 + ...dapr_component_resiliency_policies_list.py | 44 + ...ncy_policy_create_or_update_all_options.py | 64 + ...y_policy_create_or_update_outbound_only.py | 56 + ..._policy_create_or_update_sparse_options.py | 56 + ...create_or_update_secret_store_component.py | 13 +- ...apr_components_create_or_update_secrets.py | 13 +- .../dapr_components_delete.py | 7 +- ...r_components_get_secret_store_component.py | 7 +- .../dapr_components_get_secrets.py | 7 +- .../generated_samples/dapr_components_list.py | 7 +- .../dapr_components_list_secrets.py | 7 +- ...ate_or_update_bulk_subscribe_and_scopes.py | 52 + ...riptions_create_or_update_default_route.py | 46 + ...eate_or_update_route_rules_and_metadata.py | 57 + .../dapr_subscriptions_delete.py | 42 + ...criptions_get_bulk_subscribe_and_scopes.py | 43 + .../dapr_subscriptions_get_default_route.py | 43 + ...scriptions_get_route_rules_and_metadata.py | 43 + .../dapr_subscriptions_list.py | 43 + .../dot_net_components_create_or_update.py | 49 + ...omponents_create_or_update_service_bind.py | 56 + .../dot_net_components_delete.py | 42 + .../dot_net_components_get.py | 43 + .../dot_net_components_get_service_bind.py | 43 + .../dot_net_components_list.py | 43 + .../dot_net_components_list_service_bind.py | 43 + .../dot_net_components_patch.py | 49 + .../dot_net_components_patch_service_bind.py | 56 + .../functions_extension_post.py | 44 + .../http_route_config_create_or_update.py | 7 +- ...config_create_or_update_path_sep_prefix.py | 7 +- ...tp_route_config_create_or_update_prefix.py | 7 +- .../http_route_config_delete.py | 7 +- .../http_route_config_get.py | 7 +- ...oute_config_list_by_managed_environment.py | 7 +- .../http_route_config_patch.py | 8 +- .../java_components_create_or_update.py | 7 +- ...omponents_create_or_update_service_bind.py | 6 +- .../java_components_delete.py | 7 +- .../generated_samples/java_components_get.py | 7 +- .../java_components_get_service_bind.py | 7 +- .../generated_samples/java_components_list.py | 7 +- .../java_components_list_service_bind.py | 7 +- .../java_components_patch.py | 7 +- .../java_components_patch_service_bind.py | 6 +- .../generated_samples/job_createor_update.py | 162 +- ...b_createor_update_connected_environment.py | 88 + .../job_createor_update_event_trigger.py | 150 +- .../generated_samples/job_delete.py | 9 +- .../generated_samples/job_execution_get.py | 9 +- .../generated_samples/job_executions_get.py | 9 +- .../generated_samples/job_get.py | 9 +- .../generated_samples/job_get_detector.py | 7 +- .../generated_samples/job_list_detectors.py | 7 +- .../generated_samples/job_list_secrets.py | 9 +- .../generated_samples/job_patch.py | 98 +- .../generated_samples/job_proxy_get.py | 9 +- .../generated_samples/job_start.py | 9 +- .../generated_samples/job_stop_execution.py | 9 +- .../generated_samples/job_stop_multiple.py | 9 +- .../jobs_list_by_resource_group.py | 7 +- .../jobs_list_by_subscription.py | 7 +- .../generated_samples/jobs_resume.py | 42 + .../generated_samples/jobs_suspend.py | 42 + .../generated_samples/label_history_delete.py | 42 + .../generated_samples/label_history_get.py | 43 + .../generated_samples/label_history_list.py | 43 + .../generated_samples/logic_apps_create.py | 8 +- .../generated_samples/logic_apps_delete.py | 7 +- ...c_apps_delete_deploy_workflow_artifacts.py | 42 + .../generated_samples/logic_apps_get.py | 7 +- .../logic_apps_get_workflow.py | 7 +- .../logic_apps_list_callback_url.py | 46 + .../logic_apps_list_connections.py | 7 +- .../logic_apps_list_workflows.py | 7 +- ...gic_apps_post_deploy_workflow_artifacts.py | 42 + .../managed_certificate_create_or_update.py | 7 +- .../managed_certificate_delete.py | 7 +- .../managed_certificate_get.py | 7 +- ...ertificates_list_by_managed_environment.py | 7 +- .../managed_certificates_patch.py | 7 +- .../managed_environment_diagnostics_get.py | 7 +- .../managed_environment_diagnostics_list.py | 7 +- ...tenance_configurations_create_or_update.py | 7 +- ...nment_maintenance_configurations_delete.py | 7 +- ...ironment_maintenance_configurations_get.py | 7 +- ...ronment_maintenance_configurations_list.py | 7 +- ...e_endpoint_connections_create_or_update.py | 7 +- ...ent_private_endpoint_connections_delete.py | 7 +- ...onment_private_endpoint_connections_get.py | 7 +- ...nment_private_endpoint_connections_list.py | 7 +- ...environment_private_link_resources_list.py | 7 +- .../managed_environment_usages_list.py | 7 +- .../managed_environments_create_or_update.py | 43 +- ...om_infrastructure_resource_group_create.py | 8 +- .../managed_environments_delete.py | 7 +- .../managed_environments_get.py | 9 +- .../managed_environments_get1.py | 42 + .../managed_environments_get_auth_token.py | 7 +- ...ged_environments_list_by_resource_group.py | 7 +- ...naged_environments_list_by_subscription.py | 7 +- ...vironments_list_workload_profile_states.py | 7 +- .../managed_environments_patch.py | 7 +- ..._environments_storages_create_or_update.py | 7 +- ...torages_create_or_update_nfs_azure_file.py | 7 +- .../managed_environments_storages_delete.py | 7 +- .../managed_environments_storages_get.py | 7 +- ...nvironments_storages_get_nfs_azure_file.py | 7 +- .../managed_environments_storages_list.py | 7 +- .../generated_samples/operations_list.py | 5 +- .../generated_samples/replicas_get.py | 7 +- .../generated_samples/replicas_list.py | 7 +- .../generated_samples/revisions_activate.py | 7 +- .../generated_samples/revisions_deactivate.py | 7 +- .../generated_samples/revisions_get.py | 7 +- .../generated_samples/revisions_get1.py | 43 + .../generated_samples/revisions_list.py | 7 +- .../generated_samples/revisions_list1.py | 43 + .../generated_samples/revisions_restart.py | 7 +- .../generated_samples/session_pools_delete.py | 7 +- ...sion_pools_fetch_mcp_server_credentials.py | 42 + .../generated_samples/session_pools_get.py | 7 +- .../session_pools_get_in_progress.py | 42 + ...ycle_on_container_exit_create_or_update.py | 6 +- ..._pools_lifecycle_timed_create_or_update.py | 8 +- .../session_pools_list_by_resource_group.py | 7 +- .../session_pools_list_by_subscription.py | 7 +- ...ssion_pools_mcp_server_create_or_update.py | 55 + .../generated_samples/session_pools_patch.py | 10 +- ...ion_pools_rotate_mcp_server_credentials.py | 42 + .../source_controls_create_or_update.py | 9 +- .../source_controls_delete.py | 7 +- .../generated_samples/source_controls_get.py | 7 +- .../source_controls_list_by_container.py | 7 +- ...tions_get_custom_domain_verification_id.py | 7 +- .../generated_samples/usages_list.py | 7 +- .../generated_tests/conftest.py | 2 +- .../test_container_apps_api.py | 19 +- ...iner_apps_api_app_resiliency_operations.py | 125 +- ...pps_api_app_resiliency_operations_async.py | 125 +- .../test_container_apps_api_async.py | 19 +- ..._available_workload_profiles_operations.py | 3 +- ...able_workload_profiles_operations_async.py | 3 +- ...iner_apps_api_billing_meters_operations.py | 3 +- ...pps_api_billing_meters_operations_async.py | 3 +- ...er_apps_api_build_auth_token_operations.py | 3 +- ...s_api_build_auth_token_operations_async.py | 3 +- ..._container_apps_api_builders_operations.py | 55 +- ...iner_apps_api_builders_operations_async.py | 55 +- ...i_builds_by_builder_resource_operations.py | 3 +- ...ds_by_builder_resource_operations_async.py | 3 +- ...st_container_apps_api_builds_operations.py | 45 +- ...tainer_apps_api_builds_operations_async.py | 45 +- ...tainer_apps_api_certificates_operations.py | 31 +- ..._apps_api_certificates_operations_async.py | 31 +- ...ed_environments_certificates_operations.py | 35 +- ...ironments_certificates_operations_async.py | 39 +- ...environments_dapr_components_operations.py | 54 +- ...nments_dapr_components_operations_async.py | 54 +- ...s_api_connected_environments_operations.py | 85 +- ...connected_environments_operations_async.py | 85 +- ...nected_environments_storages_operations.py | 36 +- ..._environments_storages_operations_async.py | 36 +- ..._container_apps_auth_configs_operations.py | 214 +- ...iner_apps_auth_configs_operations_async.py | 214 +- ...apps_builds_by_container_app_operations.py | 3 +- ...uilds_by_container_app_operations_async.py | 3 +- ...ps_api_container_apps_builds_operations.py | 4 +- ..._container_apps_builds_operations_async.py | 4 +- ...i_container_apps_diagnostics_operations.py | 39 +- ...ainer_apps_diagnostics_operations_async.py | 39 +- ...api_container_apps_functions_operations.py | 42 + ...ntainer_apps_functions_operations_async.py | 43 + ...container_apps_label_history_operations.py | 23 +- ...ner_apps_label_history_operations_async.py | 23 +- ...iner_apps_api_container_apps_operations.py | 716 +- ...pps_api_container_apps_operations_async.py | 738 +- ...s_api_container_apps_patches_operations.py | 29 +- ...container_apps_patches_operations_async.py | 29 +- ...iner_apps_revision_functions_operations.py | 44 + ...pps_revision_functions_operations_async.py | 45 + ...ainer_apps_revision_replicas_operations.py | 4 +- ...apps_revision_replicas_operations_async.py | 4 +- ...api_container_apps_revisions_operations.py | 21 +- ...ntainer_apps_revisions_operations_async.py | 21 +- ...container_apps_session_pools_operations.py | 330 +- ...ner_apps_session_pools_operations_async.py | 330 +- ...ntainer_apps_source_controls_operations.py | 72 +- ...r_apps_source_controls_operations_async.py | 76 +- ...omponent_resiliency_policies_operations.py | 60 +- ...nt_resiliency_policies_operations_async.py | 60 +- ...ner_apps_api_dapr_components_operations.py | 54 +- ...ps_api_dapr_components_operations_async.py | 54 +- ..._apps_api_dapr_subscriptions_operations.py | 44 +- ...api_dapr_subscriptions_operations_async.py | 44 +- ..._apps_api_dot_net_components_operations.py | 49 +- ...api_dot_net_components_operations_async.py | 49 +- ...apps_api_functions_extension_operations.py | 3 +- ...pi_functions_extension_operations_async.py | 3 +- ...r_apps_api_http_route_config_operations.py | 9 +- ..._api_http_route_config_operations_async.py | 9 +- ...ner_apps_api_java_components_operations.py | 29 +- ...ps_api_java_components_operations_async.py | 29 +- ...ner_apps_api_jobs_executions_operations.py | 3 +- ...ps_api_jobs_executions_operations_async.py | 3 +- ...test_container_apps_api_jobs_operations.py | 369 +- ...ontainer_apps_api_jobs_operations_async.py | 383 +- ...ontainer_apps_api_logic_apps_operations.py | 60 +- ...er_apps_api_logic_apps_operations_async.py | 60 +- ...i_maintenance_configurations_operations.py | 22 +- ...tenance_configurations_operations_async.py | 22 +- ...pps_api_managed_certificates_operations.py | 17 +- ...i_managed_certificates_operations_async.py | 17 +- ...aged_environment_diagnostics_operations.py | 4 +- ...nvironment_diagnostics_operations_async.py | 4 +- ...private_endpoint_connections_operations.py | 42 +- ...e_endpoint_connections_operations_async.py | 44 +- ...nment_private_link_resources_operations.py | 3 +- ...private_link_resources_operations_async.py | 3 +- ...i_managed_environment_usages_operations.py | 3 +- ...ged_environment_usages_operations_async.py | 3 +- ...ged_environments_diagnostics_operations.py | 3 +- ...vironments_diagnostics_operations_async.py | 3 +- ...pps_api_managed_environments_operations.py | 401 +- ...i_managed_environments_operations_async.py | 405 +- ...anaged_environments_storages_operations.py | 28 +- ..._environments_storages_operations_async.py | 28 +- ...ontainer_apps_api_namespaces_operations.py | 3 +- ...er_apps_api_namespaces_operations_async.py | 3 +- .../test_container_apps_api_operations.py | 6 +- ...est_container_apps_api_operations_async.py | 6 +- ...st_container_apps_api_usages_operations.py | 3 +- ...tainer_apps_api_usages_operations_async.py | 3 +- .../azure-mgmt-appcontainers/pyproject.toml | 4 +- .../tsp-location.yaml | 4 + 415 files changed, 176609 insertions(+), 52883 deletions(-) rename sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/{_container_apps_api_client.py => _client.py} (70%) create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_utils/model_base.py rename sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/{_container_apps_api_client.py => _client.py} (71%) delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_available_workload_profiles_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_billing_meters_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_certificates_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_connected_environments_certificates_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_connected_environments_dapr_components_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_connected_environments_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_connected_environments_storages_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_api_client_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_auth_configs_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_diagnostics_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_revision_replicas_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_revisions_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_session_pools_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_source_controls_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_dapr_components_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_http_route_config_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_java_components_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_jobs_executions_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_jobs_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_logic_apps_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_maintenance_configurations_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_certificates_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environment_diagnostics_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environment_private_endpoint_connections_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environment_private_link_resources_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environment_usages_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environments_diagnostics_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environments_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environments_storages_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_namespaces_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_usages_operations.py rename sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/{_container_apps_api_client_enums.py => _enums.py} (55%) create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_models.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_models_py3.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_available_workload_profiles_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_billing_meters_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_certificates_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_connected_environments_certificates_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_connected_environments_dapr_components_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_connected_environments_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_connected_environments_storages_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_api_client_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_auth_configs_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_diagnostics_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_revision_replicas_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_revisions_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_session_pools_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_source_controls_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_dapr_components_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_http_route_config_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_java_components_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_jobs_executions_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_jobs_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_logic_apps_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_maintenance_configurations_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_certificates_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environment_diagnostics_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environment_private_endpoint_connections_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environment_private_link_resources_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environment_usages_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environments_diagnostics_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environments_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environments_storages_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_namespaces_operations.py delete mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_usages_operations.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/code_report_typespec.json create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/app_resiliency_create_or_update.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/app_resiliency_delete.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/app_resiliency_get.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/app_resiliency_list.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/app_resiliency_patch.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_blob_storage_token_store_client_id_create_or_update.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_blob_storage_token_store_create_or_update.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builders_create_or_update.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builders_delete.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builders_get.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builders_list_by_resource_group.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builders_list_by_subscription.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builders_update.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builds_create_or_update.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builds_create_or_update_no_config.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builds_delete.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builds_get.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builds_list_auth_token.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builds_list_by_builder_resource.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_builds_delete.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_builds_get.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_builds_list_by_container_app.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_create_or_update_connected_environment.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_functions_get.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_functions_list.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_get1.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_patches_apply.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_patches_delete.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_patches_get.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_patches_list_by_container_app.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_patches_skip_configure.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_revision_functions_get.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_revision_functions_list.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_source_to_cloud_app_create_or_update.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_component_resiliency_policies_delete.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_component_resiliency_policies_get.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_component_resiliency_policies_list.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_component_resiliency_policy_create_or_update_all_options.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_component_resiliency_policy_create_or_update_outbound_only.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_component_resiliency_policy_create_or_update_sparse_options.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_create_or_update_bulk_subscribe_and_scopes.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_create_or_update_default_route.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_create_or_update_route_rules_and_metadata.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_delete.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_get_bulk_subscribe_and_scopes.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_get_default_route.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_get_route_rules_and_metadata.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_list.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_create_or_update.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_create_or_update_service_bind.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_delete.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_get.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_get_service_bind.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_list.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_list_service_bind.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_patch.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_patch_service_bind.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/functions_extension_post.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_createor_update_connected_environment.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/jobs_resume.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/jobs_suspend.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/label_history_delete.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/label_history_get.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/label_history_list.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_delete_deploy_workflow_artifacts.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_list_callback_url.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_post_deploy_workflow_artifacts.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_get1.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_get1.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_list1.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_fetch_mcp_server_credentials.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_get_in_progress.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_mcp_server_create_or_update.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_rotate_mcp_server_credentials.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_functions_operations.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_functions_operations_async.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revision_functions_operations.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revision_functions_operations_async.py create mode 100644 sdk/appcontainers/azure-mgmt-appcontainers/tsp-location.yaml diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/CHANGELOG.md b/sdk/appcontainers/azure-mgmt-appcontainers/CHANGELOG.md index e44f8041121a..d50a40621e5d 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/CHANGELOG.md +++ b/sdk/appcontainers/azure-mgmt-appcontainers/CHANGELOG.md @@ -1,5 +1,9 @@ # Release History +## 4.1.0b1 (2026-04-08) + +skip changelog generation + ## 4.1.0 (2026-04-08) skip changelog generation diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/_metadata.json b/sdk/appcontainers/azure-mgmt-appcontainers/_metadata.json index 31162b19277f..fa8e8f15c104 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/_metadata.json +++ b/sdk/appcontainers/azure-mgmt-appcontainers/_metadata.json @@ -1,11 +1,10 @@ { - "commit": "23faa02bb223549c97da5f4c1c4aa2e02d49c419", + "apiVersion": "2025-10-02-preview", + "apiVersions": { + "Microsoft.App": "2025-10-02-preview" + }, + "commit": "8adb6c33d91b2c9d401dd9a062a37dc5054884e8", "repository_url": "https://github.com/Azure/azure-rest-api-specs", - "autorest": "3.10.2", - "use": [ - "@autorest/python@6.50.0", - "@autorest/modelerfour@4.27.0" - ], - "autorest_command": "autorest specification/app/resource-manager/Microsoft.App/ContainerApps/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --package-mode=azure-mgmt --python --python-sdks-folder=/home/v-chenjiang/spec/worktrees/sdk-azure-mgmt-appcontainers/sdk --use=@autorest/python@6.50.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False", - "readme": "specification/app/resource-manager/Microsoft.App/ContainerApps/readme.md" + "typespec_src": "specification/app/resource-manager/Microsoft.App/ContainerApps", + "emitterVersion": "0.61.2" } \ No newline at end of file diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/apiview-properties.json b/sdk/appcontainers/azure-mgmt-appcontainers/apiview-properties.json index 201bce02636b..e2050e716519 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/apiview-properties.json +++ b/sdk/appcontainers/azure-mgmt-appcontainers/apiview-properties.json @@ -1,575 +1,782 @@ { - "CrossLanguagePackageId": null, + "CrossLanguagePackageId": "Microsoft.App", "CrossLanguageDefinitionId": { - "azure.mgmt.appcontainers.models.AllowedAudiencesValidation": null, - "azure.mgmt.appcontainers.models.AllowedPrincipals": null, - "azure.mgmt.appcontainers.models.Apple": null, - "azure.mgmt.appcontainers.models.AppleRegistration": null, - "azure.mgmt.appcontainers.models.AppLogsConfiguration": null, - "azure.mgmt.appcontainers.models.AppRegistration": null, - "azure.mgmt.appcontainers.models.Resource": null, - "azure.mgmt.appcontainers.models.ProxyResource": null, - "azure.mgmt.appcontainers.models.AuthConfig": null, - "azure.mgmt.appcontainers.models.AuthConfigCollection": null, - "azure.mgmt.appcontainers.models.AuthPlatform": null, - "azure.mgmt.appcontainers.models.AvailableOperations": null, - "azure.mgmt.appcontainers.models.AvailableWorkloadProfile": null, - "azure.mgmt.appcontainers.models.AvailableWorkloadProfileProperties": null, - "azure.mgmt.appcontainers.models.AvailableWorkloadProfilesCollection": null, - "azure.mgmt.appcontainers.models.AzureActiveDirectory": null, - "azure.mgmt.appcontainers.models.AzureActiveDirectoryLogin": null, - "azure.mgmt.appcontainers.models.AzureActiveDirectoryRegistration": null, - "azure.mgmt.appcontainers.models.AzureActiveDirectoryValidation": null, - "azure.mgmt.appcontainers.models.AzureCredentials": null, - "azure.mgmt.appcontainers.models.AzureFileProperties": null, - "azure.mgmt.appcontainers.models.AzureStaticWebApps": null, - "azure.mgmt.appcontainers.models.AzureStaticWebAppsRegistration": null, - "azure.mgmt.appcontainers.models.BaseContainer": null, - "azure.mgmt.appcontainers.models.BillingMeter": null, - "azure.mgmt.appcontainers.models.BillingMeterCollection": null, - "azure.mgmt.appcontainers.models.BillingMeterProperties": null, - "azure.mgmt.appcontainers.models.BlobStorageTokenStore": null, - "azure.mgmt.appcontainers.models.TrackedResource": null, - "azure.mgmt.appcontainers.models.Certificate": null, - "azure.mgmt.appcontainers.models.CertificateCollection": null, - "azure.mgmt.appcontainers.models.CertificateKeyVaultProperties": null, - "azure.mgmt.appcontainers.models.CertificatePatch": null, - "azure.mgmt.appcontainers.models.CertificateProperties": null, - "azure.mgmt.appcontainers.models.CheckNameAvailabilityRequest": null, - "azure.mgmt.appcontainers.models.CheckNameAvailabilityResponse": null, - "azure.mgmt.appcontainers.models.ClientRegistration": null, - "azure.mgmt.appcontainers.models.Configuration": null, - "azure.mgmt.appcontainers.models.ConnectedEnvironment": null, - "azure.mgmt.appcontainers.models.ConnectedEnvironmentCollection": null, - "azure.mgmt.appcontainers.models.ResourceTags": null, - "azure.mgmt.appcontainers.models.ConnectedEnvironmentPatchResource": null, - "azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage": null, - "azure.mgmt.appcontainers.models.ConnectedEnvironmentStorageProperties": null, - "azure.mgmt.appcontainers.models.ConnectedEnvironmentStoragesCollection": null, - "azure.mgmt.appcontainers.models.Container": null, - "azure.mgmt.appcontainers.models.ContainerApp": null, - "azure.mgmt.appcontainers.models.ContainerAppAuthToken": null, - "azure.mgmt.appcontainers.models.ContainerAppCollection": null, - "azure.mgmt.appcontainers.models.ContainerAppJobExecutions": null, - "azure.mgmt.appcontainers.models.ContainerAppProbe": null, - "azure.mgmt.appcontainers.models.ContainerAppProbeHttpGet": null, - "azure.mgmt.appcontainers.models.ContainerAppProbeHttpGetHttpHeadersItem": null, - "azure.mgmt.appcontainers.models.ContainerAppProbeTcpSocket": null, - "azure.mgmt.appcontainers.models.ContainerAppSecret": null, - "azure.mgmt.appcontainers.models.ContainerResources": null, - "azure.mgmt.appcontainers.models.CookieExpiration": null, - "azure.mgmt.appcontainers.models.CorsPolicy": null, - "azure.mgmt.appcontainers.models.CustomContainerTemplate": null, - "azure.mgmt.appcontainers.models.CustomDomain": null, - "azure.mgmt.appcontainers.models.CustomDomainConfiguration": null, - "azure.mgmt.appcontainers.models.CustomHostnameAnalysisResult": null, - "azure.mgmt.appcontainers.models.CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo": null, - "azure.mgmt.appcontainers.models.CustomHostnameAnalysisResultCustomDomainVerificationFailureInfoDetailsItem": null, - "azure.mgmt.appcontainers.models.CustomOpenIdConnectProvider": null, - "azure.mgmt.appcontainers.models.CustomScaleRule": null, - "azure.mgmt.appcontainers.models.Dapr": null, - "azure.mgmt.appcontainers.models.DaprAppHealth": null, - "azure.mgmt.appcontainers.models.DaprComponent": null, - "azure.mgmt.appcontainers.models.DaprComponentsCollection": null, - "azure.mgmt.appcontainers.models.DaprConfiguration": null, - "azure.mgmt.appcontainers.models.DaprMetadata": null, - "azure.mgmt.appcontainers.models.DaprSecret": null, - "azure.mgmt.appcontainers.models.DaprSecretsCollection": null, - "azure.mgmt.appcontainers.models.DefaultAuthorizationPolicy": null, - "azure.mgmt.appcontainers.models.DefaultErrorResponse": null, - "azure.mgmt.appcontainers.models.DefaultErrorResponseError": null, - "azure.mgmt.appcontainers.models.DefaultErrorResponseErrorDetailsItem": null, - "azure.mgmt.appcontainers.models.DiagnosticDataProviderMetadata": null, - "azure.mgmt.appcontainers.models.DiagnosticDataProviderMetadataPropertyBagItem": null, - "azure.mgmt.appcontainers.models.DiagnosticDataTableResponseColumn": null, - "azure.mgmt.appcontainers.models.DiagnosticDataTableResponseObject": null, - "azure.mgmt.appcontainers.models.DiagnosticRendering": null, - "azure.mgmt.appcontainers.models.Diagnostics": null, - "azure.mgmt.appcontainers.models.DiagnosticsCollection": null, - "azure.mgmt.appcontainers.models.DiagnosticsDataApiResponse": null, - "azure.mgmt.appcontainers.models.DiagnosticsDefinition": null, - "azure.mgmt.appcontainers.models.DiagnosticsProperties": null, - "azure.mgmt.appcontainers.models.DiagnosticsStatus": null, - "azure.mgmt.appcontainers.models.DiagnosticSupportTopic": null, - "azure.mgmt.appcontainers.models.DynamicPoolConfiguration": null, - "azure.mgmt.appcontainers.models.EncryptionSettings": null, - "azure.mgmt.appcontainers.models.EnvironmentAuthToken": null, - "azure.mgmt.appcontainers.models.EnvironmentVar": null, - "azure.mgmt.appcontainers.models.ErrorAdditionalInfo": null, - "azure.mgmt.appcontainers.models.ErrorDetail": null, - "azure.mgmt.appcontainers.models.ErrorEntity": null, - "azure.mgmt.appcontainers.models.ErrorResponse": null, - "azure.mgmt.appcontainers.models.ExtendedLocation": null, - "azure.mgmt.appcontainers.models.Facebook": null, - "azure.mgmt.appcontainers.models.ForwardProxy": null, - "azure.mgmt.appcontainers.models.GitHub": null, - "azure.mgmt.appcontainers.models.GithubActionConfiguration": null, - "azure.mgmt.appcontainers.models.GlobalValidation": null, - "azure.mgmt.appcontainers.models.Google": null, - "azure.mgmt.appcontainers.models.HttpRoute": null, - "azure.mgmt.appcontainers.models.HttpRouteAction": null, - "azure.mgmt.appcontainers.models.HttpRouteConfig": null, - "azure.mgmt.appcontainers.models.HttpRouteConfigCollection": null, - "azure.mgmt.appcontainers.models.HttpRouteConfigProperties": null, - "azure.mgmt.appcontainers.models.HttpRouteMatch": null, - "azure.mgmt.appcontainers.models.HttpRouteProvisioningErrors": null, - "azure.mgmt.appcontainers.models.HttpRouteRule": null, - "azure.mgmt.appcontainers.models.HttpRouteTarget": null, - "azure.mgmt.appcontainers.models.HttpScaleRule": null, - "azure.mgmt.appcontainers.models.HttpSettings": null, - "azure.mgmt.appcontainers.models.HttpSettingsRoutes": null, - "azure.mgmt.appcontainers.models.IdentityProviders": null, - "azure.mgmt.appcontainers.models.IdentitySettings": null, - "azure.mgmt.appcontainers.models.Ingress": null, - "azure.mgmt.appcontainers.models.IngressConfiguration": null, - "azure.mgmt.appcontainers.models.IngressPortMapping": null, - "azure.mgmt.appcontainers.models.IngressStickySessions": null, - "azure.mgmt.appcontainers.models.InitContainer": null, - "azure.mgmt.appcontainers.models.IpSecurityRestrictionRule": null, - "azure.mgmt.appcontainers.models.JavaComponent": null, - "azure.mgmt.appcontainers.models.JavaComponentConfigurationProperty": null, - "azure.mgmt.appcontainers.models.JavaComponentIngress": null, - "azure.mgmt.appcontainers.models.JavaComponentProperties": null, - "azure.mgmt.appcontainers.models.JavaComponentPropertiesScale": null, - "azure.mgmt.appcontainers.models.JavaComponentsCollection": null, - "azure.mgmt.appcontainers.models.JavaComponentServiceBind": null, - "azure.mgmt.appcontainers.models.Job": null, - "azure.mgmt.appcontainers.models.JobConfiguration": null, - "azure.mgmt.appcontainers.models.JobConfigurationEventTriggerConfig": null, - "azure.mgmt.appcontainers.models.JobConfigurationManualTriggerConfig": null, - "azure.mgmt.appcontainers.models.JobConfigurationScheduleTriggerConfig": null, - "azure.mgmt.appcontainers.models.JobExecution": null, - "azure.mgmt.appcontainers.models.JobExecutionBase": null, - "azure.mgmt.appcontainers.models.JobExecutionContainer": null, - "azure.mgmt.appcontainers.models.JobExecutionNamesCollection": null, - "azure.mgmt.appcontainers.models.JobExecutionTemplate": null, - "azure.mgmt.appcontainers.models.JobPatchProperties": null, - "azure.mgmt.appcontainers.models.JobPatchPropertiesProperties": null, - "azure.mgmt.appcontainers.models.JobScale": null, - "azure.mgmt.appcontainers.models.JobScaleRule": null, - "azure.mgmt.appcontainers.models.JobsCollection": null, - "azure.mgmt.appcontainers.models.JobSecretsCollection": null, - "azure.mgmt.appcontainers.models.JobTemplate": null, - "azure.mgmt.appcontainers.models.JwtClaimChecks": null, - "azure.mgmt.appcontainers.models.KedaConfiguration": null, - "azure.mgmt.appcontainers.models.LifecycleConfiguration": null, - "azure.mgmt.appcontainers.models.ListUsagesResult": null, - "azure.mgmt.appcontainers.models.LogAnalyticsConfiguration": null, - "azure.mgmt.appcontainers.models.LogicApp": null, - "azure.mgmt.appcontainers.models.Login": null, - "azure.mgmt.appcontainers.models.LoginRoutes": null, - "azure.mgmt.appcontainers.models.LoginScopes": null, - "azure.mgmt.appcontainers.models.MaintenanceConfigurationCollection": null, - "azure.mgmt.appcontainers.models.MaintenanceConfigurationResource": null, - "azure.mgmt.appcontainers.models.ManagedCertificate": null, - "azure.mgmt.appcontainers.models.ManagedCertificateCollection": null, - "azure.mgmt.appcontainers.models.ManagedCertificatePatch": null, - "azure.mgmt.appcontainers.models.ManagedCertificateProperties": null, - "azure.mgmt.appcontainers.models.ManagedEnvironment": null, - "azure.mgmt.appcontainers.models.ManagedEnvironmentPropertiesPeerAuthentication": null, - "azure.mgmt.appcontainers.models.ManagedEnvironmentPropertiesPeerTrafficConfiguration": null, - "azure.mgmt.appcontainers.models.ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryption": null, - "azure.mgmt.appcontainers.models.ManagedEnvironmentsCollection": null, - "azure.mgmt.appcontainers.models.ManagedEnvironmentStorage": null, - "azure.mgmt.appcontainers.models.ManagedEnvironmentStorageProperties": null, - "azure.mgmt.appcontainers.models.ManagedEnvironmentStoragesCollection": null, - "azure.mgmt.appcontainers.models.ManagedIdentitySetting": null, - "azure.mgmt.appcontainers.models.ManagedServiceIdentity": null, - "azure.mgmt.appcontainers.models.Mtls": null, - "azure.mgmt.appcontainers.models.NfsAzureFileProperties": null, - "azure.mgmt.appcontainers.models.Nonce": null, - "azure.mgmt.appcontainers.models.OpenIdConnectClientCredential": null, - "azure.mgmt.appcontainers.models.OpenIdConnectConfig": null, - "azure.mgmt.appcontainers.models.OpenIdConnectLogin": null, - "azure.mgmt.appcontainers.models.OpenIdConnectRegistration": null, - "azure.mgmt.appcontainers.models.OperationDetail": null, - "azure.mgmt.appcontainers.models.OperationDisplay": null, - "azure.mgmt.appcontainers.models.PrivateEndpoint": null, - "azure.mgmt.appcontainers.models.PrivateEndpointConnection": null, - "azure.mgmt.appcontainers.models.PrivateEndpointConnectionListResult": null, - "azure.mgmt.appcontainers.models.PrivateLinkResource": null, - "azure.mgmt.appcontainers.models.PrivateLinkResourceListResult": null, - "azure.mgmt.appcontainers.models.PrivateLinkServiceConnectionState": null, - "azure.mgmt.appcontainers.models.QueueScaleRule": null, - "azure.mgmt.appcontainers.models.RegistryCredentials": null, - "azure.mgmt.appcontainers.models.RegistryInfo": null, - "azure.mgmt.appcontainers.models.Replica": null, - "azure.mgmt.appcontainers.models.ReplicaCollection": null, - "azure.mgmt.appcontainers.models.ReplicaContainer": null, - "azure.mgmt.appcontainers.models.Revision": null, - "azure.mgmt.appcontainers.models.RevisionCollection": null, - "azure.mgmt.appcontainers.models.Runtime": null, - "azure.mgmt.appcontainers.models.RuntimeJava": null, - "azure.mgmt.appcontainers.models.Scale": null, - "azure.mgmt.appcontainers.models.ScaleConfiguration": null, - "azure.mgmt.appcontainers.models.ScaleRule": null, - "azure.mgmt.appcontainers.models.ScaleRuleAuth": null, - "azure.mgmt.appcontainers.models.ScheduledEntry": null, - "azure.mgmt.appcontainers.models.Secret": null, - "azure.mgmt.appcontainers.models.SecretKeyVaultProperties": null, - "azure.mgmt.appcontainers.models.SecretsCollection": null, - "azure.mgmt.appcontainers.models.SecretVolumeItem": null, - "azure.mgmt.appcontainers.models.Service": null, - "azure.mgmt.appcontainers.models.ServiceBind": null, - "azure.mgmt.appcontainers.models.SessionContainer": null, - "azure.mgmt.appcontainers.models.SessionContainerResources": null, - "azure.mgmt.appcontainers.models.SessionIngress": null, - "azure.mgmt.appcontainers.models.SessionNetworkConfiguration": null, - "azure.mgmt.appcontainers.models.SessionPool": null, - "azure.mgmt.appcontainers.models.SessionPoolCollection": null, - "azure.mgmt.appcontainers.models.SessionPoolSecret": null, - "azure.mgmt.appcontainers.models.SessionPoolUpdatableProperties": null, - "azure.mgmt.appcontainers.models.SessionRegistryCredentials": null, - "azure.mgmt.appcontainers.models.SourceControl": null, - "azure.mgmt.appcontainers.models.SourceControlCollection": null, - "azure.mgmt.appcontainers.models.SpringBootAdminComponent": null, - "azure.mgmt.appcontainers.models.SpringCloudConfigComponent": null, - "azure.mgmt.appcontainers.models.SpringCloudEurekaComponent": null, - "azure.mgmt.appcontainers.models.SystemData": null, - "azure.mgmt.appcontainers.models.TcpScaleRule": null, - "azure.mgmt.appcontainers.models.Template": null, - "azure.mgmt.appcontainers.models.TokenStore": null, - "azure.mgmt.appcontainers.models.TrafficWeight": null, - "azure.mgmt.appcontainers.models.Twitter": null, - "azure.mgmt.appcontainers.models.TwitterRegistration": null, - "azure.mgmt.appcontainers.models.Usage": null, - "azure.mgmt.appcontainers.models.UsageName": null, - "azure.mgmt.appcontainers.models.UserAssignedIdentity": null, - "azure.mgmt.appcontainers.models.VnetConfiguration": null, - "azure.mgmt.appcontainers.models.Volume": null, - "azure.mgmt.appcontainers.models.VolumeMount": null, - "azure.mgmt.appcontainers.models.WorkflowEnvelope": null, - "azure.mgmt.appcontainers.models.WorkflowEnvelopeCollection": null, - "azure.mgmt.appcontainers.models.WorkflowEnvelopeProperties": null, - "azure.mgmt.appcontainers.models.WorkflowHealth": null, - "azure.mgmt.appcontainers.models.WorkloadProfile": null, - "azure.mgmt.appcontainers.models.WorkloadProfileStates": null, - "azure.mgmt.appcontainers.models.WorkloadProfileStatesCollection": null, - "azure.mgmt.appcontainers.models.WorkloadProfileStatesProperties": null, - "azure.mgmt.appcontainers.models.CreatedByType": null, - "azure.mgmt.appcontainers.models.UnauthenticatedClientActionV2": null, - "azure.mgmt.appcontainers.models.CookieExpirationConvention": null, - "azure.mgmt.appcontainers.models.ForwardProxyConvention": null, - "azure.mgmt.appcontainers.models.Applicability": null, - "azure.mgmt.appcontainers.models.ExtendedLocationTypes": null, - "azure.mgmt.appcontainers.models.ConnectedEnvironmentProvisioningState": null, - "azure.mgmt.appcontainers.models.CertificateProvisioningState": null, - "azure.mgmt.appcontainers.models.DaprComponentProvisioningState": null, - "azure.mgmt.appcontainers.models.AccessMode": null, - "azure.mgmt.appcontainers.models.ConnectedEnvironmentStorageProvisioningState": null, - "azure.mgmt.appcontainers.models.BindingType": null, - "azure.mgmt.appcontainers.models.Action": null, - "azure.mgmt.appcontainers.models.IdentitySettingsLifeCycle": null, - "azure.mgmt.appcontainers.models.Scheme": null, - "azure.mgmt.appcontainers.models.Type": null, - "azure.mgmt.appcontainers.models.StorageType": null, - "azure.mgmt.appcontainers.models.ManagedServiceIdentityType": null, - "azure.mgmt.appcontainers.models.Kind": null, - "azure.mgmt.appcontainers.models.ContainerAppProvisioningState": null, - "azure.mgmt.appcontainers.models.ContainerAppRunningStatus": null, - "azure.mgmt.appcontainers.models.ActiveRevisionsMode": null, - "azure.mgmt.appcontainers.models.IngressTransportMethod": null, - "azure.mgmt.appcontainers.models.Affinity": null, - "azure.mgmt.appcontainers.models.IngressClientCertificateMode": null, - "azure.mgmt.appcontainers.models.AppProtocol": null, - "azure.mgmt.appcontainers.models.LogLevel": null, - "azure.mgmt.appcontainers.models.RevisionHealthState": null, - "azure.mgmt.appcontainers.models.RevisionProvisioningState": null, - "azure.mgmt.appcontainers.models.RevisionRunningState": null, - "azure.mgmt.appcontainers.models.ContainerAppContainerRunningState": null, - "azure.mgmt.appcontainers.models.ContainerAppReplicaRunningState": null, - "azure.mgmt.appcontainers.models.PrivateEndpointServiceConnectionStatus": null, - "azure.mgmt.appcontainers.models.PrivateEndpointConnectionProvisioningState": null, - "azure.mgmt.appcontainers.models.JavaComponentType": null, - "azure.mgmt.appcontainers.models.JavaComponentProvisioningState": null, - "azure.mgmt.appcontainers.models.JobProvisioningState": null, - "azure.mgmt.appcontainers.models.TriggerType": null, - "azure.mgmt.appcontainers.models.JobExecutionRunningState": null, - "azure.mgmt.appcontainers.models.EnvironmentProvisioningState": null, - "azure.mgmt.appcontainers.models.PublicNetworkAccess": null, - "azure.mgmt.appcontainers.models.ManagedCertificateDomainControlValidation": null, - "azure.mgmt.appcontainers.models.HttpRouteProvisioningState": null, - "azure.mgmt.appcontainers.models.WeekDay": null, - "azure.mgmt.appcontainers.models.ContainerType": null, - "azure.mgmt.appcontainers.models.PoolManagementType": null, - "azure.mgmt.appcontainers.models.LifecycleType": null, - "azure.mgmt.appcontainers.models.SessionNetworkStatus": null, - "azure.mgmt.appcontainers.models.SessionPoolProvisioningState": null, - "azure.mgmt.appcontainers.models.SourceControlOperationState": null, - "azure.mgmt.appcontainers.models.WorkflowKind": null, - "azure.mgmt.appcontainers.models.WorkflowState": null, - "azure.mgmt.appcontainers.models.WorkflowHealthState": null, - "azure.mgmt.appcontainers.models.CheckNameAvailabilityReason": null, - "azure.mgmt.appcontainers.models.DnsVerificationTestResult": null, - "azure.mgmt.appcontainers.operations.ContainerAppsAuthConfigsOperations.list_by_container_app": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsAuthConfigsOperations.list_by_container_app": null, - "azure.mgmt.appcontainers.operations.ContainerAppsAuthConfigsOperations.get": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsAuthConfigsOperations.get": null, - "azure.mgmt.appcontainers.operations.ContainerAppsAuthConfigsOperations.create_or_update": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsAuthConfigsOperations.create_or_update": null, - "azure.mgmt.appcontainers.operations.ContainerAppsAuthConfigsOperations.delete": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsAuthConfigsOperations.delete": null, - "azure.mgmt.appcontainers.operations.AvailableWorkloadProfilesOperations.get": null, - "azure.mgmt.appcontainers.aio.operations.AvailableWorkloadProfilesOperations.get": null, - "azure.mgmt.appcontainers.operations.BillingMetersOperations.get": null, - "azure.mgmt.appcontainers.aio.operations.BillingMetersOperations.get": null, - "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsOperations.list_by_subscription": null, - "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsOperations.list_by_subscription": null, - "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsOperations.list_by_resource_group": null, - "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsOperations.list_by_resource_group": null, - "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsOperations.get": null, - "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsOperations.get": null, - "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsOperations.begin_create_or_update": null, - "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsOperations.begin_create_or_update": null, - "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsOperations.begin_delete": null, - "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsOperations.begin_delete": null, - "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsOperations.update": null, - "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsOperations.update": null, - "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsOperations.check_name_availability": null, - "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsOperations.check_name_availability": null, - "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsCertificatesOperations.list": null, - "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsCertificatesOperations.list": null, - "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsCertificatesOperations.get": null, - "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsCertificatesOperations.get": null, - "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsCertificatesOperations.begin_create_or_update": null, - "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsCertificatesOperations.begin_create_or_update": null, - "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsCertificatesOperations.begin_delete": null, - "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsCertificatesOperations.begin_delete": null, - "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsCertificatesOperations.begin_update": null, - "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsCertificatesOperations.begin_update": null, - "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsDaprComponentsOperations.list": null, - "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsDaprComponentsOperations.list": null, - "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsDaprComponentsOperations.get": null, - "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsDaprComponentsOperations.get": null, - "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsDaprComponentsOperations.begin_create_or_update": null, - "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsDaprComponentsOperations.begin_create_or_update": null, - "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsDaprComponentsOperations.begin_delete": null, - "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsDaprComponentsOperations.begin_delete": null, - "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsDaprComponentsOperations.list_secrets": null, - "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsDaprComponentsOperations.list_secrets": null, - "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsStoragesOperations.list": null, - "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsStoragesOperations.list": null, - "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsStoragesOperations.get": null, - "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsStoragesOperations.get": null, - "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsStoragesOperations.begin_create_or_update": null, - "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsStoragesOperations.begin_create_or_update": null, - "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsStoragesOperations.begin_delete": null, - "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsStoragesOperations.begin_delete": null, - "azure.mgmt.appcontainers.operations.ContainerAppsOperations.list_by_subscription": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsOperations.list_by_subscription": null, - "azure.mgmt.appcontainers.operations.ContainerAppsOperations.list_by_resource_group": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsOperations.list_by_resource_group": null, - "azure.mgmt.appcontainers.operations.ContainerAppsOperations.get": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsOperations.get": null, - "azure.mgmt.appcontainers.operations.ContainerAppsOperations.begin_create_or_update": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsOperations.begin_create_or_update": null, - "azure.mgmt.appcontainers.operations.ContainerAppsOperations.begin_delete": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsOperations.begin_delete": null, - "azure.mgmt.appcontainers.operations.ContainerAppsOperations.begin_update": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsOperations.begin_update": null, - "azure.mgmt.appcontainers.operations.ContainerAppsOperations.list_custom_host_name_analysis": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsOperations.list_custom_host_name_analysis": null, - "azure.mgmt.appcontainers.operations.ContainerAppsOperations.list_secrets": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsOperations.list_secrets": null, - "azure.mgmt.appcontainers.operations.ContainerAppsOperations.get_auth_token": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsOperations.get_auth_token": null, - "azure.mgmt.appcontainers.operations.ContainerAppsOperations.begin_start": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsOperations.begin_start": null, - "azure.mgmt.appcontainers.operations.ContainerAppsOperations.begin_stop": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsOperations.begin_stop": null, - "azure.mgmt.appcontainers.operations.ContainerAppsRevisionsOperations.list_revisions": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsRevisionsOperations.list_revisions": null, - "azure.mgmt.appcontainers.operations.ContainerAppsRevisionsOperations.get_revision": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsRevisionsOperations.get_revision": null, - "azure.mgmt.appcontainers.operations.ContainerAppsRevisionsOperations.activate_revision": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsRevisionsOperations.activate_revision": null, - "azure.mgmt.appcontainers.operations.ContainerAppsRevisionsOperations.deactivate_revision": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsRevisionsOperations.deactivate_revision": null, - "azure.mgmt.appcontainers.operations.ContainerAppsRevisionsOperations.restart_revision": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsRevisionsOperations.restart_revision": null, - "azure.mgmt.appcontainers.operations.ContainerAppsRevisionReplicasOperations.get_replica": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsRevisionReplicasOperations.get_replica": null, - "azure.mgmt.appcontainers.operations.ContainerAppsRevisionReplicasOperations.list_replicas": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsRevisionReplicasOperations.list_replicas": null, - "azure.mgmt.appcontainers.operations.ContainerAppsDiagnosticsOperations.list_detectors": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsDiagnosticsOperations.list_detectors": null, - "azure.mgmt.appcontainers.operations.ContainerAppsDiagnosticsOperations.get_detector": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsDiagnosticsOperations.get_detector": null, - "azure.mgmt.appcontainers.operations.ContainerAppsDiagnosticsOperations.list_revisions": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsDiagnosticsOperations.list_revisions": null, - "azure.mgmt.appcontainers.operations.ContainerAppsDiagnosticsOperations.get_revision": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsDiagnosticsOperations.get_revision": null, - "azure.mgmt.appcontainers.operations.ContainerAppsDiagnosticsOperations.get_root": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsDiagnosticsOperations.get_root": null, - "azure.mgmt.appcontainers.operations.ManagedEnvironmentDiagnosticsOperations.list_detectors": null, - "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentDiagnosticsOperations.list_detectors": null, - "azure.mgmt.appcontainers.operations.ManagedEnvironmentDiagnosticsOperations.get_detector": null, - "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentDiagnosticsOperations.get_detector": null, - "azure.mgmt.appcontainers.operations.ManagedEnvironmentsDiagnosticsOperations.get_root": null, - "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsDiagnosticsOperations.get_root": null, - "azure.mgmt.appcontainers.operations.JobsOperations.list_detectors": null, - "azure.mgmt.appcontainers.aio.operations.JobsOperations.list_detectors": null, - "azure.mgmt.appcontainers.operations.JobsOperations.get_detector": null, - "azure.mgmt.appcontainers.aio.operations.JobsOperations.get_detector": null, - "azure.mgmt.appcontainers.operations.JobsOperations.proxy_get": null, - "azure.mgmt.appcontainers.aio.operations.JobsOperations.proxy_get": null, - "azure.mgmt.appcontainers.operations.JobsOperations.list_by_subscription": null, - "azure.mgmt.appcontainers.aio.operations.JobsOperations.list_by_subscription": null, - "azure.mgmt.appcontainers.operations.JobsOperations.list_by_resource_group": null, - "azure.mgmt.appcontainers.aio.operations.JobsOperations.list_by_resource_group": null, - "azure.mgmt.appcontainers.operations.JobsOperations.get": null, - "azure.mgmt.appcontainers.aio.operations.JobsOperations.get": null, - "azure.mgmt.appcontainers.operations.JobsOperations.begin_create_or_update": null, - "azure.mgmt.appcontainers.aio.operations.JobsOperations.begin_create_or_update": null, - "azure.mgmt.appcontainers.operations.JobsOperations.begin_delete": null, - "azure.mgmt.appcontainers.aio.operations.JobsOperations.begin_delete": null, - "azure.mgmt.appcontainers.operations.JobsOperations.begin_update": null, - "azure.mgmt.appcontainers.aio.operations.JobsOperations.begin_update": null, - "azure.mgmt.appcontainers.operations.JobsOperations.begin_start": null, - "azure.mgmt.appcontainers.aio.operations.JobsOperations.begin_start": null, - "azure.mgmt.appcontainers.operations.JobsOperations.begin_stop_execution": null, - "azure.mgmt.appcontainers.aio.operations.JobsOperations.begin_stop_execution": null, - "azure.mgmt.appcontainers.operations.JobsOperations.begin_stop_multiple_executions": null, - "azure.mgmt.appcontainers.aio.operations.JobsOperations.begin_stop_multiple_executions": null, - "azure.mgmt.appcontainers.operations.JobsOperations.list_secrets": null, - "azure.mgmt.appcontainers.aio.operations.JobsOperations.list_secrets": null, - "azure.mgmt.appcontainers.operations.Operations.list": null, - "azure.mgmt.appcontainers.aio.operations.Operations.list": null, - "azure.mgmt.appcontainers.operations.JavaComponentsOperations.list": null, - "azure.mgmt.appcontainers.aio.operations.JavaComponentsOperations.list": null, - "azure.mgmt.appcontainers.operations.JavaComponentsOperations.get": null, - "azure.mgmt.appcontainers.aio.operations.JavaComponentsOperations.get": null, - "azure.mgmt.appcontainers.operations.JavaComponentsOperations.begin_create_or_update": null, - "azure.mgmt.appcontainers.aio.operations.JavaComponentsOperations.begin_create_or_update": null, - "azure.mgmt.appcontainers.operations.JavaComponentsOperations.begin_update": null, - "azure.mgmt.appcontainers.aio.operations.JavaComponentsOperations.begin_update": null, - "azure.mgmt.appcontainers.operations.JavaComponentsOperations.begin_delete": null, - "azure.mgmt.appcontainers.aio.operations.JavaComponentsOperations.begin_delete": null, - "azure.mgmt.appcontainers.operations.JobsExecutionsOperations.list": null, - "azure.mgmt.appcontainers.aio.operations.JobsExecutionsOperations.list": null, - "azure.mgmt.appcontainers.ContainerAppsAPIClient.job_execution": null, - "azure.mgmt.appcontainers.aio.ContainerAppsAPIClient.job_execution": null, - "azure.mgmt.appcontainers.ContainerAppsAPIClient.get_custom_domain_verification_id": null, - "azure.mgmt.appcontainers.aio.ContainerAppsAPIClient.get_custom_domain_verification_id": null, - "azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations.list_by_subscription": null, - "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations.list_by_subscription": null, - "azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations.list_by_resource_group": null, - "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations.list_by_resource_group": null, - "azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations.get": null, - "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations.get": null, - "azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations.begin_create_or_update": null, - "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations.begin_create_or_update": null, - "azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations.begin_delete": null, - "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations.begin_delete": null, - "azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations.begin_update": null, - "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations.begin_update": null, - "azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations.get_auth_token": null, - "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations.get_auth_token": null, - "azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations.list_workload_profile_states": null, - "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations.list_workload_profile_states": null, - "azure.mgmt.appcontainers.operations.CertificatesOperations.list": null, - "azure.mgmt.appcontainers.aio.operations.CertificatesOperations.list": null, - "azure.mgmt.appcontainers.operations.CertificatesOperations.get": null, - "azure.mgmt.appcontainers.aio.operations.CertificatesOperations.get": null, - "azure.mgmt.appcontainers.operations.CertificatesOperations.create_or_update": null, - "azure.mgmt.appcontainers.aio.operations.CertificatesOperations.create_or_update": null, - "azure.mgmt.appcontainers.operations.CertificatesOperations.delete": null, - "azure.mgmt.appcontainers.aio.operations.CertificatesOperations.delete": null, - "azure.mgmt.appcontainers.operations.CertificatesOperations.update": null, - "azure.mgmt.appcontainers.aio.operations.CertificatesOperations.update": null, - "azure.mgmt.appcontainers.operations.ManagedCertificatesOperations.get": null, - "azure.mgmt.appcontainers.aio.operations.ManagedCertificatesOperations.get": null, - "azure.mgmt.appcontainers.operations.ManagedCertificatesOperations.begin_create_or_update": null, - "azure.mgmt.appcontainers.aio.operations.ManagedCertificatesOperations.begin_create_or_update": null, - "azure.mgmt.appcontainers.operations.ManagedCertificatesOperations.delete": null, - "azure.mgmt.appcontainers.aio.operations.ManagedCertificatesOperations.delete": null, - "azure.mgmt.appcontainers.operations.ManagedCertificatesOperations.update": null, - "azure.mgmt.appcontainers.aio.operations.ManagedCertificatesOperations.update": null, - "azure.mgmt.appcontainers.operations.ManagedCertificatesOperations.list": null, - "azure.mgmt.appcontainers.aio.operations.ManagedCertificatesOperations.list": null, - "azure.mgmt.appcontainers.operations.NamespacesOperations.check_name_availability": null, - "azure.mgmt.appcontainers.aio.operations.NamespacesOperations.check_name_availability": null, - "azure.mgmt.appcontainers.operations.ManagedEnvironmentPrivateEndpointConnectionsOperations.list": null, - "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentPrivateEndpointConnectionsOperations.list": null, - "azure.mgmt.appcontainers.operations.ManagedEnvironmentPrivateEndpointConnectionsOperations.get": null, - "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentPrivateEndpointConnectionsOperations.get": null, - "azure.mgmt.appcontainers.operations.ManagedEnvironmentPrivateEndpointConnectionsOperations.begin_create_or_update": null, - "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentPrivateEndpointConnectionsOperations.begin_create_or_update": null, - "azure.mgmt.appcontainers.operations.ManagedEnvironmentPrivateEndpointConnectionsOperations.begin_delete": null, - "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentPrivateEndpointConnectionsOperations.begin_delete": null, - "azure.mgmt.appcontainers.operations.ManagedEnvironmentPrivateLinkResourcesOperations.list": null, - "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentPrivateLinkResourcesOperations.list": null, - "azure.mgmt.appcontainers.operations.DaprComponentsOperations.list": null, - "azure.mgmt.appcontainers.aio.operations.DaprComponentsOperations.list": null, - "azure.mgmt.appcontainers.operations.DaprComponentsOperations.get": null, - "azure.mgmt.appcontainers.aio.operations.DaprComponentsOperations.get": null, - "azure.mgmt.appcontainers.operations.DaprComponentsOperations.create_or_update": null, - "azure.mgmt.appcontainers.aio.operations.DaprComponentsOperations.create_or_update": null, - "azure.mgmt.appcontainers.operations.DaprComponentsOperations.delete": null, - "azure.mgmt.appcontainers.aio.operations.DaprComponentsOperations.delete": null, - "azure.mgmt.appcontainers.operations.DaprComponentsOperations.list_secrets": null, - "azure.mgmt.appcontainers.aio.operations.DaprComponentsOperations.list_secrets": null, - "azure.mgmt.appcontainers.operations.HttpRouteConfigOperations.get": null, - "azure.mgmt.appcontainers.aio.operations.HttpRouteConfigOperations.get": null, - "azure.mgmt.appcontainers.operations.HttpRouteConfigOperations.create_or_update": null, - "azure.mgmt.appcontainers.aio.operations.HttpRouteConfigOperations.create_or_update": null, - "azure.mgmt.appcontainers.operations.HttpRouteConfigOperations.update": null, - "azure.mgmt.appcontainers.aio.operations.HttpRouteConfigOperations.update": null, - "azure.mgmt.appcontainers.operations.HttpRouteConfigOperations.begin_delete": null, - "azure.mgmt.appcontainers.aio.operations.HttpRouteConfigOperations.begin_delete": null, - "azure.mgmt.appcontainers.operations.HttpRouteConfigOperations.list": null, - "azure.mgmt.appcontainers.aio.operations.HttpRouteConfigOperations.list": null, - "azure.mgmt.appcontainers.operations.MaintenanceConfigurationsOperations.list": null, - "azure.mgmt.appcontainers.aio.operations.MaintenanceConfigurationsOperations.list": null, - "azure.mgmt.appcontainers.operations.MaintenanceConfigurationsOperations.create_or_update": null, - "azure.mgmt.appcontainers.aio.operations.MaintenanceConfigurationsOperations.create_or_update": null, - "azure.mgmt.appcontainers.operations.MaintenanceConfigurationsOperations.delete": null, - "azure.mgmt.appcontainers.aio.operations.MaintenanceConfigurationsOperations.delete": null, - "azure.mgmt.appcontainers.operations.MaintenanceConfigurationsOperations.get": null, - "azure.mgmt.appcontainers.aio.operations.MaintenanceConfigurationsOperations.get": null, - "azure.mgmt.appcontainers.operations.ManagedEnvironmentsStoragesOperations.list": null, - "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsStoragesOperations.list": null, - "azure.mgmt.appcontainers.operations.ManagedEnvironmentsStoragesOperations.get": null, - "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsStoragesOperations.get": null, - "azure.mgmt.appcontainers.operations.ManagedEnvironmentsStoragesOperations.create_or_update": null, - "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsStoragesOperations.create_or_update": null, - "azure.mgmt.appcontainers.operations.ManagedEnvironmentsStoragesOperations.delete": null, - "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsStoragesOperations.delete": null, - "azure.mgmt.appcontainers.operations.ContainerAppsSessionPoolsOperations.list_by_subscription": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsSessionPoolsOperations.list_by_subscription": null, - "azure.mgmt.appcontainers.operations.ContainerAppsSessionPoolsOperations.list_by_resource_group": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsSessionPoolsOperations.list_by_resource_group": null, - "azure.mgmt.appcontainers.operations.ContainerAppsSessionPoolsOperations.get": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsSessionPoolsOperations.get": null, - "azure.mgmt.appcontainers.operations.ContainerAppsSessionPoolsOperations.begin_create_or_update": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsSessionPoolsOperations.begin_create_or_update": null, - "azure.mgmt.appcontainers.operations.ContainerAppsSessionPoolsOperations.begin_update": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsSessionPoolsOperations.begin_update": null, - "azure.mgmt.appcontainers.operations.ContainerAppsSessionPoolsOperations.begin_delete": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsSessionPoolsOperations.begin_delete": null, - "azure.mgmt.appcontainers.operations.ContainerAppsSourceControlsOperations.list_by_container_app": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsSourceControlsOperations.list_by_container_app": null, - "azure.mgmt.appcontainers.operations.ContainerAppsSourceControlsOperations.get": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsSourceControlsOperations.get": null, - "azure.mgmt.appcontainers.operations.ContainerAppsSourceControlsOperations.begin_create_or_update": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsSourceControlsOperations.begin_create_or_update": null, - "azure.mgmt.appcontainers.operations.ContainerAppsSourceControlsOperations.begin_delete": null, - "azure.mgmt.appcontainers.aio.operations.ContainerAppsSourceControlsOperations.begin_delete": null, - "azure.mgmt.appcontainers.operations.UsagesOperations.list": null, - "azure.mgmt.appcontainers.aio.operations.UsagesOperations.list": null, - "azure.mgmt.appcontainers.operations.ManagedEnvironmentUsagesOperations.list": null, - "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentUsagesOperations.list": null, - "azure.mgmt.appcontainers.operations.LogicAppsOperations.get": null, - "azure.mgmt.appcontainers.aio.operations.LogicAppsOperations.get": null, - "azure.mgmt.appcontainers.operations.LogicAppsOperations.create_or_update": null, - "azure.mgmt.appcontainers.aio.operations.LogicAppsOperations.create_or_update": null, - "azure.mgmt.appcontainers.operations.LogicAppsOperations.delete": null, - "azure.mgmt.appcontainers.aio.operations.LogicAppsOperations.delete": null, - "azure.mgmt.appcontainers.operations.LogicAppsOperations.list_workflows": null, - "azure.mgmt.appcontainers.aio.operations.LogicAppsOperations.list_workflows": null, - "azure.mgmt.appcontainers.operations.LogicAppsOperations.get_workflow": null, - "azure.mgmt.appcontainers.aio.operations.LogicAppsOperations.get_workflow": null, - "azure.mgmt.appcontainers.operations.LogicAppsOperations.list_workflows_connections": null, - "azure.mgmt.appcontainers.aio.operations.LogicAppsOperations.list_workflows_connections": null + "azure.mgmt.appcontainers.models.AllowedAudiencesValidation": "Microsoft.App.AllowedAudiencesValidation", + "azure.mgmt.appcontainers.models.AllowedPrincipals": "Microsoft.App.AllowedPrincipals", + "azure.mgmt.appcontainers.models.AppInsightsConfiguration": "Microsoft.App.AppInsightsConfiguration", + "azure.mgmt.appcontainers.models.Apple": "Microsoft.App.Apple", + "azure.mgmt.appcontainers.models.AppleRegistration": "Microsoft.App.AppleRegistration", + "azure.mgmt.appcontainers.models.AppLogsConfiguration": "Microsoft.App.AppLogsConfiguration", + "azure.mgmt.appcontainers.models.AppRegistration": "Microsoft.App.AppRegistration", + "azure.mgmt.appcontainers.models.Resource": "Azure.ResourceManager.CommonTypes.Resource", + "azure.mgmt.appcontainers.models.ProxyResource": "Azure.ResourceManager.CommonTypes.ProxyResource", + "azure.mgmt.appcontainers.models.AppResiliency": "Microsoft.App.AppResiliency", + "azure.mgmt.appcontainers.models.AppResiliencyProperties": "Microsoft.App.AppResiliencyProperties", + "azure.mgmt.appcontainers.models.AuthConfig": "Microsoft.App.AuthConfig", + "azure.mgmt.appcontainers.models.AuthConfigProperties": "Microsoft.App.AuthConfigProperties", + "azure.mgmt.appcontainers.models.AuthPlatform": "Microsoft.App.AuthPlatform", + "azure.mgmt.appcontainers.models.AvailableWorkloadProfile": "Microsoft.App.AvailableWorkloadProfile", + "azure.mgmt.appcontainers.models.AvailableWorkloadProfileProperties": "Microsoft.App.AvailableWorkloadProfileProperties", + "azure.mgmt.appcontainers.models.AzureActiveDirectory": "Microsoft.App.AzureActiveDirectory", + "azure.mgmt.appcontainers.models.AzureActiveDirectoryLogin": "Microsoft.App.AzureActiveDirectoryLogin", + "azure.mgmt.appcontainers.models.AzureActiveDirectoryRegistration": "Microsoft.App.AzureActiveDirectoryRegistration", + "azure.mgmt.appcontainers.models.AzureActiveDirectoryValidation": "Microsoft.App.AzureActiveDirectoryValidation", + "azure.mgmt.appcontainers.models.AzureCredentials": "Microsoft.App.AzureCredentials", + "azure.mgmt.appcontainers.models.AzureFileProperties": "Microsoft.App.AzureFileProperties", + "azure.mgmt.appcontainers.models.AzureStaticWebApps": "Microsoft.App.AzureStaticWebApps", + "azure.mgmt.appcontainers.models.AzureStaticWebAppsRegistration": "Microsoft.App.AzureStaticWebAppsRegistration", + "azure.mgmt.appcontainers.models.BaseContainer": "Microsoft.App.BaseContainer", + "azure.mgmt.appcontainers.models.BillingMeter": "Microsoft.App.BillingMeter", + "azure.mgmt.appcontainers.models.BillingMeterCollection": "Microsoft.App.BillingMeterCollection", + "azure.mgmt.appcontainers.models.BillingMeterProperties": "Microsoft.App.BillingMeterProperties", + "azure.mgmt.appcontainers.models.BlobStorageTokenStore": "Microsoft.App.BlobStorageTokenStore", + "azure.mgmt.appcontainers.models.BuildConfiguration": "Microsoft.App.BuildConfiguration", + "azure.mgmt.appcontainers.models.BuilderProperties": "Microsoft.App.BuilderProperties", + "azure.mgmt.appcontainers.models.TrackedResource": "Azure.ResourceManager.CommonTypes.TrackedResource", + "azure.mgmt.appcontainers.models.BuilderResource": "Microsoft.App.BuilderResource", + "azure.mgmt.appcontainers.models.BuilderResourceUpdate": "Microsoft.App.BuilderResourceUpdate", + "azure.mgmt.appcontainers.models.BuilderResourceUpdateProperties": "Microsoft.App.BuilderResourceUpdateProperties", + "azure.mgmt.appcontainers.models.BuildProperties": "Microsoft.App.BuildProperties", + "azure.mgmt.appcontainers.models.BuildResource": "Microsoft.App.BuildResource", + "azure.mgmt.appcontainers.models.BuildToken": "Microsoft.App.BuildToken", + "azure.mgmt.appcontainers.models.Certificate": "Microsoft.App.Certificate", + "azure.mgmt.appcontainers.models.CertificateKeyVaultProperties": "Microsoft.App.CertificateKeyVaultProperties", + "azure.mgmt.appcontainers.models.CertificatePatch": "Microsoft.App.CertificatePatch", + "azure.mgmt.appcontainers.models.CertificateProperties": "Microsoft.App.CertificateProperties", + "azure.mgmt.appcontainers.models.CheckNameAvailabilityRequest": "Azure.ResourceManager.CommonTypes.CheckNameAvailabilityRequest", + "azure.mgmt.appcontainers.models.CheckNameAvailabilityResponse": "Azure.ResourceManager.CommonTypes.CheckNameAvailabilityResponse", + "azure.mgmt.appcontainers.models.CircuitBreakerPolicy": "Microsoft.App.CircuitBreakerPolicy", + "azure.mgmt.appcontainers.models.ClientRegistration": "Microsoft.App.ClientRegistration", + "azure.mgmt.appcontainers.models.Configuration": "Microsoft.App.Configuration", + "azure.mgmt.appcontainers.models.ConnectedEnvironment": "Microsoft.App.ConnectedEnvironment", + "azure.mgmt.appcontainers.models.ResourceTags": "Microsoft.App.ResourceTags", + "azure.mgmt.appcontainers.models.ConnectedEnvironmentPatchResource": "Microsoft.App.ConnectedEnvironmentPatchResource", + "azure.mgmt.appcontainers.models.ConnectedEnvironmentProperties": "Microsoft.App.ConnectedEnvironmentProperties", + "azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage": "Microsoft.App.ConnectedEnvironmentStorage", + "azure.mgmt.appcontainers.models.ConnectedEnvironmentStorageProperties": "Microsoft.App.ConnectedEnvironmentStorageProperties", + "azure.mgmt.appcontainers.models.ConnectedEnvironmentStoragesCollection": "Microsoft.App.ConnectedEnvironmentStoragesCollection", + "azure.mgmt.appcontainers.models.Container": "Microsoft.App.Container", + "azure.mgmt.appcontainers.models.ContainerApp": "Microsoft.App.ContainerApp", + "azure.mgmt.appcontainers.models.ContainerAppAuthToken": "Microsoft.App.ContainerAppAuthToken", + "azure.mgmt.appcontainers.models.ContainerAppAuthTokenProperties": "Microsoft.App.ContainerAppAuthTokenProperties", + "azure.mgmt.appcontainers.models.ContainerAppJobExecutions": "Microsoft.App.ContainerAppJobExecutions", + "azure.mgmt.appcontainers.models.ContainerAppProbe": "Microsoft.App.ContainerAppProbe", + "azure.mgmt.appcontainers.models.ContainerAppProbeHttpGet": "Microsoft.App.ContainerAppProbeHttpGet", + "azure.mgmt.appcontainers.models.ContainerAppProbeHttpGetHttpHeadersItem": "Microsoft.App.ContainerAppProbeHttpGetHttpHeadersItem", + "azure.mgmt.appcontainers.models.ContainerAppProbeTcpSocket": "Microsoft.App.ContainerAppProbeTcpSocket", + "azure.mgmt.appcontainers.models.ContainerAppProperties": "Microsoft.App.ContainerAppProperties", + "azure.mgmt.appcontainers.models.ContainerAppPropertiesPatchingConfiguration": "Microsoft.App.ContainerAppPropertiesPatchingConfiguration", + "azure.mgmt.appcontainers.models.ContainerAppsBuildConfiguration": "Microsoft.App.ContainerAppsBuildConfiguration", + "azure.mgmt.appcontainers.models.ContainerAppsBuildProperties": "Microsoft.App.ContainerAppsBuildProperties", + "azure.mgmt.appcontainers.models.ContainerAppsBuildResource": "Microsoft.App.ContainerAppsBuildResource", + "azure.mgmt.appcontainers.models.ContainerAppSecret": "Microsoft.App.ContainerAppSecret", + "azure.mgmt.appcontainers.models.ContainerAppsFunction": "Microsoft.App.ContainerAppsFunction", + "azure.mgmt.appcontainers.models.ContainerAppsFunctionProperties": "Microsoft.App.ContainerAppsFunctionProperties", + "azure.mgmt.appcontainers.models.ContainerAppsPatchResource": "Microsoft.App.ContainerAppsPatchResource", + "azure.mgmt.appcontainers.models.ContainerExecutionStatus": "Microsoft.App.ContainerExecutionStatus", + "azure.mgmt.appcontainers.models.ContainerRegistry": "Microsoft.App.ContainerRegistry", + "azure.mgmt.appcontainers.models.ContainerRegistryWithCustomImage": "Microsoft.App.ContainerRegistryWithCustomImage", + "azure.mgmt.appcontainers.models.ContainerResources": "Microsoft.App.ContainerResources", + "azure.mgmt.appcontainers.models.CookieExpiration": "Microsoft.App.CookieExpiration", + "azure.mgmt.appcontainers.models.CorsPolicy": "Microsoft.App.CorsPolicy", + "azure.mgmt.appcontainers.models.CustomContainerTemplate": "Microsoft.App.CustomContainerTemplate", + "azure.mgmt.appcontainers.models.CustomDomain": "Microsoft.App.CustomDomain", + "azure.mgmt.appcontainers.models.CustomDomainConfiguration": "Microsoft.App.CustomDomainConfiguration", + "azure.mgmt.appcontainers.models.CustomHostnameAnalysisResult": "Microsoft.App.CustomHostnameAnalysisResult", + "azure.mgmt.appcontainers.models.CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo": "Microsoft.App.CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo", + "azure.mgmt.appcontainers.models.CustomHostnameAnalysisResultCustomDomainVerificationFailureInfoDetailsItem": "Microsoft.App.CustomHostnameAnalysisResultCustomDomainVerificationFailureInfoDetailsItem", + "azure.mgmt.appcontainers.models.CustomOpenIdConnectProvider": "Microsoft.App.CustomOpenIdConnectProvider", + "azure.mgmt.appcontainers.models.CustomScaleRule": "Microsoft.App.CustomScaleRule", + "azure.mgmt.appcontainers.models.Dapr": "Microsoft.App.Dapr", + "azure.mgmt.appcontainers.models.DaprAppHealth": "Microsoft.App.DaprAppHealth", + "azure.mgmt.appcontainers.models.DaprComponent": "Microsoft.App.DaprComponent", + "azure.mgmt.appcontainers.models.DaprComponentProperties": "Microsoft.App.DaprComponentProperties", + "azure.mgmt.appcontainers.models.DaprComponentResiliencyPolicy": "Microsoft.App.DaprComponentResiliencyPolicy", + "azure.mgmt.appcontainers.models.DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration": "Microsoft.App.DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration", + "azure.mgmt.appcontainers.models.DaprComponentResiliencyPolicyConfiguration": "Microsoft.App.DaprComponentResiliencyPolicyConfiguration", + "azure.mgmt.appcontainers.models.DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration": "Microsoft.App.DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration", + "azure.mgmt.appcontainers.models.DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration": "Microsoft.App.DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration", + "azure.mgmt.appcontainers.models.DaprComponentResiliencyPolicyProperties": "Microsoft.App.DaprComponentResiliencyPolicyProperties", + "azure.mgmt.appcontainers.models.DaprComponentResiliencyPolicyTimeoutPolicyConfiguration": "Microsoft.App.DaprComponentResiliencyPolicyTimeoutPolicyConfiguration", + "azure.mgmt.appcontainers.models.DaprComponentServiceBinding": "Microsoft.App.DaprComponentServiceBinding", + "azure.mgmt.appcontainers.models.DaprConfiguration": "Microsoft.App.DaprConfiguration", + "azure.mgmt.appcontainers.models.DaprMetadata": "Microsoft.App.DaprMetadata", + "azure.mgmt.appcontainers.models.DaprSecret": "Microsoft.App.DaprSecret", + "azure.mgmt.appcontainers.models.DaprSecretsCollection": "Microsoft.App.DaprSecretsCollection", + "azure.mgmt.appcontainers.models.DaprServiceBindMetadata": "Microsoft.App.DaprServiceBindMetadata", + "azure.mgmt.appcontainers.models.DaprSubscription": "Microsoft.App.DaprSubscription", + "azure.mgmt.appcontainers.models.DaprSubscriptionBulkSubscribeOptions": "Microsoft.App.DaprSubscriptionBulkSubscribeOptions", + "azure.mgmt.appcontainers.models.DaprSubscriptionProperties": "Microsoft.App.DaprSubscriptionProperties", + "azure.mgmt.appcontainers.models.DaprSubscriptionRouteRule": "Microsoft.App.DaprSubscriptionRouteRule", + "azure.mgmt.appcontainers.models.DaprSubscriptionRoutes": "Microsoft.App.DaprSubscriptionRoutes", + "azure.mgmt.appcontainers.models.DataDogConfiguration": "Microsoft.App.DataDogConfiguration", + "azure.mgmt.appcontainers.models.DefaultAuthorizationPolicy": "Microsoft.App.DefaultAuthorizationPolicy", + "azure.mgmt.appcontainers.models.DefaultErrorResponse": "Microsoft.App.DefaultErrorResponse", + "azure.mgmt.appcontainers.models.DefaultErrorResponseError": "Microsoft.App.DefaultErrorResponseError", + "azure.mgmt.appcontainers.models.DefaultErrorResponseErrorDetailsItem": "Microsoft.App.DefaultErrorResponseErrorDetailsItem", + "azure.mgmt.appcontainers.models.DestinationsConfiguration": "Microsoft.App.DestinationsConfiguration", + "azure.mgmt.appcontainers.models.DiagnosticDataProviderMetadata": "Microsoft.App.DiagnosticDataProviderMetadata", + "azure.mgmt.appcontainers.models.DiagnosticDataProviderMetadataPropertyBagItem": "Microsoft.App.DiagnosticDataProviderMetadataPropertyBagItem", + "azure.mgmt.appcontainers.models.DiagnosticDataTableResponseColumn": "Microsoft.App.DiagnosticDataTableResponseColumn", + "azure.mgmt.appcontainers.models.DiagnosticDataTableResponseObject": "Microsoft.App.DiagnosticDataTableResponseObject", + "azure.mgmt.appcontainers.models.DiagnosticRendering": "Microsoft.App.DiagnosticRendering", + "azure.mgmt.appcontainers.models.Diagnostics": "Microsoft.App.Diagnostics", + "azure.mgmt.appcontainers.models.DiagnosticsCollection": "Microsoft.App.DiagnosticsCollection", + "azure.mgmt.appcontainers.models.DiagnosticsDataApiResponse": "Microsoft.App.DiagnosticsDataApiResponse", + "azure.mgmt.appcontainers.models.DiagnosticsDefinition": "Microsoft.App.DiagnosticsDefinition", + "azure.mgmt.appcontainers.models.DiagnosticsProperties": "Microsoft.App.DiagnosticsProperties", + "azure.mgmt.appcontainers.models.DiagnosticsStatus": "Microsoft.App.DiagnosticsStatus", + "azure.mgmt.appcontainers.models.DiagnosticSupportTopic": "Microsoft.App.DiagnosticSupportTopic", + "azure.mgmt.appcontainers.models.DiskEncryptionConfiguration": "Microsoft.App.DiskEncryptionConfiguration", + "azure.mgmt.appcontainers.models.DiskEncryptionConfigurationKeyVaultConfiguration": "Microsoft.App.DiskEncryptionConfigurationKeyVaultConfiguration", + "azure.mgmt.appcontainers.models.DiskEncryptionConfigurationKeyVaultConfigurationAuth": "Microsoft.App.DiskEncryptionConfigurationKeyVaultConfigurationAuth", + "azure.mgmt.appcontainers.models.DotNetComponent": "Microsoft.App.DotNetComponent", + "azure.mgmt.appcontainers.models.DotNetComponentConfigurationProperty": "Microsoft.App.DotNetComponentConfigurationProperty", + "azure.mgmt.appcontainers.models.DotNetComponentProperties": "Microsoft.App.DotNetComponentProperties", + "azure.mgmt.appcontainers.models.DotNetComponentServiceBind": "Microsoft.App.DotNetComponentServiceBind", + "azure.mgmt.appcontainers.models.DynamicPoolConfiguration": "Microsoft.App.DynamicPoolConfiguration", + "azure.mgmt.appcontainers.models.EncryptionSettings": "Microsoft.App.EncryptionSettings", + "azure.mgmt.appcontainers.models.EnvironmentAuthToken": "Microsoft.App.EnvironmentAuthToken", + "azure.mgmt.appcontainers.models.EnvironmentAuthTokenProperties": "Microsoft.App.EnvironmentAuthTokenProperties", + "azure.mgmt.appcontainers.models.EnvironmentVar": "Microsoft.App.EnvironmentVar", + "azure.mgmt.appcontainers.models.EnvironmentVariable": "Microsoft.App.EnvironmentVariable", + "azure.mgmt.appcontainers.models.ErrorAdditionalInfo": "Azure.ResourceManager.CommonTypes.ErrorAdditionalInfo", + "azure.mgmt.appcontainers.models.ErrorDetail": "Azure.ResourceManager.CommonTypes.ErrorDetail", + "azure.mgmt.appcontainers.models.ErrorEntity": "Microsoft.App.ErrorEntity", + "azure.mgmt.appcontainers.models.ErrorResponse": "Azure.ResourceManager.CommonTypes.ErrorResponse", + "azure.mgmt.appcontainers.models.ExecutionStatus": "Microsoft.App.ExecutionStatus", + "azure.mgmt.appcontainers.models.ExtendedLocation": "Microsoft.App.ExtendedLocation", + "azure.mgmt.appcontainers.models.Facebook": "Microsoft.App.Facebook", + "azure.mgmt.appcontainers.models.ForwardProxy": "Microsoft.App.ForwardProxy", + "azure.mgmt.appcontainers.models.GitHub": "Microsoft.App.GitHub", + "azure.mgmt.appcontainers.models.GithubActionConfiguration": "Microsoft.App.GithubActionConfiguration", + "azure.mgmt.appcontainers.models.GlobalValidation": "Microsoft.App.GlobalValidation", + "azure.mgmt.appcontainers.models.Google": "Microsoft.App.Google", + "azure.mgmt.appcontainers.models.Header": "Microsoft.App.Header", + "azure.mgmt.appcontainers.models.HeaderMatch": "Microsoft.App.HeaderMatch", + "azure.mgmt.appcontainers.models.HeaderMatchMatch": "Microsoft.App.HeaderMatchMatch", + "azure.mgmt.appcontainers.models.HttpConnectionPool": "Microsoft.App.HttpConnectionPool", + "azure.mgmt.appcontainers.models.HttpGet": "Microsoft.App.HttpGet", + "azure.mgmt.appcontainers.models.HttpRetryPolicy": "Microsoft.App.HttpRetryPolicy", + "azure.mgmt.appcontainers.models.HttpRetryPolicyMatches": "Microsoft.App.HttpRetryPolicyMatches", + "azure.mgmt.appcontainers.models.HttpRetryPolicyRetryBackOff": "Microsoft.App.HttpRetryPolicyRetryBackOff", + "azure.mgmt.appcontainers.models.HttpRoute": "Microsoft.App.HttpRoute", + "azure.mgmt.appcontainers.models.HttpRouteAction": "Microsoft.App.HttpRouteAction", + "azure.mgmt.appcontainers.models.HttpRouteConfig": "Microsoft.App.HttpRouteConfig", + "azure.mgmt.appcontainers.models.HttpRouteConfigProperties": "Microsoft.App.HttpRouteConfigProperties", + "azure.mgmt.appcontainers.models.HttpRouteMatch": "Microsoft.App.HttpRouteMatch", + "azure.mgmt.appcontainers.models.HttpRouteProvisioningErrors": "Microsoft.App.HttpRouteProvisioningErrors", + "azure.mgmt.appcontainers.models.HttpRouteRule": "Microsoft.App.HttpRouteRule", + "azure.mgmt.appcontainers.models.HttpRouteTarget": "Microsoft.App.HttpRouteTarget", + "azure.mgmt.appcontainers.models.HttpScaleRule": "Microsoft.App.HttpScaleRule", + "azure.mgmt.appcontainers.models.HttpSettings": "Microsoft.App.HttpSettings", + "azure.mgmt.appcontainers.models.HttpSettingsRoutes": "Microsoft.App.HttpSettingsRoutes", + "azure.mgmt.appcontainers.models.IdentityProviders": "Microsoft.App.IdentityProviders", + "azure.mgmt.appcontainers.models.IdentitySettings": "Microsoft.App.IdentitySettings", + "azure.mgmt.appcontainers.models.Ingress": "Microsoft.App.Ingress", + "azure.mgmt.appcontainers.models.IngressConfiguration": "Microsoft.App.IngressConfiguration", + "azure.mgmt.appcontainers.models.IngressPortMapping": "Microsoft.App.IngressPortMapping", + "azure.mgmt.appcontainers.models.IngressStickySessions": "Microsoft.App.IngressStickySessions", + "azure.mgmt.appcontainers.models.InitContainer": "Microsoft.App.InitContainer", + "azure.mgmt.appcontainers.models.IpSecurityRestrictionRule": "Microsoft.App.IpSecurityRestrictionRule", + "azure.mgmt.appcontainers.models.JavaComponent": "Microsoft.App.JavaComponent", + "azure.mgmt.appcontainers.models.JavaComponentConfigurationProperty": "Microsoft.App.JavaComponentConfigurationProperty", + "azure.mgmt.appcontainers.models.JavaComponentIngress": "Microsoft.App.JavaComponentIngress", + "azure.mgmt.appcontainers.models.JavaComponentProperties": "Microsoft.App.JavaComponentProperties", + "azure.mgmt.appcontainers.models.JavaComponentPropertiesScale": "Microsoft.App.JavaComponentPropertiesScale", + "azure.mgmt.appcontainers.models.JavaComponentServiceBind": "Microsoft.App.JavaComponentServiceBind", + "azure.mgmt.appcontainers.models.Job": "Microsoft.App.Job", + "azure.mgmt.appcontainers.models.JobConfiguration": "Microsoft.App.JobConfiguration", + "azure.mgmt.appcontainers.models.JobConfigurationEventTriggerConfig": "Microsoft.App.JobConfigurationEventTriggerConfig", + "azure.mgmt.appcontainers.models.JobConfigurationManualTriggerConfig": "Microsoft.App.JobConfigurationManualTriggerConfig", + "azure.mgmt.appcontainers.models.JobConfigurationScheduleTriggerConfig": "Microsoft.App.JobConfigurationScheduleTriggerConfig", + "azure.mgmt.appcontainers.models.JobExecution": "Microsoft.App.JobExecution", + "azure.mgmt.appcontainers.models.JobExecutionBase": "Microsoft.App.JobExecutionBase", + "azure.mgmt.appcontainers.models.JobExecutionContainer": "Microsoft.App.JobExecutionContainer", + "azure.mgmt.appcontainers.models.JobExecutionProperties": "Microsoft.App.JobExecutionProperties", + "azure.mgmt.appcontainers.models.JobExecutionTemplate": "Microsoft.App.JobExecutionTemplate", + "azure.mgmt.appcontainers.models.JobPatchProperties": "Microsoft.App.JobPatchProperties", + "azure.mgmt.appcontainers.models.JobPatchPropertiesProperties": "Microsoft.App.JobPatchPropertiesProperties", + "azure.mgmt.appcontainers.models.JobProperties": "Microsoft.App.JobProperties", + "azure.mgmt.appcontainers.models.JobScale": "Microsoft.App.JobScale", + "azure.mgmt.appcontainers.models.JobScaleRule": "Microsoft.App.JobScaleRule", + "azure.mgmt.appcontainers.models.JobSecretsCollection": "Microsoft.App.JobSecretsCollection", + "azure.mgmt.appcontainers.models.JobTemplate": "Microsoft.App.JobTemplate", + "azure.mgmt.appcontainers.models.JwtClaimChecks": "Microsoft.App.JwtClaimChecks", + "azure.mgmt.appcontainers.models.KedaConfiguration": "Microsoft.App.KedaConfiguration", + "azure.mgmt.appcontainers.models.LabelHistory": "Microsoft.App.LabelHistory", + "azure.mgmt.appcontainers.models.LabelHistoryProperties": "Microsoft.App.LabelHistoryProperties", + "azure.mgmt.appcontainers.models.LabelHistoryRecordItem": "Microsoft.App.LabelHistoryRecordItem", + "azure.mgmt.appcontainers.models.LifecycleConfiguration": "Microsoft.App.LifecycleConfiguration", + "azure.mgmt.appcontainers.models.LogAnalyticsConfiguration": "Microsoft.App.LogAnalyticsConfiguration", + "azure.mgmt.appcontainers.models.LoggerSetting": "Microsoft.App.LoggerSetting", + "azure.mgmt.appcontainers.models.LogicApp": "Microsoft.App.LogicApp", + "azure.mgmt.appcontainers.models.LogicAppProperties": "Microsoft.App.LogicAppProperties", + "azure.mgmt.appcontainers.models.Login": "Microsoft.App.Login", + "azure.mgmt.appcontainers.models.LoginRoutes": "Microsoft.App.LoginRoutes", + "azure.mgmt.appcontainers.models.LoginScopes": "Microsoft.App.LoginScopes", + "azure.mgmt.appcontainers.models.LogsConfiguration": "Microsoft.App.LogsConfiguration", + "azure.mgmt.appcontainers.models.MaintenanceConfigurationResource": "Microsoft.App.MaintenanceConfigurationResource", + "azure.mgmt.appcontainers.models.ManagedCertificate": "Microsoft.App.ManagedCertificate", + "azure.mgmt.appcontainers.models.ManagedCertificatePatch": "Microsoft.App.ManagedCertificatePatch", + "azure.mgmt.appcontainers.models.ManagedCertificateProperties": "Microsoft.App.ManagedCertificateProperties", + "azure.mgmt.appcontainers.models.ManagedEnvironment": "Microsoft.App.ManagedEnvironment", + "azure.mgmt.appcontainers.models.ManagedEnvironmentProperties": "Microsoft.App.ManagedEnvironmentProperties", + "azure.mgmt.appcontainers.models.ManagedEnvironmentPropertiesPeerAuthentication": "Microsoft.App.ManagedEnvironmentPropertiesPeerAuthentication", + "azure.mgmt.appcontainers.models.ManagedEnvironmentPropertiesPeerTrafficConfiguration": "Microsoft.App.ManagedEnvironmentPropertiesPeerTrafficConfiguration", + "azure.mgmt.appcontainers.models.ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryption": "Microsoft.App.ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryption", + "azure.mgmt.appcontainers.models.ManagedEnvironmentStorage": "Microsoft.App.ManagedEnvironmentStorage", + "azure.mgmt.appcontainers.models.ManagedEnvironmentStorageProperties": "Microsoft.App.ManagedEnvironmentStorageProperties", + "azure.mgmt.appcontainers.models.ManagedEnvironmentStoragesCollection": "Microsoft.App.ManagedEnvironmentStoragesCollection", + "azure.mgmt.appcontainers.models.ManagedIdentitySetting": "Microsoft.App.ManagedIdentitySetting", + "azure.mgmt.appcontainers.models.ManagedServiceIdentity": "Azure.ResourceManager.CommonTypes.ManagedServiceIdentity", + "azure.mgmt.appcontainers.models.McpServerCredential": "Microsoft.App.McpServerCredential", + "azure.mgmt.appcontainers.models.McpServerSettings": "Microsoft.App.McpServerSettings", + "azure.mgmt.appcontainers.models.MetricsConfiguration": "Microsoft.App.MetricsConfiguration", + "azure.mgmt.appcontainers.models.Mtls": "Microsoft.App.Mtls", + "azure.mgmt.appcontainers.models.NacosComponent": "Microsoft.App.NacosComponent", + "azure.mgmt.appcontainers.models.NfsAzureFileProperties": "Microsoft.App.NfsAzureFileProperties", + "azure.mgmt.appcontainers.models.Nonce": "Microsoft.App.Nonce", + "azure.mgmt.appcontainers.models.Object": "Microsoft.App.Object", + "azure.mgmt.appcontainers.models.OpenIdConnectClientCredential": "Microsoft.App.OpenIdConnectClientCredential", + "azure.mgmt.appcontainers.models.OpenIdConnectConfig": "Microsoft.App.OpenIdConnectConfig", + "azure.mgmt.appcontainers.models.OpenIdConnectLogin": "Microsoft.App.OpenIdConnectLogin", + "azure.mgmt.appcontainers.models.OpenIdConnectRegistration": "Microsoft.App.OpenIdConnectRegistration", + "azure.mgmt.appcontainers.models.OpenTelemetryConfiguration": "Microsoft.App.OpenTelemetryConfiguration", + "azure.mgmt.appcontainers.models.OperationDetail": "Microsoft.App.OperationDetail", + "azure.mgmt.appcontainers.models.OperationDisplay": "Microsoft.App.OperationDisplay", + "azure.mgmt.appcontainers.models.OtlpConfiguration": "Microsoft.App.OtlpConfiguration", + "azure.mgmt.appcontainers.models.PatchDetails": "Microsoft.App.PatchDetails", + "azure.mgmt.appcontainers.models.PatchDetailsNewLayer": "Microsoft.App.PatchDetailsNewLayer", + "azure.mgmt.appcontainers.models.PatchDetailsOldLayer": "Microsoft.App.PatchDetailsOldLayer", + "azure.mgmt.appcontainers.models.PatchProperties": "Microsoft.App.PatchProperties", + "azure.mgmt.appcontainers.models.PatchSkipConfig": "Microsoft.App.PatchSkipConfig", + "azure.mgmt.appcontainers.models.PreBuildStep": "Microsoft.App.PreBuildStep", + "azure.mgmt.appcontainers.models.PrivateEndpoint": "Microsoft.App.PrivateEndpoint", + "azure.mgmt.appcontainers.models.PrivateEndpointConnection": "Microsoft.App.PrivateEndpointConnection", + "azure.mgmt.appcontainers.models.PrivateEndpointConnectionProperties": "Microsoft.App.PrivateEndpointConnectionProperties", + "azure.mgmt.appcontainers.models.PrivateLinkResource": "Microsoft.App.PrivateLinkResource", + "azure.mgmt.appcontainers.models.PrivateLinkResourceProperties": "Microsoft.App.PrivateLinkResourceProperties", + "azure.mgmt.appcontainers.models.PrivateLinkServiceConnectionState": "Microsoft.App.PrivateLinkServiceConnectionState", + "azure.mgmt.appcontainers.models.QueueScaleRule": "Microsoft.App.QueueScaleRule", + "azure.mgmt.appcontainers.models.RegistryCredentials": "Microsoft.App.RegistryCredentials", + "azure.mgmt.appcontainers.models.RegistryInfo": "Microsoft.App.RegistryInfo", + "azure.mgmt.appcontainers.models.Replica": "Microsoft.App.Replica", + "azure.mgmt.appcontainers.models.ReplicaCollection": "Microsoft.App.ReplicaCollection", + "azure.mgmt.appcontainers.models.ReplicaContainer": "Microsoft.App.ReplicaContainer", + "azure.mgmt.appcontainers.models.ReplicaExecutionStatus": "Microsoft.App.ReplicaExecutionStatus", + "azure.mgmt.appcontainers.models.ReplicaProperties": "Microsoft.App.ReplicaProperties", + "azure.mgmt.appcontainers.models.Revision": "Microsoft.App.Revision", + "azure.mgmt.appcontainers.models.RevisionProperties": "Microsoft.App.RevisionProperties", + "azure.mgmt.appcontainers.models.Runtime": "Microsoft.App.Runtime", + "azure.mgmt.appcontainers.models.RuntimeDotnet": "Microsoft.App.RuntimeDotnet", + "azure.mgmt.appcontainers.models.RuntimeJava": "Microsoft.App.RuntimeJava", + "azure.mgmt.appcontainers.models.RuntimeJavaJavaAgent": "Microsoft.App.RuntimeJavaJavaAgent", + "azure.mgmt.appcontainers.models.RuntimeJavaJavaAgentLogging": "Microsoft.App.RuntimeJavaJavaAgentLogging", + "azure.mgmt.appcontainers.models.Scale": "Microsoft.App.Scale", + "azure.mgmt.appcontainers.models.ScaleConfiguration": "Microsoft.App.ScaleConfiguration", + "azure.mgmt.appcontainers.models.ScaleRule": "Microsoft.App.ScaleRule", + "azure.mgmt.appcontainers.models.ScaleRuleAuth": "Microsoft.App.ScaleRuleAuth", + "azure.mgmt.appcontainers.models.ScgRoute": "Microsoft.App.ScgRoute", + "azure.mgmt.appcontainers.models.ScheduledEntries": "Microsoft.App.ScheduledEntries", + "azure.mgmt.appcontainers.models.ScheduledEntry": "Microsoft.App.ScheduledEntry", + "azure.mgmt.appcontainers.models.Secret": "Microsoft.App.Secret", + "azure.mgmt.appcontainers.models.SecretKeyVaultProperties": "Microsoft.App.SecretKeyVaultProperties", + "azure.mgmt.appcontainers.models.SecretsCollection": "Microsoft.App.SecretsCollection", + "azure.mgmt.appcontainers.models.SecretVolumeItem": "Microsoft.App.SecretVolumeItem", + "azure.mgmt.appcontainers.models.Service": "Microsoft.App.Service", + "azure.mgmt.appcontainers.models.ServiceBind": "Microsoft.App.ServiceBind", + "azure.mgmt.appcontainers.models.SessionContainer": "Microsoft.App.SessionContainer", + "azure.mgmt.appcontainers.models.SessionContainerResources": "Microsoft.App.SessionContainerResources", + "azure.mgmt.appcontainers.models.SessionIngress": "Microsoft.App.SessionIngress", + "azure.mgmt.appcontainers.models.SessionNetworkConfiguration": "Microsoft.App.SessionNetworkConfiguration", + "azure.mgmt.appcontainers.models.SessionPool": "Microsoft.App.SessionPool", + "azure.mgmt.appcontainers.models.SessionPoolProperties": "Microsoft.App.SessionPoolProperties", + "azure.mgmt.appcontainers.models.SessionPoolSecret": "Microsoft.App.SessionPoolSecret", + "azure.mgmt.appcontainers.models.SessionPoolUpdatableProperties": "Microsoft.App.SessionPoolUpdatableProperties", + "azure.mgmt.appcontainers.models.SessionPoolUpdatablePropertiesProperties": "Microsoft.App.SessionPoolUpdatablePropertiesProperties", + "azure.mgmt.appcontainers.models.SessionProbe": "Microsoft.App.SessionProbe", + "azure.mgmt.appcontainers.models.SessionProbeHttpGet": "Microsoft.App.SessionProbeHttpGet", + "azure.mgmt.appcontainers.models.SessionProbeHttpGetHttpHeadersItem": "Microsoft.App.SessionProbeHttpGetHttpHeadersItem", + "azure.mgmt.appcontainers.models.SessionProbeTcpSocket": "Microsoft.App.SessionProbeTcpSocket", + "azure.mgmt.appcontainers.models.SessionRegistryCredentials": "Microsoft.App.SessionRegistryCredentials", + "azure.mgmt.appcontainers.models.SmbStorage": "Microsoft.App.SmbStorage", + "azure.mgmt.appcontainers.models.SourceControl": "Microsoft.App.SourceControl", + "azure.mgmt.appcontainers.models.SourceControlProperties": "Microsoft.App.SourceControlProperties", + "azure.mgmt.appcontainers.models.SpringBootAdminComponent": "Microsoft.App.SpringBootAdminComponent", + "azure.mgmt.appcontainers.models.SpringCloudConfigComponent": "Microsoft.App.SpringCloudConfigComponent", + "azure.mgmt.appcontainers.models.SpringCloudEurekaComponent": "Microsoft.App.SpringCloudEurekaComponent", + "azure.mgmt.appcontainers.models.SpringCloudGatewayComponent": "Microsoft.App.SpringCloudGatewayComponent", + "azure.mgmt.appcontainers.models.SystemData": "Azure.ResourceManager.CommonTypes.SystemData", + "azure.mgmt.appcontainers.models.TcpConnectionPool": "Microsoft.App.TcpConnectionPool", + "azure.mgmt.appcontainers.models.TcpRetryPolicy": "Microsoft.App.TcpRetryPolicy", + "azure.mgmt.appcontainers.models.TcpScaleRule": "Microsoft.App.TcpScaleRule", + "azure.mgmt.appcontainers.models.Template": "Microsoft.App.Template", + "azure.mgmt.appcontainers.models.TemplatePoolStatus": "Microsoft.App.TemplatePoolStatus", + "azure.mgmt.appcontainers.models.TemplateStatus": "Microsoft.App.TemplateStatus", + "azure.mgmt.appcontainers.models.TemplateUpdateStatus": "Microsoft.App.TemplateUpdateStatus", + "azure.mgmt.appcontainers.models.TimeoutPolicy": "Microsoft.App.TimeoutPolicy", + "azure.mgmt.appcontainers.models.TokenStore": "Microsoft.App.TokenStore", + "azure.mgmt.appcontainers.models.TracesConfiguration": "Microsoft.App.TracesConfiguration", + "azure.mgmt.appcontainers.models.TrafficWeight": "Microsoft.App.TrafficWeight", + "azure.mgmt.appcontainers.models.Twitter": "Microsoft.App.Twitter", + "azure.mgmt.appcontainers.models.TwitterRegistration": "Microsoft.App.TwitterRegistration", + "azure.mgmt.appcontainers.models.Usage": "Microsoft.App.Usage", + "azure.mgmt.appcontainers.models.UsageName": "Microsoft.App.UsageName", + "azure.mgmt.appcontainers.models.UserAssignedIdentity": "Azure.ResourceManager.CommonTypes.UserAssignedIdentity", + "azure.mgmt.appcontainers.models.VnetConfiguration": "Microsoft.App.VnetConfiguration", + "azure.mgmt.appcontainers.models.Volume": "Microsoft.App.Volume", + "azure.mgmt.appcontainers.models.VolumeMount": "Microsoft.App.VolumeMount", + "azure.mgmt.appcontainers.models.WorkflowArtifacts": "Microsoft.App.WorkflowArtifacts", + "azure.mgmt.appcontainers.models.WorkflowEnvelope": "Microsoft.App.WorkflowEnvelope", + "azure.mgmt.appcontainers.models.WorkflowEnvelopeProperties": "Microsoft.App.WorkflowEnvelopeProperties", + "azure.mgmt.appcontainers.models.WorkflowHealth": "Microsoft.App.WorkflowHealth", + "azure.mgmt.appcontainers.models.WorkloadProfile": "Microsoft.App.WorkloadProfile", + "azure.mgmt.appcontainers.models.WorkloadProfileStates": "Microsoft.App.workloadProfileStates", + "azure.mgmt.appcontainers.models.WorkloadProfileStatesProperties": "Microsoft.App.WorkloadProfileStatesProperties", + "azure.mgmt.appcontainers.models.CreatedByType": "Azure.ResourceManager.CommonTypes.createdByType", + "azure.mgmt.appcontainers.models.ContainerType": "Microsoft.App.ContainerType", + "azure.mgmt.appcontainers.models.PoolManagementType": "Microsoft.App.PoolManagementType", + "azure.mgmt.appcontainers.models.LifecycleType": "Microsoft.App.LifecycleType", + "azure.mgmt.appcontainers.models.SessionProbeType": "Microsoft.App.SessionProbeType", + "azure.mgmt.appcontainers.models.Scheme": "Microsoft.App.Scheme", + "azure.mgmt.appcontainers.models.SessionNetworkStatus": "Microsoft.App.SessionNetworkStatus", + "azure.mgmt.appcontainers.models.SessionPoolProvisioningState": "Microsoft.App.SessionPoolProvisioningState", + "azure.mgmt.appcontainers.models.IdentitySettingsLifeCycle": "Microsoft.App.IdentitySettingsLifeCycle", + "azure.mgmt.appcontainers.models.ManagedServiceIdentityType": "Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType", + "azure.mgmt.appcontainers.models.SourceControlOperationState": "Microsoft.App.SourceControlOperationState", + "azure.mgmt.appcontainers.models.ContainerAppProvisioningState": "Microsoft.App.ContainerAppProvisioningState", + "azure.mgmt.appcontainers.models.ContainerAppRunningStatus": "Microsoft.App.ContainerAppRunningStatus", + "azure.mgmt.appcontainers.models.PatchingMode": "Microsoft.App.PatchingMode", + "azure.mgmt.appcontainers.models.ActiveRevisionsMode": "Microsoft.App.ActiveRevisionsMode", + "azure.mgmt.appcontainers.models.IngressTransportMethod": "Microsoft.App.IngressTransportMethod", + "azure.mgmt.appcontainers.models.BindingType": "Microsoft.App.BindingType", + "azure.mgmt.appcontainers.models.Action": "Microsoft.App.Action", + "azure.mgmt.appcontainers.models.Affinity": "Microsoft.App.Affinity", + "azure.mgmt.appcontainers.models.IngressClientCertificateMode": "Microsoft.App.IngressClientCertificateMode", + "azure.mgmt.appcontainers.models.IngressTargetPortHttpScheme": "Microsoft.App.IngressTargetPortHttpScheme", + "azure.mgmt.appcontainers.models.AppProtocol": "Microsoft.App.AppProtocol", + "azure.mgmt.appcontainers.models.LogLevel": "Microsoft.App.LogLevel", + "azure.mgmt.appcontainers.models.Level": "Microsoft.App.Level", + "azure.mgmt.appcontainers.models.ImageType": "Microsoft.App.ImageType", + "azure.mgmt.appcontainers.models.Type": "Microsoft.App.Type", + "azure.mgmt.appcontainers.models.StorageType": "Microsoft.App.StorageType", + "azure.mgmt.appcontainers.models.ExtendedLocationTypes": "Microsoft.App.ExtendedLocationTypes", + "azure.mgmt.appcontainers.models.Kind": "Microsoft.App.Kind", + "azure.mgmt.appcontainers.models.DnsVerificationTestResult": "Microsoft.App.DnsVerificationTestResult", + "azure.mgmt.appcontainers.models.BuildProvisioningState": "Microsoft.App.BuildProvisioningState", + "azure.mgmt.appcontainers.models.BuildStatus": "Microsoft.App.BuildStatus", + "azure.mgmt.appcontainers.models.RevisionHealthState": "Microsoft.App.RevisionHealthState", + "azure.mgmt.appcontainers.models.RevisionProvisioningState": "Microsoft.App.RevisionProvisioningState", + "azure.mgmt.appcontainers.models.RevisionRunningState": "Microsoft.App.RevisionRunningState", + "azure.mgmt.appcontainers.models.Status": "Microsoft.App.Status", + "azure.mgmt.appcontainers.models.PatchApplyStatus": "Microsoft.App.PatchApplyStatus", + "azure.mgmt.appcontainers.models.DetectionStatus": "Microsoft.App.DetectionStatus", + "azure.mgmt.appcontainers.models.PatchType": "Microsoft.App.PatchType", + "azure.mgmt.appcontainers.models.ContainerAppReplicaRunningState": "Microsoft.App.ContainerAppReplicaRunningState", + "azure.mgmt.appcontainers.models.ContainerAppContainerRunningState": "Microsoft.App.ContainerAppContainerRunningState", + "azure.mgmt.appcontainers.models.DotNetComponentType": "Microsoft.App.DotNetComponentType", + "azure.mgmt.appcontainers.models.DotNetComponentProvisioningState": "Microsoft.App.DotNetComponentProvisioningState", + "azure.mgmt.appcontainers.models.JavaComponentType": "Microsoft.App.JavaComponentType", + "azure.mgmt.appcontainers.models.JavaComponentProvisioningState": "Microsoft.App.JavaComponentProvisioningState", + "azure.mgmt.appcontainers.models.WorkflowState": "Microsoft.App.WorkflowState", + "azure.mgmt.appcontainers.models.WorkflowHealthState": "Microsoft.App.WorkflowHealthState", + "azure.mgmt.appcontainers.models.WorkflowKind": "Microsoft.App.WorkflowKind", + "azure.mgmt.appcontainers.models.LogicAppsProxyMethod": "Microsoft.App.LogicAppsProxyMethod", + "azure.mgmt.appcontainers.models.UnauthenticatedClientActionV2": "Microsoft.App.UnauthenticatedClientActionV2", + "azure.mgmt.appcontainers.models.CookieExpirationConvention": "Microsoft.App.CookieExpirationConvention", + "azure.mgmt.appcontainers.models.ForwardProxyConvention": "Microsoft.App.ForwardProxyConvention", + "azure.mgmt.appcontainers.models.BuilderProvisioningState": "Microsoft.App.BuilderProvisioningState", + "azure.mgmt.appcontainers.models.ConnectedEnvironmentProvisioningState": "Microsoft.App.ConnectedEnvironmentProvisioningState", + "azure.mgmt.appcontainers.models.CheckNameAvailabilityReason": "Azure.ResourceManager.CommonTypes.CheckNameAvailabilityReason", + "azure.mgmt.appcontainers.models.CertificateProvisioningState": "Microsoft.App.CertificateProvisioningState", + "azure.mgmt.appcontainers.models.CertificateType": "Microsoft.App.CertificateType", + "azure.mgmt.appcontainers.models.DaprComponentProvisioningState": "Microsoft.App.DaprComponentProvisioningState", + "azure.mgmt.appcontainers.models.ConnectedEnvironmentStorageProvisioningState": "Microsoft.App.ConnectedEnvironmentStorageProvisioningState", + "azure.mgmt.appcontainers.models.AccessMode": "Microsoft.App.AccessMode", + "azure.mgmt.appcontainers.models.EnvironmentProvisioningState": "Microsoft.App.EnvironmentProvisioningState", + "azure.mgmt.appcontainers.models.PrivateEndpointServiceConnectionStatus": "Microsoft.App.PrivateEndpointServiceConnectionStatus", + "azure.mgmt.appcontainers.models.PrivateEndpointConnectionProvisioningState": "Microsoft.App.PrivateEndpointConnectionProvisioningState", + "azure.mgmt.appcontainers.models.PublicNetworkAccess": "Microsoft.App.PublicNetworkAccess", + "azure.mgmt.appcontainers.models.ManagedCertificateDomainControlValidation": "Microsoft.App.ManagedCertificateDomainControlValidation", + "azure.mgmt.appcontainers.models.WeekDay": "Microsoft.App.WeekDay", + "azure.mgmt.appcontainers.models.JobProvisioningState": "Microsoft.App.JobProvisioningState", + "azure.mgmt.appcontainers.models.JobRunningState": "Microsoft.App.JobRunningState", + "azure.mgmt.appcontainers.models.TriggerType": "Microsoft.App.TriggerType", + "azure.mgmt.appcontainers.models.JobExecutionRunningState": "Microsoft.App.JobExecutionRunningState", + "azure.mgmt.appcontainers.models.HttpRouteProvisioningState": "Microsoft.App.HttpRouteProvisioningState", + "azure.mgmt.appcontainers.models.Applicability": "Microsoft.App.Applicability", + "azure.mgmt.appcontainers.operations.Operations.list": "Azure.ResourceManager.Legacy.Operations.list", + "azure.mgmt.appcontainers.aio.operations.Operations.list": "Azure.ResourceManager.Legacy.Operations.list", + "azure.mgmt.appcontainers.operations.ContainerAppsSessionPoolsOperations.get": "Microsoft.App.ContainerAppsSessionPools.get", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsSessionPoolsOperations.get": "Microsoft.App.ContainerAppsSessionPools.get", + "azure.mgmt.appcontainers.operations.ContainerAppsSessionPoolsOperations.begin_create_or_update": "Microsoft.App.ContainerAppsSessionPools.createOrUpdate", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsSessionPoolsOperations.begin_create_or_update": "Microsoft.App.ContainerAppsSessionPools.createOrUpdate", + "azure.mgmt.appcontainers.operations.ContainerAppsSessionPoolsOperations.begin_update": "Microsoft.App.ContainerAppsSessionPools.update", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsSessionPoolsOperations.begin_update": "Microsoft.App.ContainerAppsSessionPools.update", + "azure.mgmt.appcontainers.operations.ContainerAppsSessionPoolsOperations.begin_delete": "Microsoft.App.ContainerAppsSessionPools.delete", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsSessionPoolsOperations.begin_delete": "Microsoft.App.ContainerAppsSessionPools.delete", + "azure.mgmt.appcontainers.operations.ContainerAppsSessionPoolsOperations.list_by_resource_group": "Microsoft.App.ContainerAppsSessionPools.listByResourceGroup", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsSessionPoolsOperations.list_by_resource_group": "Microsoft.App.ContainerAppsSessionPools.listByResourceGroup", + "azure.mgmt.appcontainers.operations.ContainerAppsSessionPoolsOperations.list_by_subscription": "Microsoft.App.ContainerAppsSessionPools.listBySubscription", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsSessionPoolsOperations.list_by_subscription": "Microsoft.App.ContainerAppsSessionPools.listBySubscription", + "azure.mgmt.appcontainers.operations.ContainerAppsSessionPoolsOperations.fetch_mcp_server_credentials": "Microsoft.App.ContainerAppsSessionPools.fetchMcpServerCredentials", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsSessionPoolsOperations.fetch_mcp_server_credentials": "Microsoft.App.ContainerAppsSessionPools.fetchMcpServerCredentials", + "azure.mgmt.appcontainers.operations.ContainerAppsSessionPoolsOperations.rotate_mcp_server_credentials": "Microsoft.App.ContainerAppsSessionPools.rotateMcpServerCredentials", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsSessionPoolsOperations.rotate_mcp_server_credentials": "Microsoft.App.ContainerAppsSessionPools.rotateMcpServerCredentials", + "azure.mgmt.appcontainers.operations.ContainerAppsSourceControlsOperations.get": "Microsoft.App.ContainerAppsSourceControls.get", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsSourceControlsOperations.get": "Microsoft.App.ContainerAppsSourceControls.get", + "azure.mgmt.appcontainers.operations.ContainerAppsSourceControlsOperations.begin_create_or_update": "Microsoft.App.ContainerAppsSourceControls.createOrUpdate", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsSourceControlsOperations.begin_create_or_update": "Microsoft.App.ContainerAppsSourceControls.createOrUpdate", + "azure.mgmt.appcontainers.operations.ContainerAppsSourceControlsOperations.begin_delete": "Microsoft.App.ContainerAppsSourceControls.delete", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsSourceControlsOperations.begin_delete": "Microsoft.App.ContainerAppsSourceControls.delete", + "azure.mgmt.appcontainers.operations.ContainerAppsSourceControlsOperations.list_by_container_app": "Microsoft.App.ContainerAppsSourceControls.listByContainerApp", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsSourceControlsOperations.list_by_container_app": "Microsoft.App.ContainerAppsSourceControls.listByContainerApp", + "azure.mgmt.appcontainers.operations.ContainerAppsOperations.get": "Microsoft.App.ContainerApps.get", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsOperations.get": "Microsoft.App.ContainerApps.get", + "azure.mgmt.appcontainers.operations.ContainerAppsOperations.begin_create_or_update": "Microsoft.App.ContainerApps.createOrUpdate", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsOperations.begin_create_or_update": "Microsoft.App.ContainerApps.createOrUpdate", + "azure.mgmt.appcontainers.operations.ContainerAppsOperations.begin_update": "Microsoft.App.ContainerApps.update", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsOperations.begin_update": "Microsoft.App.ContainerApps.update", + "azure.mgmt.appcontainers.operations.ContainerAppsOperations.begin_delete": "Microsoft.App.ContainerApps.delete", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsOperations.begin_delete": "Microsoft.App.ContainerApps.delete", + "azure.mgmt.appcontainers.operations.ContainerAppsOperations.list_by_resource_group": "Microsoft.App.ContainerApps.listByResourceGroup", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsOperations.list_by_resource_group": "Microsoft.App.ContainerApps.listByResourceGroup", + "azure.mgmt.appcontainers.operations.ContainerAppsOperations.list_by_subscription": "Microsoft.App.ContainerApps.listBySubscription", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsOperations.list_by_subscription": "Microsoft.App.ContainerApps.listBySubscription", + "azure.mgmt.appcontainers.operations.ContainerAppsOperations.list_custom_host_name_analysis": "Microsoft.App.ContainerApps.listCustomHostNameAnalysis", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsOperations.list_custom_host_name_analysis": "Microsoft.App.ContainerApps.listCustomHostNameAnalysis", + "azure.mgmt.appcontainers.operations.ContainerAppsOperations.list_secrets": "Microsoft.App.ContainerApps.listSecrets", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsOperations.list_secrets": "Microsoft.App.ContainerApps.listSecrets", + "azure.mgmt.appcontainers.operations.ContainerAppsOperations.get_auth_token": "Microsoft.App.ContainerApps.getAuthToken", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsOperations.get_auth_token": "Microsoft.App.ContainerApps.getAuthToken", + "azure.mgmt.appcontainers.operations.ContainerAppsOperations.begin_start": "Microsoft.App.ContainerApps.start", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsOperations.begin_start": "Microsoft.App.ContainerApps.start", + "azure.mgmt.appcontainers.operations.ContainerAppsOperations.begin_stop": "Microsoft.App.ContainerApps.stop", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsOperations.begin_stop": "Microsoft.App.ContainerApps.stop", + "azure.mgmt.appcontainers.operations.ContainerAppsBuildsOperations.get": "Microsoft.App.ContainerAppsBuilds.get", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsBuildsOperations.get": "Microsoft.App.ContainerAppsBuilds.get", + "azure.mgmt.appcontainers.operations.ContainerAppsBuildsOperations.begin_delete": "Microsoft.App.ContainerAppsBuilds.delete", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsBuildsOperations.begin_delete": "Microsoft.App.ContainerAppsBuilds.delete", + "azure.mgmt.appcontainers.operations.ContainerAppsFunctionsOperations.get": "Microsoft.App.ContainerAppsFunctions.getAzureFunctionsOnContainerApps", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsFunctionsOperations.get": "Microsoft.App.ContainerAppsFunctions.getAzureFunctionsOnContainerApps", + "azure.mgmt.appcontainers.operations.ContainerAppsFunctionsOperations.list": "Microsoft.App.ContainerAppsFunctions.listAzureFunctionsOnContainerApps", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsFunctionsOperations.list": "Microsoft.App.ContainerAppsFunctions.listAzureFunctionsOnContainerApps", + "azure.mgmt.appcontainers.operations.ContainerAppsRevisionsOperations.get_revision": "Microsoft.App.ContainerAppsRevisions.getRevision", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsRevisionsOperations.get_revision": "Microsoft.App.ContainerAppsRevisions.getRevision", + "azure.mgmt.appcontainers.operations.ContainerAppsRevisionsOperations.list_revisions": "Microsoft.App.ContainerAppsRevisions.listRevisions", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsRevisionsOperations.list_revisions": "Microsoft.App.ContainerAppsRevisions.listRevisions", + "azure.mgmt.appcontainers.operations.ContainerAppsRevisionsOperations.activate_revision": "Microsoft.App.ContainerAppsRevisions.activateRevision", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsRevisionsOperations.activate_revision": "Microsoft.App.ContainerAppsRevisions.activateRevision", + "azure.mgmt.appcontainers.operations.ContainerAppsRevisionsOperations.deactivate_revision": "Microsoft.App.ContainerAppsRevisions.deactivateRevision", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsRevisionsOperations.deactivate_revision": "Microsoft.App.ContainerAppsRevisions.deactivateRevision", + "azure.mgmt.appcontainers.operations.ContainerAppsRevisionsOperations.restart_revision": "Microsoft.App.ContainerAppsRevisions.restartRevision", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsRevisionsOperations.restart_revision": "Microsoft.App.ContainerAppsRevisions.restartRevision", + "azure.mgmt.appcontainers.operations.FunctionsExtensionOperations.invoke_functions_host": "Microsoft.App.FunctionsExtension.invokeFunctionsHost", + "azure.mgmt.appcontainers.aio.operations.FunctionsExtensionOperations.invoke_functions_host": "Microsoft.App.FunctionsExtension.invokeFunctionsHost", + "azure.mgmt.appcontainers.operations.ContainerAppsLabelHistoryOperations.get_label_history": "Microsoft.App.ContainerAppsLabelHistory.getLabelHistory", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsLabelHistoryOperations.get_label_history": "Microsoft.App.ContainerAppsLabelHistory.getLabelHistory", + "azure.mgmt.appcontainers.operations.ContainerAppsLabelHistoryOperations.delete_label_history": "Microsoft.App.ContainerAppsLabelHistory.deleteLabelHistory", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsLabelHistoryOperations.delete_label_history": "Microsoft.App.ContainerAppsLabelHistory.deleteLabelHistory", + "azure.mgmt.appcontainers.operations.ContainerAppsLabelHistoryOperations.list_label_history": "Microsoft.App.ContainerAppsLabelHistory.listLabelHistory", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsLabelHistoryOperations.list_label_history": "Microsoft.App.ContainerAppsLabelHistory.listLabelHistory", + "azure.mgmt.appcontainers.operations.ContainerAppsPatchesOperations.get": "Microsoft.App.ContainerAppsPatches.get", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsPatchesOperations.get": "Microsoft.App.ContainerAppsPatches.get", + "azure.mgmt.appcontainers.operations.ContainerAppsPatchesOperations.begin_delete": "Microsoft.App.ContainerAppsPatches.delete", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsPatchesOperations.begin_delete": "Microsoft.App.ContainerAppsPatches.delete", + "azure.mgmt.appcontainers.operations.ContainerAppsPatchesOperations.list_by_container_app": "Microsoft.App.ContainerAppsPatches.listByContainerApp", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsPatchesOperations.list_by_container_app": "Microsoft.App.ContainerAppsPatches.listByContainerApp", + "azure.mgmt.appcontainers.operations.ContainerAppsPatchesOperations.begin_skip_configure": "Microsoft.App.ContainerAppsPatches.skipConfigure", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsPatchesOperations.begin_skip_configure": "Microsoft.App.ContainerAppsPatches.skipConfigure", + "azure.mgmt.appcontainers.operations.ContainerAppsPatchesOperations.begin_apply": "Microsoft.App.ContainerAppsPatches.apply", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsPatchesOperations.begin_apply": "Microsoft.App.ContainerAppsPatches.apply", + "azure.mgmt.appcontainers.operations.ContainerAppsRevisionReplicasOperations.get_replica": "Microsoft.App.ContainerAppsRevisionReplicas.getReplica", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsRevisionReplicasOperations.get_replica": "Microsoft.App.ContainerAppsRevisionReplicas.getReplica", + "azure.mgmt.appcontainers.operations.ContainerAppsRevisionReplicasOperations.list_replicas": "Microsoft.App.ContainerAppsRevisionReplicas.listReplicas", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsRevisionReplicasOperations.list_replicas": "Microsoft.App.ContainerAppsRevisionReplicas.listReplicas", + "azure.mgmt.appcontainers.operations.DotNetComponentsOperations.get": "Microsoft.App.DotNetComponents.get", + "azure.mgmt.appcontainers.aio.operations.DotNetComponentsOperations.get": "Microsoft.App.DotNetComponents.get", + "azure.mgmt.appcontainers.operations.DotNetComponentsOperations.begin_create_or_update": "Microsoft.App.DotNetComponents.createOrUpdate", + "azure.mgmt.appcontainers.aio.operations.DotNetComponentsOperations.begin_create_or_update": "Microsoft.App.DotNetComponents.createOrUpdate", + "azure.mgmt.appcontainers.operations.DotNetComponentsOperations.begin_update": "Microsoft.App.DotNetComponents.update", + "azure.mgmt.appcontainers.aio.operations.DotNetComponentsOperations.begin_update": "Microsoft.App.DotNetComponents.update", + "azure.mgmt.appcontainers.operations.DotNetComponentsOperations.begin_delete": "Microsoft.App.DotNetComponents.delete", + "azure.mgmt.appcontainers.aio.operations.DotNetComponentsOperations.begin_delete": "Microsoft.App.DotNetComponents.delete", + "azure.mgmt.appcontainers.operations.DotNetComponentsOperations.list": "Microsoft.App.DotNetComponents.list", + "azure.mgmt.appcontainers.aio.operations.DotNetComponentsOperations.list": "Microsoft.App.DotNetComponents.list", + "azure.mgmt.appcontainers.operations.JavaComponentsOperations.get": "Microsoft.App.JavaComponents.get", + "azure.mgmt.appcontainers.aio.operations.JavaComponentsOperations.get": "Microsoft.App.JavaComponents.get", + "azure.mgmt.appcontainers.operations.JavaComponentsOperations.begin_create_or_update": "Microsoft.App.JavaComponents.createOrUpdate", + "azure.mgmt.appcontainers.aio.operations.JavaComponentsOperations.begin_create_or_update": "Microsoft.App.JavaComponents.createOrUpdate", + "azure.mgmt.appcontainers.operations.JavaComponentsOperations.begin_update": "Microsoft.App.JavaComponents.update", + "azure.mgmt.appcontainers.aio.operations.JavaComponentsOperations.begin_update": "Microsoft.App.JavaComponents.update", + "azure.mgmt.appcontainers.operations.JavaComponentsOperations.begin_delete": "Microsoft.App.JavaComponents.delete", + "azure.mgmt.appcontainers.aio.operations.JavaComponentsOperations.begin_delete": "Microsoft.App.JavaComponents.delete", + "azure.mgmt.appcontainers.operations.JavaComponentsOperations.list": "Microsoft.App.JavaComponents.list", + "azure.mgmt.appcontainers.aio.operations.JavaComponentsOperations.list": "Microsoft.App.JavaComponents.list", + "azure.mgmt.appcontainers.operations.LogicAppsOperations.get": "Microsoft.App.LogicApps.get", + "azure.mgmt.appcontainers.aio.operations.LogicAppsOperations.get": "Microsoft.App.LogicApps.get", + "azure.mgmt.appcontainers.operations.LogicAppsOperations.create_or_update": "Microsoft.App.LogicApps.createOrUpdate", + "azure.mgmt.appcontainers.aio.operations.LogicAppsOperations.create_or_update": "Microsoft.App.LogicApps.createOrUpdate", + "azure.mgmt.appcontainers.operations.LogicAppsOperations.delete": "Microsoft.App.LogicApps.delete", + "azure.mgmt.appcontainers.aio.operations.LogicAppsOperations.delete": "Microsoft.App.LogicApps.delete", + "azure.mgmt.appcontainers.operations.LogicAppsOperations.deploy_workflow_artifacts": "Microsoft.App.LogicApps.deployWorkflowArtifacts", + "azure.mgmt.appcontainers.aio.operations.LogicAppsOperations.deploy_workflow_artifacts": "Microsoft.App.LogicApps.deployWorkflowArtifacts", + "azure.mgmt.appcontainers.operations.LogicAppsOperations.list_workflows_connections": "Microsoft.App.LogicApps.listWorkflowsConnections", + "azure.mgmt.appcontainers.aio.operations.LogicAppsOperations.list_workflows_connections": "Microsoft.App.LogicApps.listWorkflowsConnections", + "azure.mgmt.appcontainers.operations.LogicAppsOperations.invoke": "Microsoft.App.LogicApps.invoke", + "azure.mgmt.appcontainers.aio.operations.LogicAppsOperations.invoke": "Microsoft.App.LogicApps.invoke", + "azure.mgmt.appcontainers.operations.LogicAppsOperations.get_workflow": "Microsoft.App.LogicApps.getWorkflow", + "azure.mgmt.appcontainers.aio.operations.LogicAppsOperations.get_workflow": "Microsoft.App.LogicApps.getWorkflow", + "azure.mgmt.appcontainers.operations.LogicAppsOperations.list_workflows": "Microsoft.App.LogicApps.listWorkflows", + "azure.mgmt.appcontainers.aio.operations.LogicAppsOperations.list_workflows": "Microsoft.App.LogicApps.listWorkflows", + "azure.mgmt.appcontainers.operations.ContainerAppsAuthConfigsOperations.get": "Microsoft.App.ContainerAppsAuthConfigs.get", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsAuthConfigsOperations.get": "Microsoft.App.ContainerAppsAuthConfigs.get", + "azure.mgmt.appcontainers.operations.ContainerAppsAuthConfigsOperations.create_or_update": "Microsoft.App.ContainerAppsAuthConfigs.createOrUpdate", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsAuthConfigsOperations.create_or_update": "Microsoft.App.ContainerAppsAuthConfigs.createOrUpdate", + "azure.mgmt.appcontainers.operations.ContainerAppsAuthConfigsOperations.delete": "Microsoft.App.ContainerAppsAuthConfigs.delete", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsAuthConfigsOperations.delete": "Microsoft.App.ContainerAppsAuthConfigs.delete", + "azure.mgmt.appcontainers.operations.ContainerAppsAuthConfigsOperations.list_by_container_app": "Microsoft.App.ContainerAppsAuthConfigs.listByContainerApp", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsAuthConfigsOperations.list_by_container_app": "Microsoft.App.ContainerAppsAuthConfigs.listByContainerApp", + "azure.mgmt.appcontainers.operations.BuildersOperations.get": "Microsoft.App.Builders.get", + "azure.mgmt.appcontainers.aio.operations.BuildersOperations.get": "Microsoft.App.Builders.get", + "azure.mgmt.appcontainers.operations.BuildersOperations.begin_create_or_update": "Microsoft.App.Builders.createOrUpdate", + "azure.mgmt.appcontainers.aio.operations.BuildersOperations.begin_create_or_update": "Microsoft.App.Builders.createOrUpdate", + "azure.mgmt.appcontainers.operations.BuildersOperations.begin_update": "Microsoft.App.Builders.update", + "azure.mgmt.appcontainers.aio.operations.BuildersOperations.begin_update": "Microsoft.App.Builders.update", + "azure.mgmt.appcontainers.operations.BuildersOperations.begin_delete": "Microsoft.App.Builders.delete", + "azure.mgmt.appcontainers.aio.operations.BuildersOperations.begin_delete": "Microsoft.App.Builders.delete", + "azure.mgmt.appcontainers.operations.BuildersOperations.list_by_resource_group": "Microsoft.App.Builders.listByResourceGroup", + "azure.mgmt.appcontainers.aio.operations.BuildersOperations.list_by_resource_group": "Microsoft.App.Builders.listByResourceGroup", + "azure.mgmt.appcontainers.operations.BuildersOperations.list_by_subscription": "Microsoft.App.Builders.listBySubscription", + "azure.mgmt.appcontainers.aio.operations.BuildersOperations.list_by_subscription": "Microsoft.App.Builders.listBySubscription", + "azure.mgmt.appcontainers.operations.BuildsOperations.get": "Microsoft.App.Builds.get", + "azure.mgmt.appcontainers.aio.operations.BuildsOperations.get": "Microsoft.App.Builds.get", + "azure.mgmt.appcontainers.operations.BuildsOperations.begin_create_or_update": "Microsoft.App.Builds.createOrUpdate", + "azure.mgmt.appcontainers.aio.operations.BuildsOperations.begin_create_or_update": "Microsoft.App.Builds.createOrUpdate", + "azure.mgmt.appcontainers.operations.BuildsOperations.begin_delete": "Microsoft.App.Builds.delete", + "azure.mgmt.appcontainers.aio.operations.BuildsOperations.begin_delete": "Microsoft.App.Builds.delete", + "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsOperations.get": "Microsoft.App.ConnectedEnvironments.get", + "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsOperations.get": "Microsoft.App.ConnectedEnvironments.get", + "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsOperations.begin_create_or_update": "Microsoft.App.ConnectedEnvironments.createOrUpdate", + "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsOperations.begin_create_or_update": "Microsoft.App.ConnectedEnvironments.createOrUpdate", + "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsOperations.update": "Microsoft.App.ConnectedEnvironments.update", + "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsOperations.update": "Microsoft.App.ConnectedEnvironments.update", + "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsOperations.begin_delete": "Microsoft.App.ConnectedEnvironments.delete", + "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsOperations.begin_delete": "Microsoft.App.ConnectedEnvironments.delete", + "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsOperations.list_by_resource_group": "Microsoft.App.ConnectedEnvironments.listByResourceGroup", + "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsOperations.list_by_resource_group": "Microsoft.App.ConnectedEnvironments.listByResourceGroup", + "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsOperations.list_by_subscription": "Microsoft.App.ConnectedEnvironments.listBySubscription", + "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsOperations.list_by_subscription": "Microsoft.App.ConnectedEnvironments.listBySubscription", + "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsOperations.check_name_availability": "Microsoft.App.ConnectedEnvironments.checkNameAvailability", + "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsOperations.check_name_availability": "Microsoft.App.ConnectedEnvironments.checkNameAvailability", + "azure.mgmt.appcontainers.operations.CertificatesOperations.get": "Microsoft.App.Certificates.getCertificates", + "azure.mgmt.appcontainers.aio.operations.CertificatesOperations.get": "Microsoft.App.Certificates.getCertificates", + "azure.mgmt.appcontainers.operations.CertificatesOperations.create_or_update": "Microsoft.App.Certificates.createOrUpdateCertificates", + "azure.mgmt.appcontainers.aio.operations.CertificatesOperations.create_or_update": "Microsoft.App.Certificates.createOrUpdateCertificates", + "azure.mgmt.appcontainers.operations.CertificatesOperations.update": "Microsoft.App.Certificates.updateCertificates", + "azure.mgmt.appcontainers.aio.operations.CertificatesOperations.update": "Microsoft.App.Certificates.updateCertificates", + "azure.mgmt.appcontainers.operations.CertificatesOperations.delete": "Microsoft.App.Certificates.deleteCertificates", + "azure.mgmt.appcontainers.aio.operations.CertificatesOperations.delete": "Microsoft.App.Certificates.deleteCertificates", + "azure.mgmt.appcontainers.operations.CertificatesOperations.list": "Microsoft.App.Certificates.listCertificates", + "azure.mgmt.appcontainers.aio.operations.CertificatesOperations.list": "Microsoft.App.Certificates.listCertificates", + "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsDaprComponentsOperations.get": "Microsoft.App.ConnectedEnvironmentsDaprComponents.get", + "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsDaprComponentsOperations.get": "Microsoft.App.ConnectedEnvironmentsDaprComponents.get", + "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsDaprComponentsOperations.begin_create_or_update": "Microsoft.App.ConnectedEnvironmentsDaprComponents.createOrUpdate", + "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsDaprComponentsOperations.begin_create_or_update": "Microsoft.App.ConnectedEnvironmentsDaprComponents.createOrUpdate", + "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsDaprComponentsOperations.begin_delete": "Microsoft.App.ConnectedEnvironmentsDaprComponents.delete", + "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsDaprComponentsOperations.begin_delete": "Microsoft.App.ConnectedEnvironmentsDaprComponents.delete", + "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsDaprComponentsOperations.list": "Microsoft.App.ConnectedEnvironmentsDaprComponents.list", + "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsDaprComponentsOperations.list": "Microsoft.App.ConnectedEnvironmentsDaprComponents.list", + "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsDaprComponentsOperations.list_secrets": "Microsoft.App.ConnectedEnvironmentsDaprComponents.listSecrets", + "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsDaprComponentsOperations.list_secrets": "Microsoft.App.ConnectedEnvironmentsDaprComponents.listSecrets", + "azure.mgmt.appcontainers.operations.DaprComponentsOperations.get": "Microsoft.App.DaprComponents.get", + "azure.mgmt.appcontainers.aio.operations.DaprComponentsOperations.get": "Microsoft.App.DaprComponents.get", + "azure.mgmt.appcontainers.operations.DaprComponentsOperations.create_or_update": "Microsoft.App.DaprComponents.createOrUpdate", + "azure.mgmt.appcontainers.aio.operations.DaprComponentsOperations.create_or_update": "Microsoft.App.DaprComponents.createOrUpdate", + "azure.mgmt.appcontainers.operations.DaprComponentsOperations.delete": "Microsoft.App.DaprComponents.delete", + "azure.mgmt.appcontainers.aio.operations.DaprComponentsOperations.delete": "Microsoft.App.DaprComponents.delete", + "azure.mgmt.appcontainers.operations.DaprComponentsOperations.list": "Microsoft.App.DaprComponents.list", + "azure.mgmt.appcontainers.aio.operations.DaprComponentsOperations.list": "Microsoft.App.DaprComponents.list", + "azure.mgmt.appcontainers.operations.DaprComponentsOperations.list_secrets": "Microsoft.App.DaprComponents.listSecrets", + "azure.mgmt.appcontainers.aio.operations.DaprComponentsOperations.list_secrets": "Microsoft.App.DaprComponents.listSecrets", + "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsStoragesOperations.get": "Microsoft.App.ConnectedEnvironmentsStorages.get", + "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsStoragesOperations.get": "Microsoft.App.ConnectedEnvironmentsStorages.get", + "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsStoragesOperations.begin_create_or_update": "Microsoft.App.ConnectedEnvironmentsStorages.createOrUpdate", + "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsStoragesOperations.begin_create_or_update": "Microsoft.App.ConnectedEnvironmentsStorages.createOrUpdate", + "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsStoragesOperations.begin_delete": "Microsoft.App.ConnectedEnvironmentsStorages.delete", + "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsStoragesOperations.begin_delete": "Microsoft.App.ConnectedEnvironmentsStorages.delete", + "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsStoragesOperations.list": "Microsoft.App.ConnectedEnvironmentsStorages.list", + "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsStoragesOperations.list": "Microsoft.App.ConnectedEnvironmentsStorages.list", + "azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations.get": "Microsoft.App.ManagedEnvironments.get", + "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations.get": "Microsoft.App.ManagedEnvironments.get", + "azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations.begin_create_or_update": "Microsoft.App.ManagedEnvironments.createOrUpdate", + "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations.begin_create_or_update": "Microsoft.App.ManagedEnvironments.createOrUpdate", + "azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations.begin_update": "Microsoft.App.ManagedEnvironments.update", + "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations.begin_update": "Microsoft.App.ManagedEnvironments.update", + "azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations.begin_delete": "Microsoft.App.ManagedEnvironments.delete", + "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations.begin_delete": "Microsoft.App.ManagedEnvironments.delete", + "azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations.list_by_resource_group": "Microsoft.App.ManagedEnvironments.listByResourceGroup", + "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations.list_by_resource_group": "Microsoft.App.ManagedEnvironments.listByResourceGroup", + "azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations.list_by_subscription": "Microsoft.App.ManagedEnvironments.listBySubscription", + "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations.list_by_subscription": "Microsoft.App.ManagedEnvironments.listBySubscription", + "azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations.get_auth_token": "Microsoft.App.ManagedEnvironments.getAuthToken", + "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations.get_auth_token": "Microsoft.App.ManagedEnvironments.getAuthToken", + "azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations.list_workload_profile_states": "Microsoft.App.ManagedEnvironments.listWorkloadProfileStates", + "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations.list_workload_profile_states": "Microsoft.App.ManagedEnvironments.listWorkloadProfileStates", + "azure.mgmt.appcontainers.operations.ManagedCertificatesOperations.get": "Microsoft.App.ManagedCertificates.get", + "azure.mgmt.appcontainers.aio.operations.ManagedCertificatesOperations.get": "Microsoft.App.ManagedCertificates.get", + "azure.mgmt.appcontainers.operations.ManagedCertificatesOperations.begin_create_or_update": "Microsoft.App.ManagedCertificates.createOrUpdate", + "azure.mgmt.appcontainers.aio.operations.ManagedCertificatesOperations.begin_create_or_update": "Microsoft.App.ManagedCertificates.createOrUpdate", + "azure.mgmt.appcontainers.operations.ManagedCertificatesOperations.update": "Microsoft.App.ManagedCertificates.update", + "azure.mgmt.appcontainers.aio.operations.ManagedCertificatesOperations.update": "Microsoft.App.ManagedCertificates.update", + "azure.mgmt.appcontainers.operations.ManagedCertificatesOperations.delete": "Microsoft.App.ManagedCertificates.delete", + "azure.mgmt.appcontainers.aio.operations.ManagedCertificatesOperations.delete": "Microsoft.App.ManagedCertificates.delete", + "azure.mgmt.appcontainers.operations.ManagedCertificatesOperations.list": "Microsoft.App.ManagedCertificates.list", + "azure.mgmt.appcontainers.aio.operations.ManagedCertificatesOperations.list": "Microsoft.App.ManagedCertificates.list", + "azure.mgmt.appcontainers.operations.DaprComponentResiliencyPoliciesOperations.get": "Microsoft.App.DaprComponentResiliencyPolicies.get", + "azure.mgmt.appcontainers.aio.operations.DaprComponentResiliencyPoliciesOperations.get": "Microsoft.App.DaprComponentResiliencyPolicies.get", + "azure.mgmt.appcontainers.operations.DaprComponentResiliencyPoliciesOperations.create_or_update": "Microsoft.App.DaprComponentResiliencyPolicies.createOrUpdate", + "azure.mgmt.appcontainers.aio.operations.DaprComponentResiliencyPoliciesOperations.create_or_update": "Microsoft.App.DaprComponentResiliencyPolicies.createOrUpdate", + "azure.mgmt.appcontainers.operations.DaprComponentResiliencyPoliciesOperations.delete": "Microsoft.App.DaprComponentResiliencyPolicies.delete", + "azure.mgmt.appcontainers.aio.operations.DaprComponentResiliencyPoliciesOperations.delete": "Microsoft.App.DaprComponentResiliencyPolicies.delete", + "azure.mgmt.appcontainers.operations.DaprComponentResiliencyPoliciesOperations.list": "Microsoft.App.DaprComponentResiliencyPolicies.list", + "azure.mgmt.appcontainers.aio.operations.DaprComponentResiliencyPoliciesOperations.list": "Microsoft.App.DaprComponentResiliencyPolicies.list", + "azure.mgmt.appcontainers.operations.DaprSubscriptionsOperations.get": "Microsoft.App.DaprSubscriptions.get", + "azure.mgmt.appcontainers.aio.operations.DaprSubscriptionsOperations.get": "Microsoft.App.DaprSubscriptions.get", + "azure.mgmt.appcontainers.operations.DaprSubscriptionsOperations.create_or_update": "Microsoft.App.DaprSubscriptions.createOrUpdate", + "azure.mgmt.appcontainers.aio.operations.DaprSubscriptionsOperations.create_or_update": "Microsoft.App.DaprSubscriptions.createOrUpdate", + "azure.mgmt.appcontainers.operations.DaprSubscriptionsOperations.delete": "Microsoft.App.DaprSubscriptions.delete", + "azure.mgmt.appcontainers.aio.operations.DaprSubscriptionsOperations.delete": "Microsoft.App.DaprSubscriptions.delete", + "azure.mgmt.appcontainers.operations.DaprSubscriptionsOperations.list": "Microsoft.App.DaprSubscriptions.list", + "azure.mgmt.appcontainers.aio.operations.DaprSubscriptionsOperations.list": "Microsoft.App.DaprSubscriptions.list", + "azure.mgmt.appcontainers.operations.MaintenanceConfigurationsOperations.get": "Microsoft.App.MaintenanceConfigurations.get", + "azure.mgmt.appcontainers.aio.operations.MaintenanceConfigurationsOperations.get": "Microsoft.App.MaintenanceConfigurations.get", + "azure.mgmt.appcontainers.operations.MaintenanceConfigurationsOperations.create_or_update": "Microsoft.App.MaintenanceConfigurations.createOrUpdate", + "azure.mgmt.appcontainers.aio.operations.MaintenanceConfigurationsOperations.create_or_update": "Microsoft.App.MaintenanceConfigurations.createOrUpdate", + "azure.mgmt.appcontainers.operations.MaintenanceConfigurationsOperations.delete": "Microsoft.App.MaintenanceConfigurations.delete", + "azure.mgmt.appcontainers.aio.operations.MaintenanceConfigurationsOperations.delete": "Microsoft.App.MaintenanceConfigurations.delete", + "azure.mgmt.appcontainers.operations.MaintenanceConfigurationsOperations.list": "Microsoft.App.MaintenanceConfigurations.list", + "azure.mgmt.appcontainers.aio.operations.MaintenanceConfigurationsOperations.list": "Microsoft.App.MaintenanceConfigurations.list", + "azure.mgmt.appcontainers.operations.ManagedEnvironmentsStoragesOperations.get": "Microsoft.App.ManagedEnvironmentsStorages.get", + "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsStoragesOperations.get": "Microsoft.App.ManagedEnvironmentsStorages.get", + "azure.mgmt.appcontainers.operations.ManagedEnvironmentsStoragesOperations.create_or_update": "Microsoft.App.ManagedEnvironmentsStorages.createOrUpdate", + "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsStoragesOperations.create_or_update": "Microsoft.App.ManagedEnvironmentsStorages.createOrUpdate", + "azure.mgmt.appcontainers.operations.ManagedEnvironmentsStoragesOperations.delete": "Microsoft.App.ManagedEnvironmentsStorages.delete", + "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsStoragesOperations.delete": "Microsoft.App.ManagedEnvironmentsStorages.delete", + "azure.mgmt.appcontainers.operations.ManagedEnvironmentsStoragesOperations.list": "Microsoft.App.ManagedEnvironmentsStorages.list", + "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsStoragesOperations.list": "Microsoft.App.ManagedEnvironmentsStorages.list", + "azure.mgmt.appcontainers.operations.JobsOperations.get": "Microsoft.App.Jobs.get", + "azure.mgmt.appcontainers.aio.operations.JobsOperations.get": "Microsoft.App.Jobs.get", + "azure.mgmt.appcontainers.operations.JobsOperations.begin_create_or_update": "Microsoft.App.Jobs.createOrUpdate", + "azure.mgmt.appcontainers.aio.operations.JobsOperations.begin_create_or_update": "Microsoft.App.Jobs.createOrUpdate", + "azure.mgmt.appcontainers.operations.JobsOperations.begin_update": "Microsoft.App.Jobs.update", + "azure.mgmt.appcontainers.aio.operations.JobsOperations.begin_update": "Microsoft.App.Jobs.update", + "azure.mgmt.appcontainers.operations.JobsOperations.begin_delete": "Microsoft.App.Jobs.delete", + "azure.mgmt.appcontainers.aio.operations.JobsOperations.begin_delete": "Microsoft.App.Jobs.delete", + "azure.mgmt.appcontainers.operations.JobsOperations.list_by_resource_group": "Microsoft.App.Jobs.listByResourceGroup", + "azure.mgmt.appcontainers.aio.operations.JobsOperations.list_by_resource_group": "Microsoft.App.Jobs.listByResourceGroup", + "azure.mgmt.appcontainers.operations.JobsOperations.list_by_subscription": "Microsoft.App.Jobs.listBySubscription", + "azure.mgmt.appcontainers.aio.operations.JobsOperations.list_by_subscription": "Microsoft.App.Jobs.listBySubscription", + "azure.mgmt.appcontainers.operations.JobsOperations.begin_start": "Microsoft.App.Jobs.start", + "azure.mgmt.appcontainers.aio.operations.JobsOperations.begin_start": "Microsoft.App.Jobs.start", + "azure.mgmt.appcontainers.operations.JobsOperations.begin_stop_multiple_executions": "Microsoft.App.Jobs.stopMultipleExecutions", + "azure.mgmt.appcontainers.aio.operations.JobsOperations.begin_stop_multiple_executions": "Microsoft.App.Jobs.stopMultipleExecutions", + "azure.mgmt.appcontainers.operations.JobsOperations.list_secrets": "Microsoft.App.Jobs.listSecrets", + "azure.mgmt.appcontainers.aio.operations.JobsOperations.list_secrets": "Microsoft.App.Jobs.listSecrets", + "azure.mgmt.appcontainers.operations.JobsOperations.begin_resume": "Microsoft.App.Jobs.resume", + "azure.mgmt.appcontainers.aio.operations.JobsOperations.begin_resume": "Microsoft.App.Jobs.resume", + "azure.mgmt.appcontainers.operations.JobsOperations.begin_suspend": "Microsoft.App.Jobs.suspend", + "azure.mgmt.appcontainers.aio.operations.JobsOperations.begin_suspend": "Microsoft.App.Jobs.suspend", + "azure.mgmt.appcontainers.operations.JobsOperations.begin_stop_execution": "Microsoft.App.Jobs.stopExecution", + "azure.mgmt.appcontainers.aio.operations.JobsOperations.begin_stop_execution": "Microsoft.App.Jobs.stopExecution", + "azure.mgmt.appcontainers.operations.JobsOperations.proxy_get": "Microsoft.App.Jobs.proxyGet", + "azure.mgmt.appcontainers.aio.operations.JobsOperations.proxy_get": "Microsoft.App.Jobs.proxyGet", + "azure.mgmt.appcontainers.operations.JobsOperations.list_detectors": "Microsoft.App.Jobs.listDetectors", + "azure.mgmt.appcontainers.aio.operations.JobsOperations.list_detectors": "Microsoft.App.Jobs.listDetectors", + "azure.mgmt.appcontainers.operations.JobsOperations.get_detector": "Microsoft.App.Jobs.getDetector", + "azure.mgmt.appcontainers.aio.operations.JobsOperations.get_detector": "Microsoft.App.Jobs.getDetector", + "azure.mgmt.appcontainers.operations.ContainerAppsDiagnosticsOperations.get_revision": "Microsoft.App.ContainerAppsDiagnostics.getRevision", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsDiagnosticsOperations.get_revision": "Microsoft.App.ContainerAppsDiagnostics.getRevision", + "azure.mgmt.appcontainers.operations.ContainerAppsDiagnosticsOperations.list_revisions": "Microsoft.App.ContainerAppsDiagnostics.listRevisions", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsDiagnosticsOperations.list_revisions": "Microsoft.App.ContainerAppsDiagnostics.listRevisions", + "azure.mgmt.appcontainers.operations.ContainerAppsDiagnosticsOperations.get_root": "Microsoft.App.ContainerAppsDiagnostics.getRoot", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsDiagnosticsOperations.get_root": "Microsoft.App.ContainerAppsDiagnostics.getRoot", + "azure.mgmt.appcontainers.operations.ContainerAppsDiagnosticsOperations.list_detectors": "Microsoft.App.ContainerAppsDiagnostics.listDetectors", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsDiagnosticsOperations.list_detectors": "Microsoft.App.ContainerAppsDiagnostics.listDetectors", + "azure.mgmt.appcontainers.operations.ContainerAppsDiagnosticsOperations.get_detector": "Microsoft.App.ContainerAppsDiagnostics.getDetector", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsDiagnosticsOperations.get_detector": "Microsoft.App.ContainerAppsDiagnostics.getDetector", + "azure.mgmt.appcontainers.operations.ManagedEnvironmentsDiagnosticsOperations.get_root": "Microsoft.App.ManagedEnvironmentsDiagnostics.getRoot", + "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsDiagnosticsOperations.get_root": "Microsoft.App.ManagedEnvironmentsDiagnostics.getRoot", + "azure.mgmt.appcontainers.operations.ContainerAppsBuildsByContainerAppOperations.list": "Microsoft.App.ContainerAppsBuilds.list", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsBuildsByContainerAppOperations.list": "Microsoft.App.ContainerAppsBuilds.list", + "azure.mgmt.appcontainers.operations.ContainerAppsRevisionFunctionsOperations.get": "Microsoft.App.ContainerAppsFunctions.get", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsRevisionFunctionsOperations.get": "Microsoft.App.ContainerAppsFunctions.get", + "azure.mgmt.appcontainers.operations.ContainerAppsRevisionFunctionsOperations.list": "Microsoft.App.ContainerAppsFunctions.list", + "azure.mgmt.appcontainers.aio.operations.ContainerAppsRevisionFunctionsOperations.list": "Microsoft.App.ContainerAppsFunctions.list", + "azure.mgmt.appcontainers.operations.AppResiliencyOperations.get": "Microsoft.App.AppResiliencies.get", + "azure.mgmt.appcontainers.aio.operations.AppResiliencyOperations.get": "Microsoft.App.AppResiliencies.get", + "azure.mgmt.appcontainers.operations.AppResiliencyOperations.create_or_update": "Microsoft.App.AppResiliencies.createOrUpdate", + "azure.mgmt.appcontainers.aio.operations.AppResiliencyOperations.create_or_update": "Microsoft.App.AppResiliencies.createOrUpdate", + "azure.mgmt.appcontainers.operations.AppResiliencyOperations.update": "Microsoft.App.AppResiliencies.update", + "azure.mgmt.appcontainers.aio.operations.AppResiliencyOperations.update": "Microsoft.App.AppResiliencies.update", + "azure.mgmt.appcontainers.operations.AppResiliencyOperations.delete": "Microsoft.App.AppResiliencies.delete", + "azure.mgmt.appcontainers.aio.operations.AppResiliencyOperations.delete": "Microsoft.App.AppResiliencies.delete", + "azure.mgmt.appcontainers.operations.AppResiliencyOperations.list": "Microsoft.App.AppResiliencies.list", + "azure.mgmt.appcontainers.aio.operations.AppResiliencyOperations.list": "Microsoft.App.AppResiliencies.list", + "azure.mgmt.appcontainers.operations.BuildsByBuilderResourceOperations.list": "Microsoft.App.Builds.list", + "azure.mgmt.appcontainers.aio.operations.BuildsByBuilderResourceOperations.list": "Microsoft.App.Builds.list", + "azure.mgmt.appcontainers.operations.BuildAuthTokenOperations.list": "Microsoft.App.Builds.buildAuthTokenList", + "azure.mgmt.appcontainers.aio.operations.BuildAuthTokenOperations.list": "Microsoft.App.Builds.buildAuthTokenList", + "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsCertificatesOperations.get": "Microsoft.App.Certificates.get", + "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsCertificatesOperations.get": "Microsoft.App.Certificates.get", + "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsCertificatesOperations.begin_create_or_update": "Microsoft.App.Certificates.createOrUpdate", + "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsCertificatesOperations.begin_create_or_update": "Microsoft.App.Certificates.createOrUpdate", + "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsCertificatesOperations.begin_update": "Microsoft.App.Certificates.update", + "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsCertificatesOperations.begin_update": "Microsoft.App.Certificates.update", + "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsCertificatesOperations.begin_delete": "Microsoft.App.Certificates.delete", + "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsCertificatesOperations.begin_delete": "Microsoft.App.Certificates.delete", + "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsCertificatesOperations.list": "Microsoft.App.Certificates.list", + "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsCertificatesOperations.list": "Microsoft.App.Certificates.list", + "azure.mgmt.appcontainers.operations.NamespacesOperations.check_name_availability": "Microsoft.App.ManagedEnvironments.checkNameAvailability", + "azure.mgmt.appcontainers.aio.operations.NamespacesOperations.check_name_availability": "Microsoft.App.ManagedEnvironments.checkNameAvailability", + "azure.mgmt.appcontainers.operations.ManagedEnvironmentPrivateLinkResourcesOperations.list": "Microsoft.App.ManagedEnvironments.list", + "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentPrivateLinkResourcesOperations.list": "Microsoft.App.ManagedEnvironments.list", + "azure.mgmt.appcontainers.operations.ManagedEnvironmentPrivateEndpointConnectionsOperations.get": "Microsoft.App.PrivateEndpointConnections.get", + "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentPrivateEndpointConnectionsOperations.get": "Microsoft.App.PrivateEndpointConnections.get", + "azure.mgmt.appcontainers.operations.ManagedEnvironmentPrivateEndpointConnectionsOperations.begin_create_or_update": "Microsoft.App.PrivateEndpointConnections.createOrUpdate", + "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentPrivateEndpointConnectionsOperations.begin_create_or_update": "Microsoft.App.PrivateEndpointConnections.createOrUpdate", + "azure.mgmt.appcontainers.operations.ManagedEnvironmentPrivateEndpointConnectionsOperations.begin_delete": "Microsoft.App.PrivateEndpointConnections.delete", + "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentPrivateEndpointConnectionsOperations.begin_delete": "Microsoft.App.PrivateEndpointConnections.delete", + "azure.mgmt.appcontainers.operations.ManagedEnvironmentPrivateEndpointConnectionsOperations.list": "Microsoft.App.PrivateEndpointConnections.list", + "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentPrivateEndpointConnectionsOperations.list": "Microsoft.App.PrivateEndpointConnections.list", + "azure.mgmt.appcontainers.operations.HttpRouteConfigOperations.get": "Microsoft.App.HttpRouteConfigs.get", + "azure.mgmt.appcontainers.aio.operations.HttpRouteConfigOperations.get": "Microsoft.App.HttpRouteConfigs.get", + "azure.mgmt.appcontainers.operations.HttpRouteConfigOperations.create_or_update": "Microsoft.App.HttpRouteConfigs.createOrUpdate", + "azure.mgmt.appcontainers.aio.operations.HttpRouteConfigOperations.create_or_update": "Microsoft.App.HttpRouteConfigs.createOrUpdate", + "azure.mgmt.appcontainers.operations.HttpRouteConfigOperations.update": "Microsoft.App.HttpRouteConfigs.update", + "azure.mgmt.appcontainers.aio.operations.HttpRouteConfigOperations.update": "Microsoft.App.HttpRouteConfigs.update", + "azure.mgmt.appcontainers.operations.HttpRouteConfigOperations.begin_delete": "Microsoft.App.HttpRouteConfigs.delete", + "azure.mgmt.appcontainers.aio.operations.HttpRouteConfigOperations.begin_delete": "Microsoft.App.HttpRouteConfigs.delete", + "azure.mgmt.appcontainers.operations.HttpRouteConfigOperations.list": "Microsoft.App.HttpRouteConfigs.list", + "azure.mgmt.appcontainers.aio.operations.HttpRouteConfigOperations.list": "Microsoft.App.HttpRouteConfigs.list", + "azure.mgmt.appcontainers.operations.JobsExecutionsOperations.list": "Microsoft.App.Jobs.list", + "azure.mgmt.appcontainers.aio.operations.JobsExecutionsOperations.list": "Microsoft.App.Jobs.list", + "azure.mgmt.appcontainers.operations.ManagedEnvironmentDiagnosticsOperations.list_detectors": "Microsoft.App.ManagedEnvironmentsDiagnostics.listDetectors", + "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentDiagnosticsOperations.list_detectors": "Microsoft.App.ManagedEnvironmentsDiagnostics.listDetectors", + "azure.mgmt.appcontainers.operations.ManagedEnvironmentDiagnosticsOperations.get_detector": "Microsoft.App.ManagedEnvironmentsDiagnostics.getDetector", + "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentDiagnosticsOperations.get_detector": "Microsoft.App.ManagedEnvironmentsDiagnostics.getDetector", + "azure.mgmt.appcontainers.operations.AvailableWorkloadProfilesOperations.get": "Microsoft.App.AvailableWorkloadProfilesOperationGroup.get", + "azure.mgmt.appcontainers.aio.operations.AvailableWorkloadProfilesOperations.get": "Microsoft.App.AvailableWorkloadProfilesOperationGroup.get", + "azure.mgmt.appcontainers.operations.BillingMetersOperations.get": "Microsoft.App.BillingMetersOperationGroup.get", + "azure.mgmt.appcontainers.aio.operations.BillingMetersOperations.get": "Microsoft.App.BillingMetersOperationGroup.get", + "azure.mgmt.appcontainers.operations.UsagesOperations.list": "Microsoft.App.UsagesOperationGroup.list", + "azure.mgmt.appcontainers.aio.operations.UsagesOperations.list": "Microsoft.App.UsagesOperationGroup.list", + "azure.mgmt.appcontainers.operations.ManagedEnvironmentUsagesOperations.list": "Microsoft.App.ManagedEnvironmentUsagesOperationGroup.list", + "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentUsagesOperations.list": "Microsoft.App.ManagedEnvironmentUsagesOperationGroup.list", + "azure.mgmt.appcontainers.ContainerAppsAPIClient.get_custom_domain_verification_id": "Microsoft.App.getCustomDomainVerificationId", + "azure.mgmt.appcontainers.aio.ContainerAppsAPIClient.get_custom_domain_verification_id": "Microsoft.App.getCustomDomainVerificationId", + "azure.mgmt.appcontainers.ContainerAppsAPIClient.job_execution": "Microsoft.App.Jobs.jobExecution", + "azure.mgmt.appcontainers.aio.ContainerAppsAPIClient.job_execution": "Microsoft.App.Jobs.jobExecution" } } \ No newline at end of file diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/__init__.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/__init__.py index 70129350215c..a5fcb01916ef 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/__init__.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/__init__.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- # pylint: disable=wrong-import-position @@ -12,7 +12,7 @@ if TYPE_CHECKING: from ._patch import * # pylint: disable=unused-wildcard-import -from ._container_apps_api_client import ContainerAppsAPIClient # type: ignore +from ._client import ContainerAppsAPIClient # type: ignore from ._version import VERSION __version__ = VERSION diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_container_apps_api_client.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_client.py similarity index 70% rename from sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_container_apps_api_client.py rename to sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_client.py index adf5c6aaa972..3f4ed9ce5933 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_container_apps_api_client.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_client.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -17,25 +17,39 @@ from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy from azure.mgmt.core.tools import get_arm_endpoints -from . import models as _models from ._configuration import ContainerAppsAPIClientConfiguration from ._utils.serialization import Deserializer, Serializer from .operations import ( + AppResiliencyOperations, AvailableWorkloadProfilesOperations, BillingMetersOperations, + BuildAuthTokenOperations, + BuildersOperations, + BuildsByBuilderResourceOperations, + BuildsOperations, CertificatesOperations, ConnectedEnvironmentsCertificatesOperations, ConnectedEnvironmentsDaprComponentsOperations, ConnectedEnvironmentsOperations, ConnectedEnvironmentsStoragesOperations, ContainerAppsAuthConfigsOperations, + ContainerAppsBuildsByContainerAppOperations, + ContainerAppsBuildsOperations, ContainerAppsDiagnosticsOperations, + ContainerAppsFunctionsOperations, + ContainerAppsLabelHistoryOperations, ContainerAppsOperations, + ContainerAppsPatchesOperations, + ContainerAppsRevisionFunctionsOperations, ContainerAppsRevisionReplicasOperations, ContainerAppsRevisionsOperations, ContainerAppsSessionPoolsOperations, ContainerAppsSourceControlsOperations, + DaprComponentResiliencyPoliciesOperations, DaprComponentsOperations, + DaprSubscriptionsOperations, + DotNetComponentsOperations, + FunctionsExtensionOperations, HttpRouteConfigOperations, JavaComponentsOperations, JobsExecutionsOperations, @@ -62,108 +76,149 @@ class ContainerAppsAPIClient(_ContainerAppsAPIClientOperationsMixin): # pylint: disable=too-many-instance-attributes - """Logic app is an extension resource on container app and the extension resource enables logic - specific operations on the container app through the APIs listed. + """Functions is an extension resource to revisions and the api listed is used to proxy the call + from Web RP to the function app's host process, this api is not exposed to users and only Web + RP is allowed to invoke functions extension resource. + :ivar operations: Operations operations + :vartype operations: azure.mgmt.appcontainers.operations.Operations + :ivar container_apps_session_pools: ContainerAppsSessionPoolsOperations operations + :vartype container_apps_session_pools: + azure.mgmt.appcontainers.operations.ContainerAppsSessionPoolsOperations + :ivar container_apps_source_controls: ContainerAppsSourceControlsOperations operations + :vartype container_apps_source_controls: + azure.mgmt.appcontainers.operations.ContainerAppsSourceControlsOperations + :ivar container_apps: ContainerAppsOperations operations + :vartype container_apps: azure.mgmt.appcontainers.operations.ContainerAppsOperations + :ivar container_apps_builds: ContainerAppsBuildsOperations operations + :vartype container_apps_builds: + azure.mgmt.appcontainers.operations.ContainerAppsBuildsOperations + :ivar container_apps_functions: ContainerAppsFunctionsOperations operations + :vartype container_apps_functions: + azure.mgmt.appcontainers.operations.ContainerAppsFunctionsOperations + :ivar container_apps_revisions: ContainerAppsRevisionsOperations operations + :vartype container_apps_revisions: + azure.mgmt.appcontainers.operations.ContainerAppsRevisionsOperations + :ivar functions_extension: FunctionsExtensionOperations operations + :vartype functions_extension: azure.mgmt.appcontainers.operations.FunctionsExtensionOperations + :ivar container_apps_label_history: ContainerAppsLabelHistoryOperations operations + :vartype container_apps_label_history: + azure.mgmt.appcontainers.operations.ContainerAppsLabelHistoryOperations + :ivar container_apps_patches: ContainerAppsPatchesOperations operations + :vartype container_apps_patches: + azure.mgmt.appcontainers.operations.ContainerAppsPatchesOperations + :ivar container_apps_revision_replicas: ContainerAppsRevisionReplicasOperations operations + :vartype container_apps_revision_replicas: + azure.mgmt.appcontainers.operations.ContainerAppsRevisionReplicasOperations + :ivar dot_net_components: DotNetComponentsOperations operations + :vartype dot_net_components: azure.mgmt.appcontainers.operations.DotNetComponentsOperations + :ivar java_components: JavaComponentsOperations operations + :vartype java_components: azure.mgmt.appcontainers.operations.JavaComponentsOperations + :ivar logic_apps: LogicAppsOperations operations + :vartype logic_apps: azure.mgmt.appcontainers.operations.LogicAppsOperations :ivar container_apps_auth_configs: ContainerAppsAuthConfigsOperations operations :vartype container_apps_auth_configs: azure.mgmt.appcontainers.operations.ContainerAppsAuthConfigsOperations - :ivar available_workload_profiles: AvailableWorkloadProfilesOperations operations - :vartype available_workload_profiles: - azure.mgmt.appcontainers.operations.AvailableWorkloadProfilesOperations - :ivar billing_meters: BillingMetersOperations operations - :vartype billing_meters: azure.mgmt.appcontainers.operations.BillingMetersOperations + :ivar builders: BuildersOperations operations + :vartype builders: azure.mgmt.appcontainers.operations.BuildersOperations + :ivar builds: BuildsOperations operations + :vartype builds: azure.mgmt.appcontainers.operations.BuildsOperations :ivar connected_environments: ConnectedEnvironmentsOperations operations :vartype connected_environments: azure.mgmt.appcontainers.operations.ConnectedEnvironmentsOperations - :ivar connected_environments_certificates: ConnectedEnvironmentsCertificatesOperations - operations - :vartype connected_environments_certificates: - azure.mgmt.appcontainers.operations.ConnectedEnvironmentsCertificatesOperations + :ivar certificates: CertificatesOperations operations + :vartype certificates: azure.mgmt.appcontainers.operations.CertificatesOperations :ivar connected_environments_dapr_components: ConnectedEnvironmentsDaprComponentsOperations operations :vartype connected_environments_dapr_components: azure.mgmt.appcontainers.operations.ConnectedEnvironmentsDaprComponentsOperations + :ivar dapr_components: DaprComponentsOperations operations + :vartype dapr_components: azure.mgmt.appcontainers.operations.DaprComponentsOperations :ivar connected_environments_storages: ConnectedEnvironmentsStoragesOperations operations :vartype connected_environments_storages: azure.mgmt.appcontainers.operations.ConnectedEnvironmentsStoragesOperations - :ivar container_apps: ContainerAppsOperations operations - :vartype container_apps: azure.mgmt.appcontainers.operations.ContainerAppsOperations - :ivar container_apps_revisions: ContainerAppsRevisionsOperations operations - :vartype container_apps_revisions: - azure.mgmt.appcontainers.operations.ContainerAppsRevisionsOperations - :ivar container_apps_revision_replicas: ContainerAppsRevisionReplicasOperations operations - :vartype container_apps_revision_replicas: - azure.mgmt.appcontainers.operations.ContainerAppsRevisionReplicasOperations - :ivar container_apps_diagnostics: ContainerAppsDiagnosticsOperations operations - :vartype container_apps_diagnostics: - azure.mgmt.appcontainers.operations.ContainerAppsDiagnosticsOperations - :ivar managed_environment_diagnostics: ManagedEnvironmentDiagnosticsOperations operations - :vartype managed_environment_diagnostics: - azure.mgmt.appcontainers.operations.ManagedEnvironmentDiagnosticsOperations - :ivar managed_environments_diagnostics: ManagedEnvironmentsDiagnosticsOperations operations - :vartype managed_environments_diagnostics: - azure.mgmt.appcontainers.operations.ManagedEnvironmentsDiagnosticsOperations - :ivar jobs: JobsOperations operations - :vartype jobs: azure.mgmt.appcontainers.operations.JobsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appcontainers.operations.Operations - :ivar java_components: JavaComponentsOperations operations - :vartype java_components: azure.mgmt.appcontainers.operations.JavaComponentsOperations - :ivar jobs_executions: JobsExecutionsOperations operations - :vartype jobs_executions: azure.mgmt.appcontainers.operations.JobsExecutionsOperations :ivar managed_environments: ManagedEnvironmentsOperations operations :vartype managed_environments: azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: azure.mgmt.appcontainers.operations.CertificatesOperations :ivar managed_certificates: ManagedCertificatesOperations operations :vartype managed_certificates: azure.mgmt.appcontainers.operations.ManagedCertificatesOperations + :ivar dapr_component_resiliency_policies: DaprComponentResiliencyPoliciesOperations operations + :vartype dapr_component_resiliency_policies: + azure.mgmt.appcontainers.operations.DaprComponentResiliencyPoliciesOperations + :ivar dapr_subscriptions: DaprSubscriptionsOperations operations + :vartype dapr_subscriptions: azure.mgmt.appcontainers.operations.DaprSubscriptionsOperations + :ivar maintenance_configurations: MaintenanceConfigurationsOperations operations + :vartype maintenance_configurations: + azure.mgmt.appcontainers.operations.MaintenanceConfigurationsOperations + :ivar managed_environments_storages: ManagedEnvironmentsStoragesOperations operations + :vartype managed_environments_storages: + azure.mgmt.appcontainers.operations.ManagedEnvironmentsStoragesOperations + :ivar jobs: JobsOperations operations + :vartype jobs: azure.mgmt.appcontainers.operations.JobsOperations + :ivar container_apps_diagnostics: ContainerAppsDiagnosticsOperations operations + :vartype container_apps_diagnostics: + azure.mgmt.appcontainers.operations.ContainerAppsDiagnosticsOperations + :ivar managed_environments_diagnostics: ManagedEnvironmentsDiagnosticsOperations operations + :vartype managed_environments_diagnostics: + azure.mgmt.appcontainers.operations.ManagedEnvironmentsDiagnosticsOperations + :ivar container_apps_builds_by_container_app: ContainerAppsBuildsByContainerAppOperations + operations + :vartype container_apps_builds_by_container_app: + azure.mgmt.appcontainers.operations.ContainerAppsBuildsByContainerAppOperations + :ivar container_apps_revision_functions: ContainerAppsRevisionFunctionsOperations operations + :vartype container_apps_revision_functions: + azure.mgmt.appcontainers.operations.ContainerAppsRevisionFunctionsOperations + :ivar app_resiliency: AppResiliencyOperations operations + :vartype app_resiliency: azure.mgmt.appcontainers.operations.AppResiliencyOperations + :ivar builds_by_builder_resource: BuildsByBuilderResourceOperations operations + :vartype builds_by_builder_resource: + azure.mgmt.appcontainers.operations.BuildsByBuilderResourceOperations + :ivar build_auth_token: BuildAuthTokenOperations operations + :vartype build_auth_token: azure.mgmt.appcontainers.operations.BuildAuthTokenOperations + :ivar connected_environments_certificates: ConnectedEnvironmentsCertificatesOperations + operations + :vartype connected_environments_certificates: + azure.mgmt.appcontainers.operations.ConnectedEnvironmentsCertificatesOperations :ivar namespaces: NamespacesOperations operations :vartype namespaces: azure.mgmt.appcontainers.operations.NamespacesOperations - :ivar managed_environment_private_endpoint_connections: - ManagedEnvironmentPrivateEndpointConnectionsOperations operations - :vartype managed_environment_private_endpoint_connections: - azure.mgmt.appcontainers.operations.ManagedEnvironmentPrivateEndpointConnectionsOperations :ivar managed_environment_private_link_resources: ManagedEnvironmentPrivateLinkResourcesOperations operations :vartype managed_environment_private_link_resources: azure.mgmt.appcontainers.operations.ManagedEnvironmentPrivateLinkResourcesOperations - :ivar dapr_components: DaprComponentsOperations operations - :vartype dapr_components: azure.mgmt.appcontainers.operations.DaprComponentsOperations + :ivar managed_environment_private_endpoint_connections: + ManagedEnvironmentPrivateEndpointConnectionsOperations operations + :vartype managed_environment_private_endpoint_connections: + azure.mgmt.appcontainers.operations.ManagedEnvironmentPrivateEndpointConnectionsOperations :ivar http_route_config: HttpRouteConfigOperations operations :vartype http_route_config: azure.mgmt.appcontainers.operations.HttpRouteConfigOperations - :ivar maintenance_configurations: MaintenanceConfigurationsOperations operations - :vartype maintenance_configurations: - azure.mgmt.appcontainers.operations.MaintenanceConfigurationsOperations - :ivar managed_environments_storages: ManagedEnvironmentsStoragesOperations operations - :vartype managed_environments_storages: - azure.mgmt.appcontainers.operations.ManagedEnvironmentsStoragesOperations - :ivar container_apps_session_pools: ContainerAppsSessionPoolsOperations operations - :vartype container_apps_session_pools: - azure.mgmt.appcontainers.operations.ContainerAppsSessionPoolsOperations - :ivar container_apps_source_controls: ContainerAppsSourceControlsOperations operations - :vartype container_apps_source_controls: - azure.mgmt.appcontainers.operations.ContainerAppsSourceControlsOperations + :ivar jobs_executions: JobsExecutionsOperations operations + :vartype jobs_executions: azure.mgmt.appcontainers.operations.JobsExecutionsOperations + :ivar managed_environment_diagnostics: ManagedEnvironmentDiagnosticsOperations operations + :vartype managed_environment_diagnostics: + azure.mgmt.appcontainers.operations.ManagedEnvironmentDiagnosticsOperations + :ivar available_workload_profiles: AvailableWorkloadProfilesOperations operations + :vartype available_workload_profiles: + azure.mgmt.appcontainers.operations.AvailableWorkloadProfilesOperations + :ivar billing_meters: BillingMetersOperations operations + :vartype billing_meters: azure.mgmt.appcontainers.operations.BillingMetersOperations :ivar usages: UsagesOperations operations :vartype usages: azure.mgmt.appcontainers.operations.UsagesOperations :ivar managed_environment_usages: ManagedEnvironmentUsagesOperations operations :vartype managed_environment_usages: azure.mgmt.appcontainers.operations.ManagedEnvironmentUsagesOperations - :ivar logic_apps: LogicAppsOperations operations - :vartype logic_apps: azure.mgmt.appcontainers.operations.LogicAppsOperations - :param credential: Credential needed for the client to connect to Azure. Required. + :param credential: Credential used to authenticate requests to the service. Required. :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: The ID of the target subscription. Required. + :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. :type subscription_id: str - :param base_url: Service URL. Default value is None. + :param base_url: Service host. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2026-01-01". Note that overriding this - default value may result in unsupported behavior. + :keyword api_version: The API version to use for this operation. Known values are + "2025-10-02-preview". Default value is "2025-10-02-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. @@ -178,6 +233,7 @@ def __init__( cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: + _endpoint = "{endpoint}" _cloud = cloud_setting or settings.current.azure_cloud # type: ignore _endpoints = get_arm_endpoints(_cloud) if not base_url: @@ -186,6 +242,7 @@ def __init__( self._config = ContainerAppsAPIClientConfiguration( credential=credential, subscription_id=subscription_id, + base_url=cast(str, base_url), cloud_setting=cloud_setting, credential_scopes=credential_scopes, **kwargs @@ -209,67 +266,71 @@ def __init__( policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, self._config.http_logging_policy, ] - self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, base_url), policies=_policies, **kwargs) + self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, _endpoint), 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 = Serializer() + self._deserialize = Deserializer() self._serialize.client_side_validation = False - self.container_apps_auth_configs = ContainerAppsAuthConfigsOperations( + self.operations = Operations(self._client, self._config, self._serialize, self._deserialize) + self.container_apps_session_pools = ContainerAppsSessionPoolsOperations( self._client, self._config, self._serialize, self._deserialize ) - self.available_workload_profiles = AvailableWorkloadProfilesOperations( + self.container_apps_source_controls = ContainerAppsSourceControlsOperations( self._client, self._config, self._serialize, self._deserialize ) - self.billing_meters = BillingMetersOperations(self._client, self._config, self._serialize, self._deserialize) - self.connected_environments = ConnectedEnvironmentsOperations( + self.container_apps = ContainerAppsOperations(self._client, self._config, self._serialize, self._deserialize) + self.container_apps_builds = ContainerAppsBuildsOperations( self._client, self._config, self._serialize, self._deserialize ) - self.connected_environments_certificates = ConnectedEnvironmentsCertificatesOperations( + self.container_apps_functions = ContainerAppsFunctionsOperations( self._client, self._config, self._serialize, self._deserialize ) - self.connected_environments_dapr_components = ConnectedEnvironmentsDaprComponentsOperations( + self.container_apps_revisions = ContainerAppsRevisionsOperations( self._client, self._config, self._serialize, self._deserialize ) - self.connected_environments_storages = ConnectedEnvironmentsStoragesOperations( + self.functions_extension = FunctionsExtensionOperations( self._client, self._config, self._serialize, self._deserialize ) - self.container_apps = ContainerAppsOperations(self._client, self._config, self._serialize, self._deserialize) - self.container_apps_revisions = ContainerAppsRevisionsOperations( + self.container_apps_label_history = ContainerAppsLabelHistoryOperations( self._client, self._config, self._serialize, self._deserialize ) - self.container_apps_revision_replicas = ContainerAppsRevisionReplicasOperations( + self.container_apps_patches = ContainerAppsPatchesOperations( self._client, self._config, self._serialize, self._deserialize ) - self.container_apps_diagnostics = ContainerAppsDiagnosticsOperations( + self.container_apps_revision_replicas = ContainerAppsRevisionReplicasOperations( self._client, self._config, self._serialize, self._deserialize ) - self.managed_environment_diagnostics = ManagedEnvironmentDiagnosticsOperations( + self.dot_net_components = DotNetComponentsOperations( self._client, self._config, self._serialize, self._deserialize ) - self.managed_environments_diagnostics = ManagedEnvironmentsDiagnosticsOperations( + self.java_components = JavaComponentsOperations(self._client, self._config, self._serialize, self._deserialize) + self.logic_apps = LogicAppsOperations(self._client, self._config, self._serialize, self._deserialize) + self.container_apps_auth_configs = ContainerAppsAuthConfigsOperations( self._client, self._config, self._serialize, self._deserialize ) - self.jobs = JobsOperations(self._client, self._config, self._serialize, self._deserialize) - self.operations = Operations(self._client, self._config, self._serialize, self._deserialize) - self.java_components = JavaComponentsOperations(self._client, self._config, self._serialize, self._deserialize) - self.jobs_executions = JobsExecutionsOperations(self._client, self._config, self._serialize, self._deserialize) - self.managed_environments = ManagedEnvironmentsOperations( + self.builders = BuildersOperations(self._client, self._config, self._serialize, self._deserialize) + self.builds = BuildsOperations(self._client, self._config, self._serialize, self._deserialize) + self.connected_environments = ConnectedEnvironmentsOperations( self._client, self._config, self._serialize, self._deserialize ) self.certificates = CertificatesOperations(self._client, self._config, self._serialize, self._deserialize) - self.managed_certificates = ManagedCertificatesOperations( + self.connected_environments_dapr_components = ConnectedEnvironmentsDaprComponentsOperations( self._client, self._config, self._serialize, self._deserialize ) - self.namespaces = NamespacesOperations(self._client, self._config, self._serialize, self._deserialize) - self.managed_environment_private_endpoint_connections = ManagedEnvironmentPrivateEndpointConnectionsOperations( + self.dapr_components = DaprComponentsOperations(self._client, self._config, self._serialize, self._deserialize) + self.connected_environments_storages = ConnectedEnvironmentsStoragesOperations( self._client, self._config, self._serialize, self._deserialize ) - self.managed_environment_private_link_resources = ManagedEnvironmentPrivateLinkResourcesOperations( + self.managed_environments = ManagedEnvironmentsOperations( self._client, self._config, self._serialize, self._deserialize ) - self.dapr_components = DaprComponentsOperations(self._client, self._config, self._serialize, self._deserialize) - self.http_route_config = HttpRouteConfigOperations( + self.managed_certificates = ManagedCertificatesOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.dapr_component_resiliency_policies = DaprComponentResiliencyPoliciesOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.dapr_subscriptions = DaprSubscriptionsOperations( self._client, self._config, self._serialize, self._deserialize ) self.maintenance_configurations = MaintenanceConfigurationsOperations( @@ -278,25 +339,57 @@ def __init__( self.managed_environments_storages = ManagedEnvironmentsStoragesOperations( self._client, self._config, self._serialize, self._deserialize ) - self.container_apps_session_pools = ContainerAppsSessionPoolsOperations( + self.jobs = JobsOperations(self._client, self._config, self._serialize, self._deserialize) + self.container_apps_diagnostics = ContainerAppsDiagnosticsOperations( self._client, self._config, self._serialize, self._deserialize ) - self.container_apps_source_controls = ContainerAppsSourceControlsOperations( + self.managed_environments_diagnostics = ManagedEnvironmentsDiagnosticsOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.container_apps_builds_by_container_app = ContainerAppsBuildsByContainerAppOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.container_apps_revision_functions = ContainerAppsRevisionFunctionsOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.app_resiliency = AppResiliencyOperations(self._client, self._config, self._serialize, self._deserialize) + self.builds_by_builder_resource = BuildsByBuilderResourceOperations( self._client, self._config, self._serialize, self._deserialize ) + self.build_auth_token = BuildAuthTokenOperations(self._client, self._config, self._serialize, self._deserialize) + self.connected_environments_certificates = ConnectedEnvironmentsCertificatesOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.namespaces = NamespacesOperations(self._client, self._config, self._serialize, self._deserialize) + self.managed_environment_private_link_resources = ManagedEnvironmentPrivateLinkResourcesOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.managed_environment_private_endpoint_connections = ManagedEnvironmentPrivateEndpointConnectionsOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.http_route_config = HttpRouteConfigOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.jobs_executions = JobsExecutionsOperations(self._client, self._config, self._serialize, self._deserialize) + self.managed_environment_diagnostics = ManagedEnvironmentDiagnosticsOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.available_workload_profiles = AvailableWorkloadProfilesOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.billing_meters = BillingMetersOperations(self._client, self._config, self._serialize, self._deserialize) self.usages = UsagesOperations(self._client, self._config, self._serialize, self._deserialize) self.managed_environment_usages = ManagedEnvironmentUsagesOperations( self._client, self._config, self._serialize, self._deserialize ) - self.logic_apps = LogicAppsOperations(self._client, self._config, self._serialize, self._deserialize) - def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: + 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) + >>> response = client.send_request(request) For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request @@ -309,7 +402,11 @@ def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: """ request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + request_copy.url = self._client.format_url(request_copy.url, **path_format_arguments) return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore def close(self) -> None: diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_configuration.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_configuration.py index b2ce2d9abbae..6d30f211f31f 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_configuration.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_configuration.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -24,15 +24,18 @@ class ContainerAppsAPIClientConfiguration: # pylint: disable=too-many-instance- 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. + :param credential: Credential used to authenticate requests to the service. Required. :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: The ID of the target subscription. Required. + :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. :type subscription_id: str + :param base_url: Service host. Default value is "https://management.azure.com". + :type base_url: str :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2026-01-01". Note that overriding this - default value may result in unsupported behavior. + :keyword api_version: The API version to use for this operation. Known values are + "2025-10-02-preview". Default value is "2025-10-02-preview". Note that overriding this default + value may result in unsupported behavior. :paramtype api_version: str """ @@ -40,10 +43,11 @@ def __init__( self, credential: "TokenCredential", subscription_id: str, + base_url: str = "https://management.azure.com", cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: - api_version: str = kwargs.pop("api_version", "2026-01-01") + api_version: str = kwargs.pop("api_version", "2025-10-02-preview") if credential is None: raise ValueError("Parameter 'credential' must not be None.") @@ -52,6 +56,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id + self.base_url = base_url self.cloud_setting = cloud_setting self.api_version = api_version self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_patch.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_patch.py index 17dbc073e01b..87676c65a8f0 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_patch.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_patch.py @@ -1,32 +1,21 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# # Copyright (c) Microsoft Corporation. All rights reserved. -# -# The MIT License (MIT) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the ""Software""), to -# deal in the Software without restriction, including without limitation the -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -# sell copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -# IN THE SOFTWARE. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------- +"""Customize generated code here. + +Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize +""" + + +__all__: list[str] = [] # Add all objects you want publicly available to users at this package level -# This file is used for handwritten extensions to the generated code. Example: -# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md def patch_sdk(): - pass + """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/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_utils/__init__.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_utils/__init__.py index 0af9b28f6607..8026245c2abc 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_utils/__init__.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_utils/__init__.py @@ -1,6 +1,6 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_utils/model_base.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_utils/model_base.py new file mode 100644 index 000000000000..7b7f8ba67b53 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_utils/model_base.py @@ -0,0 +1,1350 @@ +# pylint: disable=line-too-long,useless-suppression,too-many-lines +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +# pylint: disable=protected-access, broad-except + +import copy +import calendar +import decimal +import functools +import sys +import logging +import base64 +import re +import typing +import enum +import email.utils +from datetime import datetime, date, time, timedelta, timezone +from json import JSONEncoder +import xml.etree.ElementTree as ET +from collections.abc import MutableMapping +from typing_extensions import Self +import isodate +from azure.core.exceptions import DeserializationError +from azure.core import CaseInsensitiveEnumMeta +from azure.core.pipeline import PipelineResponse +from azure.core.serialization import _Null +from azure.core.rest import HttpResponse + +_LOGGER = logging.getLogger(__name__) + +__all__ = ["SdkJSONEncoder", "Model", "rest_field", "rest_discriminator"] + +TZ_UTC = timezone.utc +_T = typing.TypeVar("_T") +_NONE_TYPE = type(None) + + +def _timedelta_as_isostr(td: timedelta) -> str: + """Converts a datetime.timedelta object into an ISO 8601 formatted string, e.g. 'P4DT12H30M05S' + + Function adapted from the Tin Can Python project: https://github.com/RusticiSoftware/TinCanPython + + :param timedelta td: The timedelta to convert + :rtype: str + :return: ISO8601 version of this timedelta + """ + + # Split seconds to larger units + seconds = td.total_seconds() + minutes, seconds = divmod(seconds, 60) + hours, minutes = divmod(minutes, 60) + days, hours = divmod(hours, 24) + + days, hours, minutes = list(map(int, (days, hours, minutes))) + seconds = round(seconds, 6) + + # Build date + date_str = "" + if days: + date_str = "%sD" % days + + if hours or minutes or seconds: + # Build time + time_str = "T" + + # Hours + bigger_exists = date_str or hours + if bigger_exists: + time_str += "{:02}H".format(hours) + + # Minutes + bigger_exists = bigger_exists or minutes + if bigger_exists: + time_str += "{:02}M".format(minutes) + + # Seconds + try: + if seconds.is_integer(): + seconds_string = "{:02}".format(int(seconds)) + else: + # 9 chars long w/ leading 0, 6 digits after decimal + seconds_string = "%09.6f" % seconds + # Remove trailing zeros + seconds_string = seconds_string.rstrip("0") + except AttributeError: # int.is_integer() raises + seconds_string = "{:02}".format(seconds) + + time_str += "{}S".format(seconds_string) + else: + time_str = "" + + return "P" + date_str + time_str + + +def _serialize_bytes(o, format: typing.Optional[str] = None) -> str: + encoded = base64.b64encode(o).decode() + if format == "base64url": + return encoded.strip("=").replace("+", "-").replace("/", "_") + return encoded + + +def _serialize_datetime(o, format: typing.Optional[str] = None): + if hasattr(o, "year") and hasattr(o, "hour"): + if format == "rfc7231": + return email.utils.format_datetime(o, usegmt=True) + if format == "unix-timestamp": + return int(calendar.timegm(o.utctimetuple())) + + # astimezone() fails for naive times in Python 2.7, so make make sure o is aware (tzinfo is set) + if not o.tzinfo: + iso_formatted = o.replace(tzinfo=TZ_UTC).isoformat() + else: + iso_formatted = o.astimezone(TZ_UTC).isoformat() + # Replace the trailing "+00:00" UTC offset with "Z" (RFC 3339: https://www.ietf.org/rfc/rfc3339.txt) + return iso_formatted.replace("+00:00", "Z") + # Next try datetime.date or datetime.time + return o.isoformat() + + +def _is_readonly(p): + try: + return p._visibility == ["read"] + except AttributeError: + return False + + +class SdkJSONEncoder(JSONEncoder): + """A JSON encoder that's capable of serializing datetime objects and bytes.""" + + def __init__(self, *args, exclude_readonly: bool = False, format: typing.Optional[str] = None, **kwargs): + super().__init__(*args, **kwargs) + self.exclude_readonly = exclude_readonly + self.format = format + + def default(self, o): # pylint: disable=too-many-return-statements + if _is_model(o): + if self.exclude_readonly: + readonly_props = [p._rest_name for p in o._attr_to_rest_field.values() if _is_readonly(p)] + return {k: v for k, v in o.items() if k not in readonly_props} + return dict(o.items()) + try: + return super(SdkJSONEncoder, self).default(o) + except TypeError: + if isinstance(o, _Null): + return None + if isinstance(o, decimal.Decimal): + return float(o) + if isinstance(o, (bytes, bytearray)): + return _serialize_bytes(o, self.format) + try: + # First try datetime.datetime + return _serialize_datetime(o, self.format) + except AttributeError: + pass + # Last, try datetime.timedelta + try: + return _timedelta_as_isostr(o) + except AttributeError: + # This will be raised when it hits value.total_seconds in the method above + pass + return super(SdkJSONEncoder, self).default(o) + + +_VALID_DATE = re.compile(r"\d{4}[-]\d{2}[-]\d{2}T\d{2}:\d{2}:\d{2}" + r"\.?\d*Z?[-+]?[\d{2}]?:?[\d{2}]?") +_VALID_RFC7231 = re.compile( + r"(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s\d{2}\s" + r"(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s\d{4}\s\d{2}:\d{2}:\d{2}\sGMT" +) + +_ARRAY_ENCODE_MAPPING = { + "pipeDelimited": "|", + "spaceDelimited": " ", + "commaDelimited": ",", + "newlineDelimited": "\n", +} + + +def _deserialize_array_encoded(delimit: str, attr): + if isinstance(attr, str): + if attr == "": + return [] + return attr.split(delimit) + return attr + + +def _deserialize_datetime(attr: typing.Union[str, datetime]) -> datetime: + """Deserialize ISO-8601 formatted string into Datetime object. + + :param str attr: response string to be deserialized. + :rtype: ~datetime.datetime + :returns: The datetime object from that input + """ + if isinstance(attr, datetime): + # i'm already deserialized + return attr + attr = attr.upper() + match = _VALID_DATE.match(attr) + if not match: + raise ValueError("Invalid datetime string: " + attr) + + check_decimal = attr.split(".") + if len(check_decimal) > 1: + decimal_str = "" + for digit in check_decimal[1]: + if digit.isdigit(): + decimal_str += digit + else: + break + if len(decimal_str) > 6: + attr = attr.replace(decimal_str, decimal_str[0:6]) + + date_obj = isodate.parse_datetime(attr) + test_utc = date_obj.utctimetuple() + if test_utc.tm_year > 9999 or test_utc.tm_year < 1: + raise OverflowError("Hit max or min date") + return date_obj # type: ignore[no-any-return] + + +def _deserialize_datetime_rfc7231(attr: typing.Union[str, datetime]) -> datetime: + """Deserialize RFC7231 formatted string into Datetime object. + + :param str attr: response string to be deserialized. + :rtype: ~datetime.datetime + :returns: The datetime object from that input + """ + if isinstance(attr, datetime): + # i'm already deserialized + return attr + match = _VALID_RFC7231.match(attr) + if not match: + raise ValueError("Invalid datetime string: " + attr) + + return email.utils.parsedate_to_datetime(attr) + + +def _deserialize_datetime_unix_timestamp(attr: typing.Union[float, datetime]) -> datetime: + """Deserialize unix timestamp into Datetime object. + + :param str attr: response string to be deserialized. + :rtype: ~datetime.datetime + :returns: The datetime object from that input + """ + if isinstance(attr, datetime): + # i'm already deserialized + return attr + return datetime.fromtimestamp(attr, TZ_UTC) + + +def _deserialize_date(attr: typing.Union[str, date]) -> date: + """Deserialize ISO-8601 formatted string into Date object. + :param str attr: response string to be deserialized. + :rtype: date + :returns: The date object from that input + """ + # This must NOT use defaultmonth/defaultday. Using None ensure this raises an exception. + if isinstance(attr, date): + return attr + return isodate.parse_date(attr, defaultmonth=None, defaultday=None) # type: ignore + + +def _deserialize_time(attr: typing.Union[str, time]) -> time: + """Deserialize ISO-8601 formatted string into time object. + + :param str attr: response string to be deserialized. + :rtype: datetime.time + :returns: The time object from that input + """ + if isinstance(attr, time): + return attr + return isodate.parse_time(attr) # type: ignore[no-any-return] + + +def _deserialize_bytes(attr): + if isinstance(attr, (bytes, bytearray)): + return attr + return bytes(base64.b64decode(attr)) + + +def _deserialize_bytes_base64(attr): + if isinstance(attr, (bytes, bytearray)): + return attr + padding = "=" * (3 - (len(attr) + 3) % 4) # type: ignore + attr = attr + padding # type: ignore + encoded = attr.replace("-", "+").replace("_", "/") + return bytes(base64.b64decode(encoded)) + + +def _deserialize_duration(attr): + if isinstance(attr, timedelta): + return attr + return isodate.parse_duration(attr) + + +def _deserialize_decimal(attr): + if isinstance(attr, decimal.Decimal): + return attr + return decimal.Decimal(str(attr)) + + +def _deserialize_int_as_str(attr): + if isinstance(attr, int): + return attr + return int(attr) + + +_DESERIALIZE_MAPPING = { + datetime: _deserialize_datetime, + date: _deserialize_date, + time: _deserialize_time, + bytes: _deserialize_bytes, + bytearray: _deserialize_bytes, + timedelta: _deserialize_duration, + typing.Any: lambda x: x, + decimal.Decimal: _deserialize_decimal, +} + +_DESERIALIZE_MAPPING_WITHFORMAT = { + "rfc3339": _deserialize_datetime, + "rfc7231": _deserialize_datetime_rfc7231, + "unix-timestamp": _deserialize_datetime_unix_timestamp, + "base64": _deserialize_bytes, + "base64url": _deserialize_bytes_base64, +} + + +def get_deserializer(annotation: typing.Any, rf: typing.Optional["_RestField"] = None): + if annotation is int and rf and rf._format == "str": + return _deserialize_int_as_str + if annotation is str and rf and rf._format in _ARRAY_ENCODE_MAPPING: + return functools.partial(_deserialize_array_encoded, _ARRAY_ENCODE_MAPPING[rf._format]) + if rf and rf._format: + return _DESERIALIZE_MAPPING_WITHFORMAT.get(rf._format) + return _DESERIALIZE_MAPPING.get(annotation) # pyright: ignore + + +def _get_type_alias_type(module_name: str, alias_name: str): + types = { + k: v + for k, v in sys.modules[module_name].__dict__.items() + if isinstance(v, typing._GenericAlias) # type: ignore + } + if alias_name not in types: + return alias_name + return types[alias_name] + + +def _get_model(module_name: str, model_name: str): + models = {k: v for k, v in sys.modules[module_name].__dict__.items() if isinstance(v, type)} + module_end = module_name.rsplit(".", 1)[0] + models.update({k: v for k, v in sys.modules[module_end].__dict__.items() if isinstance(v, type)}) + if isinstance(model_name, str): + model_name = model_name.split(".")[-1] + if model_name not in models: + return model_name + return models[model_name] + + +_UNSET = object() + + +class _MyMutableMapping(MutableMapping[str, typing.Any]): + def __init__(self, data: dict[str, typing.Any]) -> None: + self._data = data + + def __contains__(self, key: typing.Any) -> bool: + return key in self._data + + def __getitem__(self, key: str) -> typing.Any: + # If this key has been deserialized (for mutable types), we need to handle serialization + if hasattr(self, "_attr_to_rest_field"): + cache_attr = f"_deserialized_{key}" + if hasattr(self, cache_attr): + rf = _get_rest_field(getattr(self, "_attr_to_rest_field"), key) + if rf: + value = self._data.get(key) + if isinstance(value, (dict, list, set)): + # For mutable types, serialize and return + # But also update _data with serialized form and clear flag + # so mutations via this returned value affect _data + serialized = _serialize(value, rf._format) + # If serialized form is same type (no transformation needed), + # return _data directly so mutations work + if isinstance(serialized, type(value)) and serialized == value: + return self._data.get(key) + # Otherwise return serialized copy and clear flag + try: + object.__delattr__(self, cache_attr) + except AttributeError: + pass + # Store serialized form back + self._data[key] = serialized + return serialized + return self._data.__getitem__(key) + + def __setitem__(self, key: str, value: typing.Any) -> None: + # Clear any cached deserialized value when setting through dictionary access + cache_attr = f"_deserialized_{key}" + try: + object.__delattr__(self, cache_attr) + except AttributeError: + pass + self._data.__setitem__(key, value) + + def __delitem__(self, key: str) -> None: + self._data.__delitem__(key) + + def __iter__(self) -> typing.Iterator[typing.Any]: + return self._data.__iter__() + + def __len__(self) -> int: + return self._data.__len__() + + def __ne__(self, other: typing.Any) -> bool: + return not self.__eq__(other) + + def keys(self) -> typing.KeysView[str]: + """ + :returns: a set-like object providing a view on D's keys + :rtype: ~typing.KeysView + """ + return self._data.keys() + + def values(self) -> typing.ValuesView[typing.Any]: + """ + :returns: an object providing a view on D's values + :rtype: ~typing.ValuesView + """ + return self._data.values() + + def items(self) -> typing.ItemsView[str, typing.Any]: + """ + :returns: set-like object providing a view on D's items + :rtype: ~typing.ItemsView + """ + return self._data.items() + + def get(self, key: str, default: typing.Any = None) -> typing.Any: + """ + Get the value for key if key is in the dictionary, else default. + :param str key: The key to look up. + :param any default: The value to return if key is not in the dictionary. Defaults to None + :returns: D[k] if k in D, else d. + :rtype: any + """ + try: + return self[key] + except KeyError: + return default + + @typing.overload + def pop(self, key: str) -> typing.Any: ... # pylint: disable=arguments-differ + + @typing.overload + def pop(self, key: str, default: _T) -> _T: ... # pylint: disable=signature-differs + + @typing.overload + def pop(self, key: str, default: typing.Any) -> typing.Any: ... # pylint: disable=signature-differs + + def pop(self, key: str, default: typing.Any = _UNSET) -> typing.Any: + """ + Removes specified key and return the corresponding value. + :param str key: The key to pop. + :param any default: The value to return if key is not in the dictionary + :returns: The value corresponding to the key. + :rtype: any + :raises KeyError: If key is not found and default is not given. + """ + if default is _UNSET: + return self._data.pop(key) + return self._data.pop(key, default) + + def popitem(self) -> tuple[str, typing.Any]: + """ + Removes and returns some (key, value) pair + :returns: The (key, value) pair. + :rtype: tuple + :raises KeyError: if D is empty. + """ + return self._data.popitem() + + def clear(self) -> None: + """ + Remove all items from D. + """ + self._data.clear() + + def update(self, *args: typing.Any, **kwargs: typing.Any) -> None: # pylint: disable=arguments-differ + """ + Updates D from mapping/iterable E and F. + :param any args: Either a mapping object or an iterable of key-value pairs. + """ + self._data.update(*args, **kwargs) + + @typing.overload + def setdefault(self, key: str, default: None = None) -> None: ... + + @typing.overload + def setdefault(self, key: str, default: typing.Any) -> typing.Any: ... # pylint: disable=signature-differs + + def setdefault(self, key: str, default: typing.Any = _UNSET) -> typing.Any: + """ + Same as calling D.get(k, d), and setting D[k]=d if k not found + :param str key: The key to look up. + :param any default: The value to set if key is not in the dictionary + :returns: D[k] if k in D, else d. + :rtype: any + """ + if default is _UNSET: + return self._data.setdefault(key) + return self._data.setdefault(key, default) + + def __eq__(self, other: typing.Any) -> bool: + if isinstance(other, _MyMutableMapping): + return self._data == other._data + try: + other_model = self.__class__(other) + except Exception: + return False + return self._data == other_model._data + + def __repr__(self) -> str: + return str(self._data) + + +def _is_model(obj: typing.Any) -> bool: + return getattr(obj, "_is_model", False) + + +def _serialize(o, format: typing.Optional[str] = None): # pylint: disable=too-many-return-statements + if isinstance(o, list): + if format in _ARRAY_ENCODE_MAPPING and all(isinstance(x, str) for x in o): + return _ARRAY_ENCODE_MAPPING[format].join(o) + return [_serialize(x, format) for x in o] + if isinstance(o, dict): + return {k: _serialize(v, format) for k, v in o.items()} + if isinstance(o, set): + return {_serialize(x, format) for x in o} + if isinstance(o, tuple): + return tuple(_serialize(x, format) for x in o) + if isinstance(o, (bytes, bytearray)): + return _serialize_bytes(o, format) + if isinstance(o, decimal.Decimal): + return float(o) + if isinstance(o, enum.Enum): + return o.value + if isinstance(o, int): + if format == "str": + return str(o) + return o + try: + # First try datetime.datetime + return _serialize_datetime(o, format) + except AttributeError: + pass + # Last, try datetime.timedelta + try: + return _timedelta_as_isostr(o) + except AttributeError: + # This will be raised when it hits value.total_seconds in the method above + pass + return o + + +def _get_rest_field(attr_to_rest_field: dict[str, "_RestField"], rest_name: str) -> typing.Optional["_RestField"]: + try: + return next(rf for rf in attr_to_rest_field.values() if rf._rest_name == rest_name) + except StopIteration: + return None + + +def _create_value(rf: typing.Optional["_RestField"], value: typing.Any) -> typing.Any: + if not rf: + return _serialize(value, None) + if rf._is_multipart_file_input: + return value + if rf._is_model: + return _deserialize(rf._type, value) + if isinstance(value, ET.Element): + value = _deserialize(rf._type, value) + return _serialize(value, rf._format) + + +class Model(_MyMutableMapping): + _is_model = True + # label whether current class's _attr_to_rest_field has been calculated + # could not see _attr_to_rest_field directly because subclass inherits it from parent class + _calculated: set[str] = set() + + def __init__(self, *args: typing.Any, **kwargs: typing.Any) -> None: + class_name = self.__class__.__name__ + if len(args) > 1: + raise TypeError(f"{class_name}.__init__() takes 2 positional arguments but {len(args) + 1} were given") + dict_to_pass = { + rest_field._rest_name: rest_field._default + for rest_field in self._attr_to_rest_field.values() + if rest_field._default is not _UNSET + } + if args: # pylint: disable=too-many-nested-blocks + if isinstance(args[0], ET.Element): + existed_attr_keys = [] + model_meta = getattr(self, "_xml", {}) + + for rf in self._attr_to_rest_field.values(): + prop_meta = getattr(rf, "_xml", {}) + xml_name = prop_meta.get("name", rf._rest_name) + xml_ns = prop_meta.get("ns", model_meta.get("ns", None)) + if xml_ns: + xml_name = "{" + xml_ns + "}" + xml_name + + # attribute + if prop_meta.get("attribute", False) and args[0].get(xml_name) is not None: + existed_attr_keys.append(xml_name) + dict_to_pass[rf._rest_name] = _deserialize(rf._type, args[0].get(xml_name)) + continue + + # unwrapped element is array + if prop_meta.get("unwrapped", False): + # unwrapped array could either use prop items meta/prop meta + if prop_meta.get("itemsName"): + xml_name = prop_meta.get("itemsName") + xml_ns = prop_meta.get("itemNs") + if xml_ns: + xml_name = "{" + xml_ns + "}" + xml_name + items = args[0].findall(xml_name) # pyright: ignore + if len(items) > 0: + existed_attr_keys.append(xml_name) + dict_to_pass[rf._rest_name] = _deserialize(rf._type, items) + elif not rf._is_optional: + existed_attr_keys.append(xml_name) + dict_to_pass[rf._rest_name] = [] + continue + + # text element is primitive type + if prop_meta.get("text", False): + if args[0].text is not None: + dict_to_pass[rf._rest_name] = _deserialize(rf._type, args[0].text) + continue + + # wrapped element could be normal property or array, it should only have one element + item = args[0].find(xml_name) + if item is not None: + existed_attr_keys.append(xml_name) + dict_to_pass[rf._rest_name] = _deserialize(rf._type, item) + + # rest thing is additional properties + for e in args[0]: + if e.tag not in existed_attr_keys: + dict_to_pass[e.tag] = _convert_element(e) + else: + dict_to_pass.update( + {k: _create_value(_get_rest_field(self._attr_to_rest_field, k), v) for k, v in args[0].items()} + ) + else: + non_attr_kwargs = [k for k in kwargs if k not in self._attr_to_rest_field] + if non_attr_kwargs: + # actual type errors only throw the first wrong keyword arg they see, so following that. + raise TypeError(f"{class_name}.__init__() got an unexpected keyword argument '{non_attr_kwargs[0]}'") + dict_to_pass.update( + { + self._attr_to_rest_field[k]._rest_name: _create_value(self._attr_to_rest_field[k], v) + for k, v in kwargs.items() + if v is not None + } + ) + super().__init__(dict_to_pass) + + def copy(self) -> "Model": + return Model(self.__dict__) + + def __new__(cls, *args: typing.Any, **kwargs: typing.Any) -> Self: + if f"{cls.__module__}.{cls.__qualname__}" not in cls._calculated: + # we know the last nine classes in mro are going to be 'Model', '_MyMutableMapping', 'MutableMapping', + # 'Mapping', 'Collection', 'Sized', 'Iterable', 'Container' and 'object' + mros = cls.__mro__[:-9][::-1] # ignore parents, and reverse the mro order + attr_to_rest_field: dict[str, _RestField] = { # map attribute name to rest_field property + k: v for mro_class in mros for k, v in mro_class.__dict__.items() if k[0] != "_" and hasattr(v, "_type") + } + annotations = { + k: v + for mro_class in mros + if hasattr(mro_class, "__annotations__") + for k, v in mro_class.__annotations__.items() + } + for attr, rf in attr_to_rest_field.items(): + rf._module = cls.__module__ + if not rf._type: + rf._type = rf._get_deserialize_callable_from_annotation(annotations.get(attr, None)) + if not rf._rest_name_input: + rf._rest_name_input = attr + cls._attr_to_rest_field: dict[str, _RestField] = dict(attr_to_rest_field.items()) + cls._calculated.add(f"{cls.__module__}.{cls.__qualname__}") + + return super().__new__(cls) + + def __init_subclass__(cls, discriminator: typing.Optional[str] = None) -> None: + for base in cls.__bases__: + if hasattr(base, "__mapping__"): + base.__mapping__[discriminator or cls.__name__] = cls # type: ignore + + @classmethod + def _get_discriminator(cls, exist_discriminators) -> typing.Optional["_RestField"]: + for v in cls.__dict__.values(): + if isinstance(v, _RestField) and v._is_discriminator and v._rest_name not in exist_discriminators: + return v + return None + + @classmethod + def _deserialize(cls, data, exist_discriminators): + if not hasattr(cls, "__mapping__"): + return cls(data) + discriminator = cls._get_discriminator(exist_discriminators) + if discriminator is None: + return cls(data) + exist_discriminators.append(discriminator._rest_name) + if isinstance(data, ET.Element): + model_meta = getattr(cls, "_xml", {}) + prop_meta = getattr(discriminator, "_xml", {}) + xml_name = prop_meta.get("name", discriminator._rest_name) + xml_ns = prop_meta.get("ns", model_meta.get("ns", None)) + if xml_ns: + xml_name = "{" + xml_ns + "}" + xml_name + + if data.get(xml_name) is not None: + discriminator_value = data.get(xml_name) + else: + discriminator_value = data.find(xml_name).text # pyright: ignore + else: + discriminator_value = data.get(discriminator._rest_name) + mapped_cls = cls.__mapping__.get(discriminator_value, cls) # pyright: ignore # pylint: disable=no-member + return mapped_cls._deserialize(data, exist_discriminators) + + def as_dict(self, *, exclude_readonly: bool = False) -> dict[str, typing.Any]: + """Return a dict that can be turned into json using json.dump. + + :keyword bool exclude_readonly: Whether to remove the readonly properties. + :returns: A dict JSON compatible object + :rtype: dict + """ + + result = {} + readonly_props = [] + if exclude_readonly: + readonly_props = [p._rest_name for p in self._attr_to_rest_field.values() if _is_readonly(p)] + for k, v in self.items(): + if exclude_readonly and k in readonly_props: # pyright: ignore + continue + is_multipart_file_input = False + try: + is_multipart_file_input = next( + rf for rf in self._attr_to_rest_field.values() if rf._rest_name == k + )._is_multipart_file_input + except StopIteration: + pass + result[k] = v if is_multipart_file_input else Model._as_dict_value(v, exclude_readonly=exclude_readonly) + return result + + @staticmethod + def _as_dict_value(v: typing.Any, exclude_readonly: bool = False) -> typing.Any: + if v is None or isinstance(v, _Null): + return None + if isinstance(v, (list, tuple, set)): + return type(v)(Model._as_dict_value(x, exclude_readonly=exclude_readonly) for x in v) + if isinstance(v, dict): + return {dk: Model._as_dict_value(dv, exclude_readonly=exclude_readonly) for dk, dv in v.items()} + return v.as_dict(exclude_readonly=exclude_readonly) if hasattr(v, "as_dict") else v + + +def _deserialize_model(model_deserializer: typing.Optional[typing.Callable], obj): + if _is_model(obj): + return obj + return _deserialize(model_deserializer, obj) + + +def _deserialize_with_optional(if_obj_deserializer: typing.Optional[typing.Callable], obj): + if obj is None: + return obj + return _deserialize_with_callable(if_obj_deserializer, obj) + + +def _deserialize_with_union(deserializers, obj): + for deserializer in deserializers: + try: + return _deserialize(deserializer, obj) + except DeserializationError: + pass + raise DeserializationError() + + +def _deserialize_dict( + value_deserializer: typing.Optional[typing.Callable], + module: typing.Optional[str], + obj: dict[typing.Any, typing.Any], +): + if obj is None: + return obj + if isinstance(obj, ET.Element): + obj = {child.tag: child for child in obj} + return {k: _deserialize(value_deserializer, v, module) for k, v in obj.items()} + + +def _deserialize_multiple_sequence( + entry_deserializers: list[typing.Optional[typing.Callable]], + module: typing.Optional[str], + obj, +): + if obj is None: + return obj + return type(obj)(_deserialize(deserializer, entry, module) for entry, deserializer in zip(obj, entry_deserializers)) + + +def _is_array_encoded_deserializer(deserializer: functools.partial) -> bool: + return ( + isinstance(deserializer, functools.partial) + and isinstance(deserializer.args[0], functools.partial) + and deserializer.args[0].func == _deserialize_array_encoded # pylint: disable=comparison-with-callable + ) + + +def _deserialize_sequence( + deserializer: typing.Optional[typing.Callable], + module: typing.Optional[str], + obj, +): + if obj is None: + return obj + if isinstance(obj, ET.Element): + obj = list(obj) + + # encoded string may be deserialized to sequence + if isinstance(obj, str) and isinstance(deserializer, functools.partial): + # for list[str] + if _is_array_encoded_deserializer(deserializer): + return deserializer(obj) + + # for list[Union[...]] + if isinstance(deserializer.args[0], list): + for sub_deserializer in deserializer.args[0]: + if _is_array_encoded_deserializer(sub_deserializer): + return sub_deserializer(obj) + + return type(obj)(_deserialize(deserializer, entry, module) for entry in obj) + + +def _sorted_annotations(types: list[typing.Any]) -> list[typing.Any]: + return sorted( + types, + key=lambda x: hasattr(x, "__name__") and x.__name__.lower() in ("str", "float", "int", "bool"), + ) + + +def _get_deserialize_callable_from_annotation( # pylint: disable=too-many-return-statements, too-many-statements, too-many-branches + annotation: typing.Any, + module: typing.Optional[str], + rf: typing.Optional["_RestField"] = None, +) -> typing.Optional[typing.Callable[[typing.Any], typing.Any]]: + if not annotation: + return None + + # is it a type alias? + if isinstance(annotation, str): + if module is not None: + annotation = _get_type_alias_type(module, annotation) + + # is it a forward ref / in quotes? + if isinstance(annotation, (str, typing.ForwardRef)): + try: + model_name = annotation.__forward_arg__ # type: ignore + except AttributeError: + model_name = annotation + if module is not None: + annotation = _get_model(module, model_name) # type: ignore + + try: + if module and _is_model(annotation): + if rf: + rf._is_model = True + + return functools.partial(_deserialize_model, annotation) # pyright: ignore + except Exception: + pass + + # is it a literal? + try: + if annotation.__origin__ is typing.Literal: # pyright: ignore + return None + except AttributeError: + pass + + # is it optional? + try: + if any(a is _NONE_TYPE for a in annotation.__args__): # pyright: ignore + if rf: + rf._is_optional = True + if len(annotation.__args__) <= 2: # pyright: ignore + if_obj_deserializer = _get_deserialize_callable_from_annotation( + next(a for a in annotation.__args__ if a is not _NONE_TYPE), module, rf # pyright: ignore + ) + + return functools.partial(_deserialize_with_optional, if_obj_deserializer) + # the type is Optional[Union[...]], we need to remove the None type from the Union + annotation_copy = copy.copy(annotation) + annotation_copy.__args__ = [a for a in annotation_copy.__args__ if a is not _NONE_TYPE] # pyright: ignore + return _get_deserialize_callable_from_annotation(annotation_copy, module, rf) + except AttributeError: + pass + + # is it union? + if getattr(annotation, "__origin__", None) is typing.Union: + # initial ordering is we make `string` the last deserialization option, because it is often them most generic + deserializers = [ + _get_deserialize_callable_from_annotation(arg, module, rf) + for arg in _sorted_annotations(annotation.__args__) # pyright: ignore + ] + + return functools.partial(_deserialize_with_union, deserializers) + + try: + annotation_name = ( + annotation.__name__ if hasattr(annotation, "__name__") else annotation._name # pyright: ignore + ) + if annotation_name.lower() == "dict": + value_deserializer = _get_deserialize_callable_from_annotation( + annotation.__args__[1], module, rf # pyright: ignore + ) + + return functools.partial( + _deserialize_dict, + value_deserializer, + module, + ) + except (AttributeError, IndexError): + pass + try: + annotation_name = ( + annotation.__name__ if hasattr(annotation, "__name__") else annotation._name # pyright: ignore + ) + if annotation_name.lower() in ["list", "set", "tuple", "sequence"]: + if len(annotation.__args__) > 1: # pyright: ignore + entry_deserializers = [ + _get_deserialize_callable_from_annotation(dt, module, rf) + for dt in annotation.__args__ # pyright: ignore + ] + return functools.partial(_deserialize_multiple_sequence, entry_deserializers, module) + deserializer = _get_deserialize_callable_from_annotation( + annotation.__args__[0], module, rf # pyright: ignore + ) + + return functools.partial(_deserialize_sequence, deserializer, module) + except (TypeError, IndexError, AttributeError, SyntaxError): + pass + + def _deserialize_default( + deserializer, + obj, + ): + if obj is None: + return obj + try: + return _deserialize_with_callable(deserializer, obj) + except Exception: + pass + return obj + + if get_deserializer(annotation, rf): + return functools.partial(_deserialize_default, get_deserializer(annotation, rf)) + + return functools.partial(_deserialize_default, annotation) + + +def _deserialize_with_callable( + deserializer: typing.Optional[typing.Callable[[typing.Any], typing.Any]], + value: typing.Any, +): # pylint: disable=too-many-return-statements + try: + if value is None or isinstance(value, _Null): + return None + if isinstance(value, ET.Element): + if deserializer is str: + return value.text or "" + if deserializer is int: + return int(value.text) if value.text else None + if deserializer is float: + return float(value.text) if value.text else None + if deserializer is bool: + return value.text == "true" if value.text else None + if deserializer and deserializer in _DESERIALIZE_MAPPING.values(): + return deserializer(value.text) if value.text else None + if deserializer and deserializer in _DESERIALIZE_MAPPING_WITHFORMAT.values(): + return deserializer(value.text) if value.text else None + if deserializer is None: + return value + if deserializer in [int, float, bool]: + return deserializer(value) + if isinstance(deserializer, CaseInsensitiveEnumMeta): + try: + return deserializer(value.text if isinstance(value, ET.Element) else value) + except ValueError: + # for unknown value, return raw value + return value.text if isinstance(value, ET.Element) else value + if isinstance(deserializer, type) and issubclass(deserializer, Model): + return deserializer._deserialize(value, []) + return typing.cast(typing.Callable[[typing.Any], typing.Any], deserializer)(value) + except Exception as e: + raise DeserializationError() from e + + +def _deserialize( + deserializer: typing.Any, + value: typing.Any, + module: typing.Optional[str] = None, + rf: typing.Optional["_RestField"] = None, + format: typing.Optional[str] = None, +) -> typing.Any: + if isinstance(value, PipelineResponse): + value = value.http_response.json() + if rf is None and format: + rf = _RestField(format=format) + if not isinstance(deserializer, functools.partial): + deserializer = _get_deserialize_callable_from_annotation(deserializer, module, rf) + return _deserialize_with_callable(deserializer, value) + + +def _failsafe_deserialize( + deserializer: typing.Any, + response: HttpResponse, + module: typing.Optional[str] = None, + rf: typing.Optional["_RestField"] = None, + format: typing.Optional[str] = None, +) -> typing.Any: + try: + return _deserialize(deserializer, response.json(), module, rf, format) + except Exception: # pylint: disable=broad-except + _LOGGER.warning( + "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True + ) + return None + + +def _failsafe_deserialize_xml( + deserializer: typing.Any, + response: HttpResponse, +) -> typing.Any: + try: + return _deserialize_xml(deserializer, response.text()) + except Exception: # pylint: disable=broad-except + _LOGGER.warning( + "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True + ) + return None + + +# pylint: disable=too-many-instance-attributes +class _RestField: + def __init__( + self, + *, + name: typing.Optional[str] = None, + type: typing.Optional[typing.Callable] = None, # pylint: disable=redefined-builtin + is_discriminator: bool = False, + visibility: typing.Optional[list[str]] = None, + default: typing.Any = _UNSET, + format: typing.Optional[str] = None, + is_multipart_file_input: bool = False, + xml: typing.Optional[dict[str, typing.Any]] = None, + ): + self._type = type + self._rest_name_input = name + self._module: typing.Optional[str] = None + self._is_discriminator = is_discriminator + self._visibility = visibility + self._is_model = False + self._is_optional = False + self._default = default + self._format = format + self._is_multipart_file_input = is_multipart_file_input + self._xml = xml if xml is not None else {} + + @property + def _class_type(self) -> typing.Any: + result = getattr(self._type, "args", [None])[0] + # type may be wrapped by nested functools.partial so we need to check for that + if isinstance(result, functools.partial): + return getattr(result, "args", [None])[0] + return result + + @property + def _rest_name(self) -> str: + if self._rest_name_input is None: + raise ValueError("Rest name was never set") + return self._rest_name_input + + def __get__(self, obj: Model, type=None): # pylint: disable=redefined-builtin + # by this point, type and rest_name will have a value bc we default + # them in __new__ of the Model class + # Use _data.get() directly to avoid triggering __getitem__ which clears the cache + item = obj._data.get(self._rest_name) + if item is None: + return item + if self._is_model: + return item + + # For mutable types, we want mutations to directly affect _data + # Check if we've already deserialized this value + cache_attr = f"_deserialized_{self._rest_name}" + if hasattr(obj, cache_attr): + # Return the value from _data directly (it's been deserialized in place) + return obj._data.get(self._rest_name) + + deserialized = _deserialize(self._type, _serialize(item, self._format), rf=self) + + # For mutable types, store the deserialized value back in _data + # so mutations directly affect _data + if isinstance(deserialized, (dict, list, set)): + obj._data[self._rest_name] = deserialized + object.__setattr__(obj, cache_attr, True) # Mark as deserialized + return deserialized + + return deserialized + + def __set__(self, obj: Model, value) -> None: + # Clear the cached deserialized object when setting a new value + cache_attr = f"_deserialized_{self._rest_name}" + if hasattr(obj, cache_attr): + object.__delattr__(obj, cache_attr) + + if value is None: + # we want to wipe out entries if users set attr to None + try: + obj.__delitem__(self._rest_name) + except KeyError: + pass + return + if self._is_model: + if not _is_model(value): + value = _deserialize(self._type, value) + obj.__setitem__(self._rest_name, value) + return + obj.__setitem__(self._rest_name, _serialize(value, self._format)) + + def _get_deserialize_callable_from_annotation( + self, annotation: typing.Any + ) -> typing.Optional[typing.Callable[[typing.Any], typing.Any]]: + return _get_deserialize_callable_from_annotation(annotation, self._module, self) + + +def rest_field( + *, + name: typing.Optional[str] = None, + type: typing.Optional[typing.Callable] = None, # pylint: disable=redefined-builtin + visibility: typing.Optional[list[str]] = None, + default: typing.Any = _UNSET, + format: typing.Optional[str] = None, + is_multipart_file_input: bool = False, + xml: typing.Optional[dict[str, typing.Any]] = None, +) -> typing.Any: + return _RestField( + name=name, + type=type, + visibility=visibility, + default=default, + format=format, + is_multipart_file_input=is_multipart_file_input, + xml=xml, + ) + + +def rest_discriminator( + *, + name: typing.Optional[str] = None, + type: typing.Optional[typing.Callable] = None, # pylint: disable=redefined-builtin + visibility: typing.Optional[list[str]] = None, + xml: typing.Optional[dict[str, typing.Any]] = None, +) -> typing.Any: + return _RestField(name=name, type=type, is_discriminator=True, visibility=visibility, xml=xml) + + +def serialize_xml(model: Model, exclude_readonly: bool = False) -> str: + """Serialize a model to XML. + + :param Model model: The model to serialize. + :param bool exclude_readonly: Whether to exclude readonly properties. + :returns: The XML representation of the model. + :rtype: str + """ + return ET.tostring(_get_element(model, exclude_readonly), encoding="unicode") # type: ignore + + +def _get_element( + o: typing.Any, + exclude_readonly: bool = False, + parent_meta: typing.Optional[dict[str, typing.Any]] = None, + wrapped_element: typing.Optional[ET.Element] = None, +) -> typing.Union[ET.Element, list[ET.Element]]: + if _is_model(o): + model_meta = getattr(o, "_xml", {}) + + # if prop is a model, then use the prop element directly, else generate a wrapper of model + if wrapped_element is None: + wrapped_element = _create_xml_element( + model_meta.get("name", o.__class__.__name__), + model_meta.get("prefix"), + model_meta.get("ns"), + ) + + readonly_props = [] + if exclude_readonly: + readonly_props = [p._rest_name for p in o._attr_to_rest_field.values() if _is_readonly(p)] + + for k, v in o.items(): + # do not serialize readonly properties + if exclude_readonly and k in readonly_props: + continue + + prop_rest_field = _get_rest_field(o._attr_to_rest_field, k) + if prop_rest_field: + prop_meta = getattr(prop_rest_field, "_xml").copy() + # use the wire name as xml name if no specific name is set + if prop_meta.get("name") is None: + prop_meta["name"] = k + else: + # additional properties will not have rest field, use the wire name as xml name + prop_meta = {"name": k} + + # if no ns for prop, use model's + if prop_meta.get("ns") is None and model_meta.get("ns"): + prop_meta["ns"] = model_meta.get("ns") + prop_meta["prefix"] = model_meta.get("prefix") + + if prop_meta.get("unwrapped", False): + # unwrapped could only set on array + wrapped_element.extend(_get_element(v, exclude_readonly, prop_meta)) + elif prop_meta.get("text", False): + # text could only set on primitive type + wrapped_element.text = _get_primitive_type_value(v) + elif prop_meta.get("attribute", False): + xml_name = prop_meta.get("name", k) + if prop_meta.get("ns"): + ET.register_namespace(prop_meta.get("prefix"), prop_meta.get("ns")) # pyright: ignore + xml_name = "{" + prop_meta.get("ns") + "}" + xml_name # pyright: ignore + # attribute should be primitive type + wrapped_element.set(xml_name, _get_primitive_type_value(v)) + else: + # other wrapped prop element + wrapped_element.append(_get_wrapped_element(v, exclude_readonly, prop_meta)) + return wrapped_element + if isinstance(o, list): + return [_get_element(x, exclude_readonly, parent_meta) for x in o] # type: ignore + if isinstance(o, dict): + result = [] + for k, v in o.items(): + result.append( + _get_wrapped_element( + v, + exclude_readonly, + { + "name": k, + "ns": parent_meta.get("ns") if parent_meta else None, + "prefix": parent_meta.get("prefix") if parent_meta else None, + }, + ) + ) + return result + + # primitive case need to create element based on parent_meta + if parent_meta: + return _get_wrapped_element( + o, + exclude_readonly, + { + "name": parent_meta.get("itemsName", parent_meta.get("name")), + "prefix": parent_meta.get("itemsPrefix", parent_meta.get("prefix")), + "ns": parent_meta.get("itemsNs", parent_meta.get("ns")), + }, + ) + + raise ValueError("Could not serialize value into xml: " + o) + + +def _get_wrapped_element( + v: typing.Any, + exclude_readonly: bool, + meta: typing.Optional[dict[str, typing.Any]], +) -> ET.Element: + wrapped_element = _create_xml_element( + meta.get("name") if meta else None, meta.get("prefix") if meta else None, meta.get("ns") if meta else None + ) + if isinstance(v, (dict, list)): + wrapped_element.extend(_get_element(v, exclude_readonly, meta)) + elif _is_model(v): + _get_element(v, exclude_readonly, meta, wrapped_element) + else: + wrapped_element.text = _get_primitive_type_value(v) + return wrapped_element # type: ignore[no-any-return] + + +def _get_primitive_type_value(v) -> str: + if v is True: + return "true" + if v is False: + return "false" + if isinstance(v, _Null): + return "" + return str(v) + + +def _create_xml_element( + tag: typing.Any, prefix: typing.Optional[str] = None, ns: typing.Optional[str] = None +) -> ET.Element: + if prefix and ns: + ET.register_namespace(prefix, ns) + if ns: + return ET.Element("{" + ns + "}" + tag) + return ET.Element(tag) + + +def _deserialize_xml( + deserializer: typing.Any, + value: str, +) -> typing.Any: + element = ET.fromstring(value) # nosec + return _deserialize(deserializer, element) + + +def _convert_element(e: ET.Element): + # dict case + if len(e.attrib) > 0 or len({child.tag for child in e}) > 1: + dict_result: dict[str, typing.Any] = {} + for child in e: + if dict_result.get(child.tag) is not None: + if isinstance(dict_result[child.tag], list): + dict_result[child.tag].append(_convert_element(child)) + else: + dict_result[child.tag] = [dict_result[child.tag], _convert_element(child)] + else: + dict_result[child.tag] = _convert_element(child) + dict_result.update(e.attrib) + return dict_result + # array case + if len(e) > 0: + array_result: list[typing.Any] = [] + for child in e: + array_result.append(_convert_element(child)) + return array_result + # primitive case + return e.text diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_utils/serialization.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_utils/serialization.py index 6da830e0cf4a..81ec1de5922b 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_utils/serialization.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_utils/serialization.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_utils/utils.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_utils/utils.py index 39b612f39a9b..35c9c836f85f 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_utils/utils.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_utils/utils.py @@ -1,7 +1,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_version.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_version.py index 73d8f69961be..f60f7e3178f3 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_version.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_version.py @@ -2,8 +2,8 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "4.1.0" +VERSION = "4.1.0b1" diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/__init__.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/__init__.py index a56355c91250..1b61aab08195 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/__init__.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/__init__.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- # pylint: disable=wrong-import-position @@ -12,7 +12,7 @@ if TYPE_CHECKING: from ._patch import * # pylint: disable=unused-wildcard-import -from ._container_apps_api_client import ContainerAppsAPIClient # type: ignore +from ._client import ContainerAppsAPIClient # type: ignore try: from ._patch import __all__ as _patch_all diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/_container_apps_api_client.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/_client.py similarity index 71% rename from sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/_container_apps_api_client.py rename to sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/_client.py index be68784e7121..f9b062f5a065 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/_container_apps_api_client.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/_client.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -17,25 +17,39 @@ from azure.mgmt.core.policies import AsyncARMAutoResourceProviderRegistrationPolicy from azure.mgmt.core.tools import get_arm_endpoints -from .. import models as _models from .._utils.serialization import Deserializer, Serializer from ._configuration import ContainerAppsAPIClientConfiguration from .operations import ( + AppResiliencyOperations, AvailableWorkloadProfilesOperations, BillingMetersOperations, + BuildAuthTokenOperations, + BuildersOperations, + BuildsByBuilderResourceOperations, + BuildsOperations, CertificatesOperations, ConnectedEnvironmentsCertificatesOperations, ConnectedEnvironmentsDaprComponentsOperations, ConnectedEnvironmentsOperations, ConnectedEnvironmentsStoragesOperations, ContainerAppsAuthConfigsOperations, + ContainerAppsBuildsByContainerAppOperations, + ContainerAppsBuildsOperations, ContainerAppsDiagnosticsOperations, + ContainerAppsFunctionsOperations, + ContainerAppsLabelHistoryOperations, ContainerAppsOperations, + ContainerAppsPatchesOperations, + ContainerAppsRevisionFunctionsOperations, ContainerAppsRevisionReplicasOperations, ContainerAppsRevisionsOperations, ContainerAppsSessionPoolsOperations, ContainerAppsSourceControlsOperations, + DaprComponentResiliencyPoliciesOperations, DaprComponentsOperations, + DaprSubscriptionsOperations, + DotNetComponentsOperations, + FunctionsExtensionOperations, HttpRouteConfigOperations, JavaComponentsOperations, JobsExecutionsOperations, @@ -62,108 +76,151 @@ class ContainerAppsAPIClient(_ContainerAppsAPIClientOperationsMixin): # pylint: disable=too-many-instance-attributes - """Logic app is an extension resource on container app and the extension resource enables logic - specific operations on the container app through the APIs listed. + """Functions is an extension resource to revisions and the api listed is used to proxy the call + from Web RP to the function app's host process, this api is not exposed to users and only Web + RP is allowed to invoke functions extension resource. + :ivar operations: Operations operations + :vartype operations: azure.mgmt.appcontainers.aio.operations.Operations + :ivar container_apps_session_pools: ContainerAppsSessionPoolsOperations operations + :vartype container_apps_session_pools: + azure.mgmt.appcontainers.aio.operations.ContainerAppsSessionPoolsOperations + :ivar container_apps_source_controls: ContainerAppsSourceControlsOperations operations + :vartype container_apps_source_controls: + azure.mgmt.appcontainers.aio.operations.ContainerAppsSourceControlsOperations + :ivar container_apps: ContainerAppsOperations operations + :vartype container_apps: azure.mgmt.appcontainers.aio.operations.ContainerAppsOperations + :ivar container_apps_builds: ContainerAppsBuildsOperations operations + :vartype container_apps_builds: + azure.mgmt.appcontainers.aio.operations.ContainerAppsBuildsOperations + :ivar container_apps_functions: ContainerAppsFunctionsOperations operations + :vartype container_apps_functions: + azure.mgmt.appcontainers.aio.operations.ContainerAppsFunctionsOperations + :ivar container_apps_revisions: ContainerAppsRevisionsOperations operations + :vartype container_apps_revisions: + azure.mgmt.appcontainers.aio.operations.ContainerAppsRevisionsOperations + :ivar functions_extension: FunctionsExtensionOperations operations + :vartype functions_extension: + azure.mgmt.appcontainers.aio.operations.FunctionsExtensionOperations + :ivar container_apps_label_history: ContainerAppsLabelHistoryOperations operations + :vartype container_apps_label_history: + azure.mgmt.appcontainers.aio.operations.ContainerAppsLabelHistoryOperations + :ivar container_apps_patches: ContainerAppsPatchesOperations operations + :vartype container_apps_patches: + azure.mgmt.appcontainers.aio.operations.ContainerAppsPatchesOperations + :ivar container_apps_revision_replicas: ContainerAppsRevisionReplicasOperations operations + :vartype container_apps_revision_replicas: + azure.mgmt.appcontainers.aio.operations.ContainerAppsRevisionReplicasOperations + :ivar dot_net_components: DotNetComponentsOperations operations + :vartype dot_net_components: azure.mgmt.appcontainers.aio.operations.DotNetComponentsOperations + :ivar java_components: JavaComponentsOperations operations + :vartype java_components: azure.mgmt.appcontainers.aio.operations.JavaComponentsOperations + :ivar logic_apps: LogicAppsOperations operations + :vartype logic_apps: azure.mgmt.appcontainers.aio.operations.LogicAppsOperations :ivar container_apps_auth_configs: ContainerAppsAuthConfigsOperations operations :vartype container_apps_auth_configs: azure.mgmt.appcontainers.aio.operations.ContainerAppsAuthConfigsOperations - :ivar available_workload_profiles: AvailableWorkloadProfilesOperations operations - :vartype available_workload_profiles: - azure.mgmt.appcontainers.aio.operations.AvailableWorkloadProfilesOperations - :ivar billing_meters: BillingMetersOperations operations - :vartype billing_meters: azure.mgmt.appcontainers.aio.operations.BillingMetersOperations + :ivar builders: BuildersOperations operations + :vartype builders: azure.mgmt.appcontainers.aio.operations.BuildersOperations + :ivar builds: BuildsOperations operations + :vartype builds: azure.mgmt.appcontainers.aio.operations.BuildsOperations :ivar connected_environments: ConnectedEnvironmentsOperations operations :vartype connected_environments: azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsOperations - :ivar connected_environments_certificates: ConnectedEnvironmentsCertificatesOperations - operations - :vartype connected_environments_certificates: - azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsCertificatesOperations + :ivar certificates: CertificatesOperations operations + :vartype certificates: azure.mgmt.appcontainers.aio.operations.CertificatesOperations :ivar connected_environments_dapr_components: ConnectedEnvironmentsDaprComponentsOperations operations :vartype connected_environments_dapr_components: azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsDaprComponentsOperations + :ivar dapr_components: DaprComponentsOperations operations + :vartype dapr_components: azure.mgmt.appcontainers.aio.operations.DaprComponentsOperations :ivar connected_environments_storages: ConnectedEnvironmentsStoragesOperations operations :vartype connected_environments_storages: azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsStoragesOperations - :ivar container_apps: ContainerAppsOperations operations - :vartype container_apps: azure.mgmt.appcontainers.aio.operations.ContainerAppsOperations - :ivar container_apps_revisions: ContainerAppsRevisionsOperations operations - :vartype container_apps_revisions: - azure.mgmt.appcontainers.aio.operations.ContainerAppsRevisionsOperations - :ivar container_apps_revision_replicas: ContainerAppsRevisionReplicasOperations operations - :vartype container_apps_revision_replicas: - azure.mgmt.appcontainers.aio.operations.ContainerAppsRevisionReplicasOperations - :ivar container_apps_diagnostics: ContainerAppsDiagnosticsOperations operations - :vartype container_apps_diagnostics: - azure.mgmt.appcontainers.aio.operations.ContainerAppsDiagnosticsOperations - :ivar managed_environment_diagnostics: ManagedEnvironmentDiagnosticsOperations operations - :vartype managed_environment_diagnostics: - azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentDiagnosticsOperations - :ivar managed_environments_diagnostics: ManagedEnvironmentsDiagnosticsOperations operations - :vartype managed_environments_diagnostics: - azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsDiagnosticsOperations - :ivar jobs: JobsOperations operations - :vartype jobs: azure.mgmt.appcontainers.aio.operations.JobsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appcontainers.aio.operations.Operations - :ivar java_components: JavaComponentsOperations operations - :vartype java_components: azure.mgmt.appcontainers.aio.operations.JavaComponentsOperations - :ivar jobs_executions: JobsExecutionsOperations operations - :vartype jobs_executions: azure.mgmt.appcontainers.aio.operations.JobsExecutionsOperations :ivar managed_environments: ManagedEnvironmentsOperations operations :vartype managed_environments: azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: azure.mgmt.appcontainers.aio.operations.CertificatesOperations :ivar managed_certificates: ManagedCertificatesOperations operations :vartype managed_certificates: azure.mgmt.appcontainers.aio.operations.ManagedCertificatesOperations + :ivar dapr_component_resiliency_policies: DaprComponentResiliencyPoliciesOperations operations + :vartype dapr_component_resiliency_policies: + azure.mgmt.appcontainers.aio.operations.DaprComponentResiliencyPoliciesOperations + :ivar dapr_subscriptions: DaprSubscriptionsOperations operations + :vartype dapr_subscriptions: + azure.mgmt.appcontainers.aio.operations.DaprSubscriptionsOperations + :ivar maintenance_configurations: MaintenanceConfigurationsOperations operations + :vartype maintenance_configurations: + azure.mgmt.appcontainers.aio.operations.MaintenanceConfigurationsOperations + :ivar managed_environments_storages: ManagedEnvironmentsStoragesOperations operations + :vartype managed_environments_storages: + azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsStoragesOperations + :ivar jobs: JobsOperations operations + :vartype jobs: azure.mgmt.appcontainers.aio.operations.JobsOperations + :ivar container_apps_diagnostics: ContainerAppsDiagnosticsOperations operations + :vartype container_apps_diagnostics: + azure.mgmt.appcontainers.aio.operations.ContainerAppsDiagnosticsOperations + :ivar managed_environments_diagnostics: ManagedEnvironmentsDiagnosticsOperations operations + :vartype managed_environments_diagnostics: + azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsDiagnosticsOperations + :ivar container_apps_builds_by_container_app: ContainerAppsBuildsByContainerAppOperations + operations + :vartype container_apps_builds_by_container_app: + azure.mgmt.appcontainers.aio.operations.ContainerAppsBuildsByContainerAppOperations + :ivar container_apps_revision_functions: ContainerAppsRevisionFunctionsOperations operations + :vartype container_apps_revision_functions: + azure.mgmt.appcontainers.aio.operations.ContainerAppsRevisionFunctionsOperations + :ivar app_resiliency: AppResiliencyOperations operations + :vartype app_resiliency: azure.mgmt.appcontainers.aio.operations.AppResiliencyOperations + :ivar builds_by_builder_resource: BuildsByBuilderResourceOperations operations + :vartype builds_by_builder_resource: + azure.mgmt.appcontainers.aio.operations.BuildsByBuilderResourceOperations + :ivar build_auth_token: BuildAuthTokenOperations operations + :vartype build_auth_token: azure.mgmt.appcontainers.aio.operations.BuildAuthTokenOperations + :ivar connected_environments_certificates: ConnectedEnvironmentsCertificatesOperations + operations + :vartype connected_environments_certificates: + azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsCertificatesOperations :ivar namespaces: NamespacesOperations operations :vartype namespaces: azure.mgmt.appcontainers.aio.operations.NamespacesOperations - :ivar managed_environment_private_endpoint_connections: - ManagedEnvironmentPrivateEndpointConnectionsOperations operations - :vartype managed_environment_private_endpoint_connections: - azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentPrivateEndpointConnectionsOperations :ivar managed_environment_private_link_resources: ManagedEnvironmentPrivateLinkResourcesOperations operations :vartype managed_environment_private_link_resources: azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentPrivateLinkResourcesOperations - :ivar dapr_components: DaprComponentsOperations operations - :vartype dapr_components: azure.mgmt.appcontainers.aio.operations.DaprComponentsOperations + :ivar managed_environment_private_endpoint_connections: + ManagedEnvironmentPrivateEndpointConnectionsOperations operations + :vartype managed_environment_private_endpoint_connections: + azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentPrivateEndpointConnectionsOperations :ivar http_route_config: HttpRouteConfigOperations operations :vartype http_route_config: azure.mgmt.appcontainers.aio.operations.HttpRouteConfigOperations - :ivar maintenance_configurations: MaintenanceConfigurationsOperations operations - :vartype maintenance_configurations: - azure.mgmt.appcontainers.aio.operations.MaintenanceConfigurationsOperations - :ivar managed_environments_storages: ManagedEnvironmentsStoragesOperations operations - :vartype managed_environments_storages: - azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsStoragesOperations - :ivar container_apps_session_pools: ContainerAppsSessionPoolsOperations operations - :vartype container_apps_session_pools: - azure.mgmt.appcontainers.aio.operations.ContainerAppsSessionPoolsOperations - :ivar container_apps_source_controls: ContainerAppsSourceControlsOperations operations - :vartype container_apps_source_controls: - azure.mgmt.appcontainers.aio.operations.ContainerAppsSourceControlsOperations + :ivar jobs_executions: JobsExecutionsOperations operations + :vartype jobs_executions: azure.mgmt.appcontainers.aio.operations.JobsExecutionsOperations + :ivar managed_environment_diagnostics: ManagedEnvironmentDiagnosticsOperations operations + :vartype managed_environment_diagnostics: + azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentDiagnosticsOperations + :ivar available_workload_profiles: AvailableWorkloadProfilesOperations operations + :vartype available_workload_profiles: + azure.mgmt.appcontainers.aio.operations.AvailableWorkloadProfilesOperations + :ivar billing_meters: BillingMetersOperations operations + :vartype billing_meters: azure.mgmt.appcontainers.aio.operations.BillingMetersOperations :ivar usages: UsagesOperations operations :vartype usages: azure.mgmt.appcontainers.aio.operations.UsagesOperations :ivar managed_environment_usages: ManagedEnvironmentUsagesOperations operations :vartype managed_environment_usages: azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentUsagesOperations - :ivar logic_apps: LogicAppsOperations operations - :vartype logic_apps: azure.mgmt.appcontainers.aio.operations.LogicAppsOperations - :param credential: Credential needed for the client to connect to Azure. Required. + :param credential: Credential used to authenticate requests to the service. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: The ID of the target subscription. Required. + :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. :type subscription_id: str - :param base_url: Service URL. Default value is None. + :param base_url: Service host. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2026-01-01". Note that overriding this - default value may result in unsupported behavior. + :keyword api_version: The API version to use for this operation. Known values are + "2025-10-02-preview". Default value is "2025-10-02-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. @@ -178,6 +235,7 @@ def __init__( cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: + _endpoint = "{endpoint}" _cloud = cloud_setting or settings.current.azure_cloud # type: ignore _endpoints = get_arm_endpoints(_cloud) if not base_url: @@ -186,6 +244,7 @@ def __init__( self._config = ContainerAppsAPIClientConfiguration( credential=credential, subscription_id=subscription_id, + base_url=cast(str, base_url), cloud_setting=cloud_setting, credential_scopes=credential_scopes, **kwargs @@ -210,68 +269,72 @@ def __init__( self._config.http_logging_policy, ] self._client: AsyncARMPipelineClient = AsyncARMPipelineClient( - base_url=cast(str, base_url), policies=_policies, **kwargs + base_url=cast(str, _endpoint), 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 = Serializer() + self._deserialize = Deserializer() self._serialize.client_side_validation = False - self.container_apps_auth_configs = ContainerAppsAuthConfigsOperations( + self.operations = Operations(self._client, self._config, self._serialize, self._deserialize) + self.container_apps_session_pools = ContainerAppsSessionPoolsOperations( self._client, self._config, self._serialize, self._deserialize ) - self.available_workload_profiles = AvailableWorkloadProfilesOperations( + self.container_apps_source_controls = ContainerAppsSourceControlsOperations( self._client, self._config, self._serialize, self._deserialize ) - self.billing_meters = BillingMetersOperations(self._client, self._config, self._serialize, self._deserialize) - self.connected_environments = ConnectedEnvironmentsOperations( + self.container_apps = ContainerAppsOperations(self._client, self._config, self._serialize, self._deserialize) + self.container_apps_builds = ContainerAppsBuildsOperations( self._client, self._config, self._serialize, self._deserialize ) - self.connected_environments_certificates = ConnectedEnvironmentsCertificatesOperations( + self.container_apps_functions = ContainerAppsFunctionsOperations( self._client, self._config, self._serialize, self._deserialize ) - self.connected_environments_dapr_components = ConnectedEnvironmentsDaprComponentsOperations( + self.container_apps_revisions = ContainerAppsRevisionsOperations( self._client, self._config, self._serialize, self._deserialize ) - self.connected_environments_storages = ConnectedEnvironmentsStoragesOperations( + self.functions_extension = FunctionsExtensionOperations( self._client, self._config, self._serialize, self._deserialize ) - self.container_apps = ContainerAppsOperations(self._client, self._config, self._serialize, self._deserialize) - self.container_apps_revisions = ContainerAppsRevisionsOperations( + self.container_apps_label_history = ContainerAppsLabelHistoryOperations( self._client, self._config, self._serialize, self._deserialize ) - self.container_apps_revision_replicas = ContainerAppsRevisionReplicasOperations( + self.container_apps_patches = ContainerAppsPatchesOperations( self._client, self._config, self._serialize, self._deserialize ) - self.container_apps_diagnostics = ContainerAppsDiagnosticsOperations( + self.container_apps_revision_replicas = ContainerAppsRevisionReplicasOperations( self._client, self._config, self._serialize, self._deserialize ) - self.managed_environment_diagnostics = ManagedEnvironmentDiagnosticsOperations( + self.dot_net_components = DotNetComponentsOperations( self._client, self._config, self._serialize, self._deserialize ) - self.managed_environments_diagnostics = ManagedEnvironmentsDiagnosticsOperations( + self.java_components = JavaComponentsOperations(self._client, self._config, self._serialize, self._deserialize) + self.logic_apps = LogicAppsOperations(self._client, self._config, self._serialize, self._deserialize) + self.container_apps_auth_configs = ContainerAppsAuthConfigsOperations( self._client, self._config, self._serialize, self._deserialize ) - self.jobs = JobsOperations(self._client, self._config, self._serialize, self._deserialize) - self.operations = Operations(self._client, self._config, self._serialize, self._deserialize) - self.java_components = JavaComponentsOperations(self._client, self._config, self._serialize, self._deserialize) - self.jobs_executions = JobsExecutionsOperations(self._client, self._config, self._serialize, self._deserialize) - self.managed_environments = ManagedEnvironmentsOperations( + self.builders = BuildersOperations(self._client, self._config, self._serialize, self._deserialize) + self.builds = BuildsOperations(self._client, self._config, self._serialize, self._deserialize) + self.connected_environments = ConnectedEnvironmentsOperations( self._client, self._config, self._serialize, self._deserialize ) self.certificates = CertificatesOperations(self._client, self._config, self._serialize, self._deserialize) - self.managed_certificates = ManagedCertificatesOperations( + self.connected_environments_dapr_components = ConnectedEnvironmentsDaprComponentsOperations( self._client, self._config, self._serialize, self._deserialize ) - self.namespaces = NamespacesOperations(self._client, self._config, self._serialize, self._deserialize) - self.managed_environment_private_endpoint_connections = ManagedEnvironmentPrivateEndpointConnectionsOperations( + self.dapr_components = DaprComponentsOperations(self._client, self._config, self._serialize, self._deserialize) + self.connected_environments_storages = ConnectedEnvironmentsStoragesOperations( self._client, self._config, self._serialize, self._deserialize ) - self.managed_environment_private_link_resources = ManagedEnvironmentPrivateLinkResourcesOperations( + self.managed_environments = ManagedEnvironmentsOperations( self._client, self._config, self._serialize, self._deserialize ) - self.dapr_components = DaprComponentsOperations(self._client, self._config, self._serialize, self._deserialize) - self.http_route_config = HttpRouteConfigOperations( + self.managed_certificates = ManagedCertificatesOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.dapr_component_resiliency_policies = DaprComponentResiliencyPoliciesOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.dapr_subscriptions = DaprSubscriptionsOperations( self._client, self._config, self._serialize, self._deserialize ) self.maintenance_configurations = MaintenanceConfigurationsOperations( @@ -280,19 +343,51 @@ def __init__( self.managed_environments_storages = ManagedEnvironmentsStoragesOperations( self._client, self._config, self._serialize, self._deserialize ) - self.container_apps_session_pools = ContainerAppsSessionPoolsOperations( + self.jobs = JobsOperations(self._client, self._config, self._serialize, self._deserialize) + self.container_apps_diagnostics = ContainerAppsDiagnosticsOperations( self._client, self._config, self._serialize, self._deserialize ) - self.container_apps_source_controls = ContainerAppsSourceControlsOperations( + self.managed_environments_diagnostics = ManagedEnvironmentsDiagnosticsOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.container_apps_builds_by_container_app = ContainerAppsBuildsByContainerAppOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.container_apps_revision_functions = ContainerAppsRevisionFunctionsOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.app_resiliency = AppResiliencyOperations(self._client, self._config, self._serialize, self._deserialize) + self.builds_by_builder_resource = BuildsByBuilderResourceOperations( self._client, self._config, self._serialize, self._deserialize ) + self.build_auth_token = BuildAuthTokenOperations(self._client, self._config, self._serialize, self._deserialize) + self.connected_environments_certificates = ConnectedEnvironmentsCertificatesOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.namespaces = NamespacesOperations(self._client, self._config, self._serialize, self._deserialize) + self.managed_environment_private_link_resources = ManagedEnvironmentPrivateLinkResourcesOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.managed_environment_private_endpoint_connections = ManagedEnvironmentPrivateEndpointConnectionsOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.http_route_config = HttpRouteConfigOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.jobs_executions = JobsExecutionsOperations(self._client, self._config, self._serialize, self._deserialize) + self.managed_environment_diagnostics = ManagedEnvironmentDiagnosticsOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.available_workload_profiles = AvailableWorkloadProfilesOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.billing_meters = BillingMetersOperations(self._client, self._config, self._serialize, self._deserialize) self.usages = UsagesOperations(self._client, self._config, self._serialize, self._deserialize) self.managed_environment_usages = ManagedEnvironmentUsagesOperations( self._client, self._config, self._serialize, self._deserialize ) - self.logic_apps = LogicAppsOperations(self._client, self._config, self._serialize, self._deserialize) - def _send_request( + def send_request( self, request: HttpRequest, *, stream: bool = False, **kwargs: Any ) -> Awaitable[AsyncHttpResponse]: """Runs the network request through the client's chained policies. @@ -300,7 +395,7 @@ def _send_request( >>> from azure.core.rest import HttpRequest >>> request = HttpRequest("GET", "https://www.example.org/") - >>> response = await client._send_request(request) + >>> response = await client.send_request(request) For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request @@ -313,7 +408,11 @@ def _send_request( """ request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + request_copy.url = self._client.format_url(request_copy.url, **path_format_arguments) return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore async def close(self) -> None: diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/_configuration.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/_configuration.py index d45e3f376d05..e0546ead9693 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/_configuration.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/_configuration.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -24,15 +24,18 @@ class ContainerAppsAPIClientConfiguration: # pylint: disable=too-many-instance- 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. + :param credential: Credential used to authenticate requests to the service. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: The ID of the target subscription. Required. + :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. :type subscription_id: str + :param base_url: Service host. Default value is "https://management.azure.com". + :type base_url: str :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2026-01-01". Note that overriding this - default value may result in unsupported behavior. + :keyword api_version: The API version to use for this operation. Known values are + "2025-10-02-preview". Default value is "2025-10-02-preview". Note that overriding this default + value may result in unsupported behavior. :paramtype api_version: str """ @@ -40,10 +43,11 @@ def __init__( self, credential: "AsyncTokenCredential", subscription_id: str, + base_url: str = "https://management.azure.com", cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: - api_version: str = kwargs.pop("api_version", "2026-01-01") + api_version: str = kwargs.pop("api_version", "2025-10-02-preview") if credential is None: raise ValueError("Parameter 'credential' must not be None.") @@ -52,6 +56,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id + self.base_url = base_url self.cloud_setting = cloud_setting self.api_version = api_version self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/_patch.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/_patch.py index 17dbc073e01b..87676c65a8f0 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/_patch.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/_patch.py @@ -1,32 +1,21 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# # Copyright (c) Microsoft Corporation. All rights reserved. -# -# The MIT License (MIT) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the ""Software""), to -# deal in the Software without restriction, including without limitation the -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -# sell copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -# IN THE SOFTWARE. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------- +"""Customize generated code here. + +Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize +""" + + +__all__: list[str] = [] # Add all objects you want publicly available to users at this package level -# This file is used for handwritten extensions to the generated code. Example: -# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md def patch_sdk(): - pass + """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/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/__init__.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/__init__.py index c40facc691e4..0d43041a94b4 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/__init__.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/__init__.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- # pylint: disable=wrong-import-position @@ -13,77 +12,107 @@ if TYPE_CHECKING: from ._patch import * # pylint: disable=unused-wildcard-import -from ._container_apps_auth_configs_operations import ContainerAppsAuthConfigsOperations # type: ignore -from ._available_workload_profiles_operations import AvailableWorkloadProfilesOperations # type: ignore -from ._billing_meters_operations import BillingMetersOperations # type: ignore -from ._connected_environments_operations import ConnectedEnvironmentsOperations # type: ignore -from ._connected_environments_certificates_operations import ConnectedEnvironmentsCertificatesOperations # type: ignore -from ._connected_environments_dapr_components_operations import ConnectedEnvironmentsDaprComponentsOperations # type: ignore -from ._connected_environments_storages_operations import ConnectedEnvironmentsStoragesOperations # type: ignore -from ._container_apps_operations import ContainerAppsOperations # type: ignore -from ._container_apps_revisions_operations import ContainerAppsRevisionsOperations # type: ignore -from ._container_apps_revision_replicas_operations import ContainerAppsRevisionReplicasOperations # type: ignore -from ._container_apps_diagnostics_operations import ContainerAppsDiagnosticsOperations # type: ignore -from ._managed_environment_diagnostics_operations import ManagedEnvironmentDiagnosticsOperations # type: ignore -from ._managed_environments_diagnostics_operations import ManagedEnvironmentsDiagnosticsOperations # type: ignore -from ._jobs_operations import JobsOperations # type: ignore from ._operations import Operations # type: ignore -from ._java_components_operations import JavaComponentsOperations # type: ignore -from ._jobs_executions_operations import JobsExecutionsOperations # type: ignore -from ._container_apps_api_client_operations import _ContainerAppsAPIClientOperationsMixin # type: ignore # pylint: disable=unused-import -from ._managed_environments_operations import ManagedEnvironmentsOperations # type: ignore -from ._certificates_operations import CertificatesOperations # type: ignore -from ._managed_certificates_operations import ManagedCertificatesOperations # type: ignore -from ._namespaces_operations import NamespacesOperations # type: ignore -from ._managed_environment_private_endpoint_connections_operations import ManagedEnvironmentPrivateEndpointConnectionsOperations # type: ignore -from ._managed_environment_private_link_resources_operations import ManagedEnvironmentPrivateLinkResourcesOperations # type: ignore -from ._dapr_components_operations import DaprComponentsOperations # type: ignore -from ._http_route_config_operations import HttpRouteConfigOperations # type: ignore -from ._maintenance_configurations_operations import MaintenanceConfigurationsOperations # type: ignore -from ._managed_environments_storages_operations import ManagedEnvironmentsStoragesOperations # type: ignore -from ._container_apps_session_pools_operations import ContainerAppsSessionPoolsOperations # type: ignore -from ._container_apps_source_controls_operations import ContainerAppsSourceControlsOperations # type: ignore -from ._usages_operations import UsagesOperations # type: ignore -from ._managed_environment_usages_operations import ManagedEnvironmentUsagesOperations # type: ignore -from ._logic_apps_operations import LogicAppsOperations # type: ignore +from ._operations import ContainerAppsSessionPoolsOperations # type: ignore +from ._operations import ContainerAppsSourceControlsOperations # type: ignore +from ._operations import ContainerAppsOperations # type: ignore +from ._operations import ContainerAppsBuildsOperations # type: ignore +from ._operations import ContainerAppsFunctionsOperations # type: ignore +from ._operations import ContainerAppsRevisionsOperations # type: ignore +from ._operations import FunctionsExtensionOperations # type: ignore +from ._operations import ContainerAppsLabelHistoryOperations # type: ignore +from ._operations import ContainerAppsPatchesOperations # type: ignore +from ._operations import ContainerAppsRevisionReplicasOperations # type: ignore +from ._operations import DotNetComponentsOperations # type: ignore +from ._operations import JavaComponentsOperations # type: ignore +from ._operations import LogicAppsOperations # type: ignore +from ._operations import ContainerAppsAuthConfigsOperations # type: ignore +from ._operations import BuildersOperations # type: ignore +from ._operations import BuildsOperations # type: ignore +from ._operations import ConnectedEnvironmentsOperations # type: ignore +from ._operations import CertificatesOperations # type: ignore +from ._operations import ConnectedEnvironmentsDaprComponentsOperations # type: ignore +from ._operations import DaprComponentsOperations # type: ignore +from ._operations import ConnectedEnvironmentsStoragesOperations # type: ignore +from ._operations import ManagedEnvironmentsOperations # type: ignore +from ._operations import ManagedCertificatesOperations # type: ignore +from ._operations import DaprComponentResiliencyPoliciesOperations # type: ignore +from ._operations import DaprSubscriptionsOperations # type: ignore +from ._operations import MaintenanceConfigurationsOperations # type: ignore +from ._operations import ManagedEnvironmentsStoragesOperations # type: ignore +from ._operations import JobsOperations # type: ignore +from ._operations import ContainerAppsDiagnosticsOperations # type: ignore +from ._operations import ManagedEnvironmentsDiagnosticsOperations # type: ignore +from ._operations import ContainerAppsBuildsByContainerAppOperations # type: ignore +from ._operations import ContainerAppsRevisionFunctionsOperations # type: ignore +from ._operations import AppResiliencyOperations # type: ignore +from ._operations import BuildsByBuilderResourceOperations # type: ignore +from ._operations import BuildAuthTokenOperations # type: ignore +from ._operations import ConnectedEnvironmentsCertificatesOperations # type: ignore +from ._operations import NamespacesOperations # type: ignore +from ._operations import ManagedEnvironmentPrivateLinkResourcesOperations # type: ignore +from ._operations import ManagedEnvironmentPrivateEndpointConnectionsOperations # type: ignore +from ._operations import HttpRouteConfigOperations # type: ignore +from ._operations import JobsExecutionsOperations # type: ignore +from ._operations import ManagedEnvironmentDiagnosticsOperations # type: ignore +from ._operations import AvailableWorkloadProfilesOperations # type: ignore +from ._operations import BillingMetersOperations # type: ignore +from ._operations import UsagesOperations # type: ignore +from ._operations import ManagedEnvironmentUsagesOperations # type: ignore +from ._operations import _ContainerAppsAPIClientOperationsMixin # type: ignore # pylint: disable=unused-import from ._patch import __all__ as _patch_all from ._patch import * from ._patch import patch_sdk as _patch_sdk __all__ = [ - "ContainerAppsAuthConfigsOperations", - "AvailableWorkloadProfilesOperations", - "BillingMetersOperations", - "ConnectedEnvironmentsOperations", - "ConnectedEnvironmentsCertificatesOperations", - "ConnectedEnvironmentsDaprComponentsOperations", - "ConnectedEnvironmentsStoragesOperations", + "Operations", + "ContainerAppsSessionPoolsOperations", + "ContainerAppsSourceControlsOperations", "ContainerAppsOperations", + "ContainerAppsBuildsOperations", + "ContainerAppsFunctionsOperations", "ContainerAppsRevisionsOperations", + "FunctionsExtensionOperations", + "ContainerAppsLabelHistoryOperations", + "ContainerAppsPatchesOperations", "ContainerAppsRevisionReplicasOperations", - "ContainerAppsDiagnosticsOperations", - "ManagedEnvironmentDiagnosticsOperations", - "ManagedEnvironmentsDiagnosticsOperations", - "JobsOperations", - "Operations", + "DotNetComponentsOperations", "JavaComponentsOperations", - "JobsExecutionsOperations", - "ManagedEnvironmentsOperations", + "LogicAppsOperations", + "ContainerAppsAuthConfigsOperations", + "BuildersOperations", + "BuildsOperations", + "ConnectedEnvironmentsOperations", "CertificatesOperations", + "ConnectedEnvironmentsDaprComponentsOperations", + "DaprComponentsOperations", + "ConnectedEnvironmentsStoragesOperations", + "ManagedEnvironmentsOperations", "ManagedCertificatesOperations", + "DaprComponentResiliencyPoliciesOperations", + "DaprSubscriptionsOperations", + "MaintenanceConfigurationsOperations", + "ManagedEnvironmentsStoragesOperations", + "JobsOperations", + "ContainerAppsDiagnosticsOperations", + "ManagedEnvironmentsDiagnosticsOperations", + "ContainerAppsBuildsByContainerAppOperations", + "ContainerAppsRevisionFunctionsOperations", + "AppResiliencyOperations", + "BuildsByBuilderResourceOperations", + "BuildAuthTokenOperations", + "ConnectedEnvironmentsCertificatesOperations", "NamespacesOperations", - "ManagedEnvironmentPrivateEndpointConnectionsOperations", "ManagedEnvironmentPrivateLinkResourcesOperations", - "DaprComponentsOperations", + "ManagedEnvironmentPrivateEndpointConnectionsOperations", "HttpRouteConfigOperations", - "MaintenanceConfigurationsOperations", - "ManagedEnvironmentsStoragesOperations", - "ContainerAppsSessionPoolsOperations", - "ContainerAppsSourceControlsOperations", + "JobsExecutionsOperations", + "ManagedEnvironmentDiagnosticsOperations", + "AvailableWorkloadProfilesOperations", + "BillingMetersOperations", "UsagesOperations", "ManagedEnvironmentUsagesOperations", - "LogicAppsOperations", ] __all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore _patch_sdk() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_available_workload_profiles_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_available_workload_profiles_operations.py deleted file mode 100644 index cc99674a97b0..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_available_workload_profiles_operations.py +++ /dev/null @@ -1,140 +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 collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -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 ..._utils.serialization import Deserializer, Serializer -from ...operations._available_workload_profiles_operations import build_get_request -from .._configuration import ContainerAppsAPIClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class AvailableWorkloadProfilesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`available_workload_profiles` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def get(self, location: str, **kwargs: Any) -> AsyncItemPaged["_models.AvailableWorkloadProfile"]: - """Get available workload profiles by location. - - Get all available workload profiles for a location. - - :param location: The name of Azure region. Required. - :type location: str - :return: An iterator like instance of either AvailableWorkloadProfile or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.AvailableWorkloadProfile] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.AvailableWorkloadProfilesCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_get_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableWorkloadProfilesCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_billing_meters_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_billing_meters_operations.py deleted file mode 100644 index ed6b2c93e2ff..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_billing_meters_operations.py +++ /dev/null @@ -1,110 +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 collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar - -from azure.core import AsyncPipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, 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 ..._utils.serialization import Deserializer, Serializer -from ...operations._billing_meters_operations import build_get_request -from .._configuration import ContainerAppsAPIClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class BillingMetersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`billing_meters` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def get(self, location: str, **kwargs: Any) -> _models.BillingMeterCollection: - """Get billing meters by location. - - Get all billingMeters for a location. - - :param location: The name of Azure region. Required. - :type location: str - :return: BillingMeterCollection or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.BillingMeterCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.BillingMeterCollection] = kwargs.pop("cls", None) - - _request = build_get_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BillingMeterCollection", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_certificates_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_certificates_operations.py deleted file mode 100644 index 618c45d74c88..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_certificates_operations.py +++ /dev/null @@ -1,584 +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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.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 ..._utils.serialization import Deserializer, Serializer -from ...operations._certificates_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) -from .._configuration import ContainerAppsAPIClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list( - self, resource_group_name: str, environment_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.Certificate"]: - """Get the Certificates in a given managed environment. - - Get the Certificates in a given managed environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :return: An iterator like instance of either Certificate or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.Certificate] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.CertificateCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, environment_name: str, certificate_name: str, **kwargs: Any - ) -> _models.Certificate: - """Get the specified Certificate. - - Get the specified Certificate. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param certificate_name: Name of the Certificate. Required. - :type certificate_name: str - :return: Certificate or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.Certificate - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.Certificate] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Certificate", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def create_or_update( - self, - resource_group_name: str, - environment_name: str, - certificate_name: str, - certificate_envelope: Optional[_models.Certificate] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Certificate: - """Create or Update a Certificate. - - Create or Update a Certificate. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param certificate_name: Name of the Certificate. Required. - :type certificate_name: str - :param certificate_envelope: Certificate to be created or updated. Default value is None. - :type certificate_envelope: ~azure.mgmt.appcontainers.models.Certificate - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Certificate or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.Certificate - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update( - self, - resource_group_name: str, - environment_name: str, - certificate_name: str, - certificate_envelope: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Certificate: - """Create or Update a Certificate. - - Create or Update a Certificate. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param certificate_name: Name of the Certificate. Required. - :type certificate_name: str - :param certificate_envelope: Certificate to be created or updated. Default value is None. - :type certificate_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Certificate or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.Certificate - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update( - self, - resource_group_name: str, - environment_name: str, - certificate_name: str, - certificate_envelope: Optional[Union[_models.Certificate, IO[bytes]]] = None, - **kwargs: Any - ) -> _models.Certificate: - """Create or Update a Certificate. - - Create or Update a Certificate. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param certificate_name: Name of the Certificate. Required. - :type certificate_name: str - :param certificate_envelope: Certificate to be created or updated. Is either a Certificate type - or a IO[bytes] type. Default value is None. - :type certificate_envelope: ~azure.mgmt.appcontainers.models.Certificate or IO[bytes] - :return: Certificate or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.Certificate - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if certificate_envelope else None - cls: ClsType[_models.Certificate] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" if certificate_envelope else None - _json = None - _content = None - if isinstance(certificate_envelope, (IOBase, bytes)): - _content = certificate_envelope - else: - if certificate_envelope is not None: - _json = self._serialize.body(certificate_envelope, "Certificate") - else: - _json = None - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - environment_name=environment_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.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Certificate", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def delete( - self, resource_group_name: str, environment_name: str, certificate_name: str, **kwargs: Any - ) -> None: - """Deletes the specified Certificate. - - Deletes the specified Certificate. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param certificate_name: Name of the Certificate. Required. - :type certificate_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await 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) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def update( - self, - resource_group_name: str, - environment_name: str, - certificate_name: str, - certificate_envelope: _models.CertificatePatch, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Certificate: - """Update properties of a certificate. - - Patches a certificate. Currently only patching of tags is supported. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param certificate_name: Name of the Certificate. Required. - :type certificate_name: str - :param certificate_envelope: Properties of a certificate that need to be updated. Required. - :type certificate_envelope: ~azure.mgmt.appcontainers.models.CertificatePatch - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Certificate or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.Certificate - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def update( - self, - resource_group_name: str, - environment_name: str, - certificate_name: str, - certificate_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Certificate: - """Update properties of a certificate. - - Patches a certificate. Currently only patching of tags is supported. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param certificate_name: Name of the Certificate. Required. - :type certificate_name: str - :param certificate_envelope: Properties of a certificate that need to be updated. Required. - :type certificate_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Certificate or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.Certificate - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def update( - self, - resource_group_name: str, - environment_name: str, - certificate_name: str, - certificate_envelope: Union[_models.CertificatePatch, IO[bytes]], - **kwargs: Any - ) -> _models.Certificate: - """Update properties of a certificate. - - Patches a certificate. Currently only patching of tags is supported. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param certificate_name: Name of the Certificate. Required. - :type certificate_name: str - :param certificate_envelope: Properties of a certificate that need to be updated. Is either a - CertificatePatch type or a IO[bytes] type. Required. - :type certificate_envelope: ~azure.mgmt.appcontainers.models.CertificatePatch or IO[bytes] - :return: Certificate or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.Certificate - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Certificate] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_envelope, (IOBase, bytes)): - _content = certificate_envelope - else: - _json = self._serialize.body(certificate_envelope, "CertificatePatch") - - _request = build_update_request( - resource_group_name=resource_group_name, - environment_name=environment_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.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Certificate", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_connected_environments_certificates_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_connected_environments_certificates_operations.py deleted file mode 100644 index 444b4438059d..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_connected_environments_certificates_operations.py +++ /dev/null @@ -1,791 +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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._connected_environments_certificates_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) -from .._configuration import ContainerAppsAPIClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class ConnectedEnvironmentsCertificatesOperations: # pylint: disable=name-too-long - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`connected_environments_certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list( - self, resource_group_name: str, connected_environment_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.Certificate"]: - """Get the Certificates in a given connected environment. - - Get the Certificates in a given connected environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Connected Environment. Required. - :type connected_environment_name: str - :return: An iterator like instance of either Certificate or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.Certificate] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.CertificateCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, connected_environment_name: str, certificate_name: str, **kwargs: Any - ) -> _models.Certificate: - """Get the specified Certificate. - - Get the specified Certificate. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Connected Environment. Required. - :type connected_environment_name: str - :param certificate_name: Name of the Certificate. Required. - :type certificate_name: str - :return: Certificate or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.Certificate - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.Certificate] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Certificate", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - connected_environment_name: str, - certificate_name: str, - certificate_envelope: Optional[Union[_models.Certificate, IO[bytes]]] = None, - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if certificate_envelope else None - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" if certificate_envelope else None - _json = None - _content = None - if isinstance(certificate_envelope, (IOBase, bytes)): - _content = certificate_envelope - else: - if certificate_envelope is not None: - _json = self._serialize.body(certificate_envelope, "Certificate") - else: - _json = None - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_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.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 201: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - connected_environment_name: str, - certificate_name: str, - certificate_envelope: Optional[_models.Certificate] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.Certificate]: - """Create or Update a Certificate. - - Create or Update a Certificate. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Connected Environment. Required. - :type connected_environment_name: str - :param certificate_name: Name of the Certificate. Required. - :type certificate_name: str - :param certificate_envelope: Certificate to be created or updated. Default value is None. - :type certificate_envelope: ~azure.mgmt.appcontainers.models.Certificate - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either Certificate or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.Certificate] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - connected_environment_name: str, - certificate_name: str, - certificate_envelope: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.Certificate]: - """Create or Update a Certificate. - - Create or Update a Certificate. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Connected Environment. Required. - :type connected_environment_name: str - :param certificate_name: Name of the Certificate. Required. - :type certificate_name: str - :param certificate_envelope: Certificate to be created or updated. Default value is None. - :type certificate_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either Certificate or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.Certificate] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - connected_environment_name: str, - certificate_name: str, - certificate_envelope: Optional[Union[_models.Certificate, IO[bytes]]] = None, - **kwargs: Any - ) -> AsyncLROPoller[_models.Certificate]: - """Create or Update a Certificate. - - Create or Update a Certificate. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Connected Environment. Required. - :type connected_environment_name: str - :param certificate_name: Name of the Certificate. Required. - :type certificate_name: str - :param certificate_envelope: Certificate to be created or updated. Is either a Certificate type - or a IO[bytes] type. Default value is None. - :type certificate_envelope: ~azure.mgmt.appcontainers.models.Certificate or IO[bytes] - :return: An instance of AsyncLROPoller that returns either Certificate or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.Certificate] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if certificate_envelope else None - cls: ClsType[_models.Certificate] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - certificate_name=certificate_name, - certificate_envelope=certificate_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("Certificate", pipeline_response.http_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.Certificate].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.Certificate]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( - self, resource_group_name: str, connected_environment_name: str, certificate_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = 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]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, connected_environment_name: str, certificate_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Deletes the specified Certificate. - - Deletes the specified Certificate. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Connected Environment. Required. - :type connected_environment_name: str - :param certificate_name: Name of the Certificate. 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._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=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 _update_initial( - self, - resource_group_name: str, - connected_environment_name: str, - certificate_name: str, - certificate_envelope: Union[_models.CertificatePatch, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_envelope, (IOBase, bytes)): - _content = certificate_envelope - else: - _json = self._serialize.body(certificate_envelope, "CertificatePatch") - - _request = build_update_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_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.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - connected_environment_name: str, - certificate_name: str, - certificate_envelope: _models.CertificatePatch, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.Certificate]: - """Update properties of a certificate. - - Patches a certificate. Currently only patching of tags is supported. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Connected Environment. Required. - :type connected_environment_name: str - :param certificate_name: Name of the Certificate. Required. - :type certificate_name: str - :param certificate_envelope: Properties of a certificate that need to be updated. Required. - :type certificate_envelope: ~azure.mgmt.appcontainers.models.CertificatePatch - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either Certificate or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.Certificate] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - connected_environment_name: str, - certificate_name: str, - certificate_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.Certificate]: - """Update properties of a certificate. - - Patches a certificate. Currently only patching of tags is supported. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Connected Environment. Required. - :type connected_environment_name: str - :param certificate_name: Name of the Certificate. Required. - :type certificate_name: str - :param certificate_envelope: Properties of a certificate that need to be updated. Required. - :type certificate_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either Certificate or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.Certificate] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - connected_environment_name: str, - certificate_name: str, - certificate_envelope: Union[_models.CertificatePatch, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.Certificate]: - """Update properties of a certificate. - - Patches a certificate. Currently only patching of tags is supported. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Connected Environment. Required. - :type connected_environment_name: str - :param certificate_name: Name of the Certificate. Required. - :type certificate_name: str - :param certificate_envelope: Properties of a certificate that need to be updated. Is either a - CertificatePatch type or a IO[bytes] type. Required. - :type certificate_envelope: ~azure.mgmt.appcontainers.models.CertificatePatch or IO[bytes] - :return: An instance of AsyncLROPoller that returns either Certificate or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.Certificate] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Certificate] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("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, - connected_environment_name=connected_environment_name, - certificate_name=certificate_name, - certificate_envelope=certificate_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("Certificate", pipeline_response.http_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.Certificate].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.Certificate]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_connected_environments_dapr_components_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_connected_environments_dapr_components_operations.py deleted file mode 100644 index 05fb7f878542..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_connected_environments_dapr_components_operations.py +++ /dev/null @@ -1,632 +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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._connected_environments_dapr_components_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_list_secrets_request, -) -from .._configuration import ContainerAppsAPIClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class ConnectedEnvironmentsDaprComponentsOperations: # pylint: disable=name-too-long - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`connected_environments_dapr_components` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list( - self, resource_group_name: str, connected_environment_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.DaprComponent"]: - """Get the Dapr Components for a connected environment. - - Get the Dapr Components for a connected environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the connected environment. Required. - :type connected_environment_name: str - :return: An iterator like instance of either DaprComponent or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.DaprComponent] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DaprComponentsCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DaprComponentsCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any - ) -> _models.DaprComponent: - """Get a dapr component. - - Get a dapr component. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the connected environment. Required. - :type connected_environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :return: DaprComponent or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.DaprComponent - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DaprComponent] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - component_name=component_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DaprComponent", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - connected_environment_name: str, - component_name: str, - dapr_component_envelope: Union[_models.DaprComponent, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(dapr_component_envelope, (IOBase, bytes)): - _content = dapr_component_envelope - else: - _json = self._serialize.body(dapr_component_envelope, "DaprComponent") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - component_name=component_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 201: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - connected_environment_name: str, - component_name: str, - dapr_component_envelope: _models.DaprComponent, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DaprComponent]: - """Creates or updates a Dapr Component. - - Creates or updates a Dapr Component in a connected environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the connected environment. Required. - :type connected_environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :param dapr_component_envelope: Configuration details of the Dapr Component. Required. - :type dapr_component_envelope: ~azure.mgmt.appcontainers.models.DaprComponent - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DaprComponent or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.DaprComponent] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - connected_environment_name: str, - component_name: str, - dapr_component_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DaprComponent]: - """Creates or updates a Dapr Component. - - Creates or updates a Dapr Component in a connected environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the connected environment. Required. - :type connected_environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :param dapr_component_envelope: Configuration details of the Dapr Component. Required. - :type dapr_component_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DaprComponent or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.DaprComponent] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - connected_environment_name: str, - component_name: str, - dapr_component_envelope: Union[_models.DaprComponent, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DaprComponent]: - """Creates or updates a Dapr Component. - - Creates or updates a Dapr Component in a connected environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the connected environment. Required. - :type connected_environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :param dapr_component_envelope: Configuration details of the Dapr Component. Is either a - DaprComponent type or a IO[bytes] type. Required. - :type dapr_component_envelope: ~azure.mgmt.appcontainers.models.DaprComponent or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DaprComponent or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.DaprComponent] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DaprComponent] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - component_name=component_name, - dapr_component_envelope=dapr_component_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DaprComponent", pipeline_response.http_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.DaprComponent].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DaprComponent]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( - self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - component_name=component_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = 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]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete a Dapr Component. - - Delete a Dapr Component from a connected environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the connected environment. Required. - :type connected_environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - component_name=component_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=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_secrets( - self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any - ) -> _models.DaprSecretsCollection: - """List secrets for a dapr component. - - List secrets for a dapr component. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the connected environment. Required. - :type connected_environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :return: DaprSecretsCollection or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.DaprSecretsCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DaprSecretsCollection] = kwargs.pop("cls", None) - - _request = build_list_secrets_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - component_name=component_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DaprSecretsCollection", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_connected_environments_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_connected_environments_operations.py deleted file mode 100644 index aa7ee77f490d..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_connected_environments_operations.py +++ /dev/null @@ -1,908 +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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._connected_environments_operations import ( - build_check_name_availability_request, - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_by_resource_group_request, - build_list_by_subscription_request, - build_update_request, -) -from .._configuration import ContainerAppsAPIClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class ConnectedEnvironmentsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`connected_environments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.ConnectedEnvironment"]: - """Get all connectedEnvironments for a subscription. - - Get all connectedEnvironments for a subscription. - - :return: An iterator like instance of either ConnectedEnvironment or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.ConnectedEnvironment] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ConnectedEnvironmentCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: 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.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ConnectedEnvironmentCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_by_resource_group( - self, resource_group_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.ConnectedEnvironment"]: - """Get all connectedEnvironments in a resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :return: An iterator like instance of either ConnectedEnvironment or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.ConnectedEnvironment] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ConnectedEnvironmentCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: 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_resource_group_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ConnectedEnvironmentCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, connected_environment_name: str, **kwargs: Any - ) -> _models.ConnectedEnvironment: - """Get the properties of an connectedEnvironment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the connectedEnvironment. Required. - :type connected_environment_name: str - :return: ConnectedEnvironment or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironment - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ConnectedEnvironment] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConnectedEnvironment", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - connected_environment_name: str, - environment_envelope: Union[_models.ConnectedEnvironment, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(environment_envelope, (IOBase, bytes)): - _content = environment_envelope - else: - _json = self._serialize.body(environment_envelope, "ConnectedEnvironment") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 201: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - connected_environment_name: str, - environment_envelope: _models.ConnectedEnvironment, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConnectedEnvironment]: - """Creates or updates an connectedEnvironment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the connectedEnvironment. Required. - :type connected_environment_name: str - :param environment_envelope: Configuration details of the connectedEnvironment. Required. - :type environment_envelope: ~azure.mgmt.appcontainers.models.ConnectedEnvironment - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConnectedEnvironment or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironment] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - connected_environment_name: str, - environment_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConnectedEnvironment]: - """Creates or updates an connectedEnvironment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the connectedEnvironment. Required. - :type connected_environment_name: str - :param environment_envelope: Configuration details of the connectedEnvironment. Required. - :type environment_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConnectedEnvironment or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironment] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - connected_environment_name: str, - environment_envelope: Union[_models.ConnectedEnvironment, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConnectedEnvironment]: - """Creates or updates an connectedEnvironment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the connectedEnvironment. Required. - :type connected_environment_name: str - :param environment_envelope: Configuration details of the connectedEnvironment. Is either a - ConnectedEnvironment type or a IO[bytes] type. Required. - :type environment_envelope: ~azure.mgmt.appcontainers.models.ConnectedEnvironment or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConnectedEnvironment or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironment] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConnectedEnvironment] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - environment_envelope=environment_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConnectedEnvironment", pipeline_response.http_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.ConnectedEnvironment].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConnectedEnvironment]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( - self, resource_group_name: str, connected_environment_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, connected_environment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete an connectedEnvironment. - - Delete an connectedEnvironment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the connectedEnvironment. Required. - :type connected_environment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=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 - - @overload - async def update( - self, - resource_group_name: str, - connected_environment_name: str, - environment_envelope: _models.ConnectedEnvironmentPatchResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ConnectedEnvironment: - """Update connected Environment's properties. - - Patches a Managed Environment. Only patching of tags is supported currently. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the connectedEnvironment. Required. - :type connected_environment_name: str - :param environment_envelope: Configuration details of the connectedEnvironment. Required. - :type environment_envelope: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentPatchResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ConnectedEnvironment or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironment - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def update( - self, - resource_group_name: str, - connected_environment_name: str, - environment_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ConnectedEnvironment: - """Update connected Environment's properties. - - Patches a Managed Environment. Only patching of tags is supported currently. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the connectedEnvironment. Required. - :type connected_environment_name: str - :param environment_envelope: Configuration details of the connectedEnvironment. Required. - :type environment_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ConnectedEnvironment or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironment - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def update( - self, - resource_group_name: str, - connected_environment_name: str, - environment_envelope: Union[_models.ConnectedEnvironmentPatchResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConnectedEnvironment: - """Update connected Environment's properties. - - Patches a Managed Environment. Only patching of tags is supported currently. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the connectedEnvironment. Required. - :type connected_environment_name: str - :param environment_envelope: Configuration details of the connectedEnvironment. Is either a - ConnectedEnvironmentPatchResource type or a IO[bytes] type. Required. - :type environment_envelope: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentPatchResource - or IO[bytes] - :return: ConnectedEnvironment or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironment - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConnectedEnvironment] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(environment_envelope, (IOBase, bytes)): - _content = environment_envelope - else: - _json = self._serialize.body(environment_envelope, "ConnectedEnvironmentPatchResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConnectedEnvironment", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def check_name_availability( - self, - resource_group_name: str, - connected_environment_name: str, - check_name_availability_request: _models.CheckNameAvailabilityRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CheckNameAvailabilityResponse: - """Checks the resource connectedEnvironmentName availability. - - Checks if resource connectedEnvironmentName is available. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Managed Environment. Required. - :type connected_environment_name: str - :param check_name_availability_request: The check connectedEnvironmentName availability - request. Required. - :type check_name_availability_request: - ~azure.mgmt.appcontainers.models.CheckNameAvailabilityRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CheckNameAvailabilityResponse or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.CheckNameAvailabilityResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def check_name_availability( - self, - resource_group_name: str, - connected_environment_name: str, - check_name_availability_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CheckNameAvailabilityResponse: - """Checks the resource connectedEnvironmentName availability. - - Checks if resource connectedEnvironmentName is available. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Managed Environment. Required. - :type connected_environment_name: str - :param check_name_availability_request: The check connectedEnvironmentName availability - request. Required. - :type check_name_availability_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: CheckNameAvailabilityResponse or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.CheckNameAvailabilityResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def check_name_availability( - self, - resource_group_name: str, - connected_environment_name: str, - check_name_availability_request: Union[_models.CheckNameAvailabilityRequest, IO[bytes]], - **kwargs: Any - ) -> _models.CheckNameAvailabilityResponse: - """Checks the resource connectedEnvironmentName availability. - - Checks if resource connectedEnvironmentName is available. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Managed Environment. Required. - :type connected_environment_name: str - :param check_name_availability_request: The check connectedEnvironmentName availability - request. Is either a CheckNameAvailabilityRequest type or a IO[bytes] type. Required. - :type check_name_availability_request: - ~azure.mgmt.appcontainers.models.CheckNameAvailabilityRequest or IO[bytes] - :return: CheckNameAvailabilityResponse or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.CheckNameAvailabilityResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CheckNameAvailabilityResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(check_name_availability_request, (IOBase, bytes)): - _content = check_name_availability_request - else: - _json = self._serialize.body(check_name_availability_request, "CheckNameAvailabilityRequest") - - _request = build_check_name_availability_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CheckNameAvailabilityResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_connected_environments_storages_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_connected_environments_storages_operations.py deleted file mode 100644 index 3ddb41fea9c2..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_connected_environments_storages_operations.py +++ /dev/null @@ -1,540 +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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload - -from azure.core import AsyncPipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import AsyncHttpResponse, 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 ..._utils.serialization import Deserializer, Serializer -from ...operations._connected_environments_storages_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) -from .._configuration import ContainerAppsAPIClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class ConnectedEnvironmentsStoragesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`connected_environments_storages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def list( - self, resource_group_name: str, connected_environment_name: str, **kwargs: Any - ) -> _models.ConnectedEnvironmentStoragesCollection: - """Get all storages for a connectedEnvironment. - - Get all storages for a connectedEnvironment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Environment. Required. - :type connected_environment_name: str - :return: ConnectedEnvironmentStoragesCollection or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStoragesCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ConnectedEnvironmentStoragesCollection] = kwargs.pop("cls", None) - - _request = build_list_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConnectedEnvironmentStoragesCollection", pipeline_response.http_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, connected_environment_name: str, storage_name: str, **kwargs: Any - ) -> _models.ConnectedEnvironmentStorage: - """Get storage for a connectedEnvironment. - - Get storage for a connectedEnvironment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Environment. Required. - :type connected_environment_name: str - :param storage_name: Name of the storage. Required. - :type storage_name: str - :return: ConnectedEnvironmentStorage or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ConnectedEnvironmentStorage] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConnectedEnvironmentStorage", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - connected_environment_name: str, - storage_name: str, - storage_envelope: Union[_models.ConnectedEnvironmentStorage, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(storage_envelope, (IOBase, bytes)): - _content = storage_envelope - else: - _json = self._serialize.body(storage_envelope, "ConnectedEnvironmentStorage") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_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.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 201: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - connected_environment_name: str, - storage_name: str, - storage_envelope: _models.ConnectedEnvironmentStorage, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConnectedEnvironmentStorage]: - """Create or update storage for a connectedEnvironment. - - Create or update storage for a connectedEnvironment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Environment. Required. - :type connected_environment_name: str - :param storage_name: Name of the storage. Required. - :type storage_name: str - :param storage_envelope: Configuration details of storage. Required. - :type storage_envelope: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConnectedEnvironmentStorage or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - connected_environment_name: str, - storage_name: str, - storage_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConnectedEnvironmentStorage]: - """Create or update storage for a connectedEnvironment. - - Create or update storage for a connectedEnvironment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Environment. Required. - :type connected_environment_name: str - :param storage_name: Name of the storage. Required. - :type storage_name: str - :param storage_envelope: Configuration details of storage. Required. - :type storage_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConnectedEnvironmentStorage or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - connected_environment_name: str, - storage_name: str, - storage_envelope: Union[_models.ConnectedEnvironmentStorage, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConnectedEnvironmentStorage]: - """Create or update storage for a connectedEnvironment. - - Create or update storage for a connectedEnvironment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Environment. Required. - :type connected_environment_name: str - :param storage_name: Name of the storage. Required. - :type storage_name: str - :param storage_envelope: Configuration details of storage. Is either a - ConnectedEnvironmentStorage type or a IO[bytes] type. Required. - :type storage_envelope: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConnectedEnvironmentStorage or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConnectedEnvironmentStorage] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - storage_name=storage_name, - storage_envelope=storage_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConnectedEnvironmentStorage", pipeline_response.http_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.ConnectedEnvironmentStorage].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConnectedEnvironmentStorage]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( - self, resource_group_name: str, connected_environment_name: str, storage_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = 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]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, connected_environment_name: str, storage_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete storage for a connectedEnvironment. - - Delete storage for a connectedEnvironment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Environment. Required. - :type connected_environment_name: str - :param storage_name: Name of the storage. 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._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - storage_name=storage_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=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 diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_api_client_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_api_client_operations.py deleted file mode 100644 index 23e242b22326..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_api_client_operations.py +++ /dev/null @@ -1,160 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar - -from azure.core import AsyncPipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, 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 ..._utils.utils import ClientMixinABC -from ...operations._container_apps_api_client_operations import ( - build_get_custom_domain_verification_id_request, - build_job_execution_request, -) -from .._configuration import ContainerAppsAPIClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class _ContainerAppsAPIClientOperationsMixin( - ClientMixinABC[AsyncPipelineClient[HttpRequest, AsyncHttpResponse], ContainerAppsAPIClientConfiguration] -): - - @distributed_trace_async - async def job_execution( - self, resource_group_name: str, job_name: str, job_execution_name: str, **kwargs: Any - ) -> _models.JobExecution: - """Get details of a single job execution. - - Get details of a single job execution. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :param job_execution_name: Job execution name. Required. - :type job_execution_name: str - :return: JobExecution or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.JobExecution - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.JobExecution] = kwargs.pop("cls", None) - - _request = build_job_execution_request( - resource_group_name=resource_group_name, - job_name=job_name, - job_execution_name=job_execution_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("JobExecution", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_custom_domain_verification_id(self, **kwargs: Any) -> str: - """Get the verification id of a subscription used for verifying custom domains. - - :return: str or the result of cls(response) - :rtype: str - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[str] = kwargs.pop("cls", None) - - _request = build_get_custom_domain_verification_id_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("str", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_auth_configs_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_auth_configs_operations.py deleted file mode 100644 index bdfc35f7d2ad..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_auth_configs_operations.py +++ /dev/null @@ -1,429 +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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.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 ..._utils.serialization import Deserializer, Serializer -from ...operations._container_apps_auth_configs_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_by_container_app_request, -) -from .._configuration import ContainerAppsAPIClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class ContainerAppsAuthConfigsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`container_apps_auth_configs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_container_app( - self, resource_group_name: str, container_app_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.AuthConfig"]: - """Get the Container App AuthConfigs in a given resource group. - - Get the Container App AuthConfigs in a given resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :return: An iterator like instance of either AuthConfig or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.AuthConfig] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.AuthConfigCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: 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_container_app_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AuthConfigCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, container_app_name: str, auth_config_name: str, **kwargs: Any - ) -> _models.AuthConfig: - """Get a AuthConfig of a Container App. - - Get a AuthConfig of a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param auth_config_name: Name of the Container App AuthConfig. Required. - :type auth_config_name: str - :return: AuthConfig or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.AuthConfig - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.AuthConfig] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - auth_config_name=auth_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AuthConfig", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def create_or_update( - self, - resource_group_name: str, - container_app_name: str, - auth_config_name: str, - auth_config_envelope: _models.AuthConfig, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.AuthConfig: - """Create or update the AuthConfig for a Container App. - - Create or update the AuthConfig for a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param auth_config_name: Name of the Container App AuthConfig. Required. - :type auth_config_name: str - :param auth_config_envelope: Properties used to create a Container App AuthConfig. Required. - :type auth_config_envelope: ~azure.mgmt.appcontainers.models.AuthConfig - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: AuthConfig or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.AuthConfig - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update( - self, - resource_group_name: str, - container_app_name: str, - auth_config_name: str, - auth_config_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.AuthConfig: - """Create or update the AuthConfig for a Container App. - - Create or update the AuthConfig for a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param auth_config_name: Name of the Container App AuthConfig. Required. - :type auth_config_name: str - :param auth_config_envelope: Properties used to create a Container App AuthConfig. Required. - :type auth_config_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: AuthConfig or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.AuthConfig - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update( - self, - resource_group_name: str, - container_app_name: str, - auth_config_name: str, - auth_config_envelope: Union[_models.AuthConfig, IO[bytes]], - **kwargs: Any - ) -> _models.AuthConfig: - """Create or update the AuthConfig for a Container App. - - Create or update the AuthConfig for a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param auth_config_name: Name of the Container App AuthConfig. Required. - :type auth_config_name: str - :param auth_config_envelope: Properties used to create a Container App AuthConfig. Is either a - AuthConfig type or a IO[bytes] type. Required. - :type auth_config_envelope: ~azure.mgmt.appcontainers.models.AuthConfig or IO[bytes] - :return: AuthConfig or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.AuthConfig - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AuthConfig] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(auth_config_envelope, (IOBase, bytes)): - _content = auth_config_envelope - else: - _json = self._serialize.body(auth_config_envelope, "AuthConfig") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - auth_config_name=auth_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.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AuthConfig", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def delete( - self, resource_group_name: str, container_app_name: str, auth_config_name: str, **kwargs: Any - ) -> None: - """Delete a Container App AuthConfig. - - Delete a Container App AuthConfig. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param auth_config_name: Name of the Container App AuthConfig. Required. - :type auth_config_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - auth_config_name=auth_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await 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) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_diagnostics_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_diagnostics_operations.py deleted file mode 100644 index 1e6021eb7830..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_diagnostics_operations.py +++ /dev/null @@ -1,437 +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 collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.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 ..._utils.serialization import Deserializer, Serializer -from ...operations._container_apps_diagnostics_operations import ( - build_get_detector_request, - build_get_revision_request, - build_get_root_request, - build_list_detectors_request, - build_list_revisions_request, -) -from .._configuration import ContainerAppsAPIClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class ContainerAppsDiagnosticsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`container_apps_diagnostics` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_detectors( - self, resource_group_name: str, container_app_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.Diagnostics"]: - """Get the list of diagnostics for a given Container App. - - Get the list of diagnostics for a given Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App for which detector info is needed. - Required. - :type container_app_name: str - :return: An iterator like instance of either Diagnostics or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.Diagnostics] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DiagnosticsCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_detectors_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DiagnosticsCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_detector( - self, resource_group_name: str, container_app_name: str, detector_name: str, **kwargs: Any - ) -> _models.Diagnostics: - """Get a diagnostics result of a Container App. - - Get a diagnostics result of a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param detector_name: Name of the Container App Detector. Required. - :type detector_name: str - :return: Diagnostics or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.Diagnostics - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.Diagnostics] = kwargs.pop("cls", None) - - _request = build_get_detector_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - detector_name=detector_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Diagnostics", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_revisions( - self, resource_group_name: str, container_app_name: str, filter: Optional[str] = None, **kwargs: Any - ) -> AsyncItemPaged["_models.Revision"]: - """Get the Revisions for a given Container App. - - Get the Revisions for a given Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App for which Revisions are needed. Required. - :type container_app_name: str - :param filter: The filter to apply on the operation. Default value is None. - :type filter: str - :return: An iterator like instance of either Revision or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.Revision] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.RevisionCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_revisions_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - subscription_id=self._config.subscription_id, - filter=filter, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("RevisionCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_revision( - self, resource_group_name: str, container_app_name: str, revision_name: str, **kwargs: Any - ) -> _models.Revision: - """Get a revision of a Container App. - - Get a revision of a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param revision_name: Name of the Container App Revision. Required. - :type revision_name: str - :return: Revision or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.Revision - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.Revision] = kwargs.pop("cls", None) - - _request = build_get_revision_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - revision_name=revision_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Revision", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_root(self, resource_group_name: str, container_app_name: str, **kwargs: Any) -> _models.ContainerApp: - """Get the properties of a Container App. - - Get the properties of a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :return: ContainerApp or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ContainerApp - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerApp] = kwargs.pop("cls", None) - - _request = build_get_root_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ContainerApp", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_operations.py deleted file mode 100644 index c2a219e26054..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_operations.py +++ /dev/null @@ -1,1263 +0,0 @@ -# pylint: disable=too-many-lines -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._container_apps_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_auth_token_request, - build_get_request, - build_list_by_resource_group_request, - build_list_by_subscription_request, - build_list_custom_host_name_analysis_request, - build_list_secrets_request, - build_start_request, - build_stop_request, - build_update_request, -) -from .._configuration import ContainerAppsAPIClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class ContainerAppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`container_apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.ContainerApp"]: - """Get the Container Apps in a given subscription. - - Get the Container Apps in a given subscription. - - :return: An iterator like instance of either ContainerApp or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.ContainerApp] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerAppCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: 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.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ContainerAppCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.ContainerApp"]: - """Get the Container Apps in a given resource group. - - Get the Container Apps in a given resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :return: An iterator like instance of either ContainerApp or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.ContainerApp] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerAppCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: 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_resource_group_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ContainerAppCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get(self, resource_group_name: str, container_app_name: str, **kwargs: Any) -> _models.ContainerApp: - """Get the properties of a Container App. - - Get the properties of a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :return: ContainerApp or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ContainerApp - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerApp] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ContainerApp", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - container_app_name: str, - container_app_envelope: Union[_models.ContainerApp, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(container_app_envelope, (IOBase, bytes)): - _content = container_app_envelope - else: - _json = self._serialize.body(container_app_envelope, "ContainerApp") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - container_app_name=container_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.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - container_app_name: str, - container_app_envelope: _models.ContainerApp, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerApp]: - """Create or update a Container App. - - Create or update a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param container_app_envelope: Properties used to create a container app. Required. - :type container_app_envelope: ~azure.mgmt.appcontainers.models.ContainerApp - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ContainerApp or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ContainerApp] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - container_app_name: str, - container_app_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerApp]: - """Create or update a Container App. - - Create or update a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param container_app_envelope: Properties used to create a container app. Required. - :type container_app_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ContainerApp or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ContainerApp] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - container_app_name: str, - container_app_envelope: Union[_models.ContainerApp, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerApp]: - """Create or update a Container App. - - Create or update a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param container_app_envelope: Properties used to create a container app. Is either a - ContainerApp type or a IO[bytes] type. Required. - :type container_app_envelope: ~azure.mgmt.appcontainers.models.ContainerApp or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ContainerApp or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ContainerApp] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerApp] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - container_app_envelope=container_app_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerApp", pipeline_response.http_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.ContainerApp].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ContainerApp]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( - self, resource_group_name: str, container_app_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, container_app_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete a Container App. - - Delete a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_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._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=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 _update_initial( - self, - resource_group_name: str, - container_app_name: str, - container_app_envelope: Union[_models.ContainerApp, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(container_app_envelope, (IOBase, bytes)): - _content = container_app_envelope - else: - _json = self._serialize.body(container_app_envelope, "ContainerApp") - - _request = build_update_request( - resource_group_name=resource_group_name, - container_app_name=container_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.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - container_app_name: str, - container_app_envelope: _models.ContainerApp, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerApp]: - """Update properties of a Container App. - - Patches a Container App using JSON Merge Patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param container_app_envelope: Properties of a Container App that need to be updated. Required. - :type container_app_envelope: ~azure.mgmt.appcontainers.models.ContainerApp - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ContainerApp or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ContainerApp] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - container_app_name: str, - container_app_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerApp]: - """Update properties of a Container App. - - Patches a Container App using JSON Merge Patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param container_app_envelope: Properties of a Container App that need to be updated. Required. - :type container_app_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ContainerApp or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ContainerApp] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - container_app_name: str, - container_app_envelope: Union[_models.ContainerApp, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerApp]: - """Update properties of a Container App. - - Patches a Container App using JSON Merge Patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param container_app_envelope: Properties of a Container App that need to be updated. Is either - a ContainerApp type or a IO[bytes] type. Required. - :type container_app_envelope: ~azure.mgmt.appcontainers.models.ContainerApp or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ContainerApp or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ContainerApp] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerApp] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("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, - container_app_name=container_app_name, - container_app_envelope=container_app_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerApp", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ContainerApp].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ContainerApp]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def list_custom_host_name_analysis( - self, resource_group_name: str, container_app_name: str, custom_hostname: Optional[str] = None, **kwargs: Any - ) -> _models.CustomHostnameAnalysisResult: - """Analyzes a custom hostname for a Container App. - - Analyzes a custom hostname for a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param custom_hostname: Custom hostname. Default value is None. - :type custom_hostname: str - :return: CustomHostnameAnalysisResult or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.CustomHostnameAnalysisResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.CustomHostnameAnalysisResult] = kwargs.pop("cls", None) - - _request = build_list_custom_host_name_analysis_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - subscription_id=self._config.subscription_id, - custom_hostname=custom_hostname, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomHostnameAnalysisResult", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def list_secrets( - self, resource_group_name: str, container_app_name: str, **kwargs: Any - ) -> _models.SecretsCollection: - """List secrets for a container app. - - List secrets for a container app. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :return: SecretsCollection or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.SecretsCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.SecretsCollection] = kwargs.pop("cls", None) - - _request = build_list_secrets_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SecretsCollection", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_auth_token( - self, resource_group_name: str, container_app_name: str, **kwargs: Any - ) -> _models.ContainerAppAuthToken: - """Get auth token for a container app. - - Get auth token for a container app. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :return: ContainerAppAuthToken or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ContainerAppAuthToken - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerAppAuthToken] = kwargs.pop("cls", None) - - _request = build_get_auth_token_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ContainerAppAuthToken", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _start_initial( - self, resource_group_name: str, container_app_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_start( - self, resource_group_name: str, container_app_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerApp]: - """Start a container app. - - Start a container app. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :return: An instance of AsyncLROPoller that returns either ContainerApp or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ContainerApp] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerApp] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("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( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerApp", pipeline_response.http_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.ContainerApp].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ContainerApp]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _stop_initial( - self, resource_group_name: str, container_app_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_stop( - self, resource_group_name: str, container_app_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerApp]: - """Stop a container app. - - Stop a container app. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :return: An instance of AsyncLROPoller that returns either ContainerApp or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ContainerApp] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerApp] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("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( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerApp", pipeline_response.http_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.ContainerApp].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ContainerApp]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_revision_replicas_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_revision_replicas_operations.py deleted file mode 100644 index a8d9b146238c..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_revision_replicas_operations.py +++ /dev/null @@ -1,191 +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 collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar - -from azure.core import AsyncPipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, 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 ..._utils.serialization import Deserializer, Serializer -from ...operations._container_apps_revision_replicas_operations import ( - build_get_replica_request, - build_list_replicas_request, -) -from .._configuration import ContainerAppsAPIClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class ContainerAppsRevisionReplicasOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`container_apps_revision_replicas` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def get_replica( - self, resource_group_name: str, container_app_name: str, revision_name: str, replica_name: str, **kwargs: Any - ) -> _models.Replica: - """Get a replica for a Container App Revision. - - Get a replica for a Container App Revision. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param revision_name: Name of the Container App Revision. Required. - :type revision_name: str - :param replica_name: Name of the Container App Revision Replica. Required. - :type replica_name: str - :return: Replica or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.Replica - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.Replica] = kwargs.pop("cls", None) - - _request = build_get_replica_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - revision_name=revision_name, - replica_name=replica_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Replica", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def list_replicas( - self, resource_group_name: str, container_app_name: str, revision_name: str, **kwargs: Any - ) -> _models.ReplicaCollection: - """List replicas for a Container App Revision. - - List replicas for a Container App Revision. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param revision_name: Name of the Container App Revision. Required. - :type revision_name: str - :return: ReplicaCollection or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ReplicaCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ReplicaCollection] = kwargs.pop("cls", None) - - _request = build_list_replicas_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - revision_name=revision_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ReplicaCollection", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_revisions_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_revisions_operations.py deleted file mode 100644 index ed694d64648c..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_revisions_operations.py +++ /dev/null @@ -1,406 +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 collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.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 ..._utils.serialization import Deserializer, Serializer -from ...operations._container_apps_revisions_operations import ( - build_activate_revision_request, - build_deactivate_revision_request, - build_get_revision_request, - build_list_revisions_request, - build_restart_revision_request, -) -from .._configuration import ContainerAppsAPIClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class ContainerAppsRevisionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`container_apps_revisions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_revisions( - self, resource_group_name: str, container_app_name: str, filter: Optional[str] = None, **kwargs: Any - ) -> AsyncItemPaged["_models.Revision"]: - """Get the Revisions for a given Container App. - - Get the Revisions for a given Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App for which Revisions are needed. Required. - :type container_app_name: str - :param filter: The filter to apply on the operation. Default value is None. - :type filter: str - :return: An iterator like instance of either Revision or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.Revision] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.RevisionCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_revisions_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - subscription_id=self._config.subscription_id, - filter=filter, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("RevisionCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_revision( - self, resource_group_name: str, container_app_name: str, revision_name: str, **kwargs: Any - ) -> _models.Revision: - """Get a revision of a Container App. - - Get a revision of a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param revision_name: Name of the Container App Revision. Required. - :type revision_name: str - :return: Revision or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.Revision - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.Revision] = kwargs.pop("cls", None) - - _request = build_get_revision_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - revision_name=revision_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Revision", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def activate_revision( - self, resource_group_name: str, container_app_name: str, revision_name: str, **kwargs: Any - ) -> None: - """Activates a revision for a Container App. - - Activates a revision for a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param revision_name: Name of the Container App Revision. Required. - :type revision_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_activate_revision_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - revision_name=revision_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def deactivate_revision( - self, resource_group_name: str, container_app_name: str, revision_name: str, **kwargs: Any - ) -> None: - """Deactivates a revision for a Container App. - - Deactivates a revision for a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param revision_name: Name of the Container App Revision. Required. - :type revision_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_deactivate_revision_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - revision_name=revision_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def restart_revision( - self, resource_group_name: str, container_app_name: str, revision_name: str, **kwargs: Any - ) -> None: - """Restarts a revision for a Container App. - - Restarts a revision for a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param revision_name: Name of the Container App Revision. Required. - :type revision_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_revision_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - revision_name=revision_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_session_pools_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_session_pools_operations.py deleted file mode 100644 index c7df20c61f24..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_session_pools_operations.py +++ /dev/null @@ -1,825 +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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._container_apps_session_pools_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_by_resource_group_request, - build_list_by_subscription_request, - build_update_request, -) -from .._configuration import ContainerAppsAPIClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class ContainerAppsSessionPoolsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`container_apps_session_pools` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.SessionPool"]: - """Get the session pools in a given subscription. - - Get the session pools in a given subscription. - - :return: An iterator like instance of either SessionPool or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.SessionPool] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.SessionPoolCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: 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.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("SessionPoolCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.SessionPool"]: - """Get the session pools in a given resource group of a subscription. - - Get the session pools in a given resource group of a subscription. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :return: An iterator like instance of either SessionPool or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.SessionPool] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.SessionPoolCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: 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_resource_group_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("SessionPoolCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get(self, resource_group_name: str, session_pool_name: str, **kwargs: Any) -> _models.SessionPool: - """Get the properties of a session pool. - - Get the properties of a session pool. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param session_pool_name: Name of the session pool. Required. - :type session_pool_name: str - :return: SessionPool or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.SessionPool - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.SessionPool] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - session_pool_name=session_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SessionPool", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - session_pool_name: str, - session_pool_envelope: Union[_models.SessionPool, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(session_pool_envelope, (IOBase, bytes)): - _content = session_pool_envelope - else: - _json = self._serialize.body(session_pool_envelope, "SessionPool") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - session_pool_name=session_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.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - session_pool_name: str, - session_pool_envelope: _models.SessionPool, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.SessionPool]: - """Create or update a session pool. - - Create or update a session pool with the given properties. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param session_pool_name: Name of the session pool. Required. - :type session_pool_name: str - :param session_pool_envelope: Properties used to create a session pool. Required. - :type session_pool_envelope: ~azure.mgmt.appcontainers.models.SessionPool - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either SessionPool or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.SessionPool] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - session_pool_name: str, - session_pool_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.SessionPool]: - """Create or update a session pool. - - Create or update a session pool with the given properties. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param session_pool_name: Name of the session pool. Required. - :type session_pool_name: str - :param session_pool_envelope: Properties used to create a session pool. Required. - :type session_pool_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either SessionPool or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.SessionPool] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - session_pool_name: str, - session_pool_envelope: Union[_models.SessionPool, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.SessionPool]: - """Create or update a session pool. - - Create or update a session pool with the given properties. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param session_pool_name: Name of the session pool. Required. - :type session_pool_name: str - :param session_pool_envelope: Properties used to create a session pool. Is either a SessionPool - type or a IO[bytes] type. Required. - :type session_pool_envelope: ~azure.mgmt.appcontainers.models.SessionPool or IO[bytes] - :return: An instance of AsyncLROPoller that returns either SessionPool or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.SessionPool] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.SessionPool] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - session_pool_name=session_pool_name, - session_pool_envelope=session_pool_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("SessionPool", pipeline_response.http_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.SessionPool].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.SessionPool]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_initial( - self, - resource_group_name: str, - session_pool_name: str, - session_pool_envelope: Union[_models.SessionPoolUpdatableProperties, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(session_pool_envelope, (IOBase, bytes)): - _content = session_pool_envelope - else: - _json = self._serialize.body(session_pool_envelope, "SessionPoolUpdatableProperties") - - _request = build_update_request( - resource_group_name=resource_group_name, - session_pool_name=session_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.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - session_pool_name: str, - session_pool_envelope: _models.SessionPoolUpdatableProperties, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.SessionPool]: - """Update properties of a session pool. - - Patches a session pool using JSON merge patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param session_pool_name: Name of the session pool. Required. - :type session_pool_name: str - :param session_pool_envelope: Properties used to create a session pool. Required. - :type session_pool_envelope: ~azure.mgmt.appcontainers.models.SessionPoolUpdatableProperties - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either SessionPool or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.SessionPool] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - session_pool_name: str, - session_pool_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.SessionPool]: - """Update properties of a session pool. - - Patches a session pool using JSON merge patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param session_pool_name: Name of the session pool. Required. - :type session_pool_name: str - :param session_pool_envelope: Properties used to create a session pool. Required. - :type session_pool_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either SessionPool or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.SessionPool] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - session_pool_name: str, - session_pool_envelope: Union[_models.SessionPoolUpdatableProperties, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.SessionPool]: - """Update properties of a session pool. - - Patches a session pool using JSON merge patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param session_pool_name: Name of the session pool. Required. - :type session_pool_name: str - :param session_pool_envelope: Properties used to create a session pool. Is either a - SessionPoolUpdatableProperties type or a IO[bytes] type. Required. - :type session_pool_envelope: ~azure.mgmt.appcontainers.models.SessionPoolUpdatableProperties or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either SessionPool or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.SessionPool] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.SessionPool] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("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, - session_pool_name=session_pool_name, - session_pool_envelope=session_pool_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("SessionPool", pipeline_response.http_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.SessionPool].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.SessionPool]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( - self, resource_group_name: str, session_pool_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - session_pool_name=session_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = 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]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, session_pool_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete a session pool. - - Delete the session pool with the given name. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param session_pool_name: Name of the session pool. Required. - :type session_pool_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - session_pool_name=session_pool_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=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 diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_source_controls_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_source_controls_operations.py deleted file mode 100644 index c701a80ac4ec..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_source_controls_operations.py +++ /dev/null @@ -1,552 +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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._container_apps_source_controls_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_by_container_app_request, -) -from .._configuration import ContainerAppsAPIClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class ContainerAppsSourceControlsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`container_apps_source_controls` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_container_app( - self, resource_group_name: str, container_app_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.SourceControl"]: - """Get the Container App SourceControls in a given resource group. - - Get the Container App SourceControls in a given resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :return: An iterator like instance of either SourceControl or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.SourceControl] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.SourceControlCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: 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_container_app_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("SourceControlCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, container_app_name: str, source_control_name: str, **kwargs: Any - ) -> _models.SourceControl: - """Get a SourceControl of a Container App. - - Get a SourceControl of a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param source_control_name: Name of the Container App SourceControl. Required. - :type source_control_name: str - :return: SourceControl or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.SourceControl - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.SourceControl] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - source_control_name=source_control_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SourceControl", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - container_app_name: str, - source_control_name: str, - source_control_envelope: Union[_models.SourceControl, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(source_control_envelope, (IOBase, bytes)): - _content = source_control_envelope - else: - _json = self._serialize.body(source_control_envelope, "SourceControl") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - source_control_name=source_control_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - container_app_name: str, - source_control_name: str, - source_control_envelope: _models.SourceControl, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.SourceControl]: - """Create or update the SourceControl for a Container App. - - Create or update the SourceControl for a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param source_control_name: Name of the Container App SourceControl. Required. - :type source_control_name: str - :param source_control_envelope: Properties used to create a Container App SourceControl. - Required. - :type source_control_envelope: ~azure.mgmt.appcontainers.models.SourceControl - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either SourceControl or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.SourceControl] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - container_app_name: str, - source_control_name: str, - source_control_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.SourceControl]: - """Create or update the SourceControl for a Container App. - - Create or update the SourceControl for a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param source_control_name: Name of the Container App SourceControl. Required. - :type source_control_name: str - :param source_control_envelope: Properties used to create a Container App SourceControl. - Required. - :type source_control_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either SourceControl or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.SourceControl] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - container_app_name: str, - source_control_name: str, - source_control_envelope: Union[_models.SourceControl, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.SourceControl]: - """Create or update the SourceControl for a Container App. - - Create or update the SourceControl for a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param source_control_name: Name of the Container App SourceControl. Required. - :type source_control_name: str - :param source_control_envelope: Properties used to create a Container App SourceControl. Is - either a SourceControl type or a IO[bytes] type. Required. - :type source_control_envelope: ~azure.mgmt.appcontainers.models.SourceControl or IO[bytes] - :return: An instance of AsyncLROPoller that returns either SourceControl or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.SourceControl] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.SourceControl] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - source_control_name=source_control_name, - source_control_envelope=source_control_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("SourceControl", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.SourceControl].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.SourceControl]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( - self, resource_group_name: str, container_app_name: str, source_control_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - source_control_name=source_control_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, container_app_name: str, source_control_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete a Container App SourceControl. - - Delete a Container App SourceControl. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param source_control_name: Name of the Container App SourceControl. Required. - :type source_control_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - source_control_name=source_control_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - 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/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_dapr_components_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_dapr_components_operations.py deleted file mode 100644 index 47e5d49bace5..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_dapr_components_operations.py +++ /dev/null @@ -1,494 +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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.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 ..._utils.serialization import Deserializer, Serializer -from ...operations._dapr_components_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_list_secrets_request, -) -from .._configuration import ContainerAppsAPIClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class DaprComponentsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`dapr_components` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list( - self, resource_group_name: str, environment_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.DaprComponent"]: - """Get the Dapr Components for a managed environment. - - Get the Dapr Components for a managed environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :return: An iterator like instance of either DaprComponent or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.DaprComponent] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DaprComponentsCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DaprComponentsCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, environment_name: str, component_name: str, **kwargs: Any - ) -> _models.DaprComponent: - """Get a dapr component. - - Get a dapr component. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :return: DaprComponent or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.DaprComponent - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DaprComponent] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - component_name=component_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DaprComponent", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def create_or_update( - self, - resource_group_name: str, - environment_name: str, - component_name: str, - dapr_component_envelope: _models.DaprComponent, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.DaprComponent: - """Creates or updates a Dapr Component. - - Creates or updates a Dapr Component in a Managed Environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :param dapr_component_envelope: Configuration details of the Dapr Component. Required. - :type dapr_component_envelope: ~azure.mgmt.appcontainers.models.DaprComponent - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: DaprComponent or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.DaprComponent - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update( - self, - resource_group_name: str, - environment_name: str, - component_name: str, - dapr_component_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.DaprComponent: - """Creates or updates a Dapr Component. - - Creates or updates a Dapr Component in a Managed Environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :param dapr_component_envelope: Configuration details of the Dapr Component. Required. - :type dapr_component_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: DaprComponent or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.DaprComponent - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update( - self, - resource_group_name: str, - environment_name: str, - component_name: str, - dapr_component_envelope: Union[_models.DaprComponent, IO[bytes]], - **kwargs: Any - ) -> _models.DaprComponent: - """Creates or updates a Dapr Component. - - Creates or updates a Dapr Component in a Managed Environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :param dapr_component_envelope: Configuration details of the Dapr Component. Is either a - DaprComponent type or a IO[bytes] type. Required. - :type dapr_component_envelope: ~azure.mgmt.appcontainers.models.DaprComponent or IO[bytes] - :return: DaprComponent or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.DaprComponent - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DaprComponent] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(dapr_component_envelope, (IOBase, bytes)): - _content = dapr_component_envelope - else: - _json = self._serialize.body(dapr_component_envelope, "DaprComponent") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - component_name=component_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DaprComponent", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def delete(self, resource_group_name: str, environment_name: str, component_name: str, **kwargs: Any) -> None: - """Delete a Dapr Component. - - Delete a Dapr Component from a Managed Environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - component_name=component_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await 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) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def list_secrets( - self, resource_group_name: str, environment_name: str, component_name: str, **kwargs: Any - ) -> _models.DaprSecretsCollection: - """List secrets for a dapr component. - - List secrets for a dapr component. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :return: DaprSecretsCollection or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.DaprSecretsCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DaprSecretsCollection] = kwargs.pop("cls", None) - - _request = build_list_secrets_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - component_name=component_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DaprSecretsCollection", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_http_route_config_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_http_route_config_operations.py deleted file mode 100644 index 3f332e2ec34d..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_http_route_config_operations.py +++ /dev/null @@ -1,650 +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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._http_route_config_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) -from .._configuration import ContainerAppsAPIClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class HttpRouteConfigOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`http_route_config` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def get( - self, resource_group_name: str, environment_name: str, http_route_name: str, **kwargs: Any - ) -> _models.HttpRouteConfig: - """Get the specified Http Route Config. - - Get the specified Http Route Config. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param http_route_name: Name of the Http Route Config Resource. Required. - :type http_route_name: str - :return: HttpRouteConfig or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.HttpRouteConfig - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.HttpRouteConfig] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - http_route_name=http_route_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("HttpRouteConfig", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def create_or_update( - self, - resource_group_name: str, - environment_name: str, - http_route_name: str, - http_route_config_envelope: Optional[_models.HttpRouteConfig] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.HttpRouteConfig: - """Create or Update a Http Route Config. - - Create or Update a Http Route Config. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param http_route_name: Name of the Http Route Config Resource. Required. - :type http_route_name: str - :param http_route_config_envelope: Http Route Config to be created or updated. Default value is - None. - :type http_route_config_envelope: ~azure.mgmt.appcontainers.models.HttpRouteConfig - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: HttpRouteConfig or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.HttpRouteConfig - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update( - self, - resource_group_name: str, - environment_name: str, - http_route_name: str, - http_route_config_envelope: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.HttpRouteConfig: - """Create or Update a Http Route Config. - - Create or Update a Http Route Config. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param http_route_name: Name of the Http Route Config Resource. Required. - :type http_route_name: str - :param http_route_config_envelope: Http Route Config to be created or updated. Default value is - None. - :type http_route_config_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: HttpRouteConfig or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.HttpRouteConfig - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update( - self, - resource_group_name: str, - environment_name: str, - http_route_name: str, - http_route_config_envelope: Optional[Union[_models.HttpRouteConfig, IO[bytes]]] = None, - **kwargs: Any - ) -> _models.HttpRouteConfig: - """Create or Update a Http Route Config. - - Create or Update a Http Route Config. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param http_route_name: Name of the Http Route Config Resource. Required. - :type http_route_name: str - :param http_route_config_envelope: Http Route Config to be created or updated. Is either a - HttpRouteConfig type or a IO[bytes] type. Default value is None. - :type http_route_config_envelope: ~azure.mgmt.appcontainers.models.HttpRouteConfig or IO[bytes] - :return: HttpRouteConfig or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.HttpRouteConfig - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if http_route_config_envelope else None - cls: ClsType[_models.HttpRouteConfig] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" if http_route_config_envelope else None - _json = None - _content = None - if isinstance(http_route_config_envelope, (IOBase, bytes)): - _content = http_route_config_envelope - else: - if http_route_config_envelope is not None: - _json = self._serialize.body(http_route_config_envelope, "HttpRouteConfig") - else: - _json = None - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - http_route_name=http_route_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("HttpRouteConfig", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def update( - self, - resource_group_name: str, - environment_name: str, - http_route_name: str, - http_route_config_envelope: _models.HttpRouteConfig, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.HttpRouteConfig: - """Update tags of a Http Route Config object. - - Patches a Http Route Config resource. Only patching of tags is supported. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param http_route_name: Name of the Http Route Config Resource. Required. - :type http_route_name: str - :param http_route_config_envelope: Properties of http route config that need to be updated. - Required. - :type http_route_config_envelope: ~azure.mgmt.appcontainers.models.HttpRouteConfig - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: HttpRouteConfig or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.HttpRouteConfig - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def update( - self, - resource_group_name: str, - environment_name: str, - http_route_name: str, - http_route_config_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.HttpRouteConfig: - """Update tags of a Http Route Config object. - - Patches a Http Route Config resource. Only patching of tags is supported. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param http_route_name: Name of the Http Route Config Resource. Required. - :type http_route_name: str - :param http_route_config_envelope: Properties of http route config that need to be updated. - Required. - :type http_route_config_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: HttpRouteConfig or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.HttpRouteConfig - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def update( - self, - resource_group_name: str, - environment_name: str, - http_route_name: str, - http_route_config_envelope: Union[_models.HttpRouteConfig, IO[bytes]], - **kwargs: Any - ) -> _models.HttpRouteConfig: - """Update tags of a Http Route Config object. - - Patches a Http Route Config resource. Only patching of tags is supported. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param http_route_name: Name of the Http Route Config Resource. Required. - :type http_route_name: str - :param http_route_config_envelope: Properties of http route config that need to be updated. Is - either a HttpRouteConfig type or a IO[bytes] type. Required. - :type http_route_config_envelope: ~azure.mgmt.appcontainers.models.HttpRouteConfig or IO[bytes] - :return: HttpRouteConfig or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.HttpRouteConfig - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.HttpRouteConfig] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(http_route_config_envelope, (IOBase, bytes)): - _content = http_route_config_envelope - else: - _json = self._serialize.body(http_route_config_envelope, "HttpRouteConfig") - - _request = build_update_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - http_route_name=http_route_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("HttpRouteConfig", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _delete_initial( - self, resource_group_name: str, environment_name: str, http_route_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - http_route_name=http_route_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = 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]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["location"] = self._deserialize("str", response.headers.get("location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, environment_name: str, http_route_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Deletes the specified Http Route Config. - - Deletes the specified Http Route Config. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param http_route_name: Name of the Http Route Config Resource. Required. - :type http_route_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - environment_name=environment_name, - http_route_name=http_route_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - 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, environment_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.HttpRouteConfig"]: - """List the Http Route Configs in a given managed environment. - - List the Http Route Configs in a given managed environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :return: An iterator like instance of either HttpRouteConfig or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.HttpRouteConfig] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.HttpRouteConfigCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("HttpRouteConfigCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_java_components_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_java_components_operations.py deleted file mode 100644 index 0f9d6550dc48..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_java_components_operations.py +++ /dev/null @@ -1,778 +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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._java_components_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) -from .._configuration import ContainerAppsAPIClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class JavaComponentsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`java_components` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list( - self, resource_group_name: str, environment_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.JavaComponent"]: - """Get the Java Components for a managed environment. - - Get the Java Components for a managed environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :return: An iterator like instance of either JavaComponent or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.JavaComponent] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.JavaComponentsCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("JavaComponentsCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, environment_name: str, name: str, **kwargs: Any - ) -> _models.JavaComponent: - """Get a Java Component. - - Get a Java Component. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param name: Name of the Java Component. Required. - :type name: str - :return: JavaComponent or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.JavaComponent - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.JavaComponent] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - name=name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("JavaComponent", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - environment_name: str, - name: str, - java_component_envelope: Union[_models.JavaComponent, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(java_component_envelope, (IOBase, bytes)): - _content = java_component_envelope - else: - _json = self._serialize.body(java_component_envelope, "JavaComponent") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - name=name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - environment_name: str, - name: str, - java_component_envelope: _models.JavaComponent, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.JavaComponent]: - """Creates or updates a Java Component. - - Creates or updates a Java Component in a Managed Environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param name: Name of the Java Component. Required. - :type name: str - :param java_component_envelope: Configuration details of the Java Component. Required. - :type java_component_envelope: ~azure.mgmt.appcontainers.models.JavaComponent - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either JavaComponent or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.JavaComponent] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - environment_name: str, - name: str, - java_component_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.JavaComponent]: - """Creates or updates a Java Component. - - Creates or updates a Java Component in a Managed Environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param name: Name of the Java Component. Required. - :type name: str - :param java_component_envelope: Configuration details of the Java Component. Required. - :type java_component_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either JavaComponent or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.JavaComponent] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - environment_name: str, - name: str, - java_component_envelope: Union[_models.JavaComponent, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.JavaComponent]: - """Creates or updates a Java Component. - - Creates or updates a Java Component in a Managed Environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param name: Name of the Java Component. Required. - :type name: str - :param java_component_envelope: Configuration details of the Java Component. Is either a - JavaComponent type or a IO[bytes] type. Required. - :type java_component_envelope: ~azure.mgmt.appcontainers.models.JavaComponent or IO[bytes] - :return: An instance of AsyncLROPoller that returns either JavaComponent or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.JavaComponent] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.JavaComponent] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - environment_name=environment_name, - name=name, - java_component_envelope=java_component_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("JavaComponent", pipeline_response.http_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.JavaComponent].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.JavaComponent]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_initial( - self, - resource_group_name: str, - environment_name: str, - name: str, - java_component_envelope: Union[_models.JavaComponent, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(java_component_envelope, (IOBase, bytes)): - _content = java_component_envelope - else: - _json = self._serialize.body(java_component_envelope, "JavaComponent") - - _request = build_update_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - name=name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - environment_name: str, - name: str, - java_component_envelope: _models.JavaComponent, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.JavaComponent]: - """Update properties of a Java Component. - - Patches a Java Component using JSON Merge Patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param name: Name of the Java Component. Required. - :type name: str - :param java_component_envelope: Configuration details of the Java Component. Required. - :type java_component_envelope: ~azure.mgmt.appcontainers.models.JavaComponent - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either JavaComponent or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.JavaComponent] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - environment_name: str, - name: str, - java_component_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.JavaComponent]: - """Update properties of a Java Component. - - Patches a Java Component using JSON Merge Patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param name: Name of the Java Component. Required. - :type name: str - :param java_component_envelope: Configuration details of the Java Component. Required. - :type java_component_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either JavaComponent or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.JavaComponent] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - environment_name: str, - name: str, - java_component_envelope: Union[_models.JavaComponent, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.JavaComponent]: - """Update properties of a Java Component. - - Patches a Java Component using JSON Merge Patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param name: Name of the Java Component. Required. - :type name: str - :param java_component_envelope: Configuration details of the Java Component. Is either a - JavaComponent type or a IO[bytes] type. Required. - :type java_component_envelope: ~azure.mgmt.appcontainers.models.JavaComponent or IO[bytes] - :return: An instance of AsyncLROPoller that returns either JavaComponent or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.JavaComponent] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.JavaComponent] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("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, - environment_name=environment_name, - name=name, - java_component_envelope=java_component_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("JavaComponent", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.JavaComponent].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.JavaComponent]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( - self, resource_group_name: str, environment_name: str, name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - name=name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = 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]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, environment_name: str, name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete. - - Delete a Java Component. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param name: Name of the Java Component. Required. - :type name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - environment_name=environment_name, - name=name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=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 diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_jobs_executions_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_jobs_executions_operations.py deleted file mode 100644 index a36abbb5509f..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_jobs_executions_operations.py +++ /dev/null @@ -1,147 +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 collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -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 ..._utils.serialization import Deserializer, Serializer -from ...operations._jobs_executions_operations import build_list_request -from .._configuration import ContainerAppsAPIClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class JobsExecutionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`jobs_executions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list( - self, resource_group_name: str, job_name: str, filter: Optional[str] = None, **kwargs: Any - ) -> AsyncItemPaged["_models.JobExecution"]: - """Get a Container Apps Job's executions. - - Get a Container Apps Job's executions. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :param filter: The filter to apply on the operation. Default value is None. - :type filter: str - :return: An iterator like instance of either JobExecution or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.JobExecution] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerAppJobExecutions] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - job_name=job_name, - subscription_id=self._config.subscription_id, - filter=filter, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ContainerAppJobExecutions", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_jobs_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_jobs_operations.py deleted file mode 100644 index d2da50c0cf47..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_jobs_operations.py +++ /dev/null @@ -1,1550 +0,0 @@ -# pylint: disable=too-many-lines -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._jobs_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_detector_request, - build_get_request, - build_list_by_resource_group_request, - build_list_by_subscription_request, - build_list_detectors_request, - build_list_secrets_request, - build_proxy_get_request, - build_start_request, - build_stop_execution_request, - build_stop_multiple_executions_request, - build_update_request, -) -from .._configuration import ContainerAppsAPIClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class JobsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`jobs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_detectors( - self, resource_group_name: str, job_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.Diagnostics"]: - """Get the list of diagnostics for a given Container App Job. - - Get the list of diagnostics for a Container App Job. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :return: An iterator like instance of either Diagnostics or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.Diagnostics] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DiagnosticsCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_detectors_request( - resource_group_name=resource_group_name, - job_name=job_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DiagnosticsCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_detector( - self, resource_group_name: str, job_name: str, detector_name: str, **kwargs: Any - ) -> _models.Diagnostics: - """Get the diagnostics data for a given Container App Job. - - Get the diagnostics data for a Container App Job. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :param detector_name: Name of the Container App Job detector. Required. - :type detector_name: str - :return: Diagnostics or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.Diagnostics - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.Diagnostics] = kwargs.pop("cls", None) - - _request = build_get_detector_request( - resource_group_name=resource_group_name, - job_name=job_name, - detector_name=detector_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Diagnostics", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def proxy_get(self, resource_group_name: str, job_name: str, api_name: str, **kwargs: Any) -> _models.Job: - """Get the properties of a Container App Job. - - Get the properties of a Container App Job. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :param api_name: Proxy API Name for Container App Job. Required. - :type api_name: str - :return: Job or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.Job - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.Job] = kwargs.pop("cls", None) - - _request = build_proxy_get_request( - resource_group_name=resource_group_name, - job_name=job_name, - api_name=api_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Job", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.Job"]: - """Get the Container Apps Jobs in a given subscription. - - Get the Container Apps Jobs in a given subscription. - - :return: An iterator like instance of either Job or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.Job] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.JobsCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: 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.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("JobsCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.Job"]: - """Get the Container Apps Jobs in a given resource group. - - Get the Container Apps Jobs in a given resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :return: An iterator like instance of either Job or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.Job] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.JobsCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: 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_resource_group_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("JobsCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get(self, resource_group_name: str, job_name: str, **kwargs: Any) -> _models.Job: - """Get the properties of a Container Apps Job. - - Get the properties of a Container Apps Job. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :return: Job or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.Job - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.Job] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - job_name=job_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Job", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, resource_group_name: str, job_name: str, job_envelope: Union[_models.Job, IO[bytes]], **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(job_envelope, (IOBase, bytes)): - _content = job_envelope - else: - _json = self._serialize.body(job_envelope, "Job") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - job_name=job_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - job_name: str, - job_envelope: _models.Job, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.Job]: - """Create or Update a Container Apps Job. - - Create or Update a Container Apps Job. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :param job_envelope: Properties used to create a container apps job. Required. - :type job_envelope: ~azure.mgmt.appcontainers.models.Job - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either Job or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.Job] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - job_name: str, - job_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.Job]: - """Create or Update a Container Apps Job. - - Create or Update a Container Apps Job. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :param job_envelope: Properties used to create a container apps job. Required. - :type job_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either Job or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.Job] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, resource_group_name: str, job_name: str, job_envelope: Union[_models.Job, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.Job]: - """Create or Update a Container Apps Job. - - Create or Update a Container Apps Job. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :param job_envelope: Properties used to create a container apps job. Is either a Job type or a - IO[bytes] type. Required. - :type job_envelope: ~azure.mgmt.appcontainers.models.Job or IO[bytes] - :return: An instance of AsyncLROPoller that returns either Job or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.Job] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Job] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - job_name=job_name, - job_envelope=job_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("Job", pipeline_response.http_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.Job].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.Job]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial(self, resource_group_name: str, job_name: str, **kwargs: Any) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - job_name=job_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_delete(self, resource_group_name: str, job_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Delete a Container Apps Job. - - Delete a Container Apps Job. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - job_name=job_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=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 _update_initial( - self, - resource_group_name: str, - job_name: str, - job_envelope: Union[_models.JobPatchProperties, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(job_envelope, (IOBase, bytes)): - _content = job_envelope - else: - _json = self._serialize.body(job_envelope, "JobPatchProperties") - - _request = build_update_request( - resource_group_name=resource_group_name, - job_name=job_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - job_name: str, - job_envelope: _models.JobPatchProperties, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.Job]: - """Update properties of a Container Apps Job. - - Patches a Container Apps Job using JSON Merge Patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :param job_envelope: Properties used to create a container apps job. Required. - :type job_envelope: ~azure.mgmt.appcontainers.models.JobPatchProperties - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either Job or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.Job] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - job_name: str, - job_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.Job]: - """Update properties of a Container Apps Job. - - Patches a Container Apps Job using JSON Merge Patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :param job_envelope: Properties used to create a container apps job. Required. - :type job_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either Job or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.Job] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - job_name: str, - job_envelope: Union[_models.JobPatchProperties, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.Job]: - """Update properties of a Container Apps Job. - - Patches a Container Apps Job using JSON Merge Patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :param job_envelope: Properties used to create a container apps job. Is either a - JobPatchProperties type or a IO[bytes] type. Required. - :type job_envelope: ~azure.mgmt.appcontainers.models.JobPatchProperties or IO[bytes] - :return: An instance of AsyncLROPoller that returns either Job or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.Job] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Job] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("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, - job_name=job_name, - job_envelope=job_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("Job", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.Job].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.Job]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _start_initial( - self, - resource_group_name: str, - job_name: str, - template: Optional[Union[_models.JobExecutionTemplate, IO[bytes]]] = None, - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if template else None - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" if template else None - _json = None - _content = None - if isinstance(template, (IOBase, bytes)): - _content = template - else: - if template is not None: - _json = self._serialize.body(template, "JobExecutionTemplate") - else: - _json = None - - _request = build_start_request( - resource_group_name=resource_group_name, - job_name=job_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_start( - self, - resource_group_name: str, - job_name: str, - template: Optional[_models.JobExecutionTemplate] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.JobExecutionBase]: - """Start a Container Apps Job. - - Start a Container Apps Job. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :param template: Properties used to start a job execution. Default value is None. - :type template: ~azure.mgmt.appcontainers.models.JobExecutionTemplate - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either JobExecutionBase or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.JobExecutionBase] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_start( - self, - resource_group_name: str, - job_name: str, - template: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.JobExecutionBase]: - """Start a Container Apps Job. - - Start a Container Apps Job. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :param template: Properties used to start a job execution. Default value is None. - :type template: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either JobExecutionBase or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.JobExecutionBase] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_start( - self, - resource_group_name: str, - job_name: str, - template: Optional[Union[_models.JobExecutionTemplate, IO[bytes]]] = None, - **kwargs: Any - ) -> AsyncLROPoller[_models.JobExecutionBase]: - """Start a Container Apps Job. - - Start a Container Apps Job. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :param template: Properties used to start a job execution. Is either a JobExecutionTemplate - type or a IO[bytes] type. Default value is None. - :type template: ~azure.mgmt.appcontainers.models.JobExecutionTemplate or IO[bytes] - :return: An instance of AsyncLROPoller that returns either JobExecutionBase or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.JobExecutionBase] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if template else None - cls: ClsType[_models.JobExecutionBase] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("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( - resource_group_name=resource_group_name, - job_name=job_name, - template=template, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("JobExecutionBase", pipeline_response.http_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.JobExecutionBase].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.JobExecutionBase]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _stop_execution_initial( - self, resource_group_name: str, job_name: str, job_execution_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_stop_execution_request( - resource_group_name=resource_group_name, - job_name=job_name, - job_execution_name=job_execution_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_stop_execution( - self, resource_group_name: str, job_name: str, job_execution_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Terminates execution of a running container apps job. - - Terminates execution of a running container apps job. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :param job_execution_name: Job execution name. Required. - :type job_execution_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("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_execution_initial( - resource_group_name=resource_group_name, - job_name=job_name, - job_execution_name=job_execution_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=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 _stop_multiple_executions_initial( - self, resource_group_name: str, job_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_stop_multiple_executions_request( - resource_group_name=resource_group_name, - job_name=job_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_stop_multiple_executions( - self, resource_group_name: str, job_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerAppJobExecutions]: - """Terminates execution of a running container apps job. - - Terminates execution of a running container apps job. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :return: An instance of AsyncLROPoller that returns either ContainerAppJobExecutions or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ContainerAppJobExecutions] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerAppJobExecutions] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("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_multiple_executions_initial( - resource_group_name=resource_group_name, - job_name=job_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerAppJobExecutions", pipeline_response.http_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.ContainerAppJobExecutions].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ContainerAppJobExecutions]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def list_secrets( - self, resource_group_name: str, job_name: str, **kwargs: Any - ) -> _models.JobSecretsCollection: - """List secrets for a container apps job. - - List secrets for a container apps job. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :return: JobSecretsCollection or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.JobSecretsCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.JobSecretsCollection] = kwargs.pop("cls", None) - - _request = build_list_secrets_request( - resource_group_name=resource_group_name, - job_name=job_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("JobSecretsCollection", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_logic_apps_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_logic_apps_operations.py deleted file mode 100644 index 1b03afd36699..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_logic_apps_operations.py +++ /dev/null @@ -1,566 +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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.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 ..._utils.serialization import Deserializer, Serializer -from ...operations._logic_apps_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_get_workflow_request, - build_list_workflows_connections_request, - build_list_workflows_request, -) -from .._configuration import ContainerAppsAPIClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class LogicAppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`logic_apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def get( - self, resource_group_name: str, container_app_name: str, logic_app_name: str, **kwargs: Any - ) -> _models.LogicApp: - """Gets a logic app extension resource. - - Gets a logic app extension resource. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param logic_app_name: Name of the Logic App. Required. - :type logic_app_name: str - :return: LogicApp or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.LogicApp - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.LogicApp] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - logic_app_name=logic_app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("LogicApp", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def create_or_update( - self, - resource_group_name: str, - container_app_name: str, - logic_app_name: str, - resource: Optional[_models.LogicApp] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.LogicApp: - """Create or update a Logic App extension resource. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param logic_app_name: Name of the Logic App. Required. - :type logic_app_name: str - :param resource: Logic app resource properties. Default value is None. - :type resource: ~azure.mgmt.appcontainers.models.LogicApp - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: LogicApp or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.LogicApp - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update( - self, - resource_group_name: str, - container_app_name: str, - logic_app_name: str, - resource: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.LogicApp: - """Create or update a Logic App extension resource. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param logic_app_name: Name of the Logic App. Required. - :type logic_app_name: str - :param resource: Logic app resource properties. Default value is None. - :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: LogicApp or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.LogicApp - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update( - self, - resource_group_name: str, - container_app_name: str, - logic_app_name: str, - resource: Optional[Union[_models.LogicApp, IO[bytes]]] = None, - **kwargs: Any - ) -> _models.LogicApp: - """Create or update a Logic App extension resource. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param logic_app_name: Name of the Logic App. Required. - :type logic_app_name: str - :param resource: Logic app resource properties. Is either a LogicApp type or a IO[bytes] type. - Default value is None. - :type resource: ~azure.mgmt.appcontainers.models.LogicApp or IO[bytes] - :return: LogicApp or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.LogicApp - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if resource else None - cls: ClsType[_models.LogicApp] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" if resource else None - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - if resource is not None: - _json = self._serialize.body(resource, "LogicApp") - else: - _json = None - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - logic_app_name=logic_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.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("LogicApp", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def delete( - self, resource_group_name: str, container_app_name: str, logic_app_name: str, **kwargs: Any - ) -> None: - """Deletes a Logic App extension resource. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param logic_app_name: Name of the Logic App. Required. - :type logic_app_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - logic_app_name=logic_app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await 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) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def list_workflows( - self, resource_group_name: str, container_app_name: str, logic_app_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.WorkflowEnvelope"]: - """List the workflows for a logic app. - - List the workflows for a logic app. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param logic_app_name: Name of the Logic App. Required. - :type logic_app_name: str - :return: An iterator like instance of either WorkflowEnvelope or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.WorkflowEnvelope] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.WorkflowEnvelopeCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_workflows_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - logic_app_name=logic_app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("WorkflowEnvelopeCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_workflow( - self, resource_group_name: str, container_app_name: str, logic_app_name: str, workflow_name: str, **kwargs: Any - ) -> _models.WorkflowEnvelope: - """Get workflow information by its name. - - Get workflow information by its name. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param logic_app_name: Name of the Logic App. Required. - :type logic_app_name: str - :param workflow_name: Workflow name. Required. - :type workflow_name: str - :return: WorkflowEnvelope or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.WorkflowEnvelope - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.WorkflowEnvelope] = kwargs.pop("cls", None) - - _request = build_get_workflow_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - logic_app_name=logic_app_name, - workflow_name=workflow_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("WorkflowEnvelope", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def list_workflows_connections( - self, resource_group_name: str, container_app_name: str, logic_app_name: str, **kwargs: Any - ) -> _models.WorkflowEnvelope: - """Gets logic app's connections. - - Gets logic app's connections. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param logic_app_name: Name of the Logic App. Required. - :type logic_app_name: str - :return: WorkflowEnvelope or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.WorkflowEnvelope - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.WorkflowEnvelope] = kwargs.pop("cls", None) - - _request = build_list_workflows_connections_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - logic_app_name=logic_app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("WorkflowEnvelope", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_maintenance_configurations_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_maintenance_configurations_operations.py deleted file mode 100644 index aa7bf5238c14..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_maintenance_configurations_operations.py +++ /dev/null @@ -1,422 +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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.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 ..._utils.serialization import Deserializer, Serializer -from ...operations._maintenance_configurations_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) -from .._configuration import ContainerAppsAPIClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class MaintenanceConfigurationsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`maintenance_configurations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list( - self, resource_group_name: str, environment_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.MaintenanceConfigurationResource"]: - """Gets all maintenance configurations in the specified Managed Environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: The name of the Managed Environment. Required. - :type environment_name: str - :return: An iterator like instance of either MaintenanceConfigurationResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.MaintenanceConfigurationResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.MaintenanceConfigurationCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("MaintenanceConfigurationCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def create_or_update( - self, - resource_group_name: str, - environment_name: str, - config_name: str, - maintenance_configuration_envelope: _models.MaintenanceConfigurationResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.MaintenanceConfigurationResource: - """Create or update the maintenance configuration for Managed Environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: The name of the Managed Environment. Required. - :type environment_name: str - :param config_name: The name of the maintenance configuration. Required. - :type config_name: str - :param maintenance_configuration_envelope: Parameters to set the maintenance configuration for - ManagedEnvironment . Required. - :type maintenance_configuration_envelope: - ~azure.mgmt.appcontainers.models.MaintenanceConfigurationResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: MaintenanceConfigurationResource or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.MaintenanceConfigurationResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update( - self, - resource_group_name: str, - environment_name: str, - config_name: str, - maintenance_configuration_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.MaintenanceConfigurationResource: - """Create or update the maintenance configuration for Managed Environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: The name of the Managed Environment. Required. - :type environment_name: str - :param config_name: The name of the maintenance configuration. Required. - :type config_name: str - :param maintenance_configuration_envelope: Parameters to set the maintenance configuration for - ManagedEnvironment . Required. - :type maintenance_configuration_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: MaintenanceConfigurationResource or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.MaintenanceConfigurationResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update( - self, - resource_group_name: str, - environment_name: str, - config_name: str, - maintenance_configuration_envelope: Union[_models.MaintenanceConfigurationResource, IO[bytes]], - **kwargs: Any - ) -> _models.MaintenanceConfigurationResource: - """Create or update the maintenance configuration for Managed Environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: The name of the Managed Environment. Required. - :type environment_name: str - :param config_name: The name of the maintenance configuration. Required. - :type config_name: str - :param maintenance_configuration_envelope: Parameters to set the maintenance configuration for - ManagedEnvironment . Is either a MaintenanceConfigurationResource type or a IO[bytes] type. - Required. - :type maintenance_configuration_envelope: - ~azure.mgmt.appcontainers.models.MaintenanceConfigurationResource or IO[bytes] - :return: MaintenanceConfigurationResource or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.MaintenanceConfigurationResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MaintenanceConfigurationResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(maintenance_configuration_envelope, (IOBase, bytes)): - _content = maintenance_configuration_envelope - else: - _json = self._serialize.body(maintenance_configuration_envelope, "MaintenanceConfigurationResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - config_name=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.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MaintenanceConfigurationResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def delete(self, resource_group_name: str, environment_name: str, config_name: str, **kwargs: Any) -> None: - """Deletes the maintenance configuration of a ManagedEnvironment . - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: The name of the Managed Environment. Required. - :type environment_name: str - :param config_name: The name of the maintenance configuration. Required. - :type config_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - config_name=config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await 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) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def get( - self, resource_group_name: str, environment_name: str, config_name: str, **kwargs: Any - ) -> _models.MaintenanceConfigurationResource: - """Gets the maintenance configuration of a ManagedEnvironment . - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: The name of the Managed Environment. Required. - :type environment_name: str - :param config_name: The name of the maintenance configuration. Required. - :type config_name: str - :return: MaintenanceConfigurationResource or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.MaintenanceConfigurationResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.MaintenanceConfigurationResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - config_name=config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MaintenanceConfigurationResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_certificates_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_certificates_operations.py deleted file mode 100644 index c17feaef2e35..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_certificates_operations.py +++ /dev/null @@ -1,663 +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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._managed_certificates_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) -from .._configuration import ContainerAppsAPIClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class ManagedCertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`managed_certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def get( - self, resource_group_name: str, environment_name: str, managed_certificate_name: str, **kwargs: Any - ) -> _models.ManagedCertificate: - """Get the specified Managed Certificate. - - Get the specified Managed Certificate. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param managed_certificate_name: Name of the Managed Certificate. Required. - :type managed_certificate_name: str - :return: ManagedCertificate or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ManagedCertificate - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ManagedCertificate] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - managed_certificate_name=managed_certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ManagedCertificate", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - environment_name: str, - managed_certificate_name: str, - managed_certificate_envelope: Optional[Union[_models.ManagedCertificate, IO[bytes]]] = None, - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if managed_certificate_envelope else None - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" if managed_certificate_envelope else None - _json = None - _content = None - if isinstance(managed_certificate_envelope, (IOBase, bytes)): - _content = managed_certificate_envelope - else: - if managed_certificate_envelope is not None: - _json = self._serialize.body(managed_certificate_envelope, "ManagedCertificate") - else: - _json = None - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - managed_certificate_name=managed_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.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - environment_name: str, - managed_certificate_name: str, - managed_certificate_envelope: Optional[_models.ManagedCertificate] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ManagedCertificate]: - """Create or Update a Managed Certificate. - - Create or Update a Managed Certificate. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param managed_certificate_name: Name of the Managed Certificate. Required. - :type managed_certificate_name: str - :param managed_certificate_envelope: Managed Certificate to be created or updated. Default - value is None. - :type managed_certificate_envelope: ~azure.mgmt.appcontainers.models.ManagedCertificate - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ManagedCertificate or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedCertificate] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - environment_name: str, - managed_certificate_name: str, - managed_certificate_envelope: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ManagedCertificate]: - """Create or Update a Managed Certificate. - - Create or Update a Managed Certificate. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param managed_certificate_name: Name of the Managed Certificate. Required. - :type managed_certificate_name: str - :param managed_certificate_envelope: Managed Certificate to be created or updated. Default - value is None. - :type managed_certificate_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ManagedCertificate or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedCertificate] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - environment_name: str, - managed_certificate_name: str, - managed_certificate_envelope: Optional[Union[_models.ManagedCertificate, IO[bytes]]] = None, - **kwargs: Any - ) -> AsyncLROPoller[_models.ManagedCertificate]: - """Create or Update a Managed Certificate. - - Create or Update a Managed Certificate. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param managed_certificate_name: Name of the Managed Certificate. Required. - :type managed_certificate_name: str - :param managed_certificate_envelope: Managed Certificate to be created or updated. Is either a - ManagedCertificate type or a IO[bytes] type. Default value is None. - :type managed_certificate_envelope: ~azure.mgmt.appcontainers.models.ManagedCertificate or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either ManagedCertificate or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedCertificate] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if managed_certificate_envelope else None - cls: ClsType[_models.ManagedCertificate] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - environment_name=environment_name, - managed_certificate_name=managed_certificate_name, - managed_certificate_envelope=managed_certificate_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ManagedCertificate", pipeline_response.http_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.ManagedCertificate].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ManagedCertificate]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def delete( - self, resource_group_name: str, environment_name: str, managed_certificate_name: str, **kwargs: Any - ) -> None: - """Deletes the specified Managed Certificate. - - Deletes the specified Managed Certificate. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param managed_certificate_name: Name of the Managed Certificate. Required. - :type managed_certificate_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - managed_certificate_name=managed_certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await 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) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def update( - self, - resource_group_name: str, - environment_name: str, - managed_certificate_name: str, - managed_certificate_envelope: _models.ManagedCertificatePatch, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ManagedCertificate: - """Update tags of a managed certificate. - - Patches a managed certificate. Oly patching of tags is supported. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param managed_certificate_name: Name of the Managed Certificate. Required. - :type managed_certificate_name: str - :param managed_certificate_envelope: Properties of a managed certificate that need to be - updated. Required. - :type managed_certificate_envelope: ~azure.mgmt.appcontainers.models.ManagedCertificatePatch - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ManagedCertificate or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ManagedCertificate - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def update( - self, - resource_group_name: str, - environment_name: str, - managed_certificate_name: str, - managed_certificate_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ManagedCertificate: - """Update tags of a managed certificate. - - Patches a managed certificate. Oly patching of tags is supported. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param managed_certificate_name: Name of the Managed Certificate. Required. - :type managed_certificate_name: str - :param managed_certificate_envelope: Properties of a managed certificate that need to be - updated. Required. - :type managed_certificate_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ManagedCertificate or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ManagedCertificate - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def update( - self, - resource_group_name: str, - environment_name: str, - managed_certificate_name: str, - managed_certificate_envelope: Union[_models.ManagedCertificatePatch, IO[bytes]], - **kwargs: Any - ) -> _models.ManagedCertificate: - """Update tags of a managed certificate. - - Patches a managed certificate. Oly patching of tags is supported. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param managed_certificate_name: Name of the Managed Certificate. Required. - :type managed_certificate_name: str - :param managed_certificate_envelope: Properties of a managed certificate that need to be - updated. Is either a ManagedCertificatePatch type or a IO[bytes] type. Required. - :type managed_certificate_envelope: ~azure.mgmt.appcontainers.models.ManagedCertificatePatch or - IO[bytes] - :return: ManagedCertificate or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ManagedCertificate - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ManagedCertificate] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(managed_certificate_envelope, (IOBase, bytes)): - _content = managed_certificate_envelope - else: - _json = self._serialize.body(managed_certificate_envelope, "ManagedCertificatePatch") - - _request = build_update_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - managed_certificate_name=managed_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.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ManagedCertificate", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, environment_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.ManagedCertificate"]: - """Get the Managed Certificates in a given managed environment. - - Get the Managed Certificates in a given managed environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :return: An iterator like instance of either ManagedCertificate or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.ManagedCertificate] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ManagedCertificateCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ManagedCertificateCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environment_diagnostics_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environment_diagnostics_operations.py deleted file mode 100644 index 1bf155d287ac..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environment_diagnostics_operations.py +++ /dev/null @@ -1,185 +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 collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar - -from azure.core import AsyncPipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, 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 ..._utils.serialization import Deserializer, Serializer -from ...operations._managed_environment_diagnostics_operations import ( - build_get_detector_request, - build_list_detectors_request, -) -from .._configuration import ContainerAppsAPIClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class ManagedEnvironmentDiagnosticsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`managed_environment_diagnostics` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def list_detectors( - self, resource_group_name: str, environment_name: str, **kwargs: Any - ) -> _models.DiagnosticsCollection: - """Get the list of diagnostics for a given Managed Environment. - - Get the list of diagnostics for a Managed Environment used to host container apps. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :return: DiagnosticsCollection or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.DiagnosticsCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DiagnosticsCollection] = kwargs.pop("cls", None) - - _request = build_list_detectors_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DiagnosticsCollection", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_detector( - self, resource_group_name: str, environment_name: str, detector_name: str, **kwargs: Any - ) -> _models.Diagnostics: - """Get the diagnostics data for a given Managed Environment. - - Get the diagnostics data for a Managed Environment used to host container apps. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :param detector_name: Name of the Managed Environment detector. Required. - :type detector_name: str - :return: Diagnostics or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.Diagnostics - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.Diagnostics] = kwargs.pop("cls", None) - - _request = build_get_detector_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - detector_name=detector_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Diagnostics", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environment_private_endpoint_connections_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environment_private_endpoint_connections_operations.py deleted file mode 100644 index 859b90b1fc7f..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environment_private_endpoint_connections_operations.py +++ /dev/null @@ -1,568 +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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._managed_environment_private_endpoint_connections_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) -from .._configuration import ContainerAppsAPIClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class ManagedEnvironmentPrivateEndpointConnectionsOperations: # pylint: disable=name-too-long - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`managed_environment_private_endpoint_connections` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list( - self, resource_group_name: str, environment_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.PrivateEndpointConnection"]: - """List private endpoint connections for a given managed environment. - - List private endpoint connections for a given managed environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :return: An iterator like instance of either PrivateEndpointConnection or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.PrivateEndpointConnection] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.PrivateEndpointConnectionListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("PrivateEndpointConnectionListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, environment_name: str, private_endpoint_connection_name: str, **kwargs: Any - ) -> _models.PrivateEndpointConnection: - """Get a private endpoint connection for a given managed environment. - - Get a private endpoint connection for a given managed environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param private_endpoint_connection_name: The name of the private endpoint connection associated - with the Azure resource. Required. - :type private_endpoint_connection_name: str - :return: PrivateEndpointConnection or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.PrivateEndpointConnection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.PrivateEndpointConnection] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - private_endpoint_connection_name=private_endpoint_connection_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("PrivateEndpointConnection", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - environment_name: str, - private_endpoint_connection_name: str, - private_endpoint_connection_envelope: Union[_models.PrivateEndpointConnection, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(private_endpoint_connection_envelope, (IOBase, bytes)): - _content = private_endpoint_connection_envelope - else: - _json = self._serialize.body(private_endpoint_connection_envelope, "PrivateEndpointConnection") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - private_endpoint_connection_name=private_endpoint_connection_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - environment_name: str, - private_endpoint_connection_name: str, - private_endpoint_connection_envelope: _models.PrivateEndpointConnection, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.PrivateEndpointConnection]: - """Update the state of a private endpoint connection for a given managed environment. - - Update the state of a private endpoint connection for a given managed environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param private_endpoint_connection_name: The name of the private endpoint connection associated - with the Azure resource. Required. - :type private_endpoint_connection_name: str - :param private_endpoint_connection_envelope: The resource of private endpoint and its - properties. Required. - :type private_endpoint_connection_envelope: - ~azure.mgmt.appcontainers.models.PrivateEndpointConnection - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either PrivateEndpointConnection or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.PrivateEndpointConnection] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - environment_name: str, - private_endpoint_connection_name: str, - private_endpoint_connection_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.PrivateEndpointConnection]: - """Update the state of a private endpoint connection for a given managed environment. - - Update the state of a private endpoint connection for a given managed environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param private_endpoint_connection_name: The name of the private endpoint connection associated - with the Azure resource. Required. - :type private_endpoint_connection_name: str - :param private_endpoint_connection_envelope: The resource of private endpoint and its - properties. Required. - :type private_endpoint_connection_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either PrivateEndpointConnection or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.PrivateEndpointConnection] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - environment_name: str, - private_endpoint_connection_name: str, - private_endpoint_connection_envelope: Union[_models.PrivateEndpointConnection, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.PrivateEndpointConnection]: - """Update the state of a private endpoint connection for a given managed environment. - - Update the state of a private endpoint connection for a given managed environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param private_endpoint_connection_name: The name of the private endpoint connection associated - with the Azure resource. Required. - :type private_endpoint_connection_name: str - :param private_endpoint_connection_envelope: The resource of private endpoint and its - properties. Is either a PrivateEndpointConnection type or a IO[bytes] type. Required. - :type private_endpoint_connection_envelope: - ~azure.mgmt.appcontainers.models.PrivateEndpointConnection or IO[bytes] - :return: An instance of AsyncLROPoller that returns either PrivateEndpointConnection or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.PrivateEndpointConnection] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.PrivateEndpointConnection] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - environment_name=environment_name, - private_endpoint_connection_name=private_endpoint_connection_name, - private_endpoint_connection_envelope=private_endpoint_connection_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("PrivateEndpointConnection", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.PrivateEndpointConnection].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.PrivateEndpointConnection]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( - self, resource_group_name: str, environment_name: str, private_endpoint_connection_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - private_endpoint_connection_name=private_endpoint_connection_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = 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]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, environment_name: str, private_endpoint_connection_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete a private endpoint connection for a given managed environment. - - Delete a private endpoint connection for a given managed environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param private_endpoint_connection_name: The name of the private endpoint connection associated - with the Azure resource. Required. - :type private_endpoint_connection_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - environment_name=environment_name, - private_endpoint_connection_name=private_endpoint_connection_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - 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/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environment_private_link_resources_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environment_private_link_resources_operations.py deleted file mode 100644 index 70650ec6eb2e..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environment_private_link_resources_operations.py +++ /dev/null @@ -1,145 +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 collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -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 ..._utils.serialization import Deserializer, Serializer -from ...operations._managed_environment_private_link_resources_operations import build_list_request -from .._configuration import ContainerAppsAPIClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class ManagedEnvironmentPrivateLinkResourcesOperations: # pylint: disable=name-too-long - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`managed_environment_private_link_resources` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list( - self, resource_group_name: str, environment_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.PrivateLinkResource"]: - """List private link resources for a given managed environment. - - List private link resources for a given managed environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :return: An iterator like instance of either PrivateLinkResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.PrivateLinkResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.PrivateLinkResourceListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("PrivateLinkResourceListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environment_usages_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environment_usages_operations.py deleted file mode 100644 index bd7eb9f3dd0a..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environment_usages_operations.py +++ /dev/null @@ -1,140 +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 collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -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 ..._utils.serialization import Deserializer, Serializer -from ...operations._managed_environment_usages_operations import build_list_request -from .._configuration import ContainerAppsAPIClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class ManagedEnvironmentUsagesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`managed_environment_usages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list(self, resource_group_name: str, environment_name: str, **kwargs: Any) -> AsyncItemPaged["_models.Usage"]: - """Gets the current usage information as well as the limits for environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :return: An iterator like instance of either Usage or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.Usage] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ListUsagesResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ListUsagesResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environments_diagnostics_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environments_diagnostics_operations.py deleted file mode 100644 index 100717f79399..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environments_diagnostics_operations.py +++ /dev/null @@ -1,116 +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 collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar - -from azure.core import AsyncPipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, 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 ..._utils.serialization import Deserializer, Serializer -from ...operations._managed_environments_diagnostics_operations import build_get_root_request -from .._configuration import ContainerAppsAPIClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class ManagedEnvironmentsDiagnosticsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`managed_environments_diagnostics` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def get_root( - self, resource_group_name: str, environment_name: str, **kwargs: Any - ) -> _models.ManagedEnvironment: - """Get the properties of a Managed Environment. - - Get the properties of a Managed Environment used to host container apps. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :return: ManagedEnvironment or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironment - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ManagedEnvironment] = kwargs.pop("cls", None) - - _request = build_get_root_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ManagedEnvironment", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environments_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environments_operations.py deleted file mode 100644 index e7a434aeeba7..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environments_operations.py +++ /dev/null @@ -1,968 +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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._managed_environments_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_auth_token_request, - build_get_request, - build_list_by_resource_group_request, - build_list_by_subscription_request, - build_list_workload_profile_states_request, - build_update_request, -) -from .._configuration import ContainerAppsAPIClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class ManagedEnvironmentsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`managed_environments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.ManagedEnvironment"]: - """Get all Environments for a subscription. - - Get all Managed Environments for a subscription. - - :return: An iterator like instance of either ManagedEnvironment or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.ManagedEnvironment] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ManagedEnvironmentsCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: 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.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ManagedEnvironmentsCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_by_resource_group( - self, resource_group_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.ManagedEnvironment"]: - """Get all the Environments in a resource group. - - Get all the Managed Environments in a resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :return: An iterator like instance of either ManagedEnvironment or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.ManagedEnvironment] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ManagedEnvironmentsCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: 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_resource_group_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ManagedEnvironmentsCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get(self, resource_group_name: str, environment_name: str, **kwargs: Any) -> _models.ManagedEnvironment: - """Get the properties of a Managed Environment. - - Get the properties of a Managed Environment used to host container apps. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :return: ManagedEnvironment or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironment - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ManagedEnvironment] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ManagedEnvironment", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - environment_name: str, - environment_envelope: Union[_models.ManagedEnvironment, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(environment_envelope, (IOBase, bytes)): - _content = environment_envelope - else: - _json = self._serialize.body(environment_envelope, "ManagedEnvironment") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - environment_name: str, - environment_envelope: _models.ManagedEnvironment, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ManagedEnvironment]: - """Creates or updates a Managed Environment. - - Creates or updates a Managed Environment used to host container apps. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :param environment_envelope: Configuration details of the Environment. Required. - :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ManagedEnvironment or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - environment_name: str, - environment_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ManagedEnvironment]: - """Creates or updates a Managed Environment. - - Creates or updates a Managed Environment used to host container apps. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :param environment_envelope: Configuration details of the Environment. Required. - :type environment_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ManagedEnvironment or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - environment_name: str, - environment_envelope: Union[_models.ManagedEnvironment, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ManagedEnvironment]: - """Creates or updates a Managed Environment. - - Creates or updates a Managed Environment used to host container apps. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :param environment_envelope: Configuration details of the Environment. Is either a - ManagedEnvironment type or a IO[bytes] type. Required. - :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ManagedEnvironment or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ManagedEnvironment] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - environment_name=environment_name, - environment_envelope=environment_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ManagedEnvironment", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ManagedEnvironment].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ManagedEnvironment]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( - self, resource_group_name: str, environment_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, environment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete a Managed Environment. - - Delete a Managed Environment if it does not have any container apps. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - environment_name=environment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - 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, - environment_name: str, - environment_envelope: Union[_models.ManagedEnvironment, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(environment_envelope, (IOBase, bytes)): - _content = environment_envelope - else: - _json = self._serialize.body(environment_envelope, "ManagedEnvironment") - - _request = build_update_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - environment_name: str, - environment_envelope: _models.ManagedEnvironment, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ManagedEnvironment]: - """Update Managed Environment's properties. - - Patches a Managed Environment using JSON Merge Patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :param environment_envelope: Configuration details of the Environment. Required. - :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ManagedEnvironment or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - environment_name: str, - environment_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ManagedEnvironment]: - """Update Managed Environment's properties. - - Patches a Managed Environment using JSON Merge Patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :param environment_envelope: Configuration details of the Environment. Required. - :type environment_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ManagedEnvironment or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - environment_name: str, - environment_envelope: Union[_models.ManagedEnvironment, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ManagedEnvironment]: - """Update Managed Environment's properties. - - Patches a Managed Environment using JSON Merge Patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :param environment_envelope: Configuration details of the Environment. Is either a - ManagedEnvironment type or a IO[bytes] type. Required. - :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ManagedEnvironment or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ManagedEnvironment] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("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, - environment_name=environment_name, - environment_envelope=environment_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ManagedEnvironment", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ManagedEnvironment].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ManagedEnvironment]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def get_auth_token( - self, resource_group_name: str, environment_name: str, **kwargs: Any - ) -> _models.EnvironmentAuthToken: - """Get auth token for a managed environment. - - Checks if resource name is available. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :return: EnvironmentAuthToken or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.EnvironmentAuthToken - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.EnvironmentAuthToken] = kwargs.pop("cls", None) - - _request = build_get_auth_token_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("EnvironmentAuthToken", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_workload_profile_states( - self, resource_group_name: str, environment_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.WorkloadProfileStates"]: - """Get all workload Profile States for a Managed Environment.. - - Get all workload Profile States for a Managed Environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :return: An iterator like instance of either WorkloadProfileStates or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.WorkloadProfileStates] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.WorkloadProfileStatesCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_workload_profile_states_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("WorkloadProfileStatesCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environments_storages_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environments_storages_operations.py deleted file mode 100644 index 95f802adc23a..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_managed_environments_storages_operations.py +++ /dev/null @@ -1,398 +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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload - -from azure.core import AsyncPipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, 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 ..._utils.serialization import Deserializer, Serializer -from ...operations._managed_environments_storages_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) -from .._configuration import ContainerAppsAPIClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class ManagedEnvironmentsStoragesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`managed_environments_storages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def list( - self, resource_group_name: str, environment_name: str, **kwargs: Any - ) -> _models.ManagedEnvironmentStoragesCollection: - """Get all storages for a managedEnvironment. - - Get all storages for a managedEnvironment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :return: ManagedEnvironmentStoragesCollection or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStoragesCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ManagedEnvironmentStoragesCollection] = kwargs.pop("cls", None) - - _request = build_list_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ManagedEnvironmentStoragesCollection", pipeline_response.http_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, environment_name: str, storage_name: str, **kwargs: Any - ) -> _models.ManagedEnvironmentStorage: - """Get storage for a managedEnvironment. - - Get storage for a managedEnvironment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :param storage_name: Name of the storage. Required. - :type storage_name: str - :return: ManagedEnvironmentStorage or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStorage - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ManagedEnvironmentStorage] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ManagedEnvironmentStorage", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def create_or_update( - self, - resource_group_name: str, - environment_name: str, - storage_name: str, - storage_envelope: _models.ManagedEnvironmentStorage, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ManagedEnvironmentStorage: - """Create or update storage for a managedEnvironment. - - Create or update storage for a managedEnvironment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :param storage_name: Name of the storage. Required. - :type storage_name: str - :param storage_envelope: Configuration details of storage. Required. - :type storage_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStorage - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ManagedEnvironmentStorage or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStorage - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update( - self, - resource_group_name: str, - environment_name: str, - storage_name: str, - storage_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ManagedEnvironmentStorage: - """Create or update storage for a managedEnvironment. - - Create or update storage for a managedEnvironment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :param storage_name: Name of the storage. Required. - :type storage_name: str - :param storage_envelope: Configuration details of storage. Required. - :type storage_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ManagedEnvironmentStorage or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStorage - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update( - self, - resource_group_name: str, - environment_name: str, - storage_name: str, - storage_envelope: Union[_models.ManagedEnvironmentStorage, IO[bytes]], - **kwargs: Any - ) -> _models.ManagedEnvironmentStorage: - """Create or update storage for a managedEnvironment. - - Create or update storage for a managedEnvironment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :param storage_name: Name of the storage. Required. - :type storage_name: str - :param storage_envelope: Configuration details of storage. Is either a - ManagedEnvironmentStorage type or a IO[bytes] type. Required. - :type storage_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStorage or IO[bytes] - :return: ManagedEnvironmentStorage or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStorage - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ManagedEnvironmentStorage] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(storage_envelope, (IOBase, bytes)): - _content = storage_envelope - else: - _json = self._serialize.body(storage_envelope, "ManagedEnvironmentStorage") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - environment_name=environment_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.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ManagedEnvironmentStorage", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def delete(self, resource_group_name: str, environment_name: str, storage_name: str, **kwargs: Any) -> None: - """Delete storage for a managedEnvironment. - - Delete storage for a managedEnvironment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :param storage_name: Name of the storage. Required. - :type storage_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await 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) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_namespaces_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_namespaces_operations.py deleted file mode 100644 index 12203d5952ab..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_namespaces_operations.py +++ /dev/null @@ -1,196 +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 collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload - -from azure.core import AsyncPipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, 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 ..._utils.serialization import Deserializer, Serializer -from ...operations._namespaces_operations import build_check_name_availability_request -from .._configuration import ContainerAppsAPIClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class NamespacesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`namespaces` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @overload - async def check_name_availability( - self, - resource_group_name: str, - environment_name: str, - check_name_availability_request: _models.CheckNameAvailabilityRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CheckNameAvailabilityResponse: - """Checks the resource name availability. - - Checks if resource name is available. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param check_name_availability_request: The check name availability request. Required. - :type check_name_availability_request: - ~azure.mgmt.appcontainers.models.CheckNameAvailabilityRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CheckNameAvailabilityResponse or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.CheckNameAvailabilityResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def check_name_availability( - self, - resource_group_name: str, - environment_name: str, - check_name_availability_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CheckNameAvailabilityResponse: - """Checks the resource name availability. - - Checks if resource name is available. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param check_name_availability_request: The check name availability request. Required. - :type check_name_availability_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: CheckNameAvailabilityResponse or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.CheckNameAvailabilityResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def check_name_availability( - self, - resource_group_name: str, - environment_name: str, - check_name_availability_request: Union[_models.CheckNameAvailabilityRequest, IO[bytes]], - **kwargs: Any - ) -> _models.CheckNameAvailabilityResponse: - """Checks the resource name availability. - - Checks if resource name is available. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param check_name_availability_request: The check name availability request. Is either a - CheckNameAvailabilityRequest type or a IO[bytes] type. Required. - :type check_name_availability_request: - ~azure.mgmt.appcontainers.models.CheckNameAvailabilityRequest or IO[bytes] - :return: CheckNameAvailabilityResponse or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.CheckNameAvailabilityResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CheckNameAvailabilityResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(check_name_availability_request, (IOBase, bytes)): - _content = check_name_availability_request - else: - _json = self._serialize.body(check_name_availability_request, "CheckNameAvailabilityRequest") - - _request = build_check_name_availability_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CheckNameAvailabilityResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_operations.py index 4b6854065cfa..b70a5a1fa681 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_operations.py @@ -1,12 +1,15 @@ +# pylint: disable=line-too-long,useless-suppression,too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar +from io import IOBase +import json +from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core import AsyncPipelineClient @@ -17,21 +20,216 @@ ResourceExistsError, ResourceNotFoundError, ResourceNotModifiedError, + StreamClosedError, + StreamConsumedError, map_error, ) from azure.core.pipeline import PipelineResponse +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.core.tracing.decorator import distributed_trace +from azure.core.tracing.decorator_async import distributed_trace_async from azure.core.utils import case_insensitive_dict from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling from ... import models as _models +from ..._utils.model_base import SdkJSONEncoder, _deserialize, _failsafe_deserialize from ..._utils.serialization import Deserializer, Serializer -from ...operations._operations import build_list_request +from ..._utils.utils import ClientMixinABC +from ...operations._operations import ( + build_app_resiliency_create_or_update_request, + build_app_resiliency_delete_request, + build_app_resiliency_get_request, + build_app_resiliency_list_request, + build_app_resiliency_update_request, + build_available_workload_profiles_get_request, + build_billing_meters_get_request, + build_build_auth_token_list_request, + build_builders_create_or_update_request, + build_builders_delete_request, + build_builders_get_request, + build_builders_list_by_resource_group_request, + build_builders_list_by_subscription_request, + build_builders_update_request, + build_builds_by_builder_resource_list_request, + build_builds_create_or_update_request, + build_builds_delete_request, + build_builds_get_request, + build_certificates_create_or_update_request, + build_certificates_delete_request, + build_certificates_get_request, + build_certificates_list_request, + build_certificates_update_request, + build_connected_environments_certificates_create_or_update_request, + build_connected_environments_certificates_delete_request, + build_connected_environments_certificates_get_request, + build_connected_environments_certificates_list_request, + build_connected_environments_certificates_update_request, + build_connected_environments_check_name_availability_request, + build_connected_environments_create_or_update_request, + build_connected_environments_dapr_components_create_or_update_request, + build_connected_environments_dapr_components_delete_request, + build_connected_environments_dapr_components_get_request, + build_connected_environments_dapr_components_list_request, + build_connected_environments_dapr_components_list_secrets_request, + build_connected_environments_delete_request, + build_connected_environments_get_request, + build_connected_environments_list_by_resource_group_request, + build_connected_environments_list_by_subscription_request, + build_connected_environments_storages_create_or_update_request, + build_connected_environments_storages_delete_request, + build_connected_environments_storages_get_request, + build_connected_environments_storages_list_request, + build_connected_environments_update_request, + build_container_apps_api_get_custom_domain_verification_id_request, + build_container_apps_api_job_execution_request, + build_container_apps_auth_configs_create_or_update_request, + build_container_apps_auth_configs_delete_request, + build_container_apps_auth_configs_get_request, + build_container_apps_auth_configs_list_by_container_app_request, + build_container_apps_builds_by_container_app_list_request, + build_container_apps_builds_delete_request, + build_container_apps_builds_get_request, + build_container_apps_create_or_update_request, + build_container_apps_delete_request, + build_container_apps_diagnostics_get_detector_request, + build_container_apps_diagnostics_get_revision_request, + build_container_apps_diagnostics_get_root_request, + build_container_apps_diagnostics_list_detectors_request, + build_container_apps_diagnostics_list_revisions_request, + build_container_apps_functions_get_request, + build_container_apps_functions_list_request, + build_container_apps_get_auth_token_request, + build_container_apps_get_request, + build_container_apps_label_history_delete_label_history_request, + build_container_apps_label_history_get_label_history_request, + build_container_apps_label_history_list_label_history_request, + build_container_apps_list_by_resource_group_request, + build_container_apps_list_by_subscription_request, + build_container_apps_list_custom_host_name_analysis_request, + build_container_apps_list_secrets_request, + build_container_apps_patches_apply_request, + build_container_apps_patches_delete_request, + build_container_apps_patches_get_request, + build_container_apps_patches_list_by_container_app_request, + build_container_apps_patches_skip_configure_request, + build_container_apps_revision_functions_get_request, + build_container_apps_revision_functions_list_request, + build_container_apps_revision_replicas_get_replica_request, + build_container_apps_revision_replicas_list_replicas_request, + build_container_apps_revisions_activate_revision_request, + build_container_apps_revisions_deactivate_revision_request, + build_container_apps_revisions_get_revision_request, + build_container_apps_revisions_list_revisions_request, + build_container_apps_revisions_restart_revision_request, + build_container_apps_session_pools_create_or_update_request, + build_container_apps_session_pools_delete_request, + build_container_apps_session_pools_fetch_mcp_server_credentials_request, + build_container_apps_session_pools_get_request, + build_container_apps_session_pools_list_by_resource_group_request, + build_container_apps_session_pools_list_by_subscription_request, + build_container_apps_session_pools_rotate_mcp_server_credentials_request, + build_container_apps_session_pools_update_request, + build_container_apps_source_controls_create_or_update_request, + build_container_apps_source_controls_delete_request, + build_container_apps_source_controls_get_request, + build_container_apps_source_controls_list_by_container_app_request, + build_container_apps_start_request, + build_container_apps_stop_request, + build_container_apps_update_request, + build_dapr_component_resiliency_policies_create_or_update_request, + build_dapr_component_resiliency_policies_delete_request, + build_dapr_component_resiliency_policies_get_request, + build_dapr_component_resiliency_policies_list_request, + build_dapr_components_create_or_update_request, + build_dapr_components_delete_request, + build_dapr_components_get_request, + build_dapr_components_list_request, + build_dapr_components_list_secrets_request, + build_dapr_subscriptions_create_or_update_request, + build_dapr_subscriptions_delete_request, + build_dapr_subscriptions_get_request, + build_dapr_subscriptions_list_request, + build_dot_net_components_create_or_update_request, + build_dot_net_components_delete_request, + build_dot_net_components_get_request, + build_dot_net_components_list_request, + build_dot_net_components_update_request, + build_functions_extension_invoke_functions_host_request, + build_http_route_config_create_or_update_request, + build_http_route_config_delete_request, + build_http_route_config_get_request, + build_http_route_config_list_request, + build_http_route_config_update_request, + build_java_components_create_or_update_request, + build_java_components_delete_request, + build_java_components_get_request, + build_java_components_list_request, + build_java_components_update_request, + build_jobs_create_or_update_request, + build_jobs_delete_request, + build_jobs_executions_list_request, + build_jobs_get_detector_request, + build_jobs_get_request, + build_jobs_list_by_resource_group_request, + build_jobs_list_by_subscription_request, + build_jobs_list_detectors_request, + build_jobs_list_secrets_request, + build_jobs_proxy_get_request, + build_jobs_resume_request, + build_jobs_start_request, + build_jobs_stop_execution_request, + build_jobs_stop_multiple_executions_request, + build_jobs_suspend_request, + build_jobs_update_request, + build_logic_apps_create_or_update_request, + build_logic_apps_delete_request, + build_logic_apps_deploy_workflow_artifacts_request, + build_logic_apps_get_request, + build_logic_apps_get_workflow_request, + build_logic_apps_invoke_request, + build_logic_apps_list_workflows_connections_request, + build_logic_apps_list_workflows_request, + build_maintenance_configurations_create_or_update_request, + build_maintenance_configurations_delete_request, + build_maintenance_configurations_get_request, + build_maintenance_configurations_list_request, + build_managed_certificates_create_or_update_request, + build_managed_certificates_delete_request, + build_managed_certificates_get_request, + build_managed_certificates_list_request, + build_managed_certificates_update_request, + build_managed_environment_diagnostics_get_detector_request, + build_managed_environment_diagnostics_list_detectors_request, + build_managed_environment_private_endpoint_connections_create_or_update_request, + build_managed_environment_private_endpoint_connections_delete_request, + build_managed_environment_private_endpoint_connections_get_request, + build_managed_environment_private_endpoint_connections_list_request, + build_managed_environment_private_link_resources_list_request, + build_managed_environment_usages_list_request, + build_managed_environments_create_or_update_request, + build_managed_environments_delete_request, + build_managed_environments_diagnostics_get_root_request, + build_managed_environments_get_auth_token_request, + build_managed_environments_get_request, + build_managed_environments_list_by_resource_group_request, + build_managed_environments_list_by_subscription_request, + build_managed_environments_list_workload_profile_states_request, + build_managed_environments_storages_create_or_update_request, + build_managed_environments_storages_delete_request, + build_managed_environments_storages_get_request, + build_managed_environments_storages_list_request, + build_managed_environments_update_request, + build_namespaces_check_name_availability_request, + build_operations_list_request, + build_usages_list_request, +) from .._configuration import ContainerAppsAPIClientConfiguration T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] +JSON = MutableMapping[str, Any] List = list @@ -45,8 +243,6 @@ class Operations: :attr:`operations` attribute. """ - models = _models - def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") @@ -58,16 +254,15 @@ def __init__(self, *args, **kwargs) -> None: def list(self, **kwargs: Any) -> AsyncItemPaged["_models.OperationDetail"]: """Lists all of the available RP operations. - :return: An iterator like instance of either OperationDetail or the result of cls(response) + :return: An iterator like instance of OperationDetail :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.OperationDetail] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + _params = kwargs.pop("params", {}) or {} - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) + cls: ClsType[List[_models.OperationDetail]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -80,12 +275,17 @@ def list(self, **kwargs: Any) -> AsyncItemPaged["_models.OperationDetail"]: def prepare_request(next_link=None): if not next_link: - _request = build_list_request( - api_version=api_version, + _request = build_operations_list_request( + api_version=self._config.api_version, headers=_headers, params=_params, ) - _request.url = self._client.format_url(_request.url) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) else: # make call to next link with the client's api-version @@ -100,16 +300,24 @@ def prepare_request(next_link=None): _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + return _request async def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.OperationDetail], + deserialized.get("value", []), + ) if cls: list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) async def get_next(next_link=None): _request = prepare_request(next_link) @@ -122,12 +330,23460 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( + error = _failsafe_deserialize( _models.DefaultErrorResponse, - pipeline_response, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class ContainerAppsSessionPoolsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`container_apps_session_pools` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get(self, resource_group_name: str, session_pool_name: str, **kwargs: Any) -> _models.SessionPool: + """Get the properties of a session pool. + + Get the properties of a session pool. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param session_pool_name: Name of the session pool. Required. + :type session_pool_name: str + :return: SessionPool. The SessionPool is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.SessionPool + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.SessionPool] = kwargs.pop("cls", None) + + _request = build_container_apps_session_pools_get_request( + resource_group_name=resource_group_name, + session_pool_name=session_pool_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.SessionPool, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + session_pool_name: str, + session_pool_envelope: Union[_models.SessionPool, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(session_pool_envelope, (IOBase, bytes)): + _content = session_pool_envelope + else: + _content = json.dumps(session_pool_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_container_apps_session_pools_create_or_update_request( + resource_group_name=resource_group_name, + session_pool_name=session_pool_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + session_pool_name: str, + session_pool_envelope: _models.SessionPool, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.SessionPool]: + """Create or update a session pool. + + Create or update a session pool with the given properties. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param session_pool_name: Name of the session pool. Required. + :type session_pool_name: str + :param session_pool_envelope: Properties used to create a session pool. Required. + :type session_pool_envelope: ~azure.mgmt.appcontainers.models.SessionPool + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns SessionPool. The SessionPool is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.SessionPool] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + session_pool_name: str, + session_pool_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.SessionPool]: + """Create or update a session pool. + + Create or update a session pool with the given properties. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param session_pool_name: Name of the session pool. Required. + :type session_pool_name: str + :param session_pool_envelope: Properties used to create a session pool. Required. + :type session_pool_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns SessionPool. The SessionPool is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.SessionPool] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + session_pool_name: str, + session_pool_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.SessionPool]: + """Create or update a session pool. + + Create or update a session pool with the given properties. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param session_pool_name: Name of the session pool. Required. + :type session_pool_name: str + :param session_pool_envelope: Properties used to create a session pool. Required. + :type session_pool_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns SessionPool. The SessionPool is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.SessionPool] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, + resource_group_name: str, + session_pool_name: str, + session_pool_envelope: Union[_models.SessionPool, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.SessionPool]: + """Create or update a session pool. + + Create or update a session pool with the given properties. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param session_pool_name: Name of the session pool. Required. + :type session_pool_name: str + :param session_pool_envelope: Properties used to create a session pool. Is one of the following + types: SessionPool, JSON, IO[bytes] Required. + :type session_pool_envelope: ~azure.mgmt.appcontainers.models.SessionPool or JSON or IO[bytes] + :return: An instance of AsyncLROPoller that returns SessionPool. The SessionPool is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.SessionPool] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.SessionPool] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + session_pool_name=session_pool_name, + session_pool_envelope=session_pool_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.SessionPool, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.SessionPool].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.SessionPool]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _update_initial( + self, + resource_group_name: str, + session_pool_name: str, + session_pool_envelope: Union[_models.SessionPoolUpdatableProperties, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(session_pool_envelope, (IOBase, bytes)): + _content = session_pool_envelope + else: + _content = json.dumps(session_pool_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_container_apps_session_pools_update_request( + resource_group_name=resource_group_name, + session_pool_name=session_pool_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_update( + self, + resource_group_name: str, + session_pool_name: str, + session_pool_envelope: _models.SessionPoolUpdatableProperties, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.SessionPool]: + """Update properties of a session pool. + + Patches a session pool using JSON merge patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param session_pool_name: Name of the session pool. Required. + :type session_pool_name: str + :param session_pool_envelope: Properties used to create a session pool. Required. + :type session_pool_envelope: ~azure.mgmt.appcontainers.models.SessionPoolUpdatableProperties + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns SessionPool. The SessionPool is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.SessionPool] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_update( + self, + resource_group_name: str, + session_pool_name: str, + session_pool_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.SessionPool]: + """Update properties of a session pool. + + Patches a session pool using JSON merge patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param session_pool_name: Name of the session pool. Required. + :type session_pool_name: str + :param session_pool_envelope: Properties used to create a session pool. Required. + :type session_pool_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns SessionPool. The SessionPool is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.SessionPool] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_update( + self, + resource_group_name: str, + session_pool_name: str, + session_pool_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.SessionPool]: + """Update properties of a session pool. + + Patches a session pool using JSON merge patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param session_pool_name: Name of the session pool. Required. + :type session_pool_name: str + :param session_pool_envelope: Properties used to create a session pool. Required. + :type session_pool_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns SessionPool. The SessionPool is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.SessionPool] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_update( + self, + resource_group_name: str, + session_pool_name: str, + session_pool_envelope: Union[_models.SessionPoolUpdatableProperties, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.SessionPool]: + """Update properties of a session pool. + + Patches a session pool using JSON merge patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param session_pool_name: Name of the session pool. Required. + :type session_pool_name: str + :param session_pool_envelope: Properties used to create a session pool. Is one of the following + types: SessionPoolUpdatableProperties, JSON, IO[bytes] Required. + :type session_pool_envelope: ~azure.mgmt.appcontainers.models.SessionPoolUpdatableProperties or + JSON or IO[bytes] + :return: An instance of AsyncLROPoller that returns SessionPool. The SessionPool is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.SessionPool] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.SessionPool] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("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, + session_pool_name=session_pool_name, + session_pool_envelope=session_pool_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.SessionPool, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.SessionPool].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.SessionPool]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _delete_initial( + self, resource_group_name: str, session_pool_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_container_apps_session_pools_delete_request( + resource_group_name=resource_group_name, + session_pool_name=session_pool_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = 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]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, resource_group_name: str, session_pool_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Delete a session pool. + + Delete the session pool with the given name. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param session_pool_name: Name of the session pool. Required. + :type session_pool_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + session_pool_name=session_pool_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.SessionPool"]: + """Get the session pools in a given resource group of a subscription. + + Get the session pools in a given resource group of a subscription. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of SessionPool + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.SessionPool] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.SessionPool]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_container_apps_session_pools_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.SessionPool], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response return AsyncItemPaged(get_next, extract_data) + + @distributed_trace + def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.SessionPool"]: + """Get the session pools in a given subscription. + + Get the session pools in a given subscription. + + :return: An iterator like instance of SessionPool + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.SessionPool] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.SessionPool]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_container_apps_session_pools_list_by_subscription_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.SessionPool], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace_async + async def fetch_mcp_server_credentials( + self, resource_group_name: str, session_pool_name: str, **kwargs: Any + ) -> _models.McpServerCredential: + """Fetch the MCP server credentials of a session pool. + + Fetch the MCP server credentials of a session pool. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param session_pool_name: Name of the session pool. Required. + :type session_pool_name: str + :return: McpServerCredential. The McpServerCredential is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.McpServerCredential + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.McpServerCredential] = kwargs.pop("cls", None) + + _request = build_container_apps_session_pools_fetch_mcp_server_credentials_request( + resource_group_name=resource_group_name, + session_pool_name=session_pool_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.McpServerCredential, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def rotate_mcp_server_credentials( + self, resource_group_name: str, session_pool_name: str, **kwargs: Any + ) -> _models.McpServerCredential: + """Rotate and fetch the rotated MCP server credentials of a session pool. + + Rotate and fetch the rotated MCP server credentials of a session pool. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param session_pool_name: Name of the session pool. Required. + :type session_pool_name: str + :return: McpServerCredential. The McpServerCredential is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.McpServerCredential + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.McpServerCredential] = kwargs.pop("cls", None) + + _request = build_container_apps_session_pools_rotate_mcp_server_credentials_request( + resource_group_name=resource_group_name, + session_pool_name=session_pool_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.McpServerCredential, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class ContainerAppsSourceControlsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`container_apps_source_controls` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, container_app_name: str, source_control_name: str, **kwargs: Any + ) -> _models.SourceControl: + """Get a SourceControl of a Container App. + + Get a SourceControl of a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param source_control_name: Name of the Container App SourceControl. Required. + :type source_control_name: str + :return: SourceControl. The SourceControl is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.SourceControl + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.SourceControl] = kwargs.pop("cls", None) + + _request = build_container_apps_source_controls_get_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + source_control_name=source_control_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.SourceControl, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + container_app_name: str, + source_control_name: str, + source_control_envelope: Union[_models.SourceControl, JSON, IO[bytes]], + *, + x_ms_github_auxiliary: Optional[str] = None, + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(source_control_envelope, (IOBase, bytes)): + _content = source_control_envelope + else: + _content = json.dumps(source_control_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_container_apps_source_controls_create_or_update_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + source_control_name=source_control_name, + subscription_id=self._config.subscription_id, + x_ms_github_auxiliary=x_ms_github_auxiliary, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + container_app_name: str, + source_control_name: str, + source_control_envelope: _models.SourceControl, + *, + x_ms_github_auxiliary: Optional[str] = None, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.SourceControl]: + """Create or update the SourceControl for a Container App. + + Create or update the SourceControl for a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param source_control_name: Name of the Container App SourceControl. Required. + :type source_control_name: str + :param source_control_envelope: Properties used to create a Container App SourceControl. + Required. + :type source_control_envelope: ~azure.mgmt.appcontainers.models.SourceControl + :keyword x_ms_github_auxiliary: Github personal access token used for SourceControl. Default + value is None. + :paramtype x_ms_github_auxiliary: str + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns SourceControl. The SourceControl is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.SourceControl] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + container_app_name: str, + source_control_name: str, + source_control_envelope: JSON, + *, + x_ms_github_auxiliary: Optional[str] = None, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.SourceControl]: + """Create or update the SourceControl for a Container App. + + Create or update the SourceControl for a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param source_control_name: Name of the Container App SourceControl. Required. + :type source_control_name: str + :param source_control_envelope: Properties used to create a Container App SourceControl. + Required. + :type source_control_envelope: JSON + :keyword x_ms_github_auxiliary: Github personal access token used for SourceControl. Default + value is None. + :paramtype x_ms_github_auxiliary: str + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns SourceControl. The SourceControl is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.SourceControl] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + container_app_name: str, + source_control_name: str, + source_control_envelope: IO[bytes], + *, + x_ms_github_auxiliary: Optional[str] = None, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.SourceControl]: + """Create or update the SourceControl for a Container App. + + Create or update the SourceControl for a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param source_control_name: Name of the Container App SourceControl. Required. + :type source_control_name: str + :param source_control_envelope: Properties used to create a Container App SourceControl. + Required. + :type source_control_envelope: IO[bytes] + :keyword x_ms_github_auxiliary: Github personal access token used for SourceControl. Default + value is None. + :paramtype x_ms_github_auxiliary: str + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns SourceControl. The SourceControl is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.SourceControl] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, + resource_group_name: str, + container_app_name: str, + source_control_name: str, + source_control_envelope: Union[_models.SourceControl, JSON, IO[bytes]], + *, + x_ms_github_auxiliary: Optional[str] = None, + **kwargs: Any + ) -> AsyncLROPoller[_models.SourceControl]: + """Create or update the SourceControl for a Container App. + + Create or update the SourceControl for a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param source_control_name: Name of the Container App SourceControl. Required. + :type source_control_name: str + :param source_control_envelope: Properties used to create a Container App SourceControl. Is one + of the following types: SourceControl, JSON, IO[bytes] Required. + :type source_control_envelope: ~azure.mgmt.appcontainers.models.SourceControl or JSON or + IO[bytes] + :keyword x_ms_github_auxiliary: Github personal access token used for SourceControl. Default + value is None. + :paramtype x_ms_github_auxiliary: str + :return: An instance of AsyncLROPoller that returns SourceControl. The SourceControl is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.SourceControl] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.SourceControl] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + source_control_name=source_control_name, + source_control_envelope=source_control_envelope, + x_ms_github_auxiliary=x_ms_github_auxiliary, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.SourceControl, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.SourceControl].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.SourceControl]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _delete_initial( + self, + resource_group_name: str, + container_app_name: str, + source_control_name: str, + *, + x_ms_github_auxiliary: Optional[str] = None, + ignore_workflow_deletion_failure: Optional[bool] = None, + delete_workflow: Optional[bool] = None, + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_container_apps_source_controls_delete_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + source_control_name=source_control_name, + subscription_id=self._config.subscription_id, + x_ms_github_auxiliary=x_ms_github_auxiliary, + ignore_workflow_deletion_failure=ignore_workflow_deletion_failure, + delete_workflow=delete_workflow, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, + resource_group_name: str, + container_app_name: str, + source_control_name: str, + *, + x_ms_github_auxiliary: Optional[str] = None, + ignore_workflow_deletion_failure: Optional[bool] = None, + delete_workflow: Optional[bool] = None, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Delete a Container App SourceControl. + + Delete a Container App SourceControl. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param source_control_name: Name of the Container App SourceControl. Required. + :type source_control_name: str + :keyword x_ms_github_auxiliary: Github personal access token used for SourceControl. Default + value is None. + :paramtype x_ms_github_auxiliary: str + :keyword ignore_workflow_deletion_failure: Ignore Workflow Deletion Failure. Default value is + None. + :paramtype ignore_workflow_deletion_failure: bool + :keyword delete_workflow: Delete workflow. Default value is None. + :paramtype delete_workflow: bool + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + source_control_name=source_control_name, + x_ms_github_auxiliary=x_ms_github_auxiliary, + ignore_workflow_deletion_failure=ignore_workflow_deletion_failure, + delete_workflow=delete_workflow, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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_by_container_app( + self, resource_group_name: str, container_app_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.SourceControl"]: + """Get the Container App SourceControls in a given resource group. + + Get the Container App SourceControls in a given resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :return: An iterator like instance of SourceControl + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.SourceControl] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.SourceControl]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_container_apps_source_controls_list_by_container_app_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.SourceControl], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class ContainerAppsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`container_apps` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get(self, resource_group_name: str, container_app_name: str, **kwargs: Any) -> _models.ContainerApp: + """Get the properties of a Container App. + + Get the properties of a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :return: ContainerApp. The ContainerApp is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ContainerApp + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ContainerApp] = kwargs.pop("cls", None) + + _request = build_container_apps_get_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ContainerApp, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + container_app_name: str, + container_app_envelope: Union[_models.ContainerApp, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(container_app_envelope, (IOBase, bytes)): + _content = container_app_envelope + else: + _content = json.dumps(container_app_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_container_apps_create_or_update_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + container_app_name: str, + container_app_envelope: _models.ContainerApp, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ContainerApp]: + """Create or update a Container App. + + Create or update a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param container_app_envelope: Properties used to create a container app. Required. + :type container_app_envelope: ~azure.mgmt.appcontainers.models.ContainerApp + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ContainerApp. The ContainerApp is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ContainerApp] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + container_app_name: str, + container_app_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ContainerApp]: + """Create or update a Container App. + + Create or update a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param container_app_envelope: Properties used to create a container app. Required. + :type container_app_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ContainerApp. The ContainerApp is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ContainerApp] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + container_app_name: str, + container_app_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ContainerApp]: + """Create or update a Container App. + + Create or update a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param container_app_envelope: Properties used to create a container app. Required. + :type container_app_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ContainerApp. The ContainerApp is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ContainerApp] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, + resource_group_name: str, + container_app_name: str, + container_app_envelope: Union[_models.ContainerApp, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.ContainerApp]: + """Create or update a Container App. + + Create or update a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param container_app_envelope: Properties used to create a container app. Is one of the + following types: ContainerApp, JSON, IO[bytes] Required. + :type container_app_envelope: ~azure.mgmt.appcontainers.models.ContainerApp or JSON or + IO[bytes] + :return: An instance of AsyncLROPoller that returns ContainerApp. The ContainerApp is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ContainerApp] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ContainerApp] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + container_app_envelope=container_app_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.ContainerApp, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.ContainerApp].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.ContainerApp]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _update_initial( + self, + resource_group_name: str, + container_app_name: str, + container_app_envelope: Union[_models.ContainerApp, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(container_app_envelope, (IOBase, bytes)): + _content = container_app_envelope + else: + _content = json.dumps(container_app_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_container_apps_update_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_update( + self, + resource_group_name: str, + container_app_name: str, + container_app_envelope: _models.ContainerApp, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ContainerApp]: + """Update properties of a Container App. + + Patches a Container App using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param container_app_envelope: Properties of a Container App that need to be updated. Required. + :type container_app_envelope: ~azure.mgmt.appcontainers.models.ContainerApp + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ContainerApp. The ContainerApp is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ContainerApp] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_update( + self, + resource_group_name: str, + container_app_name: str, + container_app_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ContainerApp]: + """Update properties of a Container App. + + Patches a Container App using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param container_app_envelope: Properties of a Container App that need to be updated. Required. + :type container_app_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ContainerApp. The ContainerApp is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ContainerApp] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_update( + self, + resource_group_name: str, + container_app_name: str, + container_app_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ContainerApp]: + """Update properties of a Container App. + + Patches a Container App using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param container_app_envelope: Properties of a Container App that need to be updated. Required. + :type container_app_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ContainerApp. The ContainerApp is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ContainerApp] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_update( + self, + resource_group_name: str, + container_app_name: str, + container_app_envelope: Union[_models.ContainerApp, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.ContainerApp]: + """Update properties of a Container App. + + Patches a Container App using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param container_app_envelope: Properties of a Container App that need to be updated. Is one of + the following types: ContainerApp, JSON, IO[bytes] Required. + :type container_app_envelope: ~azure.mgmt.appcontainers.models.ContainerApp or JSON or + IO[bytes] + :return: An instance of AsyncLROPoller that returns ContainerApp. The ContainerApp is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ContainerApp] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ContainerApp] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("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, + container_app_name=container_app_name, + container_app_envelope=container_app_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.ContainerApp, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.ContainerApp].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.ContainerApp]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _delete_initial( + self, resource_group_name: str, container_app_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_container_apps_delete_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, resource_group_name: str, container_app_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Delete a Container App. + + Delete a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.ContainerApp"]: + """Get the Container Apps in a given resource group. + + Get the Container Apps in a given resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of ContainerApp + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.ContainerApp] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ContainerApp]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_container_apps_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ContainerApp], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace + def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.ContainerApp"]: + """Get the Container Apps in a given subscription. + + Get the Container Apps in a given subscription. + + :return: An iterator like instance of ContainerApp + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.ContainerApp] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ContainerApp]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_container_apps_list_by_subscription_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ContainerApp], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace_async + async def list_custom_host_name_analysis( + self, resource_group_name: str, container_app_name: str, *, custom_hostname: Optional[str] = None, **kwargs: Any + ) -> _models.CustomHostnameAnalysisResult: + """Analyzes a custom hostname for a Container App. + + Analyzes a custom hostname for a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :keyword custom_hostname: Custom hostname. Default value is None. + :paramtype custom_hostname: str + :return: CustomHostnameAnalysisResult. The CustomHostnameAnalysisResult is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.CustomHostnameAnalysisResult + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.CustomHostnameAnalysisResult] = kwargs.pop("cls", None) + + _request = build_container_apps_list_custom_host_name_analysis_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + custom_hostname=custom_hostname, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.CustomHostnameAnalysisResult, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def list_secrets( + self, resource_group_name: str, container_app_name: str, **kwargs: Any + ) -> _models.SecretsCollection: + """List secrets for a container app. + + List secrets for a container app. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :return: SecretsCollection. The SecretsCollection is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.SecretsCollection + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.SecretsCollection] = kwargs.pop("cls", None) + + _request = build_container_apps_list_secrets_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.SecretsCollection, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def get_auth_token( + self, resource_group_name: str, container_app_name: str, **kwargs: Any + ) -> _models.ContainerAppAuthToken: + """Get auth token for a container app. + + Get auth token for a container app. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :return: ContainerAppAuthToken. The ContainerAppAuthToken is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ContainerAppAuthToken + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ContainerAppAuthToken] = kwargs.pop("cls", None) + + _request = build_container_apps_get_auth_token_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ContainerAppAuthToken, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _start_initial( + self, resource_group_name: str, container_app_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_container_apps_start_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_start( + self, resource_group_name: str, container_app_name: str, **kwargs: Any + ) -> AsyncLROPoller[_models.ContainerApp]: + """Start a container app. + + Start a container app. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :return: An instance of AsyncLROPoller that returns ContainerApp. The ContainerApp is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ContainerApp] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ContainerApp] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("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( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = _deserialize(_models.ContainerApp, response.json()) + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.ContainerApp].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.ContainerApp]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _stop_initial( + self, resource_group_name: str, container_app_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_container_apps_stop_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_stop( + self, resource_group_name: str, container_app_name: str, **kwargs: Any + ) -> AsyncLROPoller[_models.ContainerApp]: + """Stop a container app. + + Stop a container app. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :return: An instance of AsyncLROPoller that returns ContainerApp. The ContainerApp is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ContainerApp] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ContainerApp] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("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( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = _deserialize(_models.ContainerApp, response.json()) + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.ContainerApp].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.ContainerApp]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + +class ContainerAppsBuildsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`container_apps_builds` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, container_app_name: str, build_name: str, **kwargs: Any + ) -> _models.ContainerAppsBuildResource: + """Get a Container Apps Build resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param build_name: Name of the build. Required. + :type build_name: str + :return: ContainerAppsBuildResource. The ContainerAppsBuildResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ContainerAppsBuildResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ContainerAppsBuildResource] = kwargs.pop("cls", None) + + _request = build_container_apps_builds_get_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + build_name=build_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ContainerAppsBuildResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _delete_initial( + self, resource_group_name: str, container_app_name: str, build_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_container_apps_builds_delete_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + build_name=build_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = 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]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, resource_group_name: str, container_app_name: str, build_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Delete a Container Apps Build resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param build_name: Name of the build. Required. + :type build_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + build_name=build_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + +class ContainerAppsFunctionsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`container_apps_functions` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, container_app_name: str, function_name: str, **kwargs: Any + ) -> _models.ContainerAppsFunction: + """Get a specific function of a Container App from the latest Revision. + + Get a specific function of a Container App from the latest Revision. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param function_name: Name of the Function. Required. + :type function_name: str + :return: ContainerAppsFunction. The ContainerAppsFunction is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ContainerAppsFunction + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ContainerAppsFunction] = kwargs.pop("cls", None) + + _request = build_container_apps_functions_get_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + function_name=function_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ContainerAppsFunction, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def list( + self, resource_group_name: str, container_app_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.ContainerAppsFunction"]: + """List the functions for a given Container App from the latest Revision. + + List the functions for a given Container App from the latest Revision. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :return: An iterator like instance of ContainerAppsFunction + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.ContainerAppsFunction] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ContainerAppsFunction]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_container_apps_functions_list_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ContainerAppsFunction], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class ContainerAppsRevisionsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`container_apps_revisions` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get_revision( + self, resource_group_name: str, container_app_name: str, revision_name: str, **kwargs: Any + ) -> _models.Revision: + """Get a revision of a Container App. + + Get a revision of a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param revision_name: Name of the Container App Revision. Required. + :type revision_name: str + :return: Revision. The Revision is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Revision + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.Revision] = kwargs.pop("cls", None) + + _request = build_container_apps_revisions_get_revision_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + revision_name=revision_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Revision, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def list_revisions( + self, resource_group_name: str, container_app_name: str, *, filter: Optional[str] = None, **kwargs: Any + ) -> AsyncItemPaged["_models.Revision"]: + """Get the Revisions for a given Container App. + + Get the Revisions for a given Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :keyword filter: The filter to apply on the operation. Default value is None. + :paramtype filter: str + :return: An iterator like instance of Revision + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.Revision] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.Revision]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_container_apps_revisions_list_revisions_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + filter=filter, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Revision], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace_async + async def activate_revision( + self, resource_group_name: str, container_app_name: str, revision_name: str, **kwargs: Any + ) -> None: + """Activates a revision for a Container App. + + Activates a revision for a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param revision_name: Name of the Container App Revision. Required. + :type revision_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_container_apps_revisions_activate_revision_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + revision_name=revision_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace_async + async def deactivate_revision( + self, resource_group_name: str, container_app_name: str, revision_name: str, **kwargs: Any + ) -> None: + """Deactivates a revision for a Container App. + + Deactivates a revision for a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param revision_name: Name of the Container App Revision. Required. + :type revision_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_container_apps_revisions_deactivate_revision_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + revision_name=revision_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace_async + async def restart_revision( + self, resource_group_name: str, container_app_name: str, revision_name: str, **kwargs: Any + ) -> None: + """Restarts a revision for a Container App. + + Restarts a revision for a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param revision_name: Name of the Container App Revision. Required. + :type revision_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_container_apps_revisions_restart_revision_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + revision_name=revision_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + +class FunctionsExtensionOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`functions_extension` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def invoke_functions_host( + self, + resource_group_name: str, + container_app_name: str, + revision_name: str, + function_app_name: str, + **kwargs: Any + ) -> str: + """Proxies a Functions host call to the function app backed by the container app. + + Proxies a Functions host call to the function app backed by the container app. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param revision_name: Name of the Container App Revision. Required. + :type revision_name: str + :param function_app_name: Name of the Function. Required. + :type function_app_name: str + :return: str + :rtype: str + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[str] = kwargs.pop("cls", None) + + _request = build_functions_extension_invoke_functions_host_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + revision_name=revision_name, + function_app_name=function_app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(str, response.text()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class ContainerAppsLabelHistoryOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`container_apps_label_history` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get_label_history( + self, resource_group_name: str, container_app_name: str, label_name: str, **kwargs: Any + ) -> _models.LabelHistory: + """Get the history of a label. + + Get the history of a label. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param label_name: Name of the label. Required. + :type label_name: str + :return: LabelHistory. The LabelHistory is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.LabelHistory + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.LabelHistory] = kwargs.pop("cls", None) + + _request = build_container_apps_label_history_get_label_history_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + label_name=label_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.LabelHistory, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def delete_label_history( + self, resource_group_name: str, container_app_name: str, label_name: str, **kwargs: Any + ) -> None: + """Delete the history of a label. + + Delete the history of a label. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param label_name: Name of the label. Required. + :type label_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_container_apps_label_history_delete_label_history_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + label_name=label_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await 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) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list_label_history( + self, resource_group_name: str, container_app_name: str, *, filter: Optional[str] = None, **kwargs: Any + ) -> AsyncItemPaged["_models.LabelHistory"]: + """Get the Label History for a given Container App. + + Get the Label History for a given Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :keyword filter: The filter to apply on the operation. Default value is None. + :paramtype filter: str + :return: An iterator like instance of LabelHistory + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.LabelHistory] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.LabelHistory]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_container_apps_label_history_list_label_history_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + filter=filter, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.LabelHistory], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class ContainerAppsPatchesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`container_apps_patches` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, container_app_name: str, patch_name: str, **kwargs: Any + ) -> _models.ContainerAppsPatchResource: + """Get details for specific Container Apps Patch by patch name. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param patch_name: Name of the Container Apps Patch. Required. + :type patch_name: str + :return: ContainerAppsPatchResource. The ContainerAppsPatchResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ContainerAppsPatchResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ContainerAppsPatchResource] = kwargs.pop("cls", None) + + _request = build_container_apps_patches_get_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + patch_name=patch_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ContainerAppsPatchResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _delete_initial( + self, resource_group_name: str, container_app_name: str, patch_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_container_apps_patches_delete_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + patch_name=patch_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = 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]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, resource_group_name: str, container_app_name: str, patch_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Delete specific Container Apps Patch by patch name. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param patch_name: Name of the Container Apps Patch. Required. + :type patch_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + patch_name=patch_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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_by_container_app( + self, resource_group_name: str, container_app_name: str, *, filter: Optional[str] = None, **kwargs: Any + ) -> AsyncItemPaged["_models.ContainerAppsPatchResource"]: + """List Container Apps Patch resources by ContainerApp. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :keyword filter: The filter to apply on the operation. For example, + $filter=properties/patchApplyStatus eq 'Succeeded'. Default value is None. + :paramtype filter: str + :return: An iterator like instance of ContainerAppsPatchResource + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.ContainerAppsPatchResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ContainerAppsPatchResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_container_apps_patches_list_by_container_app_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + filter=filter, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ContainerAppsPatchResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + async def _skip_configure_initial( + self, + resource_group_name: str, + container_app_name: str, + patch_name: str, + patch_skip_config: Union[_models.PatchSkipConfig, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(patch_skip_config, (IOBase, bytes)): + _content = patch_skip_config + else: + _content = json.dumps(patch_skip_config, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_container_apps_patches_skip_configure_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + patch_name=patch_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = 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]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_skip_configure( + self, + resource_group_name: str, + container_app_name: str, + patch_name: str, + patch_skip_config: _models.PatchSkipConfig, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Configure the Container Apps Patch skip option by patch name. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param patch_name: Name of the Container Apps Patch. Required. + :type patch_name: str + :param patch_skip_config: Configure patcher to skip a patch or not. Required. + :type patch_skip_config: ~azure.mgmt.appcontainers.models.PatchSkipConfig + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_skip_configure( + self, + resource_group_name: str, + container_app_name: str, + patch_name: str, + patch_skip_config: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Configure the Container Apps Patch skip option by patch name. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param patch_name: Name of the Container Apps Patch. Required. + :type patch_name: str + :param patch_skip_config: Configure patcher to skip a patch or not. Required. + :type patch_skip_config: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_skip_configure( + self, + resource_group_name: str, + container_app_name: str, + patch_name: str, + patch_skip_config: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Configure the Container Apps Patch skip option by patch name. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param patch_name: Name of the Container Apps Patch. Required. + :type patch_name: str + :param patch_skip_config: Configure patcher to skip a patch or not. Required. + :type patch_skip_config: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_skip_configure( + self, + resource_group_name: str, + container_app_name: str, + patch_name: str, + patch_skip_config: Union[_models.PatchSkipConfig, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Configure the Container Apps Patch skip option by patch name. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param patch_name: Name of the Container Apps Patch. Required. + :type patch_name: str + :param patch_skip_config: Configure patcher to skip a patch or not. Is one of the following + types: PatchSkipConfig, JSON, IO[bytes] Required. + :type patch_skip_config: ~azure.mgmt.appcontainers.models.PatchSkipConfig or JSON or IO[bytes] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + 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._skip_configure_initial( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + patch_name=patch_name, + patch_skip_config=patch_skip_config, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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 _apply_initial( + self, resource_group_name: str, container_app_name: str, patch_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_container_apps_patches_apply_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + patch_name=patch_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_apply( + self, resource_group_name: str, container_app_name: str, patch_name: str, **kwargs: Any + ) -> AsyncLROPoller[_models.ContainerAppsPatchResource]: + """Apply a Container Apps Patch resource with patch name. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param patch_name: Name of the Container Apps Patch. Required. + :type patch_name: str + :return: An instance of AsyncLROPoller that returns ContainerAppsPatchResource. The + ContainerAppsPatchResource is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ContainerAppsPatchResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ContainerAppsPatchResource] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._apply_initial( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + patch_name=patch_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = _deserialize(_models.ContainerAppsPatchResource, response.json()) + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.ContainerAppsPatchResource].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.ContainerAppsPatchResource]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + +class ContainerAppsRevisionReplicasOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`container_apps_revision_replicas` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get_replica( + self, resource_group_name: str, container_app_name: str, revision_name: str, replica_name: str, **kwargs: Any + ) -> _models.Replica: + """Get a replica for a Container App Revision. + + Get a replica for a Container App Revision. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param revision_name: Name of the Container App Revision. Required. + :type revision_name: str + :param replica_name: Name of the Container App Revision Replica. Required. + :type replica_name: str + :return: Replica. The Replica is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Replica + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.Replica] = kwargs.pop("cls", None) + + _request = build_container_apps_revision_replicas_get_replica_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + revision_name=revision_name, + replica_name=replica_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Replica, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def list_replicas( + self, resource_group_name: str, container_app_name: str, revision_name: str, **kwargs: Any + ) -> _models.ReplicaCollection: + """List replicas for a Container App Revision. + + List replicas for a Container App Revision. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param revision_name: Name of the Container App Revision. Required. + :type revision_name: str + :return: ReplicaCollection. The ReplicaCollection is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ReplicaCollection + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ReplicaCollection] = kwargs.pop("cls", None) + + _request = build_container_apps_revision_replicas_list_replicas_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + revision_name=revision_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ReplicaCollection, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class DotNetComponentsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`dot_net_components` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, environment_name: str, name: str, **kwargs: Any + ) -> _models.DotNetComponent: + """Get a .NET Component. + + Get a .NET Component. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the .NET Component. Required. + :type name: str + :return: DotNetComponent. The DotNetComponent is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DotNetComponent + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DotNetComponent] = kwargs.pop("cls", None) + + _request = build_dot_net_components_get_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + name=name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DotNetComponent, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + environment_name: str, + name: str, + dot_net_component_envelope: Union[_models.DotNetComponent, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(dot_net_component_envelope, (IOBase, bytes)): + _content = dot_net_component_envelope + else: + _content = json.dumps(dot_net_component_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_dot_net_components_create_or_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + name=name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + dot_net_component_envelope: _models.DotNetComponent, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.DotNetComponent]: + """Creates or updates a .NET Component. + + Creates or updates a .NET Component in a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the .NET Component. Required. + :type name: str + :param dot_net_component_envelope: Configuration details of the .NET Component. Required. + :type dot_net_component_envelope: ~azure.mgmt.appcontainers.models.DotNetComponent + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns DotNetComponent. The DotNetComponent is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.DotNetComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + dot_net_component_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.DotNetComponent]: + """Creates or updates a .NET Component. + + Creates or updates a .NET Component in a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the .NET Component. Required. + :type name: str + :param dot_net_component_envelope: Configuration details of the .NET Component. Required. + :type dot_net_component_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns DotNetComponent. The DotNetComponent is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.DotNetComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + dot_net_component_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.DotNetComponent]: + """Creates or updates a .NET Component. + + Creates or updates a .NET Component in a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the .NET Component. Required. + :type name: str + :param dot_net_component_envelope: Configuration details of the .NET Component. Required. + :type dot_net_component_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns DotNetComponent. The DotNetComponent is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.DotNetComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + dot_net_component_envelope: Union[_models.DotNetComponent, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.DotNetComponent]: + """Creates or updates a .NET Component. + + Creates or updates a .NET Component in a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the .NET Component. Required. + :type name: str + :param dot_net_component_envelope: Configuration details of the .NET Component. Is one of the + following types: DotNetComponent, JSON, IO[bytes] Required. + :type dot_net_component_envelope: ~azure.mgmt.appcontainers.models.DotNetComponent or JSON or + IO[bytes] + :return: An instance of AsyncLROPoller that returns DotNetComponent. The DotNetComponent is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.DotNetComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DotNetComponent] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + environment_name=environment_name, + name=name, + dot_net_component_envelope=dot_net_component_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.DotNetComponent, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.DotNetComponent].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.DotNetComponent]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _update_initial( + self, + resource_group_name: str, + environment_name: str, + name: str, + dot_net_component_envelope: Union[_models.DotNetComponent, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(dot_net_component_envelope, (IOBase, bytes)): + _content = dot_net_component_envelope + else: + _content = json.dumps(dot_net_component_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_dot_net_components_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + name=name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + dot_net_component_envelope: _models.DotNetComponent, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.DotNetComponent]: + """Update properties of a .NET Component. + + Patches a .NET Component using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the .NET Component. Required. + :type name: str + :param dot_net_component_envelope: Configuration details of the .NET Component. Required. + :type dot_net_component_envelope: ~azure.mgmt.appcontainers.models.DotNetComponent + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns DotNetComponent. The DotNetComponent is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.DotNetComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + dot_net_component_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.DotNetComponent]: + """Update properties of a .NET Component. + + Patches a .NET Component using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the .NET Component. Required. + :type name: str + :param dot_net_component_envelope: Configuration details of the .NET Component. Required. + :type dot_net_component_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns DotNetComponent. The DotNetComponent is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.DotNetComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + dot_net_component_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.DotNetComponent]: + """Update properties of a .NET Component. + + Patches a .NET Component using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the .NET Component. Required. + :type name: str + :param dot_net_component_envelope: Configuration details of the .NET Component. Required. + :type dot_net_component_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns DotNetComponent. The DotNetComponent is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.DotNetComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + dot_net_component_envelope: Union[_models.DotNetComponent, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.DotNetComponent]: + """Update properties of a .NET Component. + + Patches a .NET Component using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the .NET Component. Required. + :type name: str + :param dot_net_component_envelope: Configuration details of the .NET Component. Is one of the + following types: DotNetComponent, JSON, IO[bytes] Required. + :type dot_net_component_envelope: ~azure.mgmt.appcontainers.models.DotNetComponent or JSON or + IO[bytes] + :return: An instance of AsyncLROPoller that returns DotNetComponent. The DotNetComponent is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.DotNetComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DotNetComponent] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("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, + environment_name=environment_name, + name=name, + dot_net_component_envelope=dot_net_component_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.DotNetComponent, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.DotNetComponent].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.DotNetComponent]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _delete_initial( + self, resource_group_name: str, environment_name: str, name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_dot_net_components_delete_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + name=name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = 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]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, resource_group_name: str, environment_name: str, name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Delete a .NET Component. + + Delete a .NET Component. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the .NET Component. Required. + :type name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + environment_name=environment_name, + name=name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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, environment_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.DotNetComponent"]: + """Get the .NET Components for a managed environment. + + Get the .NET Components for a managed environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :return: An iterator like instance of DotNetComponent + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.DotNetComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.DotNetComponent]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_dot_net_components_list_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.DotNetComponent], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class JavaComponentsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`java_components` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, environment_name: str, name: str, **kwargs: Any + ) -> _models.JavaComponent: + """Get a Java Component. + + Get a Java Component. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the Java Component. Required. + :type name: str + :return: JavaComponent. The JavaComponent is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.JavaComponent + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.JavaComponent] = kwargs.pop("cls", None) + + _request = build_java_components_get_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + name=name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.JavaComponent, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + environment_name: str, + name: str, + java_component_envelope: Union[_models.JavaComponent, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(java_component_envelope, (IOBase, bytes)): + _content = java_component_envelope + else: + _content = json.dumps(java_component_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_java_components_create_or_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + name=name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + java_component_envelope: _models.JavaComponent, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.JavaComponent]: + """Creates or updates a Java Component. + + Creates or updates a Java Component in a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the Java Component. Required. + :type name: str + :param java_component_envelope: Configuration details of the Java Component. Required. + :type java_component_envelope: ~azure.mgmt.appcontainers.models.JavaComponent + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns JavaComponent. The JavaComponent is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.JavaComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + java_component_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.JavaComponent]: + """Creates or updates a Java Component. + + Creates or updates a Java Component in a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the Java Component. Required. + :type name: str + :param java_component_envelope: Configuration details of the Java Component. Required. + :type java_component_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns JavaComponent. The JavaComponent is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.JavaComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + java_component_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.JavaComponent]: + """Creates or updates a Java Component. + + Creates or updates a Java Component in a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the Java Component. Required. + :type name: str + :param java_component_envelope: Configuration details of the Java Component. Required. + :type java_component_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns JavaComponent. The JavaComponent is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.JavaComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + java_component_envelope: Union[_models.JavaComponent, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.JavaComponent]: + """Creates or updates a Java Component. + + Creates or updates a Java Component in a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the Java Component. Required. + :type name: str + :param java_component_envelope: Configuration details of the Java Component. Is one of the + following types: JavaComponent, JSON, IO[bytes] Required. + :type java_component_envelope: ~azure.mgmt.appcontainers.models.JavaComponent or JSON or + IO[bytes] + :return: An instance of AsyncLROPoller that returns JavaComponent. The JavaComponent is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.JavaComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.JavaComponent] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + environment_name=environment_name, + name=name, + java_component_envelope=java_component_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.JavaComponent, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.JavaComponent].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.JavaComponent]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _update_initial( + self, + resource_group_name: str, + environment_name: str, + name: str, + java_component_envelope: Union[_models.JavaComponent, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(java_component_envelope, (IOBase, bytes)): + _content = java_component_envelope + else: + _content = json.dumps(java_component_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_java_components_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + name=name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + java_component_envelope: _models.JavaComponent, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.JavaComponent]: + """Update properties of a Java Component. + + Patches a Java Component using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the Java Component. Required. + :type name: str + :param java_component_envelope: Configuration details of the Java Component. Required. + :type java_component_envelope: ~azure.mgmt.appcontainers.models.JavaComponent + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns JavaComponent. The JavaComponent is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.JavaComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + java_component_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.JavaComponent]: + """Update properties of a Java Component. + + Patches a Java Component using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the Java Component. Required. + :type name: str + :param java_component_envelope: Configuration details of the Java Component. Required. + :type java_component_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns JavaComponent. The JavaComponent is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.JavaComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + java_component_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.JavaComponent]: + """Update properties of a Java Component. + + Patches a Java Component using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the Java Component. Required. + :type name: str + :param java_component_envelope: Configuration details of the Java Component. Required. + :type java_component_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns JavaComponent. The JavaComponent is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.JavaComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + java_component_envelope: Union[_models.JavaComponent, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.JavaComponent]: + """Update properties of a Java Component. + + Patches a Java Component using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the Java Component. Required. + :type name: str + :param java_component_envelope: Configuration details of the Java Component. Is one of the + following types: JavaComponent, JSON, IO[bytes] Required. + :type java_component_envelope: ~azure.mgmt.appcontainers.models.JavaComponent or JSON or + IO[bytes] + :return: An instance of AsyncLROPoller that returns JavaComponent. The JavaComponent is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.JavaComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.JavaComponent] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("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, + environment_name=environment_name, + name=name, + java_component_envelope=java_component_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.JavaComponent, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.JavaComponent].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.JavaComponent]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _delete_initial( + self, resource_group_name: str, environment_name: str, name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_java_components_delete_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + name=name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = 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]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, resource_group_name: str, environment_name: str, name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Delete a Java Component. + + Delete a Java Component. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the Java Component. Required. + :type name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + environment_name=environment_name, + name=name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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, environment_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.JavaComponent"]: + """Get the Java Components for a managed environment. + + Get the Java Components for a managed environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :return: An iterator like instance of JavaComponent + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.JavaComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.JavaComponent]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_java_components_list_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.JavaComponent], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class LogicAppsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`logic_apps` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, container_app_name: str, logic_app_name: str, **kwargs: Any + ) -> _models.LogicApp: + """Gets a logic app extension resource. + + Gets a logic app extension resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param logic_app_name: Name of the Logic App, the extension resource. Required. + :type logic_app_name: str + :return: LogicApp. The LogicApp is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.LogicApp + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.LogicApp] = kwargs.pop("cls", None) + + _request = build_logic_apps_get_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + logic_app_name=logic_app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.LogicApp, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def create_or_update( + self, + resource_group_name: str, + container_app_name: str, + logic_app_name: str, + resource: _models.LogicApp, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.LogicApp: + """Create or update a Logic App extension resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param logic_app_name: Name of the Logic App, the extension resource. Required. + :type logic_app_name: str + :param resource: Logic app resource properties. Required. + :type resource: ~azure.mgmt.appcontainers.models.LogicApp + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: LogicApp. The LogicApp is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.LogicApp + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + container_app_name: str, + logic_app_name: str, + resource: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.LogicApp: + """Create or update a Logic App extension resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param logic_app_name: Name of the Logic App, the extension resource. Required. + :type logic_app_name: str + :param resource: Logic app resource properties. Required. + :type resource: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: LogicApp. The LogicApp is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.LogicApp + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + container_app_name: str, + logic_app_name: str, + resource: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.LogicApp: + """Create or update a Logic App extension resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param logic_app_name: Name of the Logic App, the extension resource. Required. + :type logic_app_name: str + :param resource: Logic app resource properties. 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: LogicApp. The LogicApp is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.LogicApp + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create_or_update( + self, + resource_group_name: str, + container_app_name: str, + logic_app_name: str, + resource: Union[_models.LogicApp, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.LogicApp: + """Create or update a Logic App extension resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param logic_app_name: Name of the Logic App, the extension resource. Required. + :type logic_app_name: str + :param resource: Logic app resource properties. Is one of the following types: LogicApp, JSON, + IO[bytes] Required. + :type resource: ~azure.mgmt.appcontainers.models.LogicApp or JSON or IO[bytes] + :return: LogicApp. The LogicApp is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.LogicApp + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.LogicApp] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(resource, (IOBase, bytes)): + _content = resource + else: + _content = json.dumps(resource, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_logic_apps_create_or_update_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + logic_app_name=logic_app_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.LogicApp, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def delete( + self, resource_group_name: str, container_app_name: str, logic_app_name: str, **kwargs: Any + ) -> None: + """Deletes a Logic App extension resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param logic_app_name: Name of the Logic App, the extension resource. Required. + :type logic_app_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_logic_apps_delete_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + logic_app_name=logic_app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await 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) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @overload + async def deploy_workflow_artifacts( + self, + resource_group_name: str, + container_app_name: str, + logic_app_name: str, + workflow_artifacts: Optional[_models.WorkflowArtifacts] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> None: + """Creates or updates the artifacts for the logic app. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param logic_app_name: Name of the Logic App, the extension resource. Required. + :type logic_app_name: str + :param workflow_artifacts: Application settings and files of the workflow. Default value is + None. + :type workflow_artifacts: ~azure.mgmt.appcontainers.models.WorkflowArtifacts + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def deploy_workflow_artifacts( + self, + resource_group_name: str, + container_app_name: str, + logic_app_name: str, + workflow_artifacts: Optional[JSON] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> None: + """Creates or updates the artifacts for the logic app. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param logic_app_name: Name of the Logic App, the extension resource. Required. + :type logic_app_name: str + :param workflow_artifacts: Application settings and files of the workflow. Default value is + None. + :type workflow_artifacts: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def deploy_workflow_artifacts( + self, + resource_group_name: str, + container_app_name: str, + logic_app_name: str, + workflow_artifacts: Optional[IO[bytes]] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> None: + """Creates or updates the artifacts for the logic app. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param logic_app_name: Name of the Logic App, the extension resource. Required. + :type logic_app_name: str + :param workflow_artifacts: Application settings and files of the workflow. Default value is + None. + :type workflow_artifacts: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def deploy_workflow_artifacts( + self, + resource_group_name: str, + container_app_name: str, + logic_app_name: str, + workflow_artifacts: Optional[Union[_models.WorkflowArtifacts, JSON, IO[bytes]]] = None, + **kwargs: Any + ) -> None: + """Creates or updates the artifacts for the logic app. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param logic_app_name: Name of the Logic App, the extension resource. Required. + :type logic_app_name: str + :param workflow_artifacts: Application settings and files of the workflow. Is one of the + following types: WorkflowArtifacts, JSON, IO[bytes] Default value is None. + :type workflow_artifacts: ~azure.mgmt.appcontainers.models.WorkflowArtifacts or JSON or + IO[bytes] + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if workflow_artifacts else None + cls: ClsType[None] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" if workflow_artifacts else None + _content = None + if isinstance(workflow_artifacts, (IOBase, bytes)): + _content = workflow_artifacts + else: + if workflow_artifacts is not None: + _content = json.dumps(workflow_artifacts, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + else: + _content = None + + _request = build_logic_apps_deploy_workflow_artifacts_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + logic_app_name=logic_app_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace_async + async def list_workflows_connections( + self, resource_group_name: str, container_app_name: str, logic_app_name: str, **kwargs: Any + ) -> _models.WorkflowEnvelope: + """Gets logic app's connections. + + Gets logic app's connections. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param logic_app_name: Name of the Logic App, the extension resource. Required. + :type logic_app_name: str + :return: WorkflowEnvelope. The WorkflowEnvelope is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.WorkflowEnvelope + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.WorkflowEnvelope] = kwargs.pop("cls", None) + + _request = build_logic_apps_list_workflows_connections_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + logic_app_name=logic_app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.WorkflowEnvelope, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def invoke( + self, + resource_group_name: str, + container_app_name: str, + logic_app_name: str, + *, + x_ms_logic_apps_proxy_path: str, + x_ms_logic_apps_proxy_method: Union[str, _models.LogicAppsProxyMethod], + **kwargs: Any + ) -> _models.Object: + """Proxies a the API call to the logic app backed by the container app. + + Proxies a the API call to the logic app backed by the container app. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param logic_app_name: Name of the Logic App, the extension resource. Required. + :type logic_app_name: str + :keyword x_ms_logic_apps_proxy_path: The proxy path for the API call. Required. + :paramtype x_ms_logic_apps_proxy_path: str + :keyword x_ms_logic_apps_proxy_method: The proxy method for the API call. Known values are: + "GET" and "POST". Required. + :paramtype x_ms_logic_apps_proxy_method: str or + ~azure.mgmt.appcontainers.models.LogicAppsProxyMethod + :return: Object. The Object is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Object + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.Object] = kwargs.pop("cls", None) + + _request = build_logic_apps_invoke_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + logic_app_name=logic_app_name, + subscription_id=self._config.subscription_id, + x_ms_logic_apps_proxy_path=x_ms_logic_apps_proxy_path, + x_ms_logic_apps_proxy_method=x_ms_logic_apps_proxy_method, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Object, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def get_workflow( + self, resource_group_name: str, container_app_name: str, logic_app_name: str, workflow_name: str, **kwargs: Any + ) -> _models.WorkflowEnvelope: + """Get workflow information by its name. + + Get workflow information by its name. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param logic_app_name: Name of the Logic App, the extension resource. Required. + :type logic_app_name: str + :param workflow_name: Workflow name. Required. + :type workflow_name: str + :return: WorkflowEnvelope. The WorkflowEnvelope is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.WorkflowEnvelope + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.WorkflowEnvelope] = kwargs.pop("cls", None) + + _request = build_logic_apps_get_workflow_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + logic_app_name=logic_app_name, + workflow_name=workflow_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.WorkflowEnvelope, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def list_workflows( + self, resource_group_name: str, container_app_name: str, logic_app_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.WorkflowEnvelope"]: + """List the workflows for a logic app. + + List the workflows for a logic app. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param logic_app_name: Name of the Logic App, the extension resource. Required. + :type logic_app_name: str + :return: An iterator like instance of WorkflowEnvelope + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.WorkflowEnvelope] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.WorkflowEnvelope]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_logic_apps_list_workflows_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + logic_app_name=logic_app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.WorkflowEnvelope], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class ContainerAppsAuthConfigsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`container_apps_auth_configs` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, container_app_name: str, auth_config_name: str, **kwargs: Any + ) -> _models.AuthConfig: + """Get a AuthConfig of a Container App. + + Get a AuthConfig of a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param auth_config_name: Name of the Container App AuthConfig. Required. + :type auth_config_name: str + :return: AuthConfig. The AuthConfig is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.AuthConfig + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.AuthConfig] = kwargs.pop("cls", None) + + _request = build_container_apps_auth_configs_get_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + auth_config_name=auth_config_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.AuthConfig, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def create_or_update( + self, + resource_group_name: str, + container_app_name: str, + auth_config_name: str, + auth_config_envelope: _models.AuthConfig, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AuthConfig: + """Create or update the AuthConfig for a Container App. + + Create or update the AuthConfig for a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param auth_config_name: Name of the Container App AuthConfig. Required. + :type auth_config_name: str + :param auth_config_envelope: Properties used to create a Container App AuthConfig. Required. + :type auth_config_envelope: ~azure.mgmt.appcontainers.models.AuthConfig + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: AuthConfig. The AuthConfig is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.AuthConfig + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + container_app_name: str, + auth_config_name: str, + auth_config_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AuthConfig: + """Create or update the AuthConfig for a Container App. + + Create or update the AuthConfig for a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param auth_config_name: Name of the Container App AuthConfig. Required. + :type auth_config_name: str + :param auth_config_envelope: Properties used to create a Container App AuthConfig. Required. + :type auth_config_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: AuthConfig. The AuthConfig is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.AuthConfig + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + container_app_name: str, + auth_config_name: str, + auth_config_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AuthConfig: + """Create or update the AuthConfig for a Container App. + + Create or update the AuthConfig for a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param auth_config_name: Name of the Container App AuthConfig. Required. + :type auth_config_name: str + :param auth_config_envelope: Properties used to create a Container App AuthConfig. Required. + :type auth_config_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: AuthConfig. The AuthConfig is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.AuthConfig + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create_or_update( + self, + resource_group_name: str, + container_app_name: str, + auth_config_name: str, + auth_config_envelope: Union[_models.AuthConfig, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.AuthConfig: + """Create or update the AuthConfig for a Container App. + + Create or update the AuthConfig for a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param auth_config_name: Name of the Container App AuthConfig. Required. + :type auth_config_name: str + :param auth_config_envelope: Properties used to create a Container App AuthConfig. Is one of + the following types: AuthConfig, JSON, IO[bytes] Required. + :type auth_config_envelope: ~azure.mgmt.appcontainers.models.AuthConfig or JSON or IO[bytes] + :return: AuthConfig. The AuthConfig is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.AuthConfig + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.AuthConfig] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(auth_config_envelope, (IOBase, bytes)): + _content = auth_config_envelope + else: + _content = json.dumps(auth_config_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_container_apps_auth_configs_create_or_update_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + auth_config_name=auth_config_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.AuthConfig, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def delete( + self, resource_group_name: str, container_app_name: str, auth_config_name: str, **kwargs: Any + ) -> None: + """Delete a Container App AuthConfig. + + Delete a Container App AuthConfig. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param auth_config_name: Name of the Container App AuthConfig. Required. + :type auth_config_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_container_apps_auth_configs_delete_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + auth_config_name=auth_config_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await 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) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list_by_container_app( + self, resource_group_name: str, container_app_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.AuthConfig"]: + """Get the Container App AuthConfigs in a given resource group. + + Get the Container App AuthConfigs in a given resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :return: An iterator like instance of AuthConfig + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.AuthConfig] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.AuthConfig]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_container_apps_auth_configs_list_by_container_app_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.AuthConfig], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class BuildersOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`builders` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get(self, resource_group_name: str, builder_name: str, **kwargs: Any) -> _models.BuilderResource: + """Get a BuilderResource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :return: BuilderResource. The BuilderResource is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.BuilderResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) + + _request = build_builders_get_request( + resource_group_name=resource_group_name, + builder_name=builder_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.BuilderResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + builder_name: str, + builder_envelope: Union[_models.BuilderResource, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(builder_envelope, (IOBase, bytes)): + _content = builder_envelope + else: + _content = json.dumps(builder_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_builders_create_or_update_request( + resource_group_name=resource_group_name, + builder_name=builder_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + builder_name: str, + builder_envelope: _models.BuilderResource, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.BuilderResource]: + """Create or update a BuilderResource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :param builder_envelope: Resource create parameters. Required. + :type builder_envelope: ~azure.mgmt.appcontainers.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 BuilderResource. The BuilderResource is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.BuilderResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + builder_name: str, + builder_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.BuilderResource]: + """Create or update a BuilderResource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :param builder_envelope: Resource create parameters. Required. + :type builder_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns BuilderResource. The BuilderResource is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.BuilderResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + builder_name: str, + builder_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.BuilderResource]: + """Create or update a BuilderResource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :param builder_envelope: Resource create parameters. Required. + :type builder_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns BuilderResource. The BuilderResource is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.BuilderResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, + resource_group_name: str, + builder_name: str, + builder_envelope: Union[_models.BuilderResource, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.BuilderResource]: + """Create or update a BuilderResource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :param builder_envelope: Resource create parameters. Is one of the following types: + BuilderResource, JSON, IO[bytes] Required. + :type builder_envelope: ~azure.mgmt.appcontainers.models.BuilderResource or JSON or IO[bytes] + :return: An instance of AsyncLROPoller that returns BuilderResource. The BuilderResource is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.BuilderResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + 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, + builder_name=builder_name, + builder_envelope=builder_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.BuilderResource, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **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 _update_initial( + self, + resource_group_name: str, + builder_name: str, + builder_envelope: Union[_models.BuilderResourceUpdate, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(builder_envelope, (IOBase, bytes)): + _content = builder_envelope + else: + _content = json.dumps(builder_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_builders_update_request( + resource_group_name=resource_group_name, + builder_name=builder_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_update( + self, + resource_group_name: str, + builder_name: str, + builder_envelope: _models.BuilderResourceUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.BuilderResource]: + """Update a BuilderResource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :param builder_envelope: The resource properties to be updated. Required. + :type builder_envelope: ~azure.mgmt.appcontainers.models.BuilderResourceUpdate + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns BuilderResource. The BuilderResource is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.BuilderResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_update( + self, + resource_group_name: str, + builder_name: str, + builder_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.BuilderResource]: + """Update a BuilderResource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :param builder_envelope: The resource properties to be updated. Required. + :type builder_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns BuilderResource. The BuilderResource is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.BuilderResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_update( + self, + resource_group_name: str, + builder_name: str, + builder_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.BuilderResource]: + """Update a BuilderResource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :param builder_envelope: The resource properties to be updated. Required. + :type builder_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns BuilderResource. The BuilderResource is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.BuilderResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_update( + self, + resource_group_name: str, + builder_name: str, + builder_envelope: Union[_models.BuilderResourceUpdate, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.BuilderResource]: + """Update a BuilderResource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :param builder_envelope: The resource properties to be updated. Is one of the following types: + BuilderResourceUpdate, JSON, IO[bytes] Required. + :type builder_envelope: ~azure.mgmt.appcontainers.models.BuilderResourceUpdate or JSON or + IO[bytes] + :return: An instance of AsyncLROPoller that returns BuilderResource. The BuilderResource is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.BuilderResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + 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._update_initial( + resource_group_name=resource_group_name, + builder_name=builder_name, + builder_envelope=builder_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.BuilderResource, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **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(self, resource_group_name: str, builder_name: str, **kwargs: Any) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_builders_delete_request( + resource_group_name=resource_group_name, + builder_name=builder_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = 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]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete(self, resource_group_name: str, builder_name: str, **kwargs: Any) -> AsyncLROPoller[None]: + """Delete a BuilderResource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + builder_name=builder_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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_by_resource_group( + self, resource_group_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.BuilderResource"]: + """List BuilderResource resources by resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of BuilderResource + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.BuilderResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.BuilderResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_builders_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.BuilderResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace + def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.BuilderResource"]: + """List BuilderResource resources by subscription ID. + + :return: An iterator like instance of BuilderResource + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.BuilderResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.BuilderResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_builders_list_by_subscription_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.BuilderResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class BuildsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`builds` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, builder_name: str, build_name: str, **kwargs: Any + ) -> _models.BuildResource: + """Get a BuildResource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :param build_name: The name of a build. Required. + :type build_name: str + :return: BuildResource. The BuildResource is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.BuildResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.BuildResource] = kwargs.pop("cls", None) + + _request = build_builds_get_request( + resource_group_name=resource_group_name, + builder_name=builder_name, + build_name=build_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.BuildResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + builder_name: str, + build_name: str, + build_envelope: Union[_models.BuildResource, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(build_envelope, (IOBase, bytes)): + _content = build_envelope + else: + _content = json.dumps(build_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_builds_create_or_update_request( + resource_group_name=resource_group_name, + builder_name=builder_name, + build_name=build_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + builder_name: str, + build_name: str, + build_envelope: _models.BuildResource, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.BuildResource]: + """Create a BuildResource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :param build_name: The name of a build. Required. + :type build_name: str + :param build_envelope: Resource create or update parameters. Required. + :type build_envelope: ~azure.mgmt.appcontainers.models.BuildResource + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns BuildResource. The BuildResource is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.BuildResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + builder_name: str, + build_name: str, + build_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.BuildResource]: + """Create a BuildResource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :param build_name: The name of a build. Required. + :type build_name: str + :param build_envelope: Resource create or update parameters. Required. + :type build_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns BuildResource. The BuildResource is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.BuildResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + builder_name: str, + build_name: str, + build_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.BuildResource]: + """Create a BuildResource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :param build_name: The name of a build. Required. + :type build_name: str + :param build_envelope: Resource create or update parameters. Required. + :type build_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns BuildResource. The BuildResource is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.BuildResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, + resource_group_name: str, + builder_name: str, + build_name: str, + build_envelope: Union[_models.BuildResource, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.BuildResource]: + """Create a BuildResource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :param build_name: The name of a build. Required. + :type build_name: str + :param build_envelope: Resource create or update parameters. Is one of the following types: + BuildResource, JSON, IO[bytes] Required. + :type build_envelope: ~azure.mgmt.appcontainers.models.BuildResource or JSON or IO[bytes] + :return: An instance of AsyncLROPoller that returns BuildResource. The BuildResource is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.BuildResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.BuildResource] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + builder_name=builder_name, + build_name=build_name, + build_envelope=build_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.BuildResource, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.BuildResource].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.BuildResource]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _delete_initial( + self, resource_group_name: str, builder_name: str, build_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_builds_delete_request( + resource_group_name=resource_group_name, + builder_name=builder_name, + build_name=build_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = 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]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, resource_group_name: str, builder_name: str, build_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Delete a BuildResource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :param build_name: The name of a build. Required. + :type build_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + builder_name=builder_name, + build_name=build_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + +class ConnectedEnvironmentsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`connected_environments` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, connected_environment_name: str, **kwargs: Any + ) -> _models.ConnectedEnvironment: + """Get the properties of an connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :return: ConnectedEnvironment. The ConnectedEnvironment is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironment + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ConnectedEnvironment] = kwargs.pop("cls", None) + + _request = build_connected_environments_get_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ConnectedEnvironment, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + connected_environment_name: str, + environment_envelope: Union[_models.ConnectedEnvironment, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(environment_envelope, (IOBase, bytes)): + _content = environment_envelope + else: + _content = json.dumps(environment_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_connected_environments_create_or_update_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + environment_envelope: _models.ConnectedEnvironment, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ConnectedEnvironment]: + """Creates or updates an connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param environment_envelope: Configuration details of the connectedEnvironment. Required. + :type environment_envelope: ~azure.mgmt.appcontainers.models.ConnectedEnvironment + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ConnectedEnvironment. The + ConnectedEnvironment is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + environment_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ConnectedEnvironment]: + """Creates or updates an connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param environment_envelope: Configuration details of the connectedEnvironment. Required. + :type environment_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ConnectedEnvironment. The + ConnectedEnvironment is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + environment_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ConnectedEnvironment]: + """Creates or updates an connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param environment_envelope: Configuration details of the connectedEnvironment. Required. + :type environment_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ConnectedEnvironment. The + ConnectedEnvironment is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + environment_envelope: Union[_models.ConnectedEnvironment, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.ConnectedEnvironment]: + """Creates or updates an connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param environment_envelope: Configuration details of the connectedEnvironment. Is one of the + following types: ConnectedEnvironment, JSON, IO[bytes] Required. + :type environment_envelope: ~azure.mgmt.appcontainers.models.ConnectedEnvironment or JSON or + IO[bytes] + :return: An instance of AsyncLROPoller that returns ConnectedEnvironment. The + ConnectedEnvironment is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ConnectedEnvironment] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + environment_envelope=environment_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.ConnectedEnvironment, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.ConnectedEnvironment].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.ConnectedEnvironment]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + @overload + async def update( + self, + resource_group_name: str, + connected_environment_name: str, + environment_envelope: Optional[_models.ConnectedEnvironmentPatchResource] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ConnectedEnvironment: + """Update connected Environment's properties. + + Patches a Managed Environment. Only patching of tags is supported currently. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param environment_envelope: Configuration details of the connectedEnvironment. Default value + is None. + :type environment_envelope: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentPatchResource + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ConnectedEnvironment. The ConnectedEnvironment is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironment + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update( + self, + resource_group_name: str, + connected_environment_name: str, + environment_envelope: Optional[JSON] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ConnectedEnvironment: + """Update connected Environment's properties. + + Patches a Managed Environment. Only patching of tags is supported currently. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param environment_envelope: Configuration details of the connectedEnvironment. Default value + is None. + :type environment_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ConnectedEnvironment. The ConnectedEnvironment is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironment + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update( + self, + resource_group_name: str, + connected_environment_name: str, + environment_envelope: Optional[IO[bytes]] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ConnectedEnvironment: + """Update connected Environment's properties. + + Patches a Managed Environment. Only patching of tags is supported currently. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param environment_envelope: Configuration details of the connectedEnvironment. Default value + is None. + :type environment_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ConnectedEnvironment. The ConnectedEnvironment is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironment + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def update( + self, + resource_group_name: str, + connected_environment_name: str, + environment_envelope: Optional[Union[_models.ConnectedEnvironmentPatchResource, JSON, IO[bytes]]] = None, + **kwargs: Any + ) -> _models.ConnectedEnvironment: + """Update connected Environment's properties. + + Patches a Managed Environment. Only patching of tags is supported currently. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param environment_envelope: Configuration details of the connectedEnvironment. Is one of the + following types: ConnectedEnvironmentPatchResource, JSON, IO[bytes] Default value is None. + :type environment_envelope: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentPatchResource + or JSON or IO[bytes] + :return: ConnectedEnvironment. The ConnectedEnvironment is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironment + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if environment_envelope else None + cls: ClsType[_models.ConnectedEnvironment] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" if environment_envelope else None + _content = None + if isinstance(environment_envelope, (IOBase, bytes)): + _content = environment_envelope + else: + if environment_envelope is not None: + _content = json.dumps(environment_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + else: + _content = None + + _request = build_connected_environments_update_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ConnectedEnvironment, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _delete_initial( + self, resource_group_name: str, connected_environment_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_connected_environments_delete_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, resource_group_name: str, connected_environment_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Delete an connectedEnvironment. + + Delete an connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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_by_resource_group( + self, resource_group_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.ConnectedEnvironment"]: + """Get all connectedEnvironments in a resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of ConnectedEnvironment + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.ConnectedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ConnectedEnvironment]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_connected_environments_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ConnectedEnvironment], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace + def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.ConnectedEnvironment"]: + """Get all connectedEnvironments for a subscription. + + Get all connectedEnvironments for a subscription. + + :return: An iterator like instance of ConnectedEnvironment + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.ConnectedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ConnectedEnvironment]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_connected_environments_list_by_subscription_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ConnectedEnvironment], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @overload + async def check_name_availability( + self, + resource_group_name: str, + connected_environment_name: str, + check_name_availability_request: _models.CheckNameAvailabilityRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.CheckNameAvailabilityResponse: + """Checks the resource connectedEnvironmentName availability. + + Checks if resource connectedEnvironmentName is available. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param check_name_availability_request: The check connectedEnvironmentName availability + request. Required. + :type check_name_availability_request: + ~azure.mgmt.appcontainers.models.CheckNameAvailabilityRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: CheckNameAvailabilityResponse. The CheckNameAvailabilityResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.CheckNameAvailabilityResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def check_name_availability( + self, + resource_group_name: str, + connected_environment_name: str, + check_name_availability_request: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.CheckNameAvailabilityResponse: + """Checks the resource connectedEnvironmentName availability. + + Checks if resource connectedEnvironmentName is available. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param check_name_availability_request: The check connectedEnvironmentName availability + request. Required. + :type check_name_availability_request: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: CheckNameAvailabilityResponse. The CheckNameAvailabilityResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.CheckNameAvailabilityResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def check_name_availability( + self, + resource_group_name: str, + connected_environment_name: str, + check_name_availability_request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.CheckNameAvailabilityResponse: + """Checks the resource connectedEnvironmentName availability. + + Checks if resource connectedEnvironmentName is available. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param check_name_availability_request: The check connectedEnvironmentName availability + request. Required. + :type check_name_availability_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: CheckNameAvailabilityResponse. The CheckNameAvailabilityResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.CheckNameAvailabilityResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def check_name_availability( + self, + resource_group_name: str, + connected_environment_name: str, + check_name_availability_request: Union[_models.CheckNameAvailabilityRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.CheckNameAvailabilityResponse: + """Checks the resource connectedEnvironmentName availability. + + Checks if resource connectedEnvironmentName is available. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param check_name_availability_request: The check connectedEnvironmentName availability + request. Is one of the following types: CheckNameAvailabilityRequest, JSON, IO[bytes] Required. + :type check_name_availability_request: + ~azure.mgmt.appcontainers.models.CheckNameAvailabilityRequest or JSON or IO[bytes] + :return: CheckNameAvailabilityResponse. The CheckNameAvailabilityResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.CheckNameAvailabilityResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.CheckNameAvailabilityResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(check_name_availability_request, (IOBase, bytes)): + _content = check_name_availability_request + else: + _content = json.dumps(check_name_availability_request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_connected_environments_check_name_availability_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.CheckNameAvailabilityResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class CertificatesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`certificates` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, environment_name: str, certificate_name: str, **kwargs: Any + ) -> _models.Certificate: + """Get the specified Certificate. + + Get the specified Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :return: Certificate. The Certificate is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Certificate + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.Certificate] = kwargs.pop("cls", None) + + _request = build_certificates_get_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + certificate_name=certificate_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Certificate, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def create_or_update( + self, + resource_group_name: str, + environment_name: str, + certificate_name: str, + certificate_envelope: Optional[_models.Certificate] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Certificate: + """Create or Update a Certificate. + + Create or Update a Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :param certificate_envelope: Certificate to be created or updated. Default value is None. + :type certificate_envelope: ~azure.mgmt.appcontainers.models.Certificate + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: Certificate. The Certificate is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Certificate + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + environment_name: str, + certificate_name: str, + certificate_envelope: Optional[JSON] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Certificate: + """Create or Update a Certificate. + + Create or Update a Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :param certificate_envelope: Certificate to be created or updated. Default value is None. + :type certificate_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: Certificate. The Certificate is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Certificate + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + environment_name: str, + certificate_name: str, + certificate_envelope: Optional[IO[bytes]] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Certificate: + """Create or Update a Certificate. + + Create or Update a Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :param certificate_envelope: Certificate to be created or updated. Default value is None. + :type certificate_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: Certificate. The Certificate is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Certificate + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create_or_update( + self, + resource_group_name: str, + environment_name: str, + certificate_name: str, + certificate_envelope: Optional[Union[_models.Certificate, JSON, IO[bytes]]] = None, + **kwargs: Any + ) -> _models.Certificate: + """Create or Update a Certificate. + + Create or Update a Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :param certificate_envelope: Certificate to be created or updated. Is one of the following + types: Certificate, JSON, IO[bytes] Default value is None. + :type certificate_envelope: ~azure.mgmt.appcontainers.models.Certificate or JSON or IO[bytes] + :return: Certificate. The Certificate is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Certificate + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if certificate_envelope else None + cls: ClsType[_models.Certificate] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" if certificate_envelope else None + _content = None + if isinstance(certificate_envelope, (IOBase, bytes)): + _content = certificate_envelope + else: + if certificate_envelope is not None: + _content = json.dumps(certificate_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + else: + _content = None + + _request = build_certificates_create_or_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + certificate_name=certificate_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Certificate, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def update( + self, + resource_group_name: str, + environment_name: str, + certificate_name: str, + certificate_envelope: _models.CertificatePatch, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Certificate: + """Update properties of a certificate. + + Patches a certificate. Currently only patching of tags is supported. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :param certificate_envelope: Properties of a certificate that need to be updated. Required. + :type certificate_envelope: ~azure.mgmt.appcontainers.models.CertificatePatch + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: Certificate. The Certificate is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Certificate + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update( + self, + resource_group_name: str, + environment_name: str, + certificate_name: str, + certificate_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Certificate: + """Update properties of a certificate. + + Patches a certificate. Currently only patching of tags is supported. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :param certificate_envelope: Properties of a certificate that need to be updated. Required. + :type certificate_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: Certificate. The Certificate is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Certificate + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update( + self, + resource_group_name: str, + environment_name: str, + certificate_name: str, + certificate_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Certificate: + """Update properties of a certificate. + + Patches a certificate. Currently only patching of tags is supported. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :param certificate_envelope: Properties of a certificate that need to be updated. Required. + :type certificate_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: Certificate. The Certificate is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Certificate + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def update( + self, + resource_group_name: str, + environment_name: str, + certificate_name: str, + certificate_envelope: Union[_models.CertificatePatch, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.Certificate: + """Update properties of a certificate. + + Patches a certificate. Currently only patching of tags is supported. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :param certificate_envelope: Properties of a certificate that need to be updated. Is one of the + following types: CertificatePatch, JSON, IO[bytes] Required. + :type certificate_envelope: ~azure.mgmt.appcontainers.models.CertificatePatch or JSON or + IO[bytes] + :return: Certificate. The Certificate is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Certificate + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.Certificate] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(certificate_envelope, (IOBase, bytes)): + _content = certificate_envelope + else: + _content = json.dumps(certificate_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_certificates_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + certificate_name=certificate_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Certificate, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def delete( + self, resource_group_name: str, environment_name: str, certificate_name: str, **kwargs: Any + ) -> None: + """Deletes the specified Certificate. + + Deletes the specified Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_certificates_delete_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + certificate_name=certificate_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await 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) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list( + self, resource_group_name: str, environment_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.Certificate"]: + """Get the Certificates in a given managed environment. + + Get the Certificates in a given managed environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :return: An iterator like instance of Certificate + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.Certificate] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.Certificate]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_certificates_list_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Certificate], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class ConnectedEnvironmentsDaprComponentsOperations: # pylint: disable=name-too-long + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`connected_environments_dapr_components` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any + ) -> _models.DaprComponent: + """Get a dapr component. + + Get a dapr component. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connected environment. Required. + :type connected_environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :return: DaprComponent. The DaprComponent is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprComponent + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DaprComponent] = kwargs.pop("cls", None) + + _request = build_connected_environments_dapr_components_get_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + component_name=component_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DaprComponent, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + connected_environment_name: str, + component_name: str, + dapr_component_envelope: Union[_models.DaprComponent, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(dapr_component_envelope, (IOBase, bytes)): + _content = dapr_component_envelope + else: + _content = json.dumps(dapr_component_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_connected_environments_dapr_components_create_or_update_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + component_name=component_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + component_name: str, + dapr_component_envelope: _models.DaprComponent, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.DaprComponent]: + """Creates or updates a Dapr Component. + + Creates or updates a Dapr Component in a connected environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param dapr_component_envelope: Configuration details of the Dapr Component. Required. + :type dapr_component_envelope: ~azure.mgmt.appcontainers.models.DaprComponent + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns DaprComponent. The DaprComponent is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.DaprComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + component_name: str, + dapr_component_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.DaprComponent]: + """Creates or updates a Dapr Component. + + Creates or updates a Dapr Component in a connected environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param dapr_component_envelope: Configuration details of the Dapr Component. Required. + :type dapr_component_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns DaprComponent. The DaprComponent is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.DaprComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + component_name: str, + dapr_component_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.DaprComponent]: + """Creates or updates a Dapr Component. + + Creates or updates a Dapr Component in a connected environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param dapr_component_envelope: Configuration details of the Dapr Component. Required. + :type dapr_component_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns DaprComponent. The DaprComponent is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.DaprComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + component_name: str, + dapr_component_envelope: Union[_models.DaprComponent, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.DaprComponent]: + """Creates or updates a Dapr Component. + + Creates or updates a Dapr Component in a connected environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param dapr_component_envelope: Configuration details of the Dapr Component. Is one of the + following types: DaprComponent, JSON, IO[bytes] Required. + :type dapr_component_envelope: ~azure.mgmt.appcontainers.models.DaprComponent or JSON or + IO[bytes] + :return: An instance of AsyncLROPoller that returns DaprComponent. The DaprComponent is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.DaprComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DaprComponent] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + component_name=component_name, + dapr_component_envelope=dapr_component_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.DaprComponent, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.DaprComponent].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.DaprComponent]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _delete_initial( + self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_connected_environments_dapr_components_delete_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + component_name=component_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = 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]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Delete a Dapr Component. + + Delete a Dapr Component from a connected environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connected environment. Required. + :type connected_environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + component_name=component_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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, connected_environment_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.DaprComponent"]: + """Get the Dapr Components for a connected environment. + + Get the Dapr Components for a connected environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connected environment. Required. + :type connected_environment_name: str + :return: An iterator like instance of DaprComponent + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.DaprComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.DaprComponent]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_connected_environments_dapr_components_list_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.DaprComponent], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace_async + async def list_secrets( + self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any + ) -> _models.DaprSecretsCollection: + """List secrets for a dapr component. + + List secrets for a dapr component. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connected environment. Required. + :type connected_environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :return: DaprSecretsCollection. The DaprSecretsCollection is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprSecretsCollection + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DaprSecretsCollection] = kwargs.pop("cls", None) + + _request = build_connected_environments_dapr_components_list_secrets_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + component_name=component_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DaprSecretsCollection, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class DaprComponentsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`dapr_components` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, environment_name: str, component_name: str, **kwargs: Any + ) -> _models.DaprComponent: + """Get a dapr component. + + Get a dapr component. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :return: DaprComponent. The DaprComponent is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprComponent + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DaprComponent] = kwargs.pop("cls", None) + + _request = build_dapr_components_get_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + component_name=component_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DaprComponent, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def create_or_update( + self, + resource_group_name: str, + environment_name: str, + component_name: str, + dapr_component_envelope: _models.DaprComponent, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.DaprComponent: + """Creates or updates a Dapr Component. + + Creates or updates a Dapr Component in a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param dapr_component_envelope: Configuration details of the Dapr Component. Required. + :type dapr_component_envelope: ~azure.mgmt.appcontainers.models.DaprComponent + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: DaprComponent. The DaprComponent is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprComponent + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + environment_name: str, + component_name: str, + dapr_component_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.DaprComponent: + """Creates or updates a Dapr Component. + + Creates or updates a Dapr Component in a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param dapr_component_envelope: Configuration details of the Dapr Component. Required. + :type dapr_component_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: DaprComponent. The DaprComponent is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprComponent + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + environment_name: str, + component_name: str, + dapr_component_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.DaprComponent: + """Creates or updates a Dapr Component. + + Creates or updates a Dapr Component in a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param dapr_component_envelope: Configuration details of the Dapr Component. Required. + :type dapr_component_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: DaprComponent. The DaprComponent is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprComponent + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create_or_update( + self, + resource_group_name: str, + environment_name: str, + component_name: str, + dapr_component_envelope: Union[_models.DaprComponent, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.DaprComponent: + """Creates or updates a Dapr Component. + + Creates or updates a Dapr Component in a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param dapr_component_envelope: Configuration details of the Dapr Component. Is one of the + following types: DaprComponent, JSON, IO[bytes] Required. + :type dapr_component_envelope: ~azure.mgmt.appcontainers.models.DaprComponent or JSON or + IO[bytes] + :return: DaprComponent. The DaprComponent is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprComponent + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DaprComponent] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(dapr_component_envelope, (IOBase, bytes)): + _content = dapr_component_envelope + else: + _content = json.dumps(dapr_component_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_dapr_components_create_or_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + component_name=component_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DaprComponent, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def delete(self, resource_group_name: str, environment_name: str, component_name: str, **kwargs: Any) -> None: + """Delete a Dapr Component. + + Delete a Dapr Component from a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_dapr_components_delete_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + component_name=component_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await 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) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list( + self, resource_group_name: str, environment_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.DaprComponent"]: + """Get the Dapr Components for a managed environment. + + Get the Dapr Components for a managed environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :return: An iterator like instance of DaprComponent + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.DaprComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.DaprComponent]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_dapr_components_list_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.DaprComponent], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace_async + async def list_secrets( + self, resource_group_name: str, environment_name: str, component_name: str, **kwargs: Any + ) -> _models.DaprSecretsCollection: + """List secrets for a dapr component. + + List secrets for a dapr component. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :return: DaprSecretsCollection. The DaprSecretsCollection is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprSecretsCollection + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DaprSecretsCollection] = kwargs.pop("cls", None) + + _request = build_dapr_components_list_secrets_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + component_name=component_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DaprSecretsCollection, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class ConnectedEnvironmentsStoragesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`connected_environments_storages` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, connected_environment_name: str, storage_name: str, **kwargs: Any + ) -> _models.ConnectedEnvironmentStorage: + """Get storage for a connectedEnvironment. + + Get storage for a connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :return: ConnectedEnvironmentStorage. The ConnectedEnvironmentStorage is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ConnectedEnvironmentStorage] = kwargs.pop("cls", None) + + _request = build_connected_environments_storages_get_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + storage_name=storage_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ConnectedEnvironmentStorage, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + connected_environment_name: str, + storage_name: str, + storage_envelope: Union[_models.ConnectedEnvironmentStorage, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(storage_envelope, (IOBase, bytes)): + _content = storage_envelope + else: + _content = json.dumps(storage_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_connected_environments_storages_create_or_update_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + storage_name=storage_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + storage_name: str, + storage_envelope: _models.ConnectedEnvironmentStorage, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ConnectedEnvironmentStorage]: + """Create or update storage for a connectedEnvironment. + + Create or update storage for a connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :param storage_envelope: Configuration details of storage. Required. + :type storage_envelope: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ConnectedEnvironmentStorage. The + ConnectedEnvironmentStorage is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + storage_name: str, + storage_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ConnectedEnvironmentStorage]: + """Create or update storage for a connectedEnvironment. + + Create or update storage for a connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :param storage_envelope: Configuration details of storage. Required. + :type storage_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ConnectedEnvironmentStorage. The + ConnectedEnvironmentStorage is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + storage_name: str, + storage_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ConnectedEnvironmentStorage]: + """Create or update storage for a connectedEnvironment. + + Create or update storage for a connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :param storage_envelope: Configuration details of storage. Required. + :type storage_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ConnectedEnvironmentStorage. The + ConnectedEnvironmentStorage is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + storage_name: str, + storage_envelope: Union[_models.ConnectedEnvironmentStorage, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.ConnectedEnvironmentStorage]: + """Create or update storage for a connectedEnvironment. + + Create or update storage for a connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :param storage_envelope: Configuration details of storage. Is one of the following types: + ConnectedEnvironmentStorage, JSON, IO[bytes] Required. + :type storage_envelope: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage or JSON or + IO[bytes] + :return: An instance of AsyncLROPoller that returns ConnectedEnvironmentStorage. The + ConnectedEnvironmentStorage is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ConnectedEnvironmentStorage] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + storage_name=storage_name, + storage_envelope=storage_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.ConnectedEnvironmentStorage, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.ConnectedEnvironmentStorage].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.ConnectedEnvironmentStorage]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _delete_initial( + self, resource_group_name: str, connected_environment_name: str, storage_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_connected_environments_storages_delete_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + storage_name=storage_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = 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]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, resource_group_name: str, connected_environment_name: str, storage_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Delete storage for a connectedEnvironment. + + Delete storage for a connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + storage_name=storage_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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( + self, resource_group_name: str, connected_environment_name: str, **kwargs: Any + ) -> _models.ConnectedEnvironmentStoragesCollection: + """Get all storages for a connectedEnvironment. + + Get all storages for a connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :return: ConnectedEnvironmentStoragesCollection. The ConnectedEnvironmentStoragesCollection is + compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStoragesCollection + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ConnectedEnvironmentStoragesCollection] = kwargs.pop("cls", None) + + _request = build_connected_environments_storages_list_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ConnectedEnvironmentStoragesCollection, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class ManagedEnvironmentsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`managed_environments` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get(self, resource_group_name: str, environment_name: str, **kwargs: Any) -> _models.ManagedEnvironment: + """Get the properties of a Managed Environment. + + Get the properties of a Managed Environment used to host container apps. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :return: ManagedEnvironment. The ManagedEnvironment is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironment + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ManagedEnvironment] = kwargs.pop("cls", None) + + _request = build_managed_environments_get_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ManagedEnvironment, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + environment_name: str, + environment_envelope: Union[_models.ManagedEnvironment, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(environment_envelope, (IOBase, bytes)): + _content = environment_envelope + else: + _content = json.dumps(environment_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_managed_environments_create_or_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + environment_envelope: _models.ManagedEnvironment, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ManagedEnvironment]: + """Creates or updates a Managed Environment. + + Creates or updates a Managed Environment used to host container apps. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param environment_envelope: Configuration details of the Environment. Required. + :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ManagedEnvironment. The ManagedEnvironment + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + environment_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ManagedEnvironment]: + """Creates or updates a Managed Environment. + + Creates or updates a Managed Environment used to host container apps. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param environment_envelope: Configuration details of the Environment. Required. + :type environment_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ManagedEnvironment. The ManagedEnvironment + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + environment_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ManagedEnvironment]: + """Creates or updates a Managed Environment. + + Creates or updates a Managed Environment used to host container apps. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param environment_envelope: Configuration details of the Environment. Required. + :type environment_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ManagedEnvironment. The ManagedEnvironment + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + environment_envelope: Union[_models.ManagedEnvironment, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.ManagedEnvironment]: + """Creates or updates a Managed Environment. + + Creates or updates a Managed Environment used to host container apps. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param environment_envelope: Configuration details of the Environment. Is one of the following + types: ManagedEnvironment, JSON, IO[bytes] Required. + :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment or JSON or + IO[bytes] + :return: An instance of AsyncLROPoller that returns ManagedEnvironment. The ManagedEnvironment + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ManagedEnvironment] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + environment_name=environment_name, + environment_envelope=environment_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.ManagedEnvironment, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.ManagedEnvironment].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.ManagedEnvironment]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _update_initial( + self, + resource_group_name: str, + environment_name: str, + environment_envelope: Union[_models.ManagedEnvironment, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(environment_envelope, (IOBase, bytes)): + _content = environment_envelope + else: + _content = json.dumps(environment_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_managed_environments_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_update( + self, + resource_group_name: str, + environment_name: str, + environment_envelope: _models.ManagedEnvironment, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ManagedEnvironment]: + """Update Managed Environment's properties. + + Patches a Managed Environment using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param environment_envelope: Configuration details of the Environment. Required. + :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ManagedEnvironment. The ManagedEnvironment + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_update( + self, + resource_group_name: str, + environment_name: str, + environment_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ManagedEnvironment]: + """Update Managed Environment's properties. + + Patches a Managed Environment using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param environment_envelope: Configuration details of the Environment. Required. + :type environment_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ManagedEnvironment. The ManagedEnvironment + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_update( + self, + resource_group_name: str, + environment_name: str, + environment_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ManagedEnvironment]: + """Update Managed Environment's properties. + + Patches a Managed Environment using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param environment_envelope: Configuration details of the Environment. Required. + :type environment_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ManagedEnvironment. The ManagedEnvironment + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_update( + self, + resource_group_name: str, + environment_name: str, + environment_envelope: Union[_models.ManagedEnvironment, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.ManagedEnvironment]: + """Update Managed Environment's properties. + + Patches a Managed Environment using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param environment_envelope: Configuration details of the Environment. Is one of the following + types: ManagedEnvironment, JSON, IO[bytes] Required. + :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment or JSON or + IO[bytes] + :return: An instance of AsyncLROPoller that returns ManagedEnvironment. The ManagedEnvironment + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ManagedEnvironment] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("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, + environment_name=environment_name, + environment_envelope=environment_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.ManagedEnvironment, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.ManagedEnvironment].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.ManagedEnvironment]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _delete_initial( + self, resource_group_name: str, environment_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_managed_environments_delete_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, resource_group_name: str, environment_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Delete a Managed Environment. + + Delete a Managed Environment if it does not have any container apps. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + environment_name=environment_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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_by_resource_group( + self, resource_group_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.ManagedEnvironment"]: + """Get all the Environments in a resource group. + + Get all the Managed Environments in a resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of ManagedEnvironment + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ManagedEnvironment]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_managed_environments_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ManagedEnvironment], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace + def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.ManagedEnvironment"]: + """Get all Environments for a subscription. + + Get all Managed Environments for a subscription. + + :return: An iterator like instance of ManagedEnvironment + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ManagedEnvironment]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_managed_environments_list_by_subscription_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ManagedEnvironment], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace_async + async def get_auth_token( + self, resource_group_name: str, environment_name: str, **kwargs: Any + ) -> _models.EnvironmentAuthToken: + """Get auth token for a managed environment. + + Checks if resource name is available. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :return: EnvironmentAuthToken. The EnvironmentAuthToken is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.EnvironmentAuthToken + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.EnvironmentAuthToken] = kwargs.pop("cls", None) + + _request = build_managed_environments_get_auth_token_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.EnvironmentAuthToken, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def list_workload_profile_states( + self, resource_group_name: str, environment_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.WorkloadProfileStates"]: + """Get all workload Profile States for a Managed Environment.. + + Get all workload Profile States for a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :return: An iterator like instance of WorkloadProfileStates + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.WorkloadProfileStates] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.WorkloadProfileStates]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_managed_environments_list_workload_profile_states_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.WorkloadProfileStates], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class ManagedCertificatesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`managed_certificates` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, environment_name: str, managed_certificate_name: str, **kwargs: Any + ) -> _models.ManagedCertificate: + """Get the specified Managed Certificate. + + Get the specified Managed Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param managed_certificate_name: Name of the Managed Certificate. Required. + :type managed_certificate_name: str + :return: ManagedCertificate. The ManagedCertificate is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ManagedCertificate + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ManagedCertificate] = kwargs.pop("cls", None) + + _request = build_managed_certificates_get_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + managed_certificate_name=managed_certificate_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ManagedCertificate, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + environment_name: str, + managed_certificate_name: str, + managed_certificate_envelope: Optional[Union[_models.ManagedCertificate, JSON, IO[bytes]]] = None, + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if managed_certificate_envelope else None + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" if managed_certificate_envelope else None + _content = None + if isinstance(managed_certificate_envelope, (IOBase, bytes)): + _content = managed_certificate_envelope + else: + if managed_certificate_envelope is not None: + _content = json.dumps(managed_certificate_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + else: + _content = None + + _request = build_managed_certificates_create_or_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + managed_certificate_name=managed_certificate_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + managed_certificate_name: str, + managed_certificate_envelope: Optional[_models.ManagedCertificate] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ManagedCertificate]: + """Create or Update a Managed Certificate. + + Create or Update a Managed Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param managed_certificate_name: Name of the Managed Certificate. Required. + :type managed_certificate_name: str + :param managed_certificate_envelope: Managed Certificate to be created or updated. Default + value is None. + :type managed_certificate_envelope: ~azure.mgmt.appcontainers.models.ManagedCertificate + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ManagedCertificate. The ManagedCertificate + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedCertificate] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + managed_certificate_name: str, + managed_certificate_envelope: Optional[JSON] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ManagedCertificate]: + """Create or Update a Managed Certificate. + + Create or Update a Managed Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param managed_certificate_name: Name of the Managed Certificate. Required. + :type managed_certificate_name: str + :param managed_certificate_envelope: Managed Certificate to be created or updated. Default + value is None. + :type managed_certificate_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ManagedCertificate. The ManagedCertificate + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedCertificate] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + managed_certificate_name: str, + managed_certificate_envelope: Optional[IO[bytes]] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ManagedCertificate]: + """Create or Update a Managed Certificate. + + Create or Update a Managed Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param managed_certificate_name: Name of the Managed Certificate. Required. + :type managed_certificate_name: str + :param managed_certificate_envelope: Managed Certificate to be created or updated. Default + value is None. + :type managed_certificate_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ManagedCertificate. The ManagedCertificate + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedCertificate] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + managed_certificate_name: str, + managed_certificate_envelope: Optional[Union[_models.ManagedCertificate, JSON, IO[bytes]]] = None, + **kwargs: Any + ) -> AsyncLROPoller[_models.ManagedCertificate]: + """Create or Update a Managed Certificate. + + Create or Update a Managed Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param managed_certificate_name: Name of the Managed Certificate. Required. + :type managed_certificate_name: str + :param managed_certificate_envelope: Managed Certificate to be created or updated. Is one of + the following types: ManagedCertificate, JSON, IO[bytes] Default value is None. + :type managed_certificate_envelope: ~azure.mgmt.appcontainers.models.ManagedCertificate or JSON + or IO[bytes] + :return: An instance of AsyncLROPoller that returns ManagedCertificate. The ManagedCertificate + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedCertificate] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if managed_certificate_envelope else None + cls: ClsType[_models.ManagedCertificate] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + environment_name=environment_name, + managed_certificate_name=managed_certificate_name, + managed_certificate_envelope=managed_certificate_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.ManagedCertificate, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.ManagedCertificate].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.ManagedCertificate]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + @overload + async def update( + self, + resource_group_name: str, + environment_name: str, + managed_certificate_name: str, + managed_certificate_envelope: _models.ManagedCertificatePatch, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ManagedCertificate: + """Update tags of a managed certificate. + + Patches a managed certificate. Oly patching of tags is supported. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param managed_certificate_name: Name of the Managed Certificate. Required. + :type managed_certificate_name: str + :param managed_certificate_envelope: Properties of a managed certificate that need to be + updated. Required. + :type managed_certificate_envelope: ~azure.mgmt.appcontainers.models.ManagedCertificatePatch + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ManagedCertificate. The ManagedCertificate is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ManagedCertificate + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update( + self, + resource_group_name: str, + environment_name: str, + managed_certificate_name: str, + managed_certificate_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ManagedCertificate: + """Update tags of a managed certificate. + + Patches a managed certificate. Oly patching of tags is supported. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param managed_certificate_name: Name of the Managed Certificate. Required. + :type managed_certificate_name: str + :param managed_certificate_envelope: Properties of a managed certificate that need to be + updated. Required. + :type managed_certificate_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ManagedCertificate. The ManagedCertificate is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ManagedCertificate + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update( + self, + resource_group_name: str, + environment_name: str, + managed_certificate_name: str, + managed_certificate_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ManagedCertificate: + """Update tags of a managed certificate. + + Patches a managed certificate. Oly patching of tags is supported. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param managed_certificate_name: Name of the Managed Certificate. Required. + :type managed_certificate_name: str + :param managed_certificate_envelope: Properties of a managed certificate that need to be + updated. Required. + :type managed_certificate_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ManagedCertificate. The ManagedCertificate is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ManagedCertificate + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def update( + self, + resource_group_name: str, + environment_name: str, + managed_certificate_name: str, + managed_certificate_envelope: Union[_models.ManagedCertificatePatch, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.ManagedCertificate: + """Update tags of a managed certificate. + + Patches a managed certificate. Oly patching of tags is supported. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param managed_certificate_name: Name of the Managed Certificate. Required. + :type managed_certificate_name: str + :param managed_certificate_envelope: Properties of a managed certificate that need to be + updated. Is one of the following types: ManagedCertificatePatch, JSON, IO[bytes] Required. + :type managed_certificate_envelope: ~azure.mgmt.appcontainers.models.ManagedCertificatePatch or + JSON or IO[bytes] + :return: ManagedCertificate. The ManagedCertificate is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ManagedCertificate + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ManagedCertificate] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(managed_certificate_envelope, (IOBase, bytes)): + _content = managed_certificate_envelope + else: + _content = json.dumps(managed_certificate_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_managed_certificates_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + managed_certificate_name=managed_certificate_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ManagedCertificate, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def delete( + self, resource_group_name: str, environment_name: str, managed_certificate_name: str, **kwargs: Any + ) -> None: + """Deletes the specified Managed Certificate. + + Deletes the specified Managed Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param managed_certificate_name: Name of the Managed Certificate. Required. + :type managed_certificate_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_managed_certificates_delete_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + managed_certificate_name=managed_certificate_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await 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) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list( + self, resource_group_name: str, environment_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.ManagedCertificate"]: + """Get the Managed Certificates in a given managed environment. + + Get the Managed Certificates in a given managed environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :return: An iterator like instance of ManagedCertificate + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.ManagedCertificate] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ManagedCertificate]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_managed_certificates_list_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ManagedCertificate], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class DaprComponentResiliencyPoliciesOperations: # pylint: disable=name-too-long + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`dapr_component_resiliency_policies` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, environment_name: str, component_name: str, name: str, **kwargs: Any + ) -> _models.DaprComponentResiliencyPolicy: + """Get a Dapr component resiliency policy. + + Get a Dapr component resiliency policy. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param name: Name of the Dapr Component Resiliency Policy. Required. + :type name: str + :return: DaprComponentResiliencyPolicy. The DaprComponentResiliencyPolicy is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprComponentResiliencyPolicy + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DaprComponentResiliencyPolicy] = kwargs.pop("cls", None) + + _request = build_dapr_component_resiliency_policies_get_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + component_name=component_name, + name=name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DaprComponentResiliencyPolicy, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def create_or_update( + self, + resource_group_name: str, + environment_name: str, + component_name: str, + name: str, + dapr_component_resiliency_policy_envelope: _models.DaprComponentResiliencyPolicy, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.DaprComponentResiliencyPolicy: + """Creates or updates a Dapr component resiliency policy. + + Creates or updates a resiliency policy for a Dapr component. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param name: Name of the Dapr Component Resiliency Policy. Required. + :type name: str + :param dapr_component_resiliency_policy_envelope: Configuration details of the Dapr Component + Resiliency Policy. Required. + :type dapr_component_resiliency_policy_envelope: + ~azure.mgmt.appcontainers.models.DaprComponentResiliencyPolicy + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: DaprComponentResiliencyPolicy. The DaprComponentResiliencyPolicy is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprComponentResiliencyPolicy + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + environment_name: str, + component_name: str, + name: str, + dapr_component_resiliency_policy_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.DaprComponentResiliencyPolicy: + """Creates or updates a Dapr component resiliency policy. + + Creates or updates a resiliency policy for a Dapr component. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param name: Name of the Dapr Component Resiliency Policy. Required. + :type name: str + :param dapr_component_resiliency_policy_envelope: Configuration details of the Dapr Component + Resiliency Policy. Required. + :type dapr_component_resiliency_policy_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: DaprComponentResiliencyPolicy. The DaprComponentResiliencyPolicy is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprComponentResiliencyPolicy + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + environment_name: str, + component_name: str, + name: str, + dapr_component_resiliency_policy_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.DaprComponentResiliencyPolicy: + """Creates or updates a Dapr component resiliency policy. + + Creates or updates a resiliency policy for a Dapr component. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param name: Name of the Dapr Component Resiliency Policy. Required. + :type name: str + :param dapr_component_resiliency_policy_envelope: Configuration details of the Dapr Component + Resiliency Policy. Required. + :type dapr_component_resiliency_policy_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: DaprComponentResiliencyPolicy. The DaprComponentResiliencyPolicy is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprComponentResiliencyPolicy + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create_or_update( + self, + resource_group_name: str, + environment_name: str, + component_name: str, + name: str, + dapr_component_resiliency_policy_envelope: Union[_models.DaprComponentResiliencyPolicy, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.DaprComponentResiliencyPolicy: + """Creates or updates a Dapr component resiliency policy. + + Creates or updates a resiliency policy for a Dapr component. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param name: Name of the Dapr Component Resiliency Policy. Required. + :type name: str + :param dapr_component_resiliency_policy_envelope: Configuration details of the Dapr Component + Resiliency Policy. Is one of the following types: DaprComponentResiliencyPolicy, JSON, + IO[bytes] Required. + :type dapr_component_resiliency_policy_envelope: + ~azure.mgmt.appcontainers.models.DaprComponentResiliencyPolicy or JSON or IO[bytes] + :return: DaprComponentResiliencyPolicy. The DaprComponentResiliencyPolicy is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprComponentResiliencyPolicy + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DaprComponentResiliencyPolicy] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(dapr_component_resiliency_policy_envelope, (IOBase, bytes)): + _content = dapr_component_resiliency_policy_envelope + else: + _content = json.dumps(dapr_component_resiliency_policy_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_dapr_component_resiliency_policies_create_or_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + component_name=component_name, + name=name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DaprComponentResiliencyPolicy, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def delete( + self, resource_group_name: str, environment_name: str, component_name: str, name: str, **kwargs: Any + ) -> None: + """Delete a Dapr component resiliency policy. + + Delete a resiliency policy for a Dapr component. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param name: Name of the Dapr Component Resiliency Policy. Required. + :type name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_dapr_component_resiliency_policies_delete_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + component_name=component_name, + name=name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await 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) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list( + self, resource_group_name: str, environment_name: str, component_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.DaprComponentResiliencyPolicy"]: + """Get the resiliency policies for a Dapr component. + + Get the resiliency policies for a Dapr component. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :return: An iterator like instance of DaprComponentResiliencyPolicy + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.DaprComponentResiliencyPolicy] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.DaprComponentResiliencyPolicy]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_dapr_component_resiliency_policies_list_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + component_name=component_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.DaprComponentResiliencyPolicy], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class DaprSubscriptionsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`dapr_subscriptions` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, environment_name: str, name: str, **kwargs: Any + ) -> _models.DaprSubscription: + """Get a dapr subscription. + + Get a dapr subscription. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the Dapr Subscription. Required. + :type name: str + :return: DaprSubscription. The DaprSubscription is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprSubscription + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DaprSubscription] = kwargs.pop("cls", None) + + _request = build_dapr_subscriptions_get_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + name=name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DaprSubscription, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def create_or_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + dapr_subscription_envelope: _models.DaprSubscription, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.DaprSubscription: + """Creates or updates a Dapr subscription. + + Creates or updates a Dapr subscription in a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the Dapr Subscription. Required. + :type name: str + :param dapr_subscription_envelope: Configuration details of the Dapr subscription. Required. + :type dapr_subscription_envelope: ~azure.mgmt.appcontainers.models.DaprSubscription + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: DaprSubscription. The DaprSubscription is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprSubscription + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + dapr_subscription_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.DaprSubscription: + """Creates or updates a Dapr subscription. + + Creates or updates a Dapr subscription in a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the Dapr Subscription. Required. + :type name: str + :param dapr_subscription_envelope: Configuration details of the Dapr subscription. Required. + :type dapr_subscription_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: DaprSubscription. The DaprSubscription is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprSubscription + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + dapr_subscription_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.DaprSubscription: + """Creates or updates a Dapr subscription. + + Creates or updates a Dapr subscription in a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the Dapr Subscription. Required. + :type name: str + :param dapr_subscription_envelope: Configuration details of the Dapr subscription. Required. + :type dapr_subscription_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: DaprSubscription. The DaprSubscription is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprSubscription + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create_or_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + dapr_subscription_envelope: Union[_models.DaprSubscription, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.DaprSubscription: + """Creates or updates a Dapr subscription. + + Creates or updates a Dapr subscription in a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the Dapr Subscription. Required. + :type name: str + :param dapr_subscription_envelope: Configuration details of the Dapr subscription. Is one of + the following types: DaprSubscription, JSON, IO[bytes] Required. + :type dapr_subscription_envelope: ~azure.mgmt.appcontainers.models.DaprSubscription or JSON or + IO[bytes] + :return: DaprSubscription. The DaprSubscription is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprSubscription + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DaprSubscription] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(dapr_subscription_envelope, (IOBase, bytes)): + _content = dapr_subscription_envelope + else: + _content = json.dumps(dapr_subscription_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_dapr_subscriptions_create_or_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + name=name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DaprSubscription, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def delete(self, resource_group_name: str, environment_name: str, name: str, **kwargs: Any) -> None: + """Delete a Dapr subscription. + + Delete a Dapr subscription from a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the Dapr Subscription. Required. + :type name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_dapr_subscriptions_delete_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + name=name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await 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) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list( + self, resource_group_name: str, environment_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.DaprSubscription"]: + """Get the Dapr subscriptions for a managed environment. + + Get the Dapr subscriptions for a managed environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :return: An iterator like instance of DaprSubscription + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.DaprSubscription] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.DaprSubscription]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_dapr_subscriptions_list_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.DaprSubscription], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class MaintenanceConfigurationsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`maintenance_configurations` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, environment_name: str, config_name: str, **kwargs: Any + ) -> _models.MaintenanceConfigurationResource: + """Gets the maintenance configuration of a ManagedEnvironment . + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param config_name: Name of the Maintenance Configuration. Required. + :type config_name: str + :return: MaintenanceConfigurationResource. The MaintenanceConfigurationResource is compatible + with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.MaintenanceConfigurationResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.MaintenanceConfigurationResource] = kwargs.pop("cls", None) + + _request = build_maintenance_configurations_get_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + config_name=config_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.MaintenanceConfigurationResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def create_or_update( + self, + resource_group_name: str, + environment_name: str, + config_name: str, + maintenance_configuration_envelope: _models.MaintenanceConfigurationResource, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.MaintenanceConfigurationResource: + """Create or update the maintenance configuration for Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param config_name: Name of the Maintenance Configuration. Required. + :type config_name: str + :param maintenance_configuration_envelope: Parameters to set the maintenance configuration for + ManagedEnvironment . Required. + :type maintenance_configuration_envelope: + ~azure.mgmt.appcontainers.models.MaintenanceConfigurationResource + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: MaintenanceConfigurationResource. The MaintenanceConfigurationResource is compatible + with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.MaintenanceConfigurationResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + environment_name: str, + config_name: str, + maintenance_configuration_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.MaintenanceConfigurationResource: + """Create or update the maintenance configuration for Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param config_name: Name of the Maintenance Configuration. Required. + :type config_name: str + :param maintenance_configuration_envelope: Parameters to set the maintenance configuration for + ManagedEnvironment . Required. + :type maintenance_configuration_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: MaintenanceConfigurationResource. The MaintenanceConfigurationResource is compatible + with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.MaintenanceConfigurationResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + environment_name: str, + config_name: str, + maintenance_configuration_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.MaintenanceConfigurationResource: + """Create or update the maintenance configuration for Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param config_name: Name of the Maintenance Configuration. Required. + :type config_name: str + :param maintenance_configuration_envelope: Parameters to set the maintenance configuration for + ManagedEnvironment . Required. + :type maintenance_configuration_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: MaintenanceConfigurationResource. The MaintenanceConfigurationResource is compatible + with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.MaintenanceConfigurationResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create_or_update( + self, + resource_group_name: str, + environment_name: str, + config_name: str, + maintenance_configuration_envelope: Union[_models.MaintenanceConfigurationResource, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.MaintenanceConfigurationResource: + """Create or update the maintenance configuration for Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param config_name: Name of the Maintenance Configuration. Required. + :type config_name: str + :param maintenance_configuration_envelope: Parameters to set the maintenance configuration for + ManagedEnvironment . Is one of the following types: MaintenanceConfigurationResource, JSON, + IO[bytes] Required. + :type maintenance_configuration_envelope: + ~azure.mgmt.appcontainers.models.MaintenanceConfigurationResource or JSON or IO[bytes] + :return: MaintenanceConfigurationResource. The MaintenanceConfigurationResource is compatible + with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.MaintenanceConfigurationResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.MaintenanceConfigurationResource] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(maintenance_configuration_envelope, (IOBase, bytes)): + _content = maintenance_configuration_envelope + else: + _content = json.dumps(maintenance_configuration_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_maintenance_configurations_create_or_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + config_name=config_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.MaintenanceConfigurationResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def delete(self, resource_group_name: str, environment_name: str, config_name: str, **kwargs: Any) -> None: + """Deletes the maintenance configuration of a ManagedEnvironment . + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param config_name: Name of the Maintenance Configuration. Required. + :type config_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_maintenance_configurations_delete_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + config_name=config_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await 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) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list( + self, resource_group_name: str, environment_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.MaintenanceConfigurationResource"]: + """Gets all maintenance configurations in the specified Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :return: An iterator like instance of MaintenanceConfigurationResource + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.MaintenanceConfigurationResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.MaintenanceConfigurationResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_maintenance_configurations_list_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.MaintenanceConfigurationResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class ManagedEnvironmentsStoragesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`managed_environments_storages` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, environment_name: str, storage_name: str, **kwargs: Any + ) -> _models.ManagedEnvironmentStorage: + """Get storage for a managedEnvironment. + + Get storage for a managedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :return: ManagedEnvironmentStorage. The ManagedEnvironmentStorage is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStorage + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ManagedEnvironmentStorage] = kwargs.pop("cls", None) + + _request = build_managed_environments_storages_get_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + storage_name=storage_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ManagedEnvironmentStorage, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def create_or_update( + self, + resource_group_name: str, + environment_name: str, + storage_name: str, + storage_envelope: _models.ManagedEnvironmentStorage, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ManagedEnvironmentStorage: + """Create or update storage for a managedEnvironment. + + Create or update storage for a managedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :param storage_envelope: Configuration details of storage. Required. + :type storage_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStorage + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ManagedEnvironmentStorage. The ManagedEnvironmentStorage is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStorage + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + environment_name: str, + storage_name: str, + storage_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ManagedEnvironmentStorage: + """Create or update storage for a managedEnvironment. + + Create or update storage for a managedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :param storage_envelope: Configuration details of storage. Required. + :type storage_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ManagedEnvironmentStorage. The ManagedEnvironmentStorage is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStorage + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + environment_name: str, + storage_name: str, + storage_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ManagedEnvironmentStorage: + """Create or update storage for a managedEnvironment. + + Create or update storage for a managedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :param storage_envelope: Configuration details of storage. Required. + :type storage_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ManagedEnvironmentStorage. The ManagedEnvironmentStorage is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStorage + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create_or_update( + self, + resource_group_name: str, + environment_name: str, + storage_name: str, + storage_envelope: Union[_models.ManagedEnvironmentStorage, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.ManagedEnvironmentStorage: + """Create or update storage for a managedEnvironment. + + Create or update storage for a managedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :param storage_envelope: Configuration details of storage. Is one of the following types: + ManagedEnvironmentStorage, JSON, IO[bytes] Required. + :type storage_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStorage or JSON or + IO[bytes] + :return: ManagedEnvironmentStorage. The ManagedEnvironmentStorage is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStorage + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ManagedEnvironmentStorage] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(storage_envelope, (IOBase, bytes)): + _content = storage_envelope + else: + _content = json.dumps(storage_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_managed_environments_storages_create_or_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + storage_name=storage_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ManagedEnvironmentStorage, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def delete(self, resource_group_name: str, environment_name: str, storage_name: str, **kwargs: Any) -> None: + """Delete storage for a managedEnvironment. + + Delete storage for a managedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_managed_environments_storages_delete_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + storage_name=storage_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await 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) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace_async + async def list( + self, resource_group_name: str, environment_name: str, **kwargs: Any + ) -> _models.ManagedEnvironmentStoragesCollection: + """Get all storages for a managedEnvironment. + + Get all storages for a managedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :return: ManagedEnvironmentStoragesCollection. The ManagedEnvironmentStoragesCollection is + compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStoragesCollection + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ManagedEnvironmentStoragesCollection] = kwargs.pop("cls", None) + + _request = build_managed_environments_storages_list_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ManagedEnvironmentStoragesCollection, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class JobsOperations: # pylint: disable=too-many-public-methods + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`jobs` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get(self, resource_group_name: str, job_name: str, **kwargs: Any) -> _models.Job: + """Get the properties of a Container Apps Job. + + Get the properties of a Container Apps Job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :return: Job. The Job is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Job + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.Job] = kwargs.pop("cls", None) + + _request = build_jobs_get_request( + resource_group_name=resource_group_name, + job_name=job_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Job, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( + self, resource_group_name: str, job_name: str, job_envelope: Union[_models.Job, JSON, IO[bytes]], **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(job_envelope, (IOBase, bytes)): + _content = job_envelope + else: + _content = json.dumps(job_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_jobs_create_or_update_request( + resource_group_name=resource_group_name, + job_name=job_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + job_name: str, + job_envelope: _models.Job, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.Job]: + """Create or Update a Container Apps Job. + + Create or Update a Container Apps Job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :param job_envelope: Properties used to create a container apps job. Required. + :type job_envelope: ~azure.mgmt.appcontainers.models.Job + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns Job. The Job is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.Job] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + job_name: str, + job_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.Job]: + """Create or Update a Container Apps Job. + + Create or Update a Container Apps Job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :param job_envelope: Properties used to create a container apps job. Required. + :type job_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns Job. The Job is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.Job] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + job_name: str, + job_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.Job]: + """Create or Update a Container Apps Job. + + Create or Update a Container Apps Job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :param job_envelope: Properties used to create a container apps job. Required. + :type job_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns Job. The Job is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.Job] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, resource_group_name: str, job_name: str, job_envelope: Union[_models.Job, JSON, IO[bytes]], **kwargs: Any + ) -> AsyncLROPoller[_models.Job]: + """Create or Update a Container Apps Job. + + Create or Update a Container Apps Job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :param job_envelope: Properties used to create a container apps job. Is one of the following + types: Job, JSON, IO[bytes] Required. + :type job_envelope: ~azure.mgmt.appcontainers.models.Job or JSON or IO[bytes] + :return: An instance of AsyncLROPoller that returns Job. The Job is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.Job] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.Job] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + job_name=job_name, + job_envelope=job_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.Job, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.Job].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.Job]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _update_initial( + self, + resource_group_name: str, + job_name: str, + job_envelope: Union[_models.JobPatchProperties, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(job_envelope, (IOBase, bytes)): + _content = job_envelope + else: + _content = json.dumps(job_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_jobs_update_request( + resource_group_name=resource_group_name, + job_name=job_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_update( + self, + resource_group_name: str, + job_name: str, + job_envelope: _models.JobPatchProperties, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.Job]: + """Update properties of a Container Apps Job. + + Patches a Container Apps Job using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :param job_envelope: Properties used to create a container apps job. Required. + :type job_envelope: ~azure.mgmt.appcontainers.models.JobPatchProperties + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns Job. The Job is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.Job] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_update( + self, + resource_group_name: str, + job_name: str, + job_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.Job]: + """Update properties of a Container Apps Job. + + Patches a Container Apps Job using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :param job_envelope: Properties used to create a container apps job. Required. + :type job_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns Job. The Job is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.Job] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_update( + self, + resource_group_name: str, + job_name: str, + job_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.Job]: + """Update properties of a Container Apps Job. + + Patches a Container Apps Job using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :param job_envelope: Properties used to create a container apps job. Required. + :type job_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns Job. The Job is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.Job] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_update( + self, + resource_group_name: str, + job_name: str, + job_envelope: Union[_models.JobPatchProperties, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.Job]: + """Update properties of a Container Apps Job. + + Patches a Container Apps Job using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :param job_envelope: Properties used to create a container apps job. Is one of the following + types: JobPatchProperties, JSON, IO[bytes] Required. + :type job_envelope: ~azure.mgmt.appcontainers.models.JobPatchProperties or JSON or IO[bytes] + :return: An instance of AsyncLROPoller that returns Job. The Job is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.Job] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.Job] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("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, + job_name=job_name, + job_envelope=job_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.Job, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.Job].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.Job]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _delete_initial(self, resource_group_name: str, job_name: str, **kwargs: Any) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_jobs_delete_request( + resource_group_name=resource_group_name, + job_name=job_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete(self, resource_group_name: str, job_name: str, **kwargs: Any) -> AsyncLROPoller[None]: + """Delete a Container Apps Job. + + Delete a Container Apps Job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + job_name=job_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.Job"]: + """Get the Container Apps Jobs in a given resource group. + + Get the Container Apps Jobs in a given resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of Job + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.Job] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.Job]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_jobs_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Job], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace + def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.Job"]: + """Get the Container Apps Jobs in a given subscription. + + Get the Container Apps Jobs in a given subscription. + + :return: An iterator like instance of Job + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.Job] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.Job]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_jobs_list_by_subscription_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Job], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + async def _start_initial( + self, + resource_group_name: str, + job_name: str, + template: Optional[Union[_models.JobExecutionTemplate, JSON, IO[bytes]]] = None, + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if template else None + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" if template else None + _content = None + if isinstance(template, (IOBase, bytes)): + _content = template + else: + if template is not None: + _content = json.dumps(template, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + else: + _content = None + + _request = build_jobs_start_request( + resource_group_name=resource_group_name, + job_name=job_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_start( + self, + resource_group_name: str, + job_name: str, + template: Optional[_models.JobExecutionTemplate] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.JobExecutionBase]: + """Start a Container Apps Job. + + Start a Container Apps Job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :param template: Properties used to start a job execution. Default value is None. + :type template: ~azure.mgmt.appcontainers.models.JobExecutionTemplate + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns JobExecutionBase. The JobExecutionBase is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.JobExecutionBase] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_start( + self, + resource_group_name: str, + job_name: str, + template: Optional[JSON] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.JobExecutionBase]: + """Start a Container Apps Job. + + Start a Container Apps Job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :param template: Properties used to start a job execution. Default value is None. + :type template: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns JobExecutionBase. The JobExecutionBase is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.JobExecutionBase] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_start( + self, + resource_group_name: str, + job_name: str, + template: Optional[IO[bytes]] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.JobExecutionBase]: + """Start a Container Apps Job. + + Start a Container Apps Job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :param template: Properties used to start a job execution. Default value is None. + :type template: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns JobExecutionBase. The JobExecutionBase is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.JobExecutionBase] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_start( + self, + resource_group_name: str, + job_name: str, + template: Optional[Union[_models.JobExecutionTemplate, JSON, IO[bytes]]] = None, + **kwargs: Any + ) -> AsyncLROPoller[_models.JobExecutionBase]: + """Start a Container Apps Job. + + Start a Container Apps Job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :param template: Properties used to start a job execution. Is one of the following types: + JobExecutionTemplate, JSON, IO[bytes] Default value is None. + :type template: ~azure.mgmt.appcontainers.models.JobExecutionTemplate or JSON or IO[bytes] + :return: An instance of AsyncLROPoller that returns JobExecutionBase. The JobExecutionBase is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.JobExecutionBase] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if template else None + cls: ClsType[_models.JobExecutionBase] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("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( + resource_group_name=resource_group_name, + job_name=job_name, + template=template, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.JobExecutionBase, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.JobExecutionBase].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.JobExecutionBase]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _stop_multiple_executions_initial( + self, resource_group_name: str, job_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_jobs_stop_multiple_executions_request( + resource_group_name=resource_group_name, + job_name=job_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_stop_multiple_executions( + self, resource_group_name: str, job_name: str, **kwargs: Any + ) -> AsyncLROPoller[_models.ContainerAppJobExecutions]: + """Terminates execution of a running container apps job. + + Terminates execution of a running container apps job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :return: An instance of AsyncLROPoller that returns ContainerAppJobExecutions. The + ContainerAppJobExecutions is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ContainerAppJobExecutions] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ContainerAppJobExecutions] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("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_multiple_executions_initial( + resource_group_name=resource_group_name, + job_name=job_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.ContainerAppJobExecutions, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.ContainerAppJobExecutions].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.ContainerAppJobExecutions]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + @distributed_trace_async + async def list_secrets( + self, resource_group_name: str, job_name: str, **kwargs: Any + ) -> _models.JobSecretsCollection: + """List secrets for a container apps job. + + List secrets for a container apps job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :return: JobSecretsCollection. The JobSecretsCollection is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.JobSecretsCollection + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.JobSecretsCollection] = kwargs.pop("cls", None) + + _request = build_jobs_list_secrets_request( + resource_group_name=resource_group_name, + job_name=job_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.JobSecretsCollection, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _resume_initial(self, resource_group_name: str, job_name: str, **kwargs: Any) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_jobs_resume_request( + resource_group_name=resource_group_name, + job_name=job_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_resume(self, resource_group_name: str, job_name: str, **kwargs: Any) -> AsyncLROPoller[_models.Job]: + """Resumes a suspended job. + + Resumes a suspended job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :return: An instance of AsyncLROPoller that returns Job. The Job is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.Job] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.Job] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._resume_initial( + resource_group_name=resource_group_name, + job_name=job_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.Job, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.Job].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.Job]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _suspend_initial(self, resource_group_name: str, job_name: str, **kwargs: Any) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_jobs_suspend_request( + resource_group_name=resource_group_name, + job_name=job_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_suspend( + self, resource_group_name: str, job_name: str, **kwargs: Any + ) -> AsyncLROPoller[_models.Job]: + """Suspends a job. + + Suspends a job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :return: An instance of AsyncLROPoller that returns Job. The Job is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.Job] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.Job] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._suspend_initial( + resource_group_name=resource_group_name, + job_name=job_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.Job, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.Job].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.Job]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _stop_execution_initial( + self, resource_group_name: str, job_name: str, job_execution_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_jobs_stop_execution_request( + resource_group_name=resource_group_name, + job_name=job_name, + job_execution_name=job_execution_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_stop_execution( + self, resource_group_name: str, job_name: str, job_execution_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Terminates execution of a running container apps job. + + Terminates execution of a running container apps job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :param job_execution_name: Job execution name. Required. + :type job_execution_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("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_execution_initial( + resource_group_name=resource_group_name, + job_name=job_name, + job_execution_name=job_execution_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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 proxy_get(self, resource_group_name: str, job_name: str, api_name: str, **kwargs: Any) -> _models.Job: + """Get the properties for a given Container App Job. + + Get the properties of a Container App Job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :param api_name: Proxy API Name for Container App Job. Required. + :type api_name: str + :return: Job. The Job is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Job + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.Job] = kwargs.pop("cls", None) + + _request = build_jobs_proxy_get_request( + resource_group_name=resource_group_name, + job_name=job_name, + api_name=api_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Job, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def list_detectors( + self, resource_group_name: str, job_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.Diagnostics"]: + """Get the list of diagnostics for a given Container App Job. + + Get the list of diagnostics for a Container App Job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Name of the Container App Job. Required. + :type job_name: str + :return: An iterator like instance of Diagnostics + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.Diagnostics] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.Diagnostics]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_jobs_list_detectors_request( + resource_group_name=resource_group_name, + job_name=job_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Diagnostics], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace_async + async def get_detector( + self, resource_group_name: str, job_name: str, detector_name: str, **kwargs: Any + ) -> _models.Diagnostics: + """Get the diagnostics data for a given Container App Job. + + Get the diagnostics data for a Container App Job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Name of the Container App Job. Required. + :type job_name: str + :param detector_name: Proxy API Name for Container App Job. Required. + :type detector_name: str + :return: Diagnostics. The Diagnostics is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Diagnostics + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.Diagnostics] = kwargs.pop("cls", None) + + _request = build_jobs_get_detector_request( + resource_group_name=resource_group_name, + job_name=job_name, + detector_name=detector_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Diagnostics, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class ContainerAppsDiagnosticsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`container_apps_diagnostics` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get_revision( + self, resource_group_name: str, container_app_name: str, revision_name: str, **kwargs: Any + ) -> _models.Revision: + """Get a revision of a Container App. + + Get a revision of a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param revision_name: Name of the detector. Required. + :type revision_name: str + :return: Revision. The Revision is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Revision + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.Revision] = kwargs.pop("cls", None) + + _request = build_container_apps_diagnostics_get_revision_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + revision_name=revision_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Revision, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def list_revisions( + self, resource_group_name: str, container_app_name: str, *, filter: Optional[str] = None, **kwargs: Any + ) -> AsyncItemPaged["_models.Revision"]: + """Get the Revisions for a given Container App. + + A synchronous resource action. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :keyword filter: The filter to apply on the operation. Default value is None. + :paramtype filter: str + :return: An iterator like instance of Revision + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.Revision] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.Revision]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_container_apps_diagnostics_list_revisions_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + filter=filter, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Revision], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace_async + async def get_root(self, resource_group_name: str, container_app_name: str, **kwargs: Any) -> _models.ContainerApp: + """Get the properties of a Container App. + + Get the properties of a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :return: ContainerApp. The ContainerApp is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ContainerApp + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ContainerApp] = kwargs.pop("cls", None) + + _request = build_container_apps_diagnostics_get_root_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ContainerApp, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def list_detectors( + self, resource_group_name: str, container_app_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.Diagnostics"]: + """Get the list of diagnostics for a given Container App. + + Get the list of diagnostics for a given Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :return: An iterator like instance of Diagnostics + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.Diagnostics] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.Diagnostics]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_container_apps_diagnostics_list_detectors_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Diagnostics], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace_async + async def get_detector( + self, resource_group_name: str, container_app_name: str, detector_name: str, **kwargs: Any + ) -> _models.Diagnostics: + """Get a diagnostics result of a Container App. + + Get a diagnostics result of a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param detector_name: Name of the detector. Required. + :type detector_name: str + :return: Diagnostics. The Diagnostics is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Diagnostics + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.Diagnostics] = kwargs.pop("cls", None) + + _request = build_container_apps_diagnostics_get_detector_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + detector_name=detector_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Diagnostics, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class ManagedEnvironmentsDiagnosticsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`managed_environments_diagnostics` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get_root( + self, resource_group_name: str, environment_name: str, **kwargs: Any + ) -> _models.ManagedEnvironment: + """Get the properties of a Managed Environment. + + Get the properties of a Managed Environment used to host container apps. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :return: ManagedEnvironment. The ManagedEnvironment is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironment + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ManagedEnvironment] = kwargs.pop("cls", None) + + _request = build_managed_environments_diagnostics_get_root_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ManagedEnvironment, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class ContainerAppsBuildsByContainerAppOperations: # pylint: disable=name-too-long + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`container_apps_builds_by_container_app` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def list( + self, resource_group_name: str, container_app_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.ContainerAppsBuildResource"]: + """List Container Apps Build resources by Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :return: An iterator like instance of ContainerAppsBuildResource + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.ContainerAppsBuildResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ContainerAppsBuildResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_container_apps_builds_by_container_app_list_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ContainerAppsBuildResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class ContainerAppsRevisionFunctionsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`container_apps_revision_functions` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, container_app_name: str, revision_name: str, function_name: str, **kwargs: Any + ) -> _models.ContainerAppsFunction: + """Get a specific function of a Container App Revision. + + Get a specific function of a Container App Revision. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param revision_name: Name of the Container App Revision. Required. + :type revision_name: str + :param function_name: Name of the Function. Required. + :type function_name: str + :return: ContainerAppsFunction. The ContainerAppsFunction is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ContainerAppsFunction + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ContainerAppsFunction] = kwargs.pop("cls", None) + + _request = build_container_apps_revision_functions_get_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + revision_name=revision_name, + function_name=function_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ContainerAppsFunction, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def list( + self, resource_group_name: str, container_app_name: str, revision_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.ContainerAppsFunction"]: + """List the functions for a given Container App Revision. + + List the functions for a given Container App Revision. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param revision_name: Name of the Container App Revision. Required. + :type revision_name: str + :return: An iterator like instance of ContainerAppsFunction + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.ContainerAppsFunction] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ContainerAppsFunction]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_container_apps_revision_functions_list_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + revision_name=revision_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ContainerAppsFunction], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class AppResiliencyOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`app_resiliency` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get(self, resource_group_name: str, app_name: str, name: str, **kwargs: Any) -> _models.AppResiliency: + """Get an application's resiliency policy. + + Get container app resiliency policy. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param app_name: Name of the Container App. Required. + :type app_name: str + :param name: Name of the resiliency policy. Required. + :type name: str + :return: AppResiliency. The AppResiliency is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.AppResiliency + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.AppResiliency] = kwargs.pop("cls", None) + + _request = build_app_resiliency_get_request( + resource_group_name=resource_group_name, + app_name=app_name, + name=name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.AppResiliency, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def create_or_update( + self, + resource_group_name: str, + app_name: str, + name: str, + resiliency_envelope: _models.AppResiliency, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AppResiliency: + """Create or update an application's resiliency policy. + + Create or update container app resiliency policy. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param app_name: Name of the Container App. Required. + :type app_name: str + :param name: Name of the resiliency policy. Required. + :type name: str + :param resiliency_envelope: The resiliency policy to create or update. Required. + :type resiliency_envelope: ~azure.mgmt.appcontainers.models.AppResiliency + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: AppResiliency. The AppResiliency is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.AppResiliency + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + app_name: str, + name: str, + resiliency_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AppResiliency: + """Create or update an application's resiliency policy. + + Create or update container app resiliency policy. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param app_name: Name of the Container App. Required. + :type app_name: str + :param name: Name of the resiliency policy. Required. + :type name: str + :param resiliency_envelope: The resiliency policy to create or update. Required. + :type resiliency_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: AppResiliency. The AppResiliency is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.AppResiliency + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + app_name: str, + name: str, + resiliency_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AppResiliency: + """Create or update an application's resiliency policy. + + Create or update container app resiliency policy. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param app_name: Name of the Container App. Required. + :type app_name: str + :param name: Name of the resiliency policy. Required. + :type name: str + :param resiliency_envelope: The resiliency policy to create or update. Required. + :type resiliency_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: AppResiliency. The AppResiliency is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.AppResiliency + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create_or_update( + self, + resource_group_name: str, + app_name: str, + name: str, + resiliency_envelope: Union[_models.AppResiliency, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.AppResiliency: + """Create or update an application's resiliency policy. + + Create or update container app resiliency policy. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param app_name: Name of the Container App. Required. + :type app_name: str + :param name: Name of the resiliency policy. Required. + :type name: str + :param resiliency_envelope: The resiliency policy to create or update. Is one of the following + types: AppResiliency, JSON, IO[bytes] Required. + :type resiliency_envelope: ~azure.mgmt.appcontainers.models.AppResiliency or JSON or IO[bytes] + :return: AppResiliency. The AppResiliency is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.AppResiliency + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.AppResiliency] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(resiliency_envelope, (IOBase, bytes)): + _content = resiliency_envelope + else: + _content = json.dumps(resiliency_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_app_resiliency_create_or_update_request( + resource_group_name=resource_group_name, + app_name=app_name, + name=name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.AppResiliency, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def update( + self, + resource_group_name: str, + app_name: str, + name: str, + resiliency_envelope: _models.AppResiliency, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AppResiliency: + """Update an application's resiliency policy. + + Update container app resiliency policy. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param app_name: Name of the Container App. Required. + :type app_name: str + :param name: Name of the resiliency policy. Required. + :type name: str + :param resiliency_envelope: The resiliency policy to update. Required. + :type resiliency_envelope: ~azure.mgmt.appcontainers.models.AppResiliency + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: AppResiliency. The AppResiliency is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.AppResiliency + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update( + self, + resource_group_name: str, + app_name: str, + name: str, + resiliency_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AppResiliency: + """Update an application's resiliency policy. + + Update container app resiliency policy. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param app_name: Name of the Container App. Required. + :type app_name: str + :param name: Name of the resiliency policy. Required. + :type name: str + :param resiliency_envelope: The resiliency policy to update. Required. + :type resiliency_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: AppResiliency. The AppResiliency is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.AppResiliency + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update( + self, + resource_group_name: str, + app_name: str, + name: str, + resiliency_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AppResiliency: + """Update an application's resiliency policy. + + Update container app resiliency policy. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param app_name: Name of the Container App. Required. + :type app_name: str + :param name: Name of the resiliency policy. Required. + :type name: str + :param resiliency_envelope: The resiliency policy to update. Required. + :type resiliency_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: AppResiliency. The AppResiliency is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.AppResiliency + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def update( + self, + resource_group_name: str, + app_name: str, + name: str, + resiliency_envelope: Union[_models.AppResiliency, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.AppResiliency: + """Update an application's resiliency policy. + + Update container app resiliency policy. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param app_name: Name of the Container App. Required. + :type app_name: str + :param name: Name of the resiliency policy. Required. + :type name: str + :param resiliency_envelope: The resiliency policy to update. Is one of the following types: + AppResiliency, JSON, IO[bytes] Required. + :type resiliency_envelope: ~azure.mgmt.appcontainers.models.AppResiliency or JSON or IO[bytes] + :return: AppResiliency. The AppResiliency is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.AppResiliency + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.AppResiliency] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(resiliency_envelope, (IOBase, bytes)): + _content = resiliency_envelope + else: + _content = json.dumps(resiliency_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_app_resiliency_update_request( + resource_group_name=resource_group_name, + app_name=app_name, + name=name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.AppResiliency, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def delete(self, resource_group_name: str, app_name: str, name: str, **kwargs: Any) -> None: + """Delete an application's resiliency policy. + + Delete container app resiliency policy. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param app_name: Name of the Container App. Required. + :type app_name: str + :param name: Name of the resiliency policy. Required. + :type name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_app_resiliency_delete_request( + resource_group_name=resource_group_name, + app_name=app_name, + name=name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await 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) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list(self, resource_group_name: str, app_name: str, **kwargs: Any) -> AsyncItemPaged["_models.AppResiliency"]: + """List an application's resiliency policies. + + List container app resiliency policies. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param app_name: Name of the Container App. Required. + :type app_name: str + :return: An iterator like instance of AppResiliency + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.AppResiliency] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.AppResiliency]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_app_resiliency_list_request( + resource_group_name=resource_group_name, + app_name=app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.AppResiliency], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class BuildsByBuilderResourceOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`builds_by_builder_resource` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def list( + self, resource_group_name: str, builder_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.BuildResource"]: + """List BuildResource resources by BuilderResource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :return: An iterator like instance of BuildResource + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.BuildResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.BuildResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_builds_by_builder_resource_list_request( + resource_group_name=resource_group_name, + builder_name=builder_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.BuildResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class BuildAuthTokenOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`build_auth_token` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def list( + self, resource_group_name: str, builder_name: str, build_name: str, **kwargs: Any + ) -> _models.BuildToken: + """Gets the token used to connect to the endpoint where source code can be uploaded for a build. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :param build_name: The name of a build. Required. + :type build_name: str + :return: BuildToken. The BuildToken is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.BuildToken + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.BuildToken] = kwargs.pop("cls", None) + + _request = build_build_auth_token_list_request( + resource_group_name=resource_group_name, + builder_name=builder_name, + build_name=build_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.BuildToken, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class ConnectedEnvironmentsCertificatesOperations: # pylint: disable=name-too-long + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`connected_environments_certificates` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, connected_environment_name: str, certificate_name: str, **kwargs: Any + ) -> _models.Certificate: + """Get the specified Certificate. + + Get the specified Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the Connected Environment. Required. + :type connected_environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :return: Certificate. The Certificate is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Certificate + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.Certificate] = kwargs.pop("cls", None) + + _request = build_connected_environments_certificates_get_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + certificate_name=certificate_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Certificate, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + connected_environment_name: str, + certificate_name: str, + certificate_envelope: Optional[Union[_models.Certificate, JSON, IO[bytes]]] = None, + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if certificate_envelope else None + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" if certificate_envelope else None + _content = None + if isinstance(certificate_envelope, (IOBase, bytes)): + _content = certificate_envelope + else: + if certificate_envelope is not None: + _content = json.dumps(certificate_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + else: + _content = None + + _request = build_connected_environments_certificates_create_or_update_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + certificate_name=certificate_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + certificate_name: str, + certificate_envelope: Optional[_models.Certificate] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.Certificate]: + """Create or Update a Certificate. + + Create or Update a Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the Connected Environment. Required. + :type connected_environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :param certificate_envelope: Certificate to be created or updated. Default value is None. + :type certificate_envelope: ~azure.mgmt.appcontainers.models.Certificate + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns Certificate. The Certificate is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.Certificate] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + certificate_name: str, + certificate_envelope: Optional[JSON] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.Certificate]: + """Create or Update a Certificate. + + Create or Update a Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the Connected Environment. Required. + :type connected_environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :param certificate_envelope: Certificate to be created or updated. Default value is None. + :type certificate_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns Certificate. The Certificate is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.Certificate] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + certificate_name: str, + certificate_envelope: Optional[IO[bytes]] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.Certificate]: + """Create or Update a Certificate. + + Create or Update a Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the Connected Environment. Required. + :type connected_environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :param certificate_envelope: Certificate to be created or updated. Default value is None. + :type certificate_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns Certificate. The Certificate is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.Certificate] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + certificate_name: str, + certificate_envelope: Optional[Union[_models.Certificate, JSON, IO[bytes]]] = None, + **kwargs: Any + ) -> AsyncLROPoller[_models.Certificate]: + """Create or Update a Certificate. + + Create or Update a Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the Connected Environment. Required. + :type connected_environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :param certificate_envelope: Certificate to be created or updated. Is one of the following + types: Certificate, JSON, IO[bytes] Default value is None. + :type certificate_envelope: ~azure.mgmt.appcontainers.models.Certificate or JSON or IO[bytes] + :return: An instance of AsyncLROPoller that returns Certificate. The Certificate is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.Certificate] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if certificate_envelope else None + cls: ClsType[_models.Certificate] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + certificate_name=certificate_name, + certificate_envelope=certificate_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.Certificate, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.Certificate].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.Certificate]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _update_initial( + self, + resource_group_name: str, + connected_environment_name: str, + certificate_name: str, + certificate_envelope: Union[_models.CertificatePatch, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(certificate_envelope, (IOBase, bytes)): + _content = certificate_envelope + else: + _content = json.dumps(certificate_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_connected_environments_certificates_update_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + certificate_name=certificate_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_update( + self, + resource_group_name: str, + connected_environment_name: str, + certificate_name: str, + certificate_envelope: _models.CertificatePatch, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.Certificate]: + """Update properties of a certificate. + + Patches a certificate. Currently only patching of tags is supported. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the Connected Environment. Required. + :type connected_environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :param certificate_envelope: Properties of a certificate that need to be updated. Required. + :type certificate_envelope: ~azure.mgmt.appcontainers.models.CertificatePatch + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns Certificate. The Certificate is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.Certificate] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_update( + self, + resource_group_name: str, + connected_environment_name: str, + certificate_name: str, + certificate_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.Certificate]: + """Update properties of a certificate. + + Patches a certificate. Currently only patching of tags is supported. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the Connected Environment. Required. + :type connected_environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :param certificate_envelope: Properties of a certificate that need to be updated. Required. + :type certificate_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns Certificate. The Certificate is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.Certificate] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_update( + self, + resource_group_name: str, + connected_environment_name: str, + certificate_name: str, + certificate_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.Certificate]: + """Update properties of a certificate. + + Patches a certificate. Currently only patching of tags is supported. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the Connected Environment. Required. + :type connected_environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :param certificate_envelope: Properties of a certificate that need to be updated. Required. + :type certificate_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns Certificate. The Certificate is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.Certificate] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_update( + self, + resource_group_name: str, + connected_environment_name: str, + certificate_name: str, + certificate_envelope: Union[_models.CertificatePatch, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.Certificate]: + """Update properties of a certificate. + + Patches a certificate. Currently only patching of tags is supported. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the Connected Environment. Required. + :type connected_environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :param certificate_envelope: Properties of a certificate that need to be updated. Is one of the + following types: CertificatePatch, JSON, IO[bytes] Required. + :type certificate_envelope: ~azure.mgmt.appcontainers.models.CertificatePatch or JSON or + IO[bytes] + :return: An instance of AsyncLROPoller that returns Certificate. The Certificate is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.Certificate] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.Certificate] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("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, + connected_environment_name=connected_environment_name, + certificate_name=certificate_name, + certificate_envelope=certificate_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.Certificate, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.Certificate].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.Certificate]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _delete_initial( + self, resource_group_name: str, connected_environment_name: str, certificate_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_connected_environments_certificates_delete_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + certificate_name=certificate_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = 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]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, resource_group_name: str, connected_environment_name: str, certificate_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes the specified Certificate. + + Deletes the specified Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the Connected Environment. Required. + :type connected_environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + certificate_name=certificate_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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, connected_environment_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.Certificate"]: + """Get the Certificates in a given connected environment. + + Get the Certificates in a given connected environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the Connected Environment. Required. + :type connected_environment_name: str + :return: An iterator like instance of Certificate + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.Certificate] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.Certificate]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_connected_environments_certificates_list_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Certificate], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class NamespacesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`namespaces` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @overload + async def check_name_availability( + self, + resource_group_name: str, + environment_name: str, + check_name_availability_request: _models.CheckNameAvailabilityRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.CheckNameAvailabilityResponse: + """Checks the resource name availability. + + Checks if resource name is available. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param check_name_availability_request: The check name availability request. Required. + :type check_name_availability_request: + ~azure.mgmt.appcontainers.models.CheckNameAvailabilityRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: CheckNameAvailabilityResponse. The CheckNameAvailabilityResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.CheckNameAvailabilityResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def check_name_availability( + self, + resource_group_name: str, + environment_name: str, + check_name_availability_request: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.CheckNameAvailabilityResponse: + """Checks the resource name availability. + + Checks if resource name is available. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param check_name_availability_request: The check name availability request. Required. + :type check_name_availability_request: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: CheckNameAvailabilityResponse. The CheckNameAvailabilityResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.CheckNameAvailabilityResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def check_name_availability( + self, + resource_group_name: str, + environment_name: str, + check_name_availability_request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.CheckNameAvailabilityResponse: + """Checks the resource name availability. + + Checks if resource name is available. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param check_name_availability_request: The check name availability request. Required. + :type check_name_availability_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: CheckNameAvailabilityResponse. The CheckNameAvailabilityResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.CheckNameAvailabilityResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def check_name_availability( + self, + resource_group_name: str, + environment_name: str, + check_name_availability_request: Union[_models.CheckNameAvailabilityRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.CheckNameAvailabilityResponse: + """Checks the resource name availability. + + Checks if resource name is available. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param check_name_availability_request: The check name availability request. Is one of the + following types: CheckNameAvailabilityRequest, JSON, IO[bytes] Required. + :type check_name_availability_request: + ~azure.mgmt.appcontainers.models.CheckNameAvailabilityRequest or JSON or IO[bytes] + :return: CheckNameAvailabilityResponse. The CheckNameAvailabilityResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.CheckNameAvailabilityResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.CheckNameAvailabilityResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(check_name_availability_request, (IOBase, bytes)): + _content = check_name_availability_request + else: + _content = json.dumps(check_name_availability_request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_namespaces_check_name_availability_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.CheckNameAvailabilityResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class ManagedEnvironmentPrivateLinkResourcesOperations: # pylint: disable=name-too-long + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`managed_environment_private_link_resources` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def list( + self, resource_group_name: str, environment_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.PrivateLinkResource"]: + """List private link resources for a given managed environment. + + List private link resources for a given managed environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :return: An iterator like instance of PrivateLinkResource + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.PrivateLinkResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.PrivateLinkResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_managed_environment_private_link_resources_list_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.PrivateLinkResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class ManagedEnvironmentPrivateEndpointConnectionsOperations: # pylint: disable=name-too-long + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`managed_environment_private_endpoint_connections` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, environment_name: str, private_endpoint_connection_name: str, **kwargs: Any + ) -> _models.PrivateEndpointConnection: + """Get a private endpoint connection for a given managed environment. + + Get a private endpoint connection for a given managed environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param private_endpoint_connection_name: Name of the Private Endpoint Connection. Required. + :type private_endpoint_connection_name: str + :return: PrivateEndpointConnection. The PrivateEndpointConnection is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.PrivateEndpointConnection + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.PrivateEndpointConnection] = kwargs.pop("cls", None) + + _request = build_managed_environment_private_endpoint_connections_get_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + private_endpoint_connection_name=private_endpoint_connection_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.PrivateEndpointConnection, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + environment_name: str, + private_endpoint_connection_name: str, + private_endpoint_connection_envelope: Union[_models.PrivateEndpointConnection, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(private_endpoint_connection_envelope, (IOBase, bytes)): + _content = private_endpoint_connection_envelope + else: + _content = json.dumps(private_endpoint_connection_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_managed_environment_private_endpoint_connections_create_or_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + private_endpoint_connection_name=private_endpoint_connection_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + private_endpoint_connection_name: str, + private_endpoint_connection_envelope: _models.PrivateEndpointConnection, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.PrivateEndpointConnection]: + """Update the state of a private endpoint connection for a given managed environment. + + Update the state of a private endpoint connection for a given managed environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param private_endpoint_connection_name: Name of the Private Endpoint Connection. Required. + :type private_endpoint_connection_name: str + :param private_endpoint_connection_envelope: The resource of private endpoint and its + properties. Required. + :type private_endpoint_connection_envelope: + ~azure.mgmt.appcontainers.models.PrivateEndpointConnection + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns PrivateEndpointConnection. The + PrivateEndpointConnection is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.PrivateEndpointConnection] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + private_endpoint_connection_name: str, + private_endpoint_connection_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.PrivateEndpointConnection]: + """Update the state of a private endpoint connection for a given managed environment. + + Update the state of a private endpoint connection for a given managed environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param private_endpoint_connection_name: Name of the Private Endpoint Connection. Required. + :type private_endpoint_connection_name: str + :param private_endpoint_connection_envelope: The resource of private endpoint and its + properties. Required. + :type private_endpoint_connection_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns PrivateEndpointConnection. The + PrivateEndpointConnection is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.PrivateEndpointConnection] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + private_endpoint_connection_name: str, + private_endpoint_connection_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.PrivateEndpointConnection]: + """Update the state of a private endpoint connection for a given managed environment. + + Update the state of a private endpoint connection for a given managed environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param private_endpoint_connection_name: Name of the Private Endpoint Connection. Required. + :type private_endpoint_connection_name: str + :param private_endpoint_connection_envelope: The resource of private endpoint and its + properties. Required. + :type private_endpoint_connection_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns PrivateEndpointConnection. The + PrivateEndpointConnection is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.PrivateEndpointConnection] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + private_endpoint_connection_name: str, + private_endpoint_connection_envelope: Union[_models.PrivateEndpointConnection, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.PrivateEndpointConnection]: + """Update the state of a private endpoint connection for a given managed environment. + + Update the state of a private endpoint connection for a given managed environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param private_endpoint_connection_name: Name of the Private Endpoint Connection. Required. + :type private_endpoint_connection_name: str + :param private_endpoint_connection_envelope: The resource of private endpoint and its + properties. Is one of the following types: PrivateEndpointConnection, JSON, IO[bytes] Required. + :type private_endpoint_connection_envelope: + ~azure.mgmt.appcontainers.models.PrivateEndpointConnection or JSON or IO[bytes] + :return: An instance of AsyncLROPoller that returns PrivateEndpointConnection. The + PrivateEndpointConnection is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.PrivateEndpointConnection] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.PrivateEndpointConnection] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + environment_name=environment_name, + private_endpoint_connection_name=private_endpoint_connection_name, + private_endpoint_connection_envelope=private_endpoint_connection_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.PrivateEndpointConnection, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.PrivateEndpointConnection].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.PrivateEndpointConnection]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _delete_initial( + self, resource_group_name: str, environment_name: str, private_endpoint_connection_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_managed_environment_private_endpoint_connections_delete_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + private_endpoint_connection_name=private_endpoint_connection_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = 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]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, resource_group_name: str, environment_name: str, private_endpoint_connection_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Delete a private endpoint connection for a given managed environment. + + Delete a private endpoint connection for a given managed environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param private_endpoint_connection_name: Name of the Private Endpoint Connection. Required. + :type private_endpoint_connection_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + environment_name=environment_name, + private_endpoint_connection_name=private_endpoint_connection_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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, environment_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.PrivateEndpointConnection"]: + """List private endpoint connections for a given managed environment. + + List private endpoint connections for a given managed environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :return: An iterator like instance of PrivateEndpointConnection + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.PrivateEndpointConnection] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.PrivateEndpointConnection]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_managed_environment_private_endpoint_connections_list_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.PrivateEndpointConnection], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class HttpRouteConfigOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`http_route_config` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, environment_name: str, http_route_name: str, **kwargs: Any + ) -> _models.HttpRouteConfig: + """Get the specified Managed Http Route Config. + + Get the specified Managed Http Route Config. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param http_route_name: Name of the Http Route Config. Required. + :type http_route_name: str + :return: HttpRouteConfig. The HttpRouteConfig is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.HttpRouteConfig + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.HttpRouteConfig] = kwargs.pop("cls", None) + + _request = build_http_route_config_get_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + http_route_name=http_route_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.HttpRouteConfig, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def create_or_update( + self, + resource_group_name: str, + environment_name: str, + http_route_name: str, + http_route_config_envelope: Optional[_models.HttpRouteConfig] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.HttpRouteConfig: + """Create or Update a Http Route Config. + + Create or Update a Http Route Config. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param http_route_name: Name of the Http Route Config. Required. + :type http_route_name: str + :param http_route_config_envelope: Http Route config to be created or updated. Default value is + None. + :type http_route_config_envelope: ~azure.mgmt.appcontainers.models.HttpRouteConfig + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: HttpRouteConfig. The HttpRouteConfig is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.HttpRouteConfig + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + environment_name: str, + http_route_name: str, + http_route_config_envelope: Optional[JSON] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.HttpRouteConfig: + """Create or Update a Http Route Config. + + Create or Update a Http Route Config. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param http_route_name: Name of the Http Route Config. Required. + :type http_route_name: str + :param http_route_config_envelope: Http Route config to be created or updated. Default value is + None. + :type http_route_config_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: HttpRouteConfig. The HttpRouteConfig is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.HttpRouteConfig + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + environment_name: str, + http_route_name: str, + http_route_config_envelope: Optional[IO[bytes]] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.HttpRouteConfig: + """Create or Update a Http Route Config. + + Create or Update a Http Route Config. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param http_route_name: Name of the Http Route Config. Required. + :type http_route_name: str + :param http_route_config_envelope: Http Route config to be created or updated. Default value is + None. + :type http_route_config_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: HttpRouteConfig. The HttpRouteConfig is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.HttpRouteConfig + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create_or_update( + self, + resource_group_name: str, + environment_name: str, + http_route_name: str, + http_route_config_envelope: Optional[Union[_models.HttpRouteConfig, JSON, IO[bytes]]] = None, + **kwargs: Any + ) -> _models.HttpRouteConfig: + """Create or Update a Http Route Config. + + Create or Update a Http Route Config. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param http_route_name: Name of the Http Route Config. Required. + :type http_route_name: str + :param http_route_config_envelope: Http Route config to be created or updated. Is one of the + following types: HttpRouteConfig, JSON, IO[bytes] Default value is None. + :type http_route_config_envelope: ~azure.mgmt.appcontainers.models.HttpRouteConfig or JSON or + IO[bytes] + :return: HttpRouteConfig. The HttpRouteConfig is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.HttpRouteConfig + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if http_route_config_envelope else None + cls: ClsType[_models.HttpRouteConfig] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" if http_route_config_envelope else None + _content = None + if isinstance(http_route_config_envelope, (IOBase, bytes)): + _content = http_route_config_envelope + else: + if http_route_config_envelope is not None: + _content = json.dumps(http_route_config_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + else: + _content = None + + _request = build_http_route_config_create_or_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + http_route_name=http_route_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.HttpRouteConfig, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def update( + self, + resource_group_name: str, + environment_name: str, + http_route_name: str, + http_route_config_envelope: _models.HttpRouteConfig, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.HttpRouteConfig: + """Update tags of a manged http route object. + + Patches an http route config resource. Only patching of tags is supported. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param http_route_name: Name of the Http Route Config Resource. Required. + :type http_route_name: str + :param http_route_config_envelope: Properties of http route config that need to be updated. + Required. + :type http_route_config_envelope: ~azure.mgmt.appcontainers.models.HttpRouteConfig + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: HttpRouteConfig. The HttpRouteConfig is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.HttpRouteConfig + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update( + self, + resource_group_name: str, + environment_name: str, + http_route_name: str, + http_route_config_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.HttpRouteConfig: + """Update tags of a manged http route object. + + Patches an http route config resource. Only patching of tags is supported. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param http_route_name: Name of the Http Route Config Resource. Required. + :type http_route_name: str + :param http_route_config_envelope: Properties of http route config that need to be updated. + Required. + :type http_route_config_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: HttpRouteConfig. The HttpRouteConfig is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.HttpRouteConfig + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update( + self, + resource_group_name: str, + environment_name: str, + http_route_name: str, + http_route_config_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.HttpRouteConfig: + """Update tags of a manged http route object. + + Patches an http route config resource. Only patching of tags is supported. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param http_route_name: Name of the Http Route Config Resource. Required. + :type http_route_name: str + :param http_route_config_envelope: Properties of http route config that need to be updated. + Required. + :type http_route_config_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: HttpRouteConfig. The HttpRouteConfig is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.HttpRouteConfig + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def update( + self, + resource_group_name: str, + environment_name: str, + http_route_name: str, + http_route_config_envelope: Union[_models.HttpRouteConfig, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.HttpRouteConfig: + """Update tags of a manged http route object. + + Patches an http route config resource. Only patching of tags is supported. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param http_route_name: Name of the Http Route Config Resource. Required. + :type http_route_name: str + :param http_route_config_envelope: Properties of http route config that need to be updated. Is + one of the following types: HttpRouteConfig, JSON, IO[bytes] Required. + :type http_route_config_envelope: ~azure.mgmt.appcontainers.models.HttpRouteConfig or JSON or + IO[bytes] + :return: HttpRouteConfig. The HttpRouteConfig is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.HttpRouteConfig + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.HttpRouteConfig] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(http_route_config_envelope, (IOBase, bytes)): + _content = http_route_config_envelope + else: + _content = json.dumps(http_route_config_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_http_route_config_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + http_route_name=http_route_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.HttpRouteConfig, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _delete_initial( + self, resource_group_name: str, environment_name: str, http_route_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_http_route_config_delete_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + http_route_name=http_route_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = 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]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, resource_group_name: str, environment_name: str, http_route_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes the specified Managed Http Route. + + Deletes the specified Managed Http Route. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param http_route_name: Name of the Http Route Config Resource. Required. + :type http_route_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + environment_name=environment_name, + http_route_name=http_route_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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, environment_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.HttpRouteConfig"]: + """Get the Managed Http Routes in a given managed environment. + + Get the Managed Http Routes in a given managed environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :return: An iterator like instance of HttpRouteConfig + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.HttpRouteConfig] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.HttpRouteConfig]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_http_route_config_list_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.HttpRouteConfig], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class JobsExecutionsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`jobs_executions` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def list( + self, resource_group_name: str, job_name: str, *, filter: Optional[str] = None, **kwargs: Any + ) -> AsyncItemPaged["_models.JobExecution"]: + """Get a Container Apps Job's executions. + + Get a Container Apps Job's executions. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :keyword filter: The filter to apply on the operation. Default value is None. + :paramtype filter: str + :return: An iterator like instance of JobExecution + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.JobExecution] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.JobExecution]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_jobs_executions_list_request( + resource_group_name=resource_group_name, + job_name=job_name, + subscription_id=self._config.subscription_id, + filter=filter, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.JobExecution], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class ManagedEnvironmentDiagnosticsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`managed_environment_diagnostics` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def list_detectors( + self, resource_group_name: str, environment_name: str, **kwargs: Any + ) -> _models.DiagnosticsCollection: + """Get the list of diagnostics for a given Managed Environment. + + Get the list of diagnostics for a Managed Environment used to host container apps. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :return: DiagnosticsCollection. The DiagnosticsCollection is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DiagnosticsCollection + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DiagnosticsCollection] = kwargs.pop("cls", None) + + _request = build_managed_environment_diagnostics_list_detectors_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DiagnosticsCollection, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def get_detector( + self, resource_group_name: str, environment_name: str, detector_name: str, **kwargs: Any + ) -> _models.Diagnostics: + """Get the diagnostics data for a given Managed Environment. + + Get the diagnostics data for a Managed Environment used to host container apps. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param detector_name: Name of the detector. Required. + :type detector_name: str + :return: Diagnostics. The Diagnostics is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Diagnostics + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.Diagnostics] = kwargs.pop("cls", None) + + _request = build_managed_environment_diagnostics_get_detector_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + detector_name=detector_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Diagnostics, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class AvailableWorkloadProfilesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`available_workload_profiles` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get(self, location: str, **kwargs: Any) -> AsyncItemPaged["_models.AvailableWorkloadProfile"]: + """Get available workload profiles by location. + + Get all available workload profiles for a location. + + :param location: The location name. Required. + :type location: str + :return: An iterator like instance of AvailableWorkloadProfile + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.AvailableWorkloadProfile] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.AvailableWorkloadProfile]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_available_workload_profiles_get_request( + location=location, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.AvailableWorkloadProfile], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class BillingMetersOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`billing_meters` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get(self, location: str, **kwargs: Any) -> _models.BillingMeterCollection: + """Get billing meters by location. + + Get all billingMeters for a location. + + :param location: The location name. Required. + :type location: str + :return: BillingMeterCollection. The BillingMeterCollection is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.BillingMeterCollection + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.BillingMeterCollection] = kwargs.pop("cls", None) + + _request = build_billing_meters_get_request( + location=location, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.BillingMeterCollection, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class UsagesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`usages` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def list(self, location: str, **kwargs: Any) -> AsyncItemPaged["_models.Usage"]: + """Gets, for the specified location, the current resource usage information as well as the limits + under the subscription. + + :param location: The location name. Required. + :type location: str + :return: An iterator like instance of Usage + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.Usage] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.Usage]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_usages_list_request( + location=location, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Usage], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class ManagedEnvironmentUsagesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`managed_environment_usages` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def list(self, resource_group_name: str, environment_name: str, **kwargs: Any) -> AsyncItemPaged["_models.Usage"]: + """Gets the current usage information as well as the limits for environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :return: An iterator like instance of Usage + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.Usage] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.Usage]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_managed_environment_usages_list_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Usage], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class _ContainerAppsAPIClientOperationsMixin( + ClientMixinABC[AsyncPipelineClient[HttpRequest, AsyncHttpResponse], ContainerAppsAPIClientConfiguration] +): + + @distributed_trace_async + async def get_custom_domain_verification_id(self, **kwargs: Any) -> str: + """Get the verification id of a subscription used for verifying custom domains. + + :return: str + :rtype: str + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[str] = kwargs.pop("cls", None) + + _request = build_container_apps_api_get_custom_domain_verification_id_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(str, response.text()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def job_execution( + self, resource_group_name: str, job_name: str, job_execution_name: str, **kwargs: Any + ) -> _models.JobExecution: + """Get details of a single job execution. + + Get details of a single job execution. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :param job_execution_name: Job execution name. Required. + :type job_execution_name: str + :return: JobExecution. The JobExecution is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.JobExecution + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.JobExecution] = kwargs.pop("cls", None) + + _request = build_container_apps_api_job_execution_request( + resource_group_name=resource_group_name, + job_name=job_name, + job_execution_name=job_execution_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.JobExecution, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_patch.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_patch.py index f7dd32510333..87676c65a8f0 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_patch.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_patch.py @@ -1,14 +1,15 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------- """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 + +__all__: list[str] = [] # Add all objects you want publicly available to users at this package level def patch_sdk(): diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_usages_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_usages_operations.py deleted file mode 100644 index 32c0c4869b2f..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_usages_operations.py +++ /dev/null @@ -1,137 +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 collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -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 ..._utils.serialization import Deserializer, Serializer -from ...operations._usages_operations import build_list_request -from .._configuration import ContainerAppsAPIClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class UsagesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`usages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list(self, location: str, **kwargs: Any) -> AsyncItemPaged["_models.Usage"]: - """Gets, for the specified location, the current resource usage information as well as the limits - under the subscription. - - :param location: The location for which resource usage is queried. Required. - :type location: str - :return: An iterator like instance of either Usage or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.Usage] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ListUsagesResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ListUsagesResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/__init__.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/__init__.py index 5f39077a9383..20ee8ccdc12a 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/__init__.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/__init__.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- # pylint: disable=wrong-import-position @@ -13,20 +13,21 @@ from ._patch import * # pylint: disable=unused-wildcard-import -from ._models_py3 import ( # type: ignore +from ._models import ( # type: ignore AllowedAudiencesValidation, AllowedPrincipals, + AppInsightsConfiguration, AppLogsConfiguration, AppRegistration, + AppResiliency, + AppResiliencyProperties, Apple, AppleRegistration, AuthConfig, - AuthConfigCollection, + AuthConfigProperties, AuthPlatform, - AvailableOperations, AvailableWorkloadProfile, AvailableWorkloadProfileProperties, - AvailableWorkloadProfilesCollection, AzureActiveDirectory, AzureActiveDirectoryLogin, AzureActiveDirectoryRegistration, @@ -40,31 +41,50 @@ BillingMeterCollection, BillingMeterProperties, BlobStorageTokenStore, + BuildConfiguration, + BuildProperties, + BuildResource, + BuildToken, + BuilderProperties, + BuilderResource, + BuilderResourceUpdate, + BuilderResourceUpdateProperties, Certificate, - CertificateCollection, CertificateKeyVaultProperties, CertificatePatch, CertificateProperties, CheckNameAvailabilityRequest, CheckNameAvailabilityResponse, + CircuitBreakerPolicy, ClientRegistration, Configuration, ConnectedEnvironment, - ConnectedEnvironmentCollection, ConnectedEnvironmentPatchResource, + ConnectedEnvironmentProperties, ConnectedEnvironmentStorage, ConnectedEnvironmentStorageProperties, ConnectedEnvironmentStoragesCollection, Container, ContainerApp, ContainerAppAuthToken, - ContainerAppCollection, + ContainerAppAuthTokenProperties, ContainerAppJobExecutions, ContainerAppProbe, ContainerAppProbeHttpGet, ContainerAppProbeHttpGetHttpHeadersItem, ContainerAppProbeTcpSocket, + ContainerAppProperties, + ContainerAppPropertiesPatchingConfiguration, ContainerAppSecret, + ContainerAppsBuildConfiguration, + ContainerAppsBuildProperties, + ContainerAppsBuildResource, + ContainerAppsFunction, + ContainerAppsFunctionProperties, + ContainerAppsPatchResource, + ContainerExecutionStatus, + ContainerRegistry, + ContainerRegistryWithCustomImage, ContainerResources, CookieExpiration, CorsPolicy, @@ -79,15 +99,31 @@ Dapr, DaprAppHealth, DaprComponent, - DaprComponentsCollection, + DaprComponentProperties, + DaprComponentResiliencyPolicy, + DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration, + DaprComponentResiliencyPolicyConfiguration, + DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration, + DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration, + DaprComponentResiliencyPolicyProperties, + DaprComponentResiliencyPolicyTimeoutPolicyConfiguration, + DaprComponentServiceBinding, DaprConfiguration, DaprMetadata, DaprSecret, DaprSecretsCollection, + DaprServiceBindMetadata, + DaprSubscription, + DaprSubscriptionBulkSubscribeOptions, + DaprSubscriptionProperties, + DaprSubscriptionRouteRule, + DaprSubscriptionRoutes, + DataDogConfiguration, DefaultAuthorizationPolicy, DefaultErrorResponse, DefaultErrorResponseError, DefaultErrorResponseErrorDetailsItem, + DestinationsConfiguration, DiagnosticDataProviderMetadata, DiagnosticDataProviderMetadataPropertyBagItem, DiagnosticDataTableResponseColumn, @@ -100,14 +136,24 @@ DiagnosticsDefinition, DiagnosticsProperties, DiagnosticsStatus, + DiskEncryptionConfiguration, + DiskEncryptionConfigurationKeyVaultConfiguration, + DiskEncryptionConfigurationKeyVaultConfigurationAuth, + DotNetComponent, + DotNetComponentConfigurationProperty, + DotNetComponentProperties, + DotNetComponentServiceBind, DynamicPoolConfiguration, EncryptionSettings, EnvironmentAuthToken, + EnvironmentAuthTokenProperties, EnvironmentVar, + EnvironmentVariable, ErrorAdditionalInfo, ErrorDetail, ErrorEntity, ErrorResponse, + ExecutionStatus, ExtendedLocation, Facebook, ForwardProxy, @@ -115,10 +161,17 @@ GithubActionConfiguration, GlobalValidation, Google, + Header, + HeaderMatch, + HeaderMatchMatch, + HttpConnectionPool, + HttpGet, + HttpRetryPolicy, + HttpRetryPolicyMatches, + HttpRetryPolicyRetryBackOff, HttpRoute, HttpRouteAction, HttpRouteConfig, - HttpRouteConfigCollection, HttpRouteConfigProperties, HttpRouteMatch, HttpRouteProvisioningErrors, @@ -141,7 +194,6 @@ JavaComponentProperties, JavaComponentPropertiesScale, JavaComponentServiceBind, - JavaComponentsCollection, Job, JobConfiguration, JobConfigurationEventTriggerConfig, @@ -150,54 +202,70 @@ JobExecution, JobExecutionBase, JobExecutionContainer, - JobExecutionNamesCollection, + JobExecutionProperties, JobExecutionTemplate, JobPatchProperties, JobPatchPropertiesProperties, + JobProperties, JobScale, JobScaleRule, JobSecretsCollection, JobTemplate, - JobsCollection, JwtClaimChecks, KedaConfiguration, + LabelHistory, + LabelHistoryProperties, + LabelHistoryRecordItem, LifecycleConfiguration, - ListUsagesResult, LogAnalyticsConfiguration, + LoggerSetting, LogicApp, + LogicAppProperties, Login, LoginRoutes, LoginScopes, - MaintenanceConfigurationCollection, + LogsConfiguration, MaintenanceConfigurationResource, ManagedCertificate, - ManagedCertificateCollection, ManagedCertificatePatch, ManagedCertificateProperties, ManagedEnvironment, + ManagedEnvironmentProperties, ManagedEnvironmentPropertiesPeerAuthentication, ManagedEnvironmentPropertiesPeerTrafficConfiguration, ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryption, ManagedEnvironmentStorage, ManagedEnvironmentStorageProperties, ManagedEnvironmentStoragesCollection, - ManagedEnvironmentsCollection, ManagedIdentitySetting, ManagedServiceIdentity, + McpServerCredential, + McpServerSettings, + MetricsConfiguration, Mtls, + NacosComponent, NfsAzureFileProperties, Nonce, + Object, OpenIdConnectClientCredential, OpenIdConnectConfig, OpenIdConnectLogin, OpenIdConnectRegistration, + OpenTelemetryConfiguration, OperationDetail, OperationDisplay, + OtlpConfiguration, + PatchDetails, + PatchDetailsNewLayer, + PatchDetailsOldLayer, + PatchProperties, + PatchSkipConfig, + PreBuildStep, PrivateEndpoint, PrivateEndpointConnection, - PrivateEndpointConnectionListResult, + PrivateEndpointConnectionProperties, PrivateLinkResource, - PrivateLinkResourceListResult, + PrivateLinkResourceProperties, PrivateLinkServiceConnectionState, ProxyResource, QueueScaleRule, @@ -206,16 +274,23 @@ Replica, ReplicaCollection, ReplicaContainer, + ReplicaExecutionStatus, + ReplicaProperties, Resource, ResourceTags, Revision, - RevisionCollection, + RevisionProperties, Runtime, + RuntimeDotnet, RuntimeJava, + RuntimeJavaJavaAgent, + RuntimeJavaJavaAgentLogging, Scale, ScaleConfiguration, ScaleRule, ScaleRuleAuth, + ScgRoute, + ScheduledEntries, ScheduledEntry, Secret, SecretKeyVaultProperties, @@ -228,19 +303,33 @@ SessionIngress, SessionNetworkConfiguration, SessionPool, - SessionPoolCollection, + SessionPoolProperties, SessionPoolSecret, SessionPoolUpdatableProperties, + SessionPoolUpdatablePropertiesProperties, + SessionProbe, + SessionProbeHttpGet, + SessionProbeHttpGetHttpHeadersItem, + SessionProbeTcpSocket, SessionRegistryCredentials, + SmbStorage, SourceControl, - SourceControlCollection, + SourceControlProperties, SpringBootAdminComponent, SpringCloudConfigComponent, SpringCloudEurekaComponent, + SpringCloudGatewayComponent, SystemData, + TcpConnectionPool, + TcpRetryPolicy, TcpScaleRule, Template, + TemplatePoolStatus, + TemplateStatus, + TemplateUpdateStatus, + TimeoutPolicy, TokenStore, + TracesConfiguration, TrackedResource, TrafficWeight, Twitter, @@ -251,17 +340,16 @@ VnetConfiguration, Volume, VolumeMount, + WorkflowArtifacts, WorkflowEnvelope, - WorkflowEnvelopeCollection, WorkflowEnvelopeProperties, WorkflowHealth, WorkloadProfile, WorkloadProfileStates, - WorkloadProfileStatesCollection, WorkloadProfileStatesProperties, ) -from ._container_apps_api_client_enums import ( # type: ignore +from ._enums import ( # type: ignore AccessMode, Action, ActiveRevisionsMode, @@ -269,7 +357,11 @@ AppProtocol, Applicability, BindingType, + BuildProvisioningState, + BuildStatus, + BuilderProvisioningState, CertificateProvisioningState, + CertificateType, CheckNameAvailabilityReason, ConnectedEnvironmentProvisioningState, ConnectedEnvironmentStorageProvisioningState, @@ -281,23 +373,34 @@ CookieExpirationConvention, CreatedByType, DaprComponentProvisioningState, + DetectionStatus, DnsVerificationTestResult, + DotNetComponentProvisioningState, + DotNetComponentType, EnvironmentProvisioningState, ExtendedLocationTypes, ForwardProxyConvention, HttpRouteProvisioningState, IdentitySettingsLifeCycle, + ImageType, IngressClientCertificateMode, + IngressTargetPortHttpScheme, IngressTransportMethod, JavaComponentProvisioningState, JavaComponentType, JobExecutionRunningState, JobProvisioningState, + JobRunningState, Kind, + Level, LifecycleType, LogLevel, + LogicAppsProxyMethod, ManagedCertificateDomainControlValidation, ManagedServiceIdentityType, + PatchApplyStatus, + PatchType, + PatchingMode, PoolManagementType, PrivateEndpointConnectionProvisioningState, PrivateEndpointServiceConnectionStatus, @@ -308,7 +411,9 @@ Scheme, SessionNetworkStatus, SessionPoolProvisioningState, + SessionProbeType, SourceControlOperationState, + Status, StorageType, TriggerType, Type, @@ -325,17 +430,18 @@ __all__ = [ "AllowedAudiencesValidation", "AllowedPrincipals", + "AppInsightsConfiguration", "AppLogsConfiguration", "AppRegistration", + "AppResiliency", + "AppResiliencyProperties", "Apple", "AppleRegistration", "AuthConfig", - "AuthConfigCollection", + "AuthConfigProperties", "AuthPlatform", - "AvailableOperations", "AvailableWorkloadProfile", "AvailableWorkloadProfileProperties", - "AvailableWorkloadProfilesCollection", "AzureActiveDirectory", "AzureActiveDirectoryLogin", "AzureActiveDirectoryRegistration", @@ -349,31 +455,50 @@ "BillingMeterCollection", "BillingMeterProperties", "BlobStorageTokenStore", + "BuildConfiguration", + "BuildProperties", + "BuildResource", + "BuildToken", + "BuilderProperties", + "BuilderResource", + "BuilderResourceUpdate", + "BuilderResourceUpdateProperties", "Certificate", - "CertificateCollection", "CertificateKeyVaultProperties", "CertificatePatch", "CertificateProperties", "CheckNameAvailabilityRequest", "CheckNameAvailabilityResponse", + "CircuitBreakerPolicy", "ClientRegistration", "Configuration", "ConnectedEnvironment", - "ConnectedEnvironmentCollection", "ConnectedEnvironmentPatchResource", + "ConnectedEnvironmentProperties", "ConnectedEnvironmentStorage", "ConnectedEnvironmentStorageProperties", "ConnectedEnvironmentStoragesCollection", "Container", "ContainerApp", "ContainerAppAuthToken", - "ContainerAppCollection", + "ContainerAppAuthTokenProperties", "ContainerAppJobExecutions", "ContainerAppProbe", "ContainerAppProbeHttpGet", "ContainerAppProbeHttpGetHttpHeadersItem", "ContainerAppProbeTcpSocket", + "ContainerAppProperties", + "ContainerAppPropertiesPatchingConfiguration", "ContainerAppSecret", + "ContainerAppsBuildConfiguration", + "ContainerAppsBuildProperties", + "ContainerAppsBuildResource", + "ContainerAppsFunction", + "ContainerAppsFunctionProperties", + "ContainerAppsPatchResource", + "ContainerExecutionStatus", + "ContainerRegistry", + "ContainerRegistryWithCustomImage", "ContainerResources", "CookieExpiration", "CorsPolicy", @@ -388,15 +513,31 @@ "Dapr", "DaprAppHealth", "DaprComponent", - "DaprComponentsCollection", + "DaprComponentProperties", + "DaprComponentResiliencyPolicy", + "DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration", + "DaprComponentResiliencyPolicyConfiguration", + "DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration", + "DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration", + "DaprComponentResiliencyPolicyProperties", + "DaprComponentResiliencyPolicyTimeoutPolicyConfiguration", + "DaprComponentServiceBinding", "DaprConfiguration", "DaprMetadata", "DaprSecret", "DaprSecretsCollection", + "DaprServiceBindMetadata", + "DaprSubscription", + "DaprSubscriptionBulkSubscribeOptions", + "DaprSubscriptionProperties", + "DaprSubscriptionRouteRule", + "DaprSubscriptionRoutes", + "DataDogConfiguration", "DefaultAuthorizationPolicy", "DefaultErrorResponse", "DefaultErrorResponseError", "DefaultErrorResponseErrorDetailsItem", + "DestinationsConfiguration", "DiagnosticDataProviderMetadata", "DiagnosticDataProviderMetadataPropertyBagItem", "DiagnosticDataTableResponseColumn", @@ -409,14 +550,24 @@ "DiagnosticsDefinition", "DiagnosticsProperties", "DiagnosticsStatus", + "DiskEncryptionConfiguration", + "DiskEncryptionConfigurationKeyVaultConfiguration", + "DiskEncryptionConfigurationKeyVaultConfigurationAuth", + "DotNetComponent", + "DotNetComponentConfigurationProperty", + "DotNetComponentProperties", + "DotNetComponentServiceBind", "DynamicPoolConfiguration", "EncryptionSettings", "EnvironmentAuthToken", + "EnvironmentAuthTokenProperties", "EnvironmentVar", + "EnvironmentVariable", "ErrorAdditionalInfo", "ErrorDetail", "ErrorEntity", "ErrorResponse", + "ExecutionStatus", "ExtendedLocation", "Facebook", "ForwardProxy", @@ -424,10 +575,17 @@ "GithubActionConfiguration", "GlobalValidation", "Google", + "Header", + "HeaderMatch", + "HeaderMatchMatch", + "HttpConnectionPool", + "HttpGet", + "HttpRetryPolicy", + "HttpRetryPolicyMatches", + "HttpRetryPolicyRetryBackOff", "HttpRoute", "HttpRouteAction", "HttpRouteConfig", - "HttpRouteConfigCollection", "HttpRouteConfigProperties", "HttpRouteMatch", "HttpRouteProvisioningErrors", @@ -450,7 +608,6 @@ "JavaComponentProperties", "JavaComponentPropertiesScale", "JavaComponentServiceBind", - "JavaComponentsCollection", "Job", "JobConfiguration", "JobConfigurationEventTriggerConfig", @@ -459,54 +616,70 @@ "JobExecution", "JobExecutionBase", "JobExecutionContainer", - "JobExecutionNamesCollection", + "JobExecutionProperties", "JobExecutionTemplate", "JobPatchProperties", "JobPatchPropertiesProperties", + "JobProperties", "JobScale", "JobScaleRule", "JobSecretsCollection", "JobTemplate", - "JobsCollection", "JwtClaimChecks", "KedaConfiguration", + "LabelHistory", + "LabelHistoryProperties", + "LabelHistoryRecordItem", "LifecycleConfiguration", - "ListUsagesResult", "LogAnalyticsConfiguration", + "LoggerSetting", "LogicApp", + "LogicAppProperties", "Login", "LoginRoutes", "LoginScopes", - "MaintenanceConfigurationCollection", + "LogsConfiguration", "MaintenanceConfigurationResource", "ManagedCertificate", - "ManagedCertificateCollection", "ManagedCertificatePatch", "ManagedCertificateProperties", "ManagedEnvironment", + "ManagedEnvironmentProperties", "ManagedEnvironmentPropertiesPeerAuthentication", "ManagedEnvironmentPropertiesPeerTrafficConfiguration", "ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryption", "ManagedEnvironmentStorage", "ManagedEnvironmentStorageProperties", "ManagedEnvironmentStoragesCollection", - "ManagedEnvironmentsCollection", "ManagedIdentitySetting", "ManagedServiceIdentity", + "McpServerCredential", + "McpServerSettings", + "MetricsConfiguration", "Mtls", + "NacosComponent", "NfsAzureFileProperties", "Nonce", + "Object", "OpenIdConnectClientCredential", "OpenIdConnectConfig", "OpenIdConnectLogin", "OpenIdConnectRegistration", + "OpenTelemetryConfiguration", "OperationDetail", "OperationDisplay", + "OtlpConfiguration", + "PatchDetails", + "PatchDetailsNewLayer", + "PatchDetailsOldLayer", + "PatchProperties", + "PatchSkipConfig", + "PreBuildStep", "PrivateEndpoint", "PrivateEndpointConnection", - "PrivateEndpointConnectionListResult", + "PrivateEndpointConnectionProperties", "PrivateLinkResource", - "PrivateLinkResourceListResult", + "PrivateLinkResourceProperties", "PrivateLinkServiceConnectionState", "ProxyResource", "QueueScaleRule", @@ -515,16 +688,23 @@ "Replica", "ReplicaCollection", "ReplicaContainer", + "ReplicaExecutionStatus", + "ReplicaProperties", "Resource", "ResourceTags", "Revision", - "RevisionCollection", + "RevisionProperties", "Runtime", + "RuntimeDotnet", "RuntimeJava", + "RuntimeJavaJavaAgent", + "RuntimeJavaJavaAgentLogging", "Scale", "ScaleConfiguration", "ScaleRule", "ScaleRuleAuth", + "ScgRoute", + "ScheduledEntries", "ScheduledEntry", "Secret", "SecretKeyVaultProperties", @@ -537,19 +717,33 @@ "SessionIngress", "SessionNetworkConfiguration", "SessionPool", - "SessionPoolCollection", + "SessionPoolProperties", "SessionPoolSecret", "SessionPoolUpdatableProperties", + "SessionPoolUpdatablePropertiesProperties", + "SessionProbe", + "SessionProbeHttpGet", + "SessionProbeHttpGetHttpHeadersItem", + "SessionProbeTcpSocket", "SessionRegistryCredentials", + "SmbStorage", "SourceControl", - "SourceControlCollection", + "SourceControlProperties", "SpringBootAdminComponent", "SpringCloudConfigComponent", "SpringCloudEurekaComponent", + "SpringCloudGatewayComponent", "SystemData", + "TcpConnectionPool", + "TcpRetryPolicy", "TcpScaleRule", "Template", + "TemplatePoolStatus", + "TemplateStatus", + "TemplateUpdateStatus", + "TimeoutPolicy", "TokenStore", + "TracesConfiguration", "TrackedResource", "TrafficWeight", "Twitter", @@ -560,13 +754,12 @@ "VnetConfiguration", "Volume", "VolumeMount", + "WorkflowArtifacts", "WorkflowEnvelope", - "WorkflowEnvelopeCollection", "WorkflowEnvelopeProperties", "WorkflowHealth", "WorkloadProfile", "WorkloadProfileStates", - "WorkloadProfileStatesCollection", "WorkloadProfileStatesProperties", "AccessMode", "Action", @@ -575,7 +768,11 @@ "AppProtocol", "Applicability", "BindingType", + "BuildProvisioningState", + "BuildStatus", + "BuilderProvisioningState", "CertificateProvisioningState", + "CertificateType", "CheckNameAvailabilityReason", "ConnectedEnvironmentProvisioningState", "ConnectedEnvironmentStorageProvisioningState", @@ -587,23 +784,34 @@ "CookieExpirationConvention", "CreatedByType", "DaprComponentProvisioningState", + "DetectionStatus", "DnsVerificationTestResult", + "DotNetComponentProvisioningState", + "DotNetComponentType", "EnvironmentProvisioningState", "ExtendedLocationTypes", "ForwardProxyConvention", "HttpRouteProvisioningState", "IdentitySettingsLifeCycle", + "ImageType", "IngressClientCertificateMode", + "IngressTargetPortHttpScheme", "IngressTransportMethod", "JavaComponentProvisioningState", "JavaComponentType", "JobExecutionRunningState", "JobProvisioningState", + "JobRunningState", "Kind", + "Level", "LifecycleType", "LogLevel", + "LogicAppsProxyMethod", "ManagedCertificateDomainControlValidation", "ManagedServiceIdentityType", + "PatchApplyStatus", + "PatchType", + "PatchingMode", "PoolManagementType", "PrivateEndpointConnectionProvisioningState", "PrivateEndpointServiceConnectionStatus", @@ -614,7 +822,9 @@ "Scheme", "SessionNetworkStatus", "SessionPoolProvisioningState", + "SessionProbeType", "SourceControlOperationState", + "Status", "StorageType", "TriggerType", "Type", diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_container_apps_api_client_enums.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_enums.py similarity index 55% rename from sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_container_apps_api_client_enums.py rename to sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_enums.py index ccb7d7b1b55f..57aa3217ed74 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_container_apps_api_client_enums.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_enums.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -14,7 +14,9 @@ class AccessMode(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Access mode for storage.""" READ_ONLY = "ReadOnly" + """ReadOnly.""" READ_WRITE = "ReadWrite" + """ReadWrite.""" class Action(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -23,36 +25,43 @@ class Action(str, Enum, metaclass=CaseInsensitiveEnumMeta): """ ALLOW = "Allow" + """Allow.""" DENY = "Deny" + """Deny.""" class ActiveRevisionsMode(str, Enum, metaclass=CaseInsensitiveEnumMeta): """ActiveRevisionsMode controls how active revisions are handled for the Container app: - - - .. raw:: html - - Multiple: multiple revisions can be active.Single: Only one - revision can be active at a time. Revision weights can not be used in this mode. If no value if - provided, this is the default.. + Single: Only one revision can be active at a time. Traffic weights cannot be used. + This is the default.Multiple: Multiple revisions can be active, including optional + traffic weights and labels.Labels: Only revisions with labels are active. Traffic + weights can be applied to labels.. """ MULTIPLE = "Multiple" + """Multiple.""" SINGLE = "Single" + """Single.""" + LABELS = "Labels" + """Labels.""" class Affinity(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Sticky Session Affinity.""" STICKY = "sticky" + """sticky.""" NONE = "none" + """none.""" class Applicability(str, Enum, metaclass=CaseInsensitiveEnumMeta): """indicates whether the profile is default for the location.""" LOCATION_DEFAULT = "LocationDefault" + """LocationDefault.""" CUSTOM = "Custom" + """Custom.""" class AppProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -61,46 +70,127 @@ class AppProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): """ HTTP = "http" + """http.""" GRPC = "grpc" + """grpc.""" class BindingType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Custom Domain binding type.""" DISABLED = "Disabled" + """Disabled.""" SNI_ENABLED = "SniEnabled" + """SniEnabled.""" AUTO = "Auto" + """Auto.""" + + +class BuilderProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Resource instance provisioning state.""" + + SUCCEEDED = "Succeeded" + """Succeeded.""" + FAILED = "Failed" + """Failed.""" + CANCELED = "Canceled" + """Canceled.""" + CREATING = "Creating" + """Creating.""" + UPDATING = "Updating" + """Updating.""" + DELETING = "Deleting" + """Deleting.""" + + +class BuildProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Resource instance provisioning state.""" + + SUCCEEDED = "Succeeded" + """Succeeded.""" + FAILED = "Failed" + """Failed.""" + CANCELED = "Canceled" + """Canceled.""" + CREATING = "Creating" + """Creating.""" + UPDATING = "Updating" + """Updating.""" + DELETING = "Deleting" + """Deleting.""" + + +class BuildStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Status of the build once it has been provisioned.""" + + NOT_STARTED = "NotStarted" + """NotStarted.""" + IN_PROGRESS = "InProgress" + """InProgress.""" + SUCCEEDED = "Succeeded" + """Succeeded.""" + CANCELED = "Canceled" + """Canceled.""" + FAILED = "Failed" + """Failed.""" class CertificateProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Provisioning state of the certificate.""" SUCCEEDED = "Succeeded" + """Succeeded.""" FAILED = "Failed" + """Failed.""" CANCELED = "Canceled" + """Canceled.""" DELETE_FAILED = "DeleteFailed" + """DeleteFailed.""" PENDING = "Pending" + """Pending.""" DELETING = "Deleting" + """Deleting.""" + + +class CertificateType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """The type of the certificate. Allowed values are ``ServerSSLCertificate`` and + ``ImagePullTrustedCA``. + """ + + SERVER_SSL_CERTIFICATE = "ServerSSLCertificate" + """ServerSSLCertificate.""" + IMAGE_PULL_TRUSTED_CA = "ImagePullTrustedCA" + """ImagePullTrustedCA.""" class CheckNameAvailabilityReason(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The reason why the given name is not available.""" + """Possible reasons for a name not being available.""" INVALID = "Invalid" + """Name is invalid.""" ALREADY_EXISTS = "AlreadyExists" + """Name already exists.""" class ConnectedEnvironmentProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Provisioning state of the Kubernetes Environment.""" SUCCEEDED = "Succeeded" + """Succeeded.""" FAILED = "Failed" + """Failed.""" CANCELED = "Canceled" + """Canceled.""" WAITING = "Waiting" + """Waiting.""" INITIALIZATION_IN_PROGRESS = "InitializationInProgress" + """InitializationInProgress.""" INFRASTRUCTURE_SETUP_IN_PROGRESS = "InfrastructureSetupInProgress" + """InfrastructureSetupInProgress.""" INFRASTRUCTURE_SETUP_COMPLETE = "InfrastructureSetupComplete" + """InfrastructureSetupComplete.""" SCHEDULED_FOR_DELETE = "ScheduledForDelete" + """ScheduledForDelete.""" class ConnectedEnvironmentStorageProvisioningState( # pylint: disable=name-too-long @@ -109,36 +199,52 @@ class ConnectedEnvironmentStorageProvisioningState( # pylint: disable=name-too- """Provisioning state of the storage.""" SUCCEEDED = "Succeeded" + """Succeeded.""" FAILED = "Failed" + """Failed.""" CANCELED = "Canceled" + """Canceled.""" IN_PROGRESS = "InProgress" + """InProgress.""" DELETING = "Deleting" + """Deleting.""" class ContainerAppContainerRunningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Current running state of the container.""" RUNNING = "Running" + """Running.""" TERMINATED = "Terminated" + """Terminated.""" WAITING = "Waiting" + """Waiting.""" class ContainerAppProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Provisioning state of the Container App.""" IN_PROGRESS = "InProgress" + """InProgress.""" SUCCEEDED = "Succeeded" + """Succeeded.""" FAILED = "Failed" + """Failed.""" CANCELED = "Canceled" + """Canceled.""" DELETING = "Deleting" + """Deleting.""" class ContainerAppReplicaRunningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Current running state of the replica.""" RUNNING = "Running" + """Running.""" NOT_RUNNING = "NotRunning" + """NotRunning.""" UNKNOWN = "Unknown" + """Unknown.""" class ContainerAppRunningStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -157,96 +263,187 @@ class ContainerAppRunningStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): class ContainerType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The container type of the sessions.""" + """The container type of the sessions. You can use your own container to build the session pool, + or you can use a predefined container to run workload with specific language. + """ CUSTOM_CONTAINER = "CustomContainer" + """CustomContainer.""" PYTHON_LTS = "PythonLTS" + """PythonLTS.""" + SHELL = "Shell" + """Shell.""" + NODE_LTS = "NodeLTS" + """NodeLTS.""" class CookieExpirationConvention(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The convention used when determining the session cookie's expiration.""" FIXED_TIME = "FixedTime" + """FixedTime.""" IDENTITY_PROVIDER_DERIVED = "IdentityProviderDerived" + """IdentityProviderDerived.""" class CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of identity that created the resource.""" + """The kind of entity that created the resource.""" USER = "User" + """The entity was created by a user.""" APPLICATION = "Application" + """The entity was created by an application.""" MANAGED_IDENTITY = "ManagedIdentity" + """The entity was created by a managed identity.""" KEY = "Key" + """The entity was created by a key.""" class DaprComponentProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Dapr Component.""" + """Provisioning state of the Connected Environment Dapr Component.""" SUCCEEDED = "Succeeded" + """Succeeded.""" FAILED = "Failed" + """Failed.""" CANCELED = "Canceled" + """Canceled.""" IN_PROGRESS = "InProgress" + """InProgress.""" DELETING = "Deleting" + """Deleting.""" + + +class DetectionStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """The status of the patch detection.""" + + SUCCEEDED = "Succeeded" + """Succeeded.""" + REGISTRY_LOGIN_FAILED = "RegistryLoginFailed" + """RegistryLoginFailed.""" + FAILED = "Failed" + """Failed.""" class DnsVerificationTestResult(str, Enum, metaclass=CaseInsensitiveEnumMeta): """DNS verification test result.""" PASSED = "Passed" + """Passed.""" FAILED = "Failed" + """Failed.""" SKIPPED = "Skipped" + """Skipped.""" + + +class DotNetComponentProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Provisioning state of the .NET Component.""" + + SUCCEEDED = "Succeeded" + """Succeeded.""" + FAILED = "Failed" + """Failed.""" + CANCELED = "Canceled" + """Canceled.""" + DELETING = "Deleting" + """Deleting.""" + IN_PROGRESS = "InProgress" + """InProgress.""" + + +class DotNetComponentType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Type of the .NET Component.""" + + ASPIRE_DASHBOARD = "AspireDashboard" + """AspireDashboard.""" class EnvironmentProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Provisioning state of the Environment.""" SUCCEEDED = "Succeeded" + """Succeeded.""" FAILED = "Failed" + """Failed.""" CANCELED = "Canceled" + """Canceled.""" WAITING = "Waiting" + """Waiting.""" INITIALIZATION_IN_PROGRESS = "InitializationInProgress" + """InitializationInProgress.""" INFRASTRUCTURE_SETUP_IN_PROGRESS = "InfrastructureSetupInProgress" + """InfrastructureSetupInProgress.""" INFRASTRUCTURE_SETUP_COMPLETE = "InfrastructureSetupComplete" + """InfrastructureSetupComplete.""" SCHEDULED_FOR_DELETE = "ScheduledForDelete" + """ScheduledForDelete.""" UPGRADE_REQUESTED = "UpgradeRequested" + """UpgradeRequested.""" UPGRADE_FAILED = "UpgradeFailed" + """UpgradeFailed.""" class ExtendedLocationTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of extendedLocation.""" CUSTOM_LOCATION = "CustomLocation" + """CustomLocation.""" class ForwardProxyConvention(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The convention used to determine the url of the request made.""" NO_PROXY = "NoProxy" + """NoProxy.""" STANDARD = "Standard" + """Standard.""" CUSTOM = "Custom" + """Custom.""" class HttpRouteProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The current provisioning state.""" SUCCEEDED = "Succeeded" + """Succeeded.""" FAILED = "Failed" + """Failed.""" CANCELED = "Canceled" + """Canceled.""" WAITING = "Waiting" + """Waiting.""" UPDATING = "Updating" + """Updating.""" DELETING = "Deleting" + """Deleting.""" PENDING = "Pending" + """Pending.""" class IdentitySettingsLifeCycle(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Use to select the lifecycle stages of a Container App during which the Managed Identity should + """Use to select the lifecycle stages of a Session Pool during which the Managed Identity should be available. """ - INIT = "Init" - MAIN = "Main" NONE = "None" + """None.""" + MAIN = "Main" + """Main.""" + INIT = "Init" + """Init.""" ALL = "All" + """All.""" + + +class ImageType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """The type of the image. Set to CloudBuild to let the system manages the image, where user will + not be able to update image through image field. Set to ContainerImage for user provided image. + """ + + CLOUD_BUILD = "CloudBuild" + """CloudBuild.""" + CONTAINER_IMAGE = "ContainerImage" + """ContainerImage.""" class IngressClientCertificateMode(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -256,57 +453,108 @@ class IngressClientCertificateMode(str, Enum, metaclass=CaseInsensitiveEnumMeta) """ IGNORE = "ignore" + """ignore.""" ACCEPT = "accept" + """accept.""" REQUIRE = "require" + """require.""" + + +class IngressTargetPortHttpScheme(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Whether an http app listens on http or https.""" + + HTTP = "http" + """http.""" + HTTPS = "https" + """https.""" class IngressTransportMethod(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Ingress transport protocol.""" AUTO = "auto" + """auto.""" HTTP = "http" + """http.""" HTTP2 = "http2" + """http2.""" TCP = "tcp" + """tcp.""" class JavaComponentProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Provisioning state of the Java Component.""" SUCCEEDED = "Succeeded" + """Succeeded.""" FAILED = "Failed" + """Failed.""" CANCELED = "Canceled" + """Canceled.""" DELETING = "Deleting" + """Deleting.""" IN_PROGRESS = "InProgress" + """InProgress.""" class JavaComponentType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Type of the Java Component.""" SPRING_BOOT_ADMIN = "SpringBootAdmin" + """SpringBootAdmin.""" SPRING_CLOUD_EUREKA = "SpringCloudEureka" + """SpringCloudEureka.""" SPRING_CLOUD_CONFIG = "SpringCloudConfig" + """SpringCloudConfig.""" + SPRING_CLOUD_GATEWAY = "SpringCloudGateway" + """SpringCloudGateway.""" + NACOS = "Nacos" + """Nacos.""" class JobExecutionRunningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Current running State of the job.""" RUNNING = "Running" + """Running.""" PROCESSING = "Processing" + """Processing.""" STOPPED = "Stopped" + """Stopped.""" DEGRADED = "Degraded" + """Degraded.""" FAILED = "Failed" + """Failed.""" UNKNOWN = "Unknown" + """Unknown.""" SUCCEEDED = "Succeeded" + """Succeeded.""" class JobProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Provisioning state of the Container Apps Job.""" IN_PROGRESS = "InProgress" + """InProgress.""" SUCCEEDED = "Succeeded" + """Succeeded.""" FAILED = "Failed" + """Failed.""" CANCELED = "Canceled" + """Canceled.""" DELETING = "Deleting" + """Deleting.""" + + +class JobRunningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Current running state of the job.""" + + READY = "Ready" + """Ready.""" + PROGRESSING = "Progressing" + """Progressing.""" + SUSPENDED = "Suspended" + """Suspended.""" class Kind(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -315,14 +563,44 @@ class Kind(str, Enum, metaclass=CaseInsensitiveEnumMeta): """ WORKFLOWAPP = "workflowapp" + """workflowapp.""" FUNCTIONAPP = "functionapp" + """functionapp.""" + + +class Level(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """The specified logger's log level.""" + + OFF = "off" + """off.""" + ERROR = "error" + """error.""" + INFO = "info" + """info.""" + DEBUG = "debug" + """debug.""" + TRACE = "trace" + """trace.""" + WARN = "warn" + """warn.""" class LifecycleType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The lifecycle type of the session pool.""" TIMED = "Timed" + """Timed.""" ON_CONTAINER_EXIT = "OnContainerExit" + """OnContainerExit.""" + + +class LogicAppsProxyMethod(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Type of LogicAppsProxyMethod.""" + + GET = "GET" + """GET.""" + POST = "POST" + """POST.""" class LogLevel(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -331,9 +609,13 @@ class LogLevel(str, Enum, metaclass=CaseInsensitiveEnumMeta): """ INFO = "info" + """info.""" DEBUG = "debug" + """debug.""" WARN = "warn" + """warn.""" ERROR = "error" + """error.""" class ManagedCertificateDomainControlValidation( # pylint: disable=name-too-long @@ -342,8 +624,11 @@ class ManagedCertificateDomainControlValidation( # pylint: disable=name-too-lon """Selected type of domain control validation for managed certificates.""" CNAME = "CNAME" + """CNAME.""" HTTP = "HTTP" + """HTTP.""" TXT = "TXT" + """TXT.""" class ManagedServiceIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -352,16 +637,73 @@ class ManagedServiceIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """ NONE = "None" + """No managed identity.""" SYSTEM_ASSIGNED = "SystemAssigned" + """System assigned managed identity.""" USER_ASSIGNED = "UserAssigned" + """User assigned managed identity.""" SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned" + """System and user assigned managed identity.""" + + +class PatchApplyStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """The status of the patch once it has been provisioned.""" + + NOT_STARTED = "NotStarted" + """NotStarted.""" + REBASE_IN_PROGRESS = "RebaseInProgress" + """RebaseInProgress.""" + CREATING_REVISION = "CreatingRevision" + """CreatingRevision.""" + SUCCEEDED = "Succeeded" + """Succeeded.""" + CANCELED = "Canceled" + """Canceled.""" + REBASE_FAILED = "RebaseFailed" + """RebaseFailed.""" + REVISION_CREATION_FAILED = "RevisionCreationFailed" + """RevisionCreationFailed.""" + IMAGE_PUSH_PULL_FAILED = "ImagePushPullFailed" + """ImagePushPullFailed.""" + MANUALLY_SKIPPED = "ManuallySkipped" + """ManuallySkipped.""" + + +class PatchingMode(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Patching mode for the container app. Null or default in this field will be interpreted as + Automatic by RP. Automatic mode will automatically apply available patches. Manual mode will + require the user to manually apply patches. Disabled mode will stop patch detection and auto + patching. + """ + + AUTOMATIC = "Automatic" + """Automatic.""" + MANUAL = "Manual" + """Manual.""" + DISABLED = "Disabled" + """Disabled.""" + + +class PatchType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """The type for the patch.""" + + FRAMEWORK_SECURITY = "FrameworkSecurity" + """FrameworkSecurity.""" + OS_SECURITY = "OSSecurity" + """OSSecurity.""" + FRAMEWORK_AND_OS_SECURITY = "FrameworkAndOSSecurity" + """FrameworkAndOSSecurity.""" + OTHER = "Other" + """Other.""" class PoolManagementType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The pool management type of the session pool.""" MANUAL = "Manual" + """Manual.""" DYNAMIC = "Dynamic" + """Dynamic.""" class PrivateEndpointConnectionProvisioningState( # pylint: disable=name-too-long @@ -370,161 +712,260 @@ class PrivateEndpointConnectionProvisioningState( # pylint: disable=name-too-lo """The current provisioning state.""" SUCCEEDED = "Succeeded" + """Succeeded.""" FAILED = "Failed" + """Failed.""" CANCELED = "Canceled" + """Canceled.""" WAITING = "Waiting" + """Waiting.""" UPDATING = "Updating" + """Updating.""" DELETING = "Deleting" + """Deleting.""" PENDING = "Pending" + """Pending.""" class PrivateEndpointServiceConnectionStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The private endpoint connection status.""" PENDING = "Pending" + """Pending.""" APPROVED = "Approved" + """Approved.""" REJECTED = "Rejected" + """Rejected.""" DISCONNECTED = "Disconnected" + """Disconnected.""" class PublicNetworkAccess(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Property to allow or block all public traffic. Allowed Values: 'Enabled', 'Disabled'.""" ENABLED = "Enabled" + """Enabled.""" DISABLED = "Disabled" + """Disabled.""" class RevisionHealthState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Current health State of the revision.""" HEALTHY = "Healthy" + """Healthy.""" UNHEALTHY = "Unhealthy" + """Unhealthy.""" NONE = "None" + """None.""" class RevisionProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Current provisioning State of the revision.""" PROVISIONING = "Provisioning" + """Provisioning.""" PROVISIONED = "Provisioned" + """Provisioned.""" FAILED = "Failed" + """Failed.""" DEPROVISIONING = "Deprovisioning" + """Deprovisioning.""" DEPROVISIONED = "Deprovisioned" + """Deprovisioned.""" class RevisionRunningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Current running state of the revision.""" RUNNING = "Running" + """Running.""" PROCESSING = "Processing" + """Processing.""" STOPPED = "Stopped" + """Stopped.""" DEGRADED = "Degraded" + """Degraded.""" FAILED = "Failed" + """Failed.""" UNKNOWN = "Unknown" + """Unknown.""" class Scheme(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Scheme to use for connecting to the host. Defaults to HTTP.""" HTTP = "HTTP" + """HTTP.""" HTTPS = "HTTPS" + """HTTPS.""" class SessionNetworkStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Network status for the sessions.""" EGRESS_ENABLED = "EgressEnabled" + """EgressEnabled.""" EGRESS_DISABLED = "EgressDisabled" + """EgressDisabled.""" class SessionPoolProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Provisioning state of the session pool.""" IN_PROGRESS = "InProgress" + """InProgress.""" SUCCEEDED = "Succeeded" + """Succeeded.""" FAILED = "Failed" + """Failed.""" CANCELED = "Canceled" + """Canceled.""" DELETING = "Deleting" + """Deleting.""" + + +class SessionProbeType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Denotes the type of probe. Can be Liveness or Startup, Readiness probe is not supported in + sessions. Type must be unique for each probe within the context of a list of probes + (SessionProbes). + """ + + LIVENESS = "Liveness" + """Liveness.""" + STARTUP = "Startup" + """Startup.""" class SourceControlOperationState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Current provisioning State of the operation.""" IN_PROGRESS = "InProgress" + """InProgress.""" SUCCEEDED = "Succeeded" + """Succeeded.""" FAILED = "Failed" + """Failed.""" CANCELED = "Canceled" + """Canceled.""" + + +class Status(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Status of the label history record.""" + + SUCCEEDED = "Succeeded" + """Succeeded.""" + FAILED = "Failed" + """Failed.""" + STARTING = "Starting" + """Starting.""" class StorageType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Storage type for the volume. If not provided, use EmptyDir.""" AZURE_FILE = "AzureFile" + """AzureFile.""" EMPTY_DIR = "EmptyDir" + """EmptyDir.""" SECRET = "Secret" + """Secret.""" NFS_AZURE_FILE = "NfsAzureFile" + """NfsAzureFile.""" + SMB = "Smb" + """Smb.""" class TriggerType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Trigger type of the job.""" SCHEDULE = "Schedule" + """Schedule.""" EVENT = "Event" + """Event.""" MANUAL = "Manual" + """Manual.""" class Type(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of probe.""" LIVENESS = "Liveness" + """Liveness.""" READINESS = "Readiness" + """Readiness.""" STARTUP = "Startup" + """Startup.""" class UnauthenticatedClientActionV2(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The action to take when an unauthenticated client attempts to access the app.""" REDIRECT_TO_LOGIN_PAGE = "RedirectToLoginPage" + """RedirectToLoginPage.""" ALLOW_ANONYMOUS = "AllowAnonymous" + """AllowAnonymous.""" RETURN401 = "Return401" + """Return401.""" RETURN403 = "Return403" + """Return403.""" class WeekDay(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Day of the week when a managed environment can be patched.""" MONDAY = "Monday" + """Monday.""" TUESDAY = "Tuesday" + """Tuesday.""" WEDNESDAY = "Wednesday" + """Wednesday.""" THURSDAY = "Thursday" + """Thursday.""" FRIDAY = "Friday" + """Friday.""" SATURDAY = "Saturday" + """Saturday.""" SUNDAY = "Sunday" + """Sunday.""" class WorkflowHealthState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Gets or sets the workflow health state.""" NOT_SPECIFIED = "NotSpecified" + """NotSpecified.""" HEALTHY = "Healthy" + """Healthy.""" UNHEALTHY = "Unhealthy" + """Unhealthy.""" UNKNOWN = "Unknown" + """Unknown.""" class WorkflowKind(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Gets the logic app hybrid workflow kind.""" STATEFUL = "Stateful" + """Stateful.""" STATELESS = "Stateless" + """Stateless.""" AGENTIC = "Agentic" + """Agentic.""" class WorkflowState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The workflow state.""" NOT_SPECIFIED = "NotSpecified" + """NotSpecified.""" COMPLETED = "Completed" + """Completed.""" ENABLED = "Enabled" + """Enabled.""" DISABLED = "Disabled" + """Disabled.""" DELETED = "Deleted" + """Deleted.""" SUSPENDED = "Suspended" + """Suspended.""" diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_models.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_models.py new file mode 100644 index 000000000000..a492f8ba9279 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_models.py @@ -0,0 +1,15503 @@ +# pylint: disable=line-too-long,useless-suppression,too-many-lines +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +# pylint: disable=useless-super-delegation + +import datetime +from typing import Any, Literal, Mapping, Optional, TYPE_CHECKING, Union, overload + +from .._utils.model_base import Model as _Model, rest_discriminator, rest_field +from ._enums import JavaComponentType + +if TYPE_CHECKING: + from .. import models as _models + + +class AllowedAudiencesValidation(_Model): + """The configuration settings of the Allowed Audiences validation flow. + + :ivar allowed_audiences: The configuration settings of the allowed list of audiences from which + to validate the JWT token. + :vartype allowed_audiences: list[str] + """ + + allowed_audiences: Optional[list[str]] = rest_field( + name="allowedAudiences", visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration settings of the allowed list of audiences from which to validate the JWT + token.""" + + @overload + def __init__( + self, + *, + allowed_audiences: Optional[list[str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AllowedPrincipals(_Model): + """The configuration settings of the Azure Active Directory allowed principals. + + :ivar groups: The list of the allowed groups. + :vartype groups: list[str] + :ivar identities: The list of the allowed identities. + :vartype identities: list[str] + """ + + groups: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The list of the allowed groups.""" + identities: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The list of the allowed identities.""" + + @overload + def __init__( + self, + *, + groups: Optional[list[str]] = None, + identities: Optional[list[str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AppInsightsConfiguration(_Model): + """Configuration of Application Insights. + + :ivar connection_string: Application Insights connection string. + :vartype connection_string: str + """ + + connection_string: Optional[str] = rest_field( + name="connectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """Application Insights connection string.""" + + @overload + def __init__( + self, + *, + connection_string: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Apple(_Model): + """The configuration settings of the Apple provider. + + :ivar enabled: false if the Apple provider should not be enabled despite the set + registration; otherwise, true. + :vartype enabled: bool + :ivar registration: The configuration settings of the Apple registration. + :vartype registration: ~azure.mgmt.appcontainers.models.AppleRegistration + :ivar login: The configuration settings of the login flow. + :vartype login: ~azure.mgmt.appcontainers.models.LoginScopes + """ + + enabled: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """false if the Apple provider should not be enabled despite the set registration; + otherwise, true.""" + registration: Optional["_models.AppleRegistration"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration settings of the Apple registration.""" + login: Optional["_models.LoginScopes"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The configuration settings of the login flow.""" + + @overload + def __init__( + self, + *, + enabled: Optional[bool] = None, + registration: Optional["_models.AppleRegistration"] = None, + login: Optional["_models.LoginScopes"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AppleRegistration(_Model): + """The configuration settings of the registration for the Apple provider. + + :ivar client_id: The Client ID of the app used for login. + :vartype client_id: str + :ivar client_secret_setting_name: The app setting name that contains the client secret. + :vartype client_secret_setting_name: str + """ + + client_id: Optional[str] = rest_field(name="clientId", visibility=["read", "create", "update", "delete", "query"]) + """The Client ID of the app used for login.""" + client_secret_setting_name: Optional[str] = rest_field( + name="clientSecretSettingName", visibility=["read", "create", "update", "delete", "query"] + ) + """The app setting name that contains the client secret.""" + + @overload + def __init__( + self, + *, + client_id: Optional[str] = None, + client_secret_setting_name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AppLogsConfiguration(_Model): + """Configuration of application logs. + + :ivar destination: Logs destination, can be 'log-analytics', 'azure-monitor' or 'none'. + :vartype destination: str + :ivar log_analytics_configuration: Log Analytics configuration, must only be provided when + destination is configured as 'log-analytics'. + :vartype log_analytics_configuration: + ~azure.mgmt.appcontainers.models.LogAnalyticsConfiguration + """ + + destination: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Logs destination, can be 'log-analytics', 'azure-monitor' or 'none'.""" + log_analytics_configuration: Optional["_models.LogAnalyticsConfiguration"] = rest_field( + name="logAnalyticsConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """Log Analytics configuration, must only be provided when destination is configured as + 'log-analytics'.""" + + @overload + def __init__( + self, + *, + destination: Optional[str] = None, + log_analytics_configuration: Optional["_models.LogAnalyticsConfiguration"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AppRegistration(_Model): + """The configuration settings of the app registration for providers that have app ids and app + secrets. + + :ivar app_id: The App ID of the app used for login. + :vartype app_id: str + :ivar app_secret_setting_name: The app setting name that contains the app secret. + :vartype app_secret_setting_name: str + """ + + app_id: Optional[str] = rest_field(name="appId", visibility=["read", "create", "update", "delete", "query"]) + """The App ID of the app used for login.""" + app_secret_setting_name: Optional[str] = rest_field( + name="appSecretSettingName", visibility=["read", "create", "update", "delete", "query"] + ) + """The app setting name that contains the app secret.""" + + @overload + def __init__( + self, + *, + app_id: Optional[str] = None, + app_secret_setting_name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Resource(_Model): + """Resource. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + """ + + id: Optional[str] = rest_field(visibility=["read"]) + """Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.""" + name: Optional[str] = rest_field(visibility=["read"]) + """The name of the resource.""" + type: Optional[str] = rest_field(visibility=["read"]) + """The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or + \"Microsoft.Storage/storageAccounts\".""" + system_data: Optional["_models.SystemData"] = rest_field(name="systemData", visibility=["read"]) + """Azure Resource Manager metadata containing createdBy and modifiedBy information.""" + + +class ProxyResource(Resource): + """Proxy Resource. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + """ + + +class AppResiliency(ProxyResource): + """Configuration to setup App Resiliency. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar properties: App Resiliency resource specific properties. + :vartype properties: ~azure.mgmt.appcontainers.models.AppResiliencyProperties + """ + + properties: Optional["_models.AppResiliencyProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """App Resiliency resource specific properties.""" + + __flattened_items = [ + "timeout_policy", + "http_retry_policy", + "tcp_retry_policy", + "circuit_breaker_policy", + "http_connection_pool", + "tcp_connection_pool", + ] + + @overload + def __init__( + self, + *, + properties: Optional["_models.AppResiliencyProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class AppResiliencyProperties(_Model): + """App Resiliency resource specific properties. + + :ivar timeout_policy: Policy to set request timeouts. + :vartype timeout_policy: ~azure.mgmt.appcontainers.models.TimeoutPolicy + :ivar http_retry_policy: Policy that defines http request retry conditions. + :vartype http_retry_policy: ~azure.mgmt.appcontainers.models.HttpRetryPolicy + :ivar tcp_retry_policy: Policy that defines tcp request retry conditions. + :vartype tcp_retry_policy: ~azure.mgmt.appcontainers.models.TcpRetryPolicy + :ivar circuit_breaker_policy: Policy that defines circuit breaker conditions. + :vartype circuit_breaker_policy: ~azure.mgmt.appcontainers.models.CircuitBreakerPolicy + :ivar http_connection_pool: Defines parameters for http connection pooling. + :vartype http_connection_pool: ~azure.mgmt.appcontainers.models.HttpConnectionPool + :ivar tcp_connection_pool: Defines parameters for tcp connection pooling. + :vartype tcp_connection_pool: ~azure.mgmt.appcontainers.models.TcpConnectionPool + """ + + timeout_policy: Optional["_models.TimeoutPolicy"] = rest_field( + name="timeoutPolicy", visibility=["read", "create", "update", "delete", "query"] + ) + """Policy to set request timeouts.""" + http_retry_policy: Optional["_models.HttpRetryPolicy"] = rest_field( + name="httpRetryPolicy", visibility=["read", "create", "update", "delete", "query"] + ) + """Policy that defines http request retry conditions.""" + tcp_retry_policy: Optional["_models.TcpRetryPolicy"] = rest_field( + name="tcpRetryPolicy", visibility=["read", "create", "update", "delete", "query"] + ) + """Policy that defines tcp request retry conditions.""" + circuit_breaker_policy: Optional["_models.CircuitBreakerPolicy"] = rest_field( + name="circuitBreakerPolicy", visibility=["read", "create", "update", "delete", "query"] + ) + """Policy that defines circuit breaker conditions.""" + http_connection_pool: Optional["_models.HttpConnectionPool"] = rest_field( + name="httpConnectionPool", visibility=["read", "create", "update", "delete", "query"] + ) + """Defines parameters for http connection pooling.""" + tcp_connection_pool: Optional["_models.TcpConnectionPool"] = rest_field( + name="tcpConnectionPool", visibility=["read", "create", "update", "delete", "query"] + ) + """Defines parameters for tcp connection pooling.""" + + @overload + def __init__( + self, + *, + timeout_policy: Optional["_models.TimeoutPolicy"] = None, + http_retry_policy: Optional["_models.HttpRetryPolicy"] = None, + tcp_retry_policy: Optional["_models.TcpRetryPolicy"] = None, + circuit_breaker_policy: Optional["_models.CircuitBreakerPolicy"] = None, + http_connection_pool: Optional["_models.HttpConnectionPool"] = None, + tcp_connection_pool: Optional["_models.TcpConnectionPool"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AuthConfig(ProxyResource): + """Configuration settings for the Azure ContainerApp Service Authentication / Authorization + feature. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar properties: AuthConfig resource specific properties. + :vartype properties: ~azure.mgmt.appcontainers.models.AuthConfigProperties + """ + + properties: Optional["_models.AuthConfigProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """AuthConfig resource specific properties.""" + + __flattened_items = [ + "platform", + "global_validation", + "identity_providers", + "login", + "http_settings", + "encryption_settings", + ] + + @overload + def __init__( + self, + *, + properties: Optional["_models.AuthConfigProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class AuthConfigProperties(_Model): + """AuthConfig resource specific properties. + + :ivar platform: The configuration settings of the platform of ContainerApp Service + Authentication/Authorization. + :vartype platform: ~azure.mgmt.appcontainers.models.AuthPlatform + :ivar global_validation: The configuration settings that determines the validation flow of + users using Service Authentication/Authorization. + :vartype global_validation: ~azure.mgmt.appcontainers.models.GlobalValidation + :ivar identity_providers: The configuration settings of each of the identity providers used to + configure ContainerApp Service Authentication/Authorization. + :vartype identity_providers: ~azure.mgmt.appcontainers.models.IdentityProviders + :ivar login: The configuration settings of the login flow of users using ContainerApp Service + Authentication/Authorization. + :vartype login: ~azure.mgmt.appcontainers.models.Login + :ivar http_settings: The configuration settings of the HTTP requests for authentication and + authorization requests made against ContainerApp Service Authentication/Authorization. + :vartype http_settings: ~azure.mgmt.appcontainers.models.HttpSettings + :ivar encryption_settings: The configuration settings of the secrets references of encryption + key and signing key for ContainerApp Service Authentication/Authorization. + :vartype encryption_settings: ~azure.mgmt.appcontainers.models.EncryptionSettings + """ + + platform: Optional["_models.AuthPlatform"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The configuration settings of the platform of ContainerApp Service + Authentication/Authorization.""" + global_validation: Optional["_models.GlobalValidation"] = rest_field( + name="globalValidation", visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration settings that determines the validation flow of users using Service + Authentication/Authorization.""" + identity_providers: Optional["_models.IdentityProviders"] = rest_field( + name="identityProviders", visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration settings of each of the identity providers used to configure ContainerApp + Service Authentication/Authorization.""" + login: Optional["_models.Login"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The configuration settings of the login flow of users using ContainerApp Service + Authentication/Authorization.""" + http_settings: Optional["_models.HttpSettings"] = rest_field( + name="httpSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration settings of the HTTP requests for authentication and authorization requests + made against ContainerApp Service Authentication/Authorization.""" + encryption_settings: Optional["_models.EncryptionSettings"] = rest_field( + name="encryptionSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration settings of the secrets references of encryption key and signing key for + ContainerApp Service Authentication/Authorization.""" + + @overload + def __init__( + self, + *, + platform: Optional["_models.AuthPlatform"] = None, + global_validation: Optional["_models.GlobalValidation"] = None, + identity_providers: Optional["_models.IdentityProviders"] = None, + login: Optional["_models.Login"] = None, + http_settings: Optional["_models.HttpSettings"] = None, + encryption_settings: Optional["_models.EncryptionSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AuthPlatform(_Model): + """The configuration settings of the platform of ContainerApp Service + Authentication/Authorization. + + :ivar enabled: true if the Authentication / Authorization feature is enabled for + the current app; otherwise, false. + :vartype enabled: bool + :ivar runtime_version: The RuntimeVersion of the Authentication / Authorization feature in use + for the current app. The setting in this value can control the behavior of certain features in + the Authentication / Authorization module. + :vartype runtime_version: str + """ + + enabled: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """true if the Authentication / Authorization feature is enabled for the current app; + otherwise, false.""" + runtime_version: Optional[str] = rest_field( + name="runtimeVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """The RuntimeVersion of the Authentication / Authorization feature in use for the current app. + The setting in this value can control the behavior of certain features in the Authentication / + Authorization module.""" + + @overload + def __init__( + self, + *, + enabled: Optional[bool] = None, + runtime_version: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AvailableWorkloadProfile(ProxyResource): + """A workload profile with specific hardware configure to run container apps. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar location: Region of the workload profile. + :vartype location: str + :ivar properties: Revision resource specific properties. + :vartype properties: ~azure.mgmt.appcontainers.models.AvailableWorkloadProfileProperties + """ + + location: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Region of the workload profile.""" + properties: Optional["_models.AvailableWorkloadProfileProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Revision resource specific properties.""" + + @overload + def __init__( + self, + *, + location: Optional[str] = None, + properties: Optional["_models.AvailableWorkloadProfileProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AvailableWorkloadProfileProperties(_Model): + """Revision resource specific properties. + + :ivar category: Used to categorize workload profiles. + :vartype category: str + :ivar applicability: indicates whether the profile is default for the location. Known values + are: "LocationDefault" and "Custom". + :vartype applicability: str or ~azure.mgmt.appcontainers.models.Applicability + :ivar cores: Number of cores in CPU. + :vartype cores: int + :ivar memory_gi_b: Memory in GiB. + :vartype memory_gi_b: int + :ivar gpus: Number of GPUs. + :vartype gpus: int + :ivar display_name: The everyday name of the workload profile. + :vartype display_name: str + """ + + category: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Used to categorize workload profiles.""" + applicability: Optional[Union[str, "_models.Applicability"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """indicates whether the profile is default for the location. Known values are: + \"LocationDefault\" and \"Custom\".""" + cores: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Number of cores in CPU.""" + memory_gi_b: Optional[int] = rest_field( + name="memoryGiB", visibility=["read", "create", "update", "delete", "query"] + ) + """Memory in GiB.""" + gpus: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Number of GPUs.""" + display_name: Optional[str] = rest_field( + name="displayName", visibility=["read", "create", "update", "delete", "query"] + ) + """The everyday name of the workload profile.""" + + @overload + def __init__( + self, + *, + category: Optional[str] = None, + applicability: Optional[Union[str, "_models.Applicability"]] = None, + cores: Optional[int] = None, + memory_gi_b: Optional[int] = None, + gpus: Optional[int] = None, + display_name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureActiveDirectory(_Model): + """The configuration settings of the Azure Active directory provider. + + :ivar enabled: false if the Azure Active Directory provider should not be enabled + despite the set registration; otherwise, true. + :vartype enabled: bool + :ivar registration: The configuration settings of the Azure Active Directory app registration. + :vartype registration: ~azure.mgmt.appcontainers.models.AzureActiveDirectoryRegistration + :ivar login: The configuration settings of the Azure Active Directory login flow. + :vartype login: ~azure.mgmt.appcontainers.models.AzureActiveDirectoryLogin + :ivar validation: The configuration settings of the Azure Active Directory token validation + flow. + :vartype validation: ~azure.mgmt.appcontainers.models.AzureActiveDirectoryValidation + :ivar is_auto_provisioned: Gets a value indicating whether the Azure AD configuration was + auto-provisioned using 1st party tooling. This is an internal flag primarily intended to + support the Azure Management Portal. Users should not read or write to this property. + :vartype is_auto_provisioned: bool + """ + + enabled: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """false if the Azure Active Directory provider should not be enabled despite the set + registration; otherwise, true.""" + registration: Optional["_models.AzureActiveDirectoryRegistration"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration settings of the Azure Active Directory app registration.""" + login: Optional["_models.AzureActiveDirectoryLogin"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration settings of the Azure Active Directory login flow.""" + validation: Optional["_models.AzureActiveDirectoryValidation"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration settings of the Azure Active Directory token validation flow.""" + is_auto_provisioned: Optional[bool] = rest_field( + name="isAutoProvisioned", visibility=["read", "create", "update", "delete", "query"] + ) + """Gets a value indicating whether the Azure AD configuration was auto-provisioned using 1st party + tooling. This is an internal flag primarily intended to support the Azure Management Portal. + Users should not read or write to this property.""" + + @overload + def __init__( + self, + *, + enabled: Optional[bool] = None, + registration: Optional["_models.AzureActiveDirectoryRegistration"] = None, + login: Optional["_models.AzureActiveDirectoryLogin"] = None, + validation: Optional["_models.AzureActiveDirectoryValidation"] = None, + is_auto_provisioned: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureActiveDirectoryLogin(_Model): + """The configuration settings of the Azure Active Directory login flow. + + :ivar login_parameters: Login parameters to send to the OpenID Connect authorization endpoint + when a user logs in. Each parameter must be in the form "key=value". + :vartype login_parameters: list[str] + :ivar disable_www_authenticate: true if the www-authenticate provider should be + omitted from the request; otherwise, false. + :vartype disable_www_authenticate: bool + """ + + login_parameters: Optional[list[str]] = rest_field( + name="loginParameters", visibility=["read", "create", "update", "delete", "query"] + ) + """Login parameters to send to the OpenID Connect authorization endpoint when a user logs in. Each + parameter must be in the form \"key=value\".""" + disable_www_authenticate: Optional[bool] = rest_field( + name="disableWWWAuthenticate", visibility=["read", "create", "update", "delete", "query"] + ) + """true if the www-authenticate provider should be omitted from the request; + otherwise, false.""" + + @overload + def __init__( + self, + *, + login_parameters: Optional[list[str]] = None, + disable_www_authenticate: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureActiveDirectoryRegistration(_Model): + """The configuration settings of the Azure Active Directory app registration. + + :ivar open_id_issuer: The OpenID Connect Issuer URI that represents the entity which issues + access tokens for this application. When using Azure Active Directory, this value is the URI of + the directory tenant, e.g. `https://login.microsoftonline.com/v2.0/{tenant-guid}/ + `_. This URI is a case-sensitive + identifier for the token issuer. More information on OpenID Connect Discovery: + `http://openid.net/specs/openid-connect-discovery-1_0.html + `_. + :vartype open_id_issuer: str + :ivar client_id: The Client ID of this relying party application, known as the client_id. This + setting is required for enabling OpenID Connection authentication with Azure Active Directory + or other 3rd party OpenID Connect providers. More information on OpenID Connect: + `http://openid.net/specs/openid-connect-core-1_0.html + `_. + :vartype client_id: str + :ivar client_secret_setting_name: The app setting name that contains the client secret of the + relying party application. + :vartype client_secret_setting_name: str + :ivar client_secret_certificate_thumbprint: An alternative to the client secret, that is the + thumbprint of a certificate used for signing purposes. This property acts as a replacement for + the Client Secret. It is also optional. + :vartype client_secret_certificate_thumbprint: str + :ivar client_secret_certificate_subject_alternative_name: An alternative to the client secret + thumbprint, that is the subject alternative name of a certificate used for signing purposes. + This property acts as a replacement for the Client Secret Certificate Thumbprint. It is also + optional. + :vartype client_secret_certificate_subject_alternative_name: str + :ivar client_secret_certificate_issuer: An alternative to the client secret thumbprint, that is + the issuer of a certificate used for signing purposes. This property acts as a replacement for + the Client Secret Certificate Thumbprint. It is also optional. + :vartype client_secret_certificate_issuer: str + """ + + open_id_issuer: Optional[str] = rest_field( + name="openIdIssuer", visibility=["read", "create", "update", "delete", "query"] + ) + """The OpenID Connect Issuer URI that represents the entity which issues access tokens for this + application. When using Azure Active Directory, this value is the URI of the directory tenant, + e.g. `https://login.microsoftonline.com/v2.0/{tenant-guid}/ + `_. This URI is a case-sensitive + identifier for the token issuer. More information on OpenID Connect Discovery: + `http://openid.net/specs/openid-connect-discovery-1_0.html + `_.""" + client_id: Optional[str] = rest_field(name="clientId", visibility=["read", "create", "update", "delete", "query"]) + """The Client ID of this relying party application, known as the client_id. This setting is + required for enabling OpenID Connection authentication with Azure Active Directory or other 3rd + party OpenID Connect providers. More information on OpenID Connect: + `http://openid.net/specs/openid-connect-core-1_0.html + `_.""" + client_secret_setting_name: Optional[str] = rest_field( + name="clientSecretSettingName", visibility=["read", "create", "update", "delete", "query"] + ) + """The app setting name that contains the client secret of the relying party application.""" + client_secret_certificate_thumbprint: Optional[str] = rest_field( + name="clientSecretCertificateThumbprint", visibility=["read", "create", "update", "delete", "query"] + ) + """An alternative to the client secret, that is the thumbprint of a certificate used for signing + purposes. This property acts as a replacement for the Client Secret. It is also optional.""" + client_secret_certificate_subject_alternative_name: Optional[str] = rest_field( + name="clientSecretCertificateSubjectAlternativeName", visibility=["read", "create", "update", "delete", "query"] + ) + """An alternative to the client secret thumbprint, that is the subject alternative name of a + certificate used for signing purposes. This property acts as a replacement for the Client + Secret Certificate Thumbprint. It is also optional.""" + client_secret_certificate_issuer: Optional[str] = rest_field( + name="clientSecretCertificateIssuer", visibility=["read", "create", "update", "delete", "query"] + ) + """An alternative to the client secret thumbprint, that is the issuer of a certificate used for + signing purposes. This property acts as a replacement for the Client Secret Certificate + Thumbprint. It is also optional.""" + + @overload + def __init__( + self, + *, + open_id_issuer: Optional[str] = None, + client_id: Optional[str] = None, + client_secret_setting_name: Optional[str] = None, + client_secret_certificate_thumbprint: Optional[str] = None, + client_secret_certificate_subject_alternative_name: Optional[str] = None, + client_secret_certificate_issuer: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureActiveDirectoryValidation(_Model): + """The configuration settings of the Azure Active Directory token validation flow. + + :ivar jwt_claim_checks: The configuration settings of the checks that should be made while + validating the JWT Claims. + :vartype jwt_claim_checks: ~azure.mgmt.appcontainers.models.JwtClaimChecks + :ivar allowed_audiences: The list of audiences that can make successful + authentication/authorization requests. + :vartype allowed_audiences: list[str] + :ivar default_authorization_policy: The configuration settings of the default authorization + policy. + :vartype default_authorization_policy: + ~azure.mgmt.appcontainers.models.DefaultAuthorizationPolicy + """ + + jwt_claim_checks: Optional["_models.JwtClaimChecks"] = rest_field( + name="jwtClaimChecks", visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration settings of the checks that should be made while validating the JWT Claims.""" + allowed_audiences: Optional[list[str]] = rest_field( + name="allowedAudiences", visibility=["read", "create", "update", "delete", "query"] + ) + """The list of audiences that can make successful authentication/authorization requests.""" + default_authorization_policy: Optional["_models.DefaultAuthorizationPolicy"] = rest_field( + name="defaultAuthorizationPolicy", visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration settings of the default authorization policy.""" + + @overload + def __init__( + self, + *, + jwt_claim_checks: Optional["_models.JwtClaimChecks"] = None, + allowed_audiences: Optional[list[str]] = None, + default_authorization_policy: Optional["_models.DefaultAuthorizationPolicy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureCredentials(_Model): + """Container App credentials. + + :ivar client_id: Client Id. + :vartype client_id: str + :ivar client_secret: Client Secret. + :vartype client_secret: str + :ivar tenant_id: Tenant Id. + :vartype tenant_id: str + :ivar kind: Kind of auth github does for deploying the template. + :vartype kind: str + :ivar subscription_id: Subscription Id. + :vartype subscription_id: str + """ + + client_id: Optional[str] = rest_field(name="clientId", visibility=["create", "update"]) + """Client Id.""" + client_secret: Optional[str] = rest_field(name="clientSecret", visibility=["create", "update"]) + """Client Secret.""" + tenant_id: Optional[str] = rest_field(name="tenantId", visibility=["create", "update"]) + """Tenant Id.""" + kind: Optional[str] = rest_field(visibility=["create", "update"]) + """Kind of auth github does for deploying the template.""" + subscription_id: Optional[str] = rest_field( + name="subscriptionId", visibility=["read", "create", "update", "delete", "query"] + ) + """Subscription Id.""" + + @overload + def __init__( + self, + *, + client_id: Optional[str] = None, + client_secret: Optional[str] = None, + tenant_id: Optional[str] = None, + kind: Optional[str] = None, + subscription_id: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureFileProperties(_Model): + """Azure File Properties. + + :ivar account_name: Storage account name for azure file. + :vartype account_name: str + :ivar account_key: Storage account key for azure file. + :vartype account_key: str + :ivar account_key_vault_properties: Storage account key stored as an Azure Key Vault secret. + :vartype account_key_vault_properties: + ~azure.mgmt.appcontainers.models.SecretKeyVaultProperties + :ivar access_mode: Access mode for storage. Known values are: "ReadOnly" and "ReadWrite". + :vartype access_mode: str or ~azure.mgmt.appcontainers.models.AccessMode + :ivar share_name: Azure file share name. + :vartype share_name: str + """ + + account_name: Optional[str] = rest_field( + name="accountName", visibility=["read", "create", "update", "delete", "query"] + ) + """Storage account name for azure file.""" + account_key: Optional[str] = rest_field( + name="accountKey", visibility=["read", "create", "update", "delete", "query"] + ) + """Storage account key for azure file.""" + account_key_vault_properties: Optional["_models.SecretKeyVaultProperties"] = rest_field( + name="accountKeyVaultProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Storage account key stored as an Azure Key Vault secret.""" + access_mode: Optional[Union[str, "_models.AccessMode"]] = rest_field( + name="accessMode", visibility=["read", "create", "update", "delete", "query"] + ) + """Access mode for storage. Known values are: \"ReadOnly\" and \"ReadWrite\".""" + share_name: Optional[str] = rest_field(name="shareName", visibility=["read", "create", "update", "delete", "query"]) + """Azure file share name.""" + + @overload + def __init__( + self, + *, + account_name: Optional[str] = None, + account_key: Optional[str] = None, + account_key_vault_properties: Optional["_models.SecretKeyVaultProperties"] = None, + access_mode: Optional[Union[str, "_models.AccessMode"]] = None, + share_name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureStaticWebApps(_Model): + """The configuration settings of the Azure Static Web Apps provider. + + :ivar enabled: false if the Azure Static Web Apps provider should not be enabled + despite the set registration; otherwise, true. + :vartype enabled: bool + :ivar registration: The configuration settings of the Azure Static Web Apps registration. + :vartype registration: ~azure.mgmt.appcontainers.models.AzureStaticWebAppsRegistration + """ + + enabled: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """false if the Azure Static Web Apps provider should not be enabled despite the set + registration; otherwise, true.""" + registration: Optional["_models.AzureStaticWebAppsRegistration"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration settings of the Azure Static Web Apps registration.""" + + @overload + def __init__( + self, + *, + enabled: Optional[bool] = None, + registration: Optional["_models.AzureStaticWebAppsRegistration"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureStaticWebAppsRegistration(_Model): + """The configuration settings of the registration for the Azure Static Web Apps provider. + + :ivar client_id: The Client ID of the app used for login. + :vartype client_id: str + """ + + client_id: Optional[str] = rest_field(name="clientId", visibility=["read", "create", "update", "delete", "query"]) + """The Client ID of the app used for login.""" + + @overload + def __init__( + self, + *, + client_id: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class BaseContainer(_Model): + """Container App base container definition. + + :ivar image: Container image tag. + :vartype image: str + :ivar image_type: The type of the image. Set to CloudBuild to let the system manages the image, + where user will not be able to update image through image field. Set to ContainerImage for user + provided image. Known values are: "CloudBuild" and "ContainerImage". + :vartype image_type: str or ~azure.mgmt.appcontainers.models.ImageType + :ivar name: Custom container name. + :vartype name: str + :ivar command: Container start command. + :vartype command: list[str] + :ivar args: Container start command arguments. + :vartype args: list[str] + :ivar env: Container environment variables. + :vartype env: list[~azure.mgmt.appcontainers.models.EnvironmentVar] + :ivar resources: Container resource requirements. + :vartype resources: ~azure.mgmt.appcontainers.models.ContainerResources + :ivar volume_mounts: Container volume mounts. + :vartype volume_mounts: list[~azure.mgmt.appcontainers.models.VolumeMount] + """ + + image: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Container image tag.""" + image_type: Optional[Union[str, "_models.ImageType"]] = rest_field( + name="imageType", visibility=["read", "create", "update", "delete", "query"] + ) + """The type of the image. Set to CloudBuild to let the system manages the image, where user will + not be able to update image through image field. Set to ContainerImage for user provided image. + Known values are: \"CloudBuild\" and \"ContainerImage\".""" + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Custom container name.""" + command: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Container start command.""" + args: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Container start command arguments.""" + env: Optional[list["_models.EnvironmentVar"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Container environment variables.""" + resources: Optional["_models.ContainerResources"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Container resource requirements.""" + volume_mounts: Optional[list["_models.VolumeMount"]] = rest_field( + name="volumeMounts", visibility=["read", "create", "update", "delete", "query"] + ) + """Container volume mounts.""" + + @overload + def __init__( + self, + *, + image: Optional[str] = None, + image_type: Optional[Union[str, "_models.ImageType"]] = None, + name: Optional[str] = None, + command: Optional[list[str]] = None, + args: Optional[list[str]] = None, + env: Optional[list["_models.EnvironmentVar"]] = None, + resources: Optional["_models.ContainerResources"] = None, + volume_mounts: Optional[list["_models.VolumeMount"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class BillingMeter(ProxyResource): + """Billing meter. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar location: Region for the billing meter. + :vartype location: str + :ivar properties: Revision resource specific properties. + :vartype properties: ~azure.mgmt.appcontainers.models.BillingMeterProperties + """ + + location: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Region for the billing meter.""" + properties: Optional["_models.BillingMeterProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Revision resource specific properties.""" + + @overload + def __init__( + self, + *, + location: Optional[str] = None, + properties: Optional["_models.BillingMeterProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class BillingMeterCollection(_Model): + """Collection of billing meters. + + :ivar value: Collection of billing meters. Required. + :vartype value: list[~azure.mgmt.appcontainers.models.BillingMeter] + """ + + value: list["_models.BillingMeter"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Collection of billing meters. Required.""" + + @overload + def __init__( + self, + *, + value: list["_models.BillingMeter"], + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class BillingMeterProperties(_Model): + """Revision resource specific properties. + + :ivar category: Used to categorize billing meters. + :vartype category: str + :ivar meter_type: Billing meter type. + :vartype meter_type: str + :ivar display_name: The everyday name of the billing meter. + :vartype display_name: str + """ + + category: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Used to categorize billing meters.""" + meter_type: Optional[str] = rest_field(name="meterType", visibility=["read", "create", "update", "delete", "query"]) + """Billing meter type.""" + display_name: Optional[str] = rest_field( + name="displayName", visibility=["read", "create", "update", "delete", "query"] + ) + """The everyday name of the billing meter.""" + + @overload + def __init__( + self, + *, + category: Optional[str] = None, + meter_type: Optional[str] = None, + display_name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class BlobStorageTokenStore(_Model): + """The configuration settings of the storage of the tokens if blob storage is used. + + :ivar sas_url_setting_name: The name of the app secrets containing the SAS URL of the blob + storage containing the tokens. Should not be used along with blobContainerUri. + :vartype sas_url_setting_name: str + :ivar blob_container_uri: The URI of the blob storage containing the tokens. Should not be used + along with sasUrlSettingName. + :vartype blob_container_uri: str + :ivar client_id: The Client ID of a User-Assigned Managed Identity. Should not be used along + with managedIdentityResourceId. + :vartype client_id: str + :ivar managed_identity_resource_id: The Resource ID of a User-Assigned Managed Identity. Should + not be used along with clientId. + :vartype managed_identity_resource_id: str + """ + + sas_url_setting_name: Optional[str] = rest_field( + name="sasUrlSettingName", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the app secrets containing the SAS URL of the blob storage containing the tokens. + Should not be used along with blobContainerUri.""" + blob_container_uri: Optional[str] = rest_field( + name="blobContainerUri", visibility=["read", "create", "update", "delete", "query"] + ) + """The URI of the blob storage containing the tokens. Should not be used along with + sasUrlSettingName.""" + client_id: Optional[str] = rest_field(name="clientId", visibility=["read", "create", "update", "delete", "query"]) + """The Client ID of a User-Assigned Managed Identity. Should not be used along with + managedIdentityResourceId.""" + managed_identity_resource_id: Optional[str] = rest_field( + name="managedIdentityResourceId", visibility=["read", "create", "update", "delete", "query"] + ) + """The Resource ID of a User-Assigned Managed Identity. Should not be used along with clientId.""" + + @overload + def __init__( + self, + *, + sas_url_setting_name: Optional[str] = None, + blob_container_uri: Optional[str] = None, + client_id: Optional[str] = None, + managed_identity_resource_id: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class BuildConfiguration(_Model): + """Configuration of the build. + + :ivar base_os: Base OS used to build and run the app. + :vartype base_os: str + :ivar platform: Platform to be used to build and run the app. + :vartype platform: str + :ivar platform_version: Platform version to be used to build and run the app. + :vartype platform_version: str + :ivar environment_variables: List of environment variables to be passed to the build, secrets + should not be used in environment variable. + :vartype environment_variables: list[~azure.mgmt.appcontainers.models.EnvironmentVariable] + :ivar pre_build_steps: List of steps to perform before the build. + :vartype pre_build_steps: list[~azure.mgmt.appcontainers.models.PreBuildStep] + """ + + base_os: Optional[str] = rest_field(name="baseOs", visibility=["read", "create", "update", "delete", "query"]) + """Base OS used to build and run the app.""" + platform: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Platform to be used to build and run the app.""" + platform_version: Optional[str] = rest_field( + name="platformVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """Platform version to be used to build and run the app.""" + environment_variables: Optional[list["_models.EnvironmentVariable"]] = rest_field( + name="environmentVariables", visibility=["read", "create", "update", "delete", "query"] + ) + """List of environment variables to be passed to the build, secrets should not be used in + environment variable.""" + pre_build_steps: Optional[list["_models.PreBuildStep"]] = rest_field( + name="preBuildSteps", visibility=["read", "create", "update", "delete", "query"] + ) + """List of steps to perform before the build.""" + + @overload + def __init__( + self, + *, + base_os: Optional[str] = None, + platform: Optional[str] = None, + platform_version: Optional[str] = None, + environment_variables: Optional[list["_models.EnvironmentVariable"]] = None, + pre_build_steps: Optional[list["_models.PreBuildStep"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class BuilderProperties(_Model): + """The builder properties. + + :ivar provisioning_state: Provisioning state of a builder resource. Known values are: + "Succeeded", "Failed", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioning_state: str or ~azure.mgmt.appcontainers.models.BuilderProvisioningState + :ivar environment_id: Resource ID of the container apps environment that the builder is + associated with. Required. + :vartype environment_id: str + :ivar container_registries: List of mappings of container registries and the managed identity + used to connect to it. + :vartype container_registries: list[~azure.mgmt.appcontainers.models.ContainerRegistry] + """ + + provisioning_state: Optional[Union[str, "_models.BuilderProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """Provisioning state of a builder resource. Known values are: \"Succeeded\", \"Failed\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + environment_id: str = rest_field(name="environmentId", visibility=["read", "create", "update", "delete", "query"]) + """Resource ID of the container apps environment that the builder is associated with. Required.""" + container_registries: Optional[list["_models.ContainerRegistry"]] = rest_field( + name="containerRegistries", visibility=["read", "create", "update", "delete", "query"] + ) + """List of mappings of container registries and the managed identity used to connect to it.""" + + @overload + def __init__( + self, + *, + environment_id: str, + container_registries: Optional[list["_models.ContainerRegistry"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class TrackedResource(Resource): + """Tracked Resource. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + """ + + tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Resource tags.""" + location: str = rest_field(visibility=["read", "create"]) + """The geo-location where the resource lives. Required.""" + + @overload + def __init__( + self, + *, + location: str, + tags: Optional[dict[str, str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class BuilderResource(TrackedResource): + """Information about the SourceToCloud builder resource. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + :ivar properties: The resource-specific properties for this resource. + :vartype properties: ~azure.mgmt.appcontainers.models.BuilderProperties + :ivar identity: The managed service identities assigned to this resource. + :vartype identity: ~azure.mgmt.appcontainers.models.ManagedServiceIdentity + """ + + properties: Optional["_models.BuilderProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The resource-specific properties for this resource.""" + identity: Optional["_models.ManagedServiceIdentity"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The managed service identities assigned to this resource.""" + + __flattened_items = ["provisioning_state", "environment_id", "container_registries"] + + @overload + def __init__( + self, + *, + location: str, + tags: Optional[dict[str, str]] = None, + properties: Optional["_models.BuilderProperties"] = None, + identity: Optional["_models.ManagedServiceIdentity"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class BuilderResourceUpdate(_Model): + """The type used for update operations of the BuilderResource. + + :ivar identity: The managed service identities assigned to this resource. + :vartype identity: ~azure.mgmt.appcontainers.models.ManagedServiceIdentity + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: The updatable properties of the BuilderResource. + :vartype properties: ~azure.mgmt.appcontainers.models.BuilderResourceUpdateProperties + """ + + identity: Optional["_models.ManagedServiceIdentity"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The managed service identities assigned to this resource.""" + tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Resource tags.""" + properties: Optional["_models.BuilderResourceUpdateProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The updatable properties of the BuilderResource.""" + + __flattened_items = ["environment_id"] + + @overload + def __init__( + self, + *, + identity: Optional["_models.ManagedServiceIdentity"] = None, + tags: Optional[dict[str, str]] = None, + properties: Optional["_models.BuilderResourceUpdateProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class BuilderResourceUpdateProperties(_Model): + """The updatable properties of the BuilderResource. + + :ivar environment_id: Resource ID of the container apps environment that the builder is + associated with. + :vartype environment_id: str + """ + + environment_id: Optional[str] = rest_field( + name="environmentId", visibility=["read", "create", "update", "delete", "query"] + ) + """Resource ID of the container apps environment that the builder is associated with.""" + + @overload + def __init__( + self, + *, + environment_id: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class BuildProperties(_Model): + """The build properties. + + :ivar provisioning_state: Build provisioning state. Known values are: "Succeeded", "Failed", + "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioning_state: str or ~azure.mgmt.appcontainers.models.BuildProvisioningState + :ivar build_status: Status of the build once it has been provisioned. Known values are: + "NotStarted", "InProgress", "Succeeded", "Canceled", and "Failed". + :vartype build_status: str or ~azure.mgmt.appcontainers.models.BuildStatus + :ivar destination_container_registry: Container registry that the final image will be uploaded + to. + :vartype destination_container_registry: + ~azure.mgmt.appcontainers.models.ContainerRegistryWithCustomImage + :ivar configuration: Configuration of the build. + :vartype configuration: ~azure.mgmt.appcontainers.models.BuildConfiguration + :ivar upload_endpoint: Endpoint to which the source code should be uploaded. + :vartype upload_endpoint: str + :ivar log_stream_endpoint: Endpoint from which the build logs can be streamed. + :vartype log_stream_endpoint: str + :ivar token_endpoint: Endpoint to use to retrieve an authentication token for log streaming and + uploading source code. + :vartype token_endpoint: str + """ + + provisioning_state: Optional[Union[str, "_models.BuildProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """Build provisioning state. Known values are: \"Succeeded\", \"Failed\", \"Canceled\", + \"Creating\", \"Updating\", and \"Deleting\".""" + build_status: Optional[Union[str, "_models.BuildStatus"]] = rest_field(name="buildStatus", visibility=["read"]) + """Status of the build once it has been provisioned. Known values are: \"NotStarted\", + \"InProgress\", \"Succeeded\", \"Canceled\", and \"Failed\".""" + destination_container_registry: Optional["_models.ContainerRegistryWithCustomImage"] = rest_field( + name="destinationContainerRegistry", visibility=["read", "create", "update", "delete", "query"] + ) + """Container registry that the final image will be uploaded to.""" + configuration: Optional["_models.BuildConfiguration"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Configuration of the build.""" + upload_endpoint: Optional[str] = rest_field(name="uploadEndpoint", visibility=["read"]) + """Endpoint to which the source code should be uploaded.""" + log_stream_endpoint: Optional[str] = rest_field(name="logStreamEndpoint", visibility=["read"]) + """Endpoint from which the build logs can be streamed.""" + token_endpoint: Optional[str] = rest_field(name="tokenEndpoint", visibility=["read"]) + """Endpoint to use to retrieve an authentication token for log streaming and uploading source + code.""" + + @overload + def __init__( + self, + *, + destination_container_registry: Optional["_models.ContainerRegistryWithCustomImage"] = None, + configuration: Optional["_models.BuildConfiguration"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class BuildResource(ProxyResource): + """Information pertaining to an individual build. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar properties: The resource-specific properties for this resource. + :vartype properties: ~azure.mgmt.appcontainers.models.BuildProperties + """ + + properties: Optional["_models.BuildProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The resource-specific properties for this resource.""" + + __flattened_items = [ + "provisioning_state", + "build_status", + "destination_container_registry", + "configuration", + "upload_endpoint", + "log_stream_endpoint", + "token_endpoint", + ] + + @overload + def __init__( + self, + *, + properties: Optional["_models.BuildProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class BuildToken(_Model): + """Build Auth Token. + + :ivar token: Authentication token. + :vartype token: str + :ivar expires: Token expiration date. + :vartype expires: ~datetime.datetime + """ + + token: Optional[str] = rest_field(visibility=["read"]) + """Authentication token.""" + expires: Optional[datetime.datetime] = rest_field(visibility=["read"], format="rfc3339") + """Token expiration date.""" + + +class Certificate(TrackedResource): + """Certificate used for Custom Domain bindings of Container Apps in a Managed Environment. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + :ivar properties: Certificate resource specific properties. + :vartype properties: ~azure.mgmt.appcontainers.models.CertificateProperties + """ + + properties: Optional["_models.CertificateProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Certificate resource specific properties.""" + + @overload + def __init__( + self, + *, + location: str, + tags: Optional[dict[str, str]] = None, + properties: Optional["_models.CertificateProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CertificateKeyVaultProperties(_Model): + """Properties for a certificate stored in a Key Vault. + + :ivar identity: Resource ID of a managed identity to authenticate with Azure Key Vault, or + System to use a system-assigned identity. + :vartype identity: str + :ivar key_vault_url: URL pointing to the Azure Key Vault secret that holds the certificate. + :vartype key_vault_url: str + """ + + identity: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a + system-assigned identity.""" + key_vault_url: Optional[str] = rest_field( + name="keyVaultUrl", visibility=["read", "create", "update", "delete", "query"] + ) + """URL pointing to the Azure Key Vault secret that holds the certificate.""" + + @overload + def __init__( + self, + *, + identity: Optional[str] = None, + key_vault_url: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CertificatePatch(_Model): + """A certificate to update. + + :ivar tags: Application-specific metadata in the form of key-value pairs. + :vartype tags: dict[str, str] + """ + + tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Application-specific metadata in the form of key-value pairs.""" + + @overload + def __init__( + self, + *, + tags: Optional[dict[str, str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CertificateProperties(_Model): + """Certificate resource specific properties. + + :ivar provisioning_state: Provisioning state of the certificate. Known values are: "Succeeded", + "Failed", "Canceled", "DeleteFailed", "Pending", and "Deleting". + :vartype provisioning_state: str or + ~azure.mgmt.appcontainers.models.CertificateProvisioningState + :ivar deployment_errors: Any errors that occurred during deployment or deployment validation. + :vartype deployment_errors: str + :ivar certificate_key_vault_properties: Properties for a certificate stored in a Key Vault. + :vartype certificate_key_vault_properties: + ~azure.mgmt.appcontainers.models.CertificateKeyVaultProperties + :ivar password: Certificate password. + :vartype password: str + :ivar subject_name: Subject name of the certificate. + :vartype subject_name: str + :ivar subject_alternative_names: Subject alternative names the certificate applies to. + :vartype subject_alternative_names: list[str] + :ivar value: PFX or PEM blob. + :vartype value: bytes + :ivar issuer: Certificate issuer. + :vartype issuer: str + :ivar issue_date: Certificate issue Date. + :vartype issue_date: ~datetime.datetime + :ivar expiration_date: Certificate expiration date. + :vartype expiration_date: ~datetime.datetime + :ivar thumbprint: Certificate thumbprint. + :vartype thumbprint: str + :ivar valid: Is the certificate valid?. + :vartype valid: bool + :ivar public_key_hash: Public key hash. + :vartype public_key_hash: str + :ivar certificate_type: The type of the certificate. Allowed values are + ``ServerSSLCertificate`` and ``ImagePullTrustedCA``. Known values are: "ServerSSLCertificate" + and "ImagePullTrustedCA". + :vartype certificate_type: str or ~azure.mgmt.appcontainers.models.CertificateType + """ + + provisioning_state: Optional[Union[str, "_models.CertificateProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """Provisioning state of the certificate. Known values are: \"Succeeded\", \"Failed\", + \"Canceled\", \"DeleteFailed\", \"Pending\", and \"Deleting\".""" + deployment_errors: Optional[str] = rest_field(name="deploymentErrors", visibility=["read"]) + """Any errors that occurred during deployment or deployment validation.""" + certificate_key_vault_properties: Optional["_models.CertificateKeyVaultProperties"] = rest_field( + name="certificateKeyVaultProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Properties for a certificate stored in a Key Vault.""" + password: Optional[str] = rest_field(visibility=["create"]) + """Certificate password.""" + subject_name: Optional[str] = rest_field(name="subjectName", visibility=["read"]) + """Subject name of the certificate.""" + subject_alternative_names: Optional[list[str]] = rest_field(name="subjectAlternativeNames", visibility=["read"]) + """Subject alternative names the certificate applies to.""" + value: Optional[bytes] = rest_field(visibility=["create"], format="base64") + """PFX or PEM blob.""" + issuer: Optional[str] = rest_field(visibility=["read"]) + """Certificate issuer.""" + issue_date: Optional[datetime.datetime] = rest_field(name="issueDate", visibility=["read"], format="rfc3339") + """Certificate issue Date.""" + expiration_date: Optional[datetime.datetime] = rest_field( + name="expirationDate", visibility=["read"], format="rfc3339" + ) + """Certificate expiration date.""" + thumbprint: Optional[str] = rest_field(visibility=["read"]) + """Certificate thumbprint.""" + valid: Optional[bool] = rest_field(visibility=["read"]) + """Is the certificate valid?.""" + public_key_hash: Optional[str] = rest_field(name="publicKeyHash", visibility=["read"]) + """Public key hash.""" + certificate_type: Optional[Union[str, "_models.CertificateType"]] = rest_field( + name="certificateType", visibility=["read", "create", "update", "delete", "query"] + ) + """The type of the certificate. Allowed values are ``ServerSSLCertificate`` and + ``ImagePullTrustedCA``. Known values are: \"ServerSSLCertificate\" and \"ImagePullTrustedCA\".""" + + @overload + def __init__( + self, + *, + certificate_key_vault_properties: Optional["_models.CertificateKeyVaultProperties"] = None, + password: Optional[str] = None, + value: Optional[bytes] = None, + certificate_type: Optional[Union[str, "_models.CertificateType"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CheckNameAvailabilityRequest(_Model): + """The check availability request body. + + :ivar name: The name of the resource for which availability needs to be checked. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the resource for which availability needs to be checked.""" + type: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The resource type.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + type: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CheckNameAvailabilityResponse(_Model): + """The check availability result. + + :ivar name_available: Indicates if the resource name is available. + :vartype name_available: bool + :ivar reason: The reason why the given name is not available. Known values are: "Invalid" and + "AlreadyExists". + :vartype reason: str or ~azure.mgmt.appcontainers.models.CheckNameAvailabilityReason + :ivar message: Detailed reason why the given name is not available. + :vartype message: str + """ + + name_available: Optional[bool] = rest_field( + name="nameAvailable", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates if the resource name is available.""" + reason: Optional[Union[str, "_models.CheckNameAvailabilityReason"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The reason why the given name is not available. Known values are: \"Invalid\" and + \"AlreadyExists\".""" + message: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Detailed reason why the given name is not available.""" + + @overload + def __init__( + self, + *, + name_available: Optional[bool] = None, + reason: Optional[Union[str, "_models.CheckNameAvailabilityReason"]] = None, + message: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CircuitBreakerPolicy(_Model): + """Policy that defines circuit breaker conditions. + + :ivar consecutive_errors: Number of consecutive errors before the circuit breaker opens. + :vartype consecutive_errors: int + :ivar interval_in_seconds: The time interval, in seconds, between endpoint checks. This can + result in opening the circuit breaker if the check fails as well as closing the circuit breaker + if the check succeeds. Defaults to 10s. + :vartype interval_in_seconds: int + :ivar max_ejection_percent: Maximum percentage of hosts that will be ejected after failure + threshold has been met. + :vartype max_ejection_percent: int + """ + + consecutive_errors: Optional[int] = rest_field( + name="consecutiveErrors", visibility=["read", "create", "update", "delete", "query"] + ) + """Number of consecutive errors before the circuit breaker opens.""" + interval_in_seconds: Optional[int] = rest_field( + name="intervalInSeconds", visibility=["read", "create", "update", "delete", "query"] + ) + """The time interval, in seconds, between endpoint checks. This can result in opening the circuit + breaker if the check fails as well as closing the circuit breaker if the check succeeds. + Defaults to 10s.""" + max_ejection_percent: Optional[int] = rest_field( + name="maxEjectionPercent", visibility=["read", "create", "update", "delete", "query"] + ) + """Maximum percentage of hosts that will be ejected after failure threshold has been met.""" + + @overload + def __init__( + self, + *, + consecutive_errors: Optional[int] = None, + interval_in_seconds: Optional[int] = None, + max_ejection_percent: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ClientRegistration(_Model): + """The configuration settings of the app registration for providers that have client ids and + client secrets. + + :ivar client_id: The Client ID of the app used for login. + :vartype client_id: str + :ivar client_secret_setting_name: The app setting name that contains the client secret. + :vartype client_secret_setting_name: str + """ + + client_id: Optional[str] = rest_field(name="clientId", visibility=["read", "create", "update", "delete", "query"]) + """The Client ID of the app used for login.""" + client_secret_setting_name: Optional[str] = rest_field( + name="clientSecretSettingName", visibility=["read", "create", "update", "delete", "query"] + ) + """The app setting name that contains the client secret.""" + + @overload + def __init__( + self, + *, + client_id: Optional[str] = None, + client_secret_setting_name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Configuration(_Model): + """Non versioned Container App configuration properties that define the mutable settings of a + Container app. + + :ivar secrets: Collection of secrets used by a Container app. + :vartype secrets: list[~azure.mgmt.appcontainers.models.Secret] + :ivar active_revisions_mode: ActiveRevisionsMode controls how active revisions are handled for + the Container app: Single: Only one revision can be active at a time. Traffic + weights cannot be used. This is the default.Multiple: Multiple revisions can be + active, including optional traffic weights and labels.Labels: Only revisions with + labels are active. Traffic weights can be applied to labels.. Known values are: + "Multiple", "Single", and "Labels". + :vartype active_revisions_mode: str or ~azure.mgmt.appcontainers.models.ActiveRevisionsMode + :ivar target_label: Required in labels revisions mode. Label to apply to newly created + revision. + :vartype target_label: str + :ivar ingress: Ingress configurations. + :vartype ingress: ~azure.mgmt.appcontainers.models.Ingress + :ivar registries: Collection of private container registry credentials for containers used by + the Container app. + :vartype registries: list[~azure.mgmt.appcontainers.models.RegistryCredentials] + :ivar dapr: Dapr configuration for the Container App. + :vartype dapr: ~azure.mgmt.appcontainers.models.Dapr + :ivar runtime: App runtime configuration for the Container App. + :vartype runtime: ~azure.mgmt.appcontainers.models.Runtime + :ivar max_inactive_revisions: Optional. Max inactive revisions a Container App can have. + :vartype max_inactive_revisions: int + :ivar revision_transition_threshold: Optional. The percent of the total number of replicas that + must be brought up before revision transition occurs. Defaults to 100 when none is given. Value + must be greater than 0 and less than or equal to 100. + :vartype revision_transition_threshold: int + :ivar service: Container App to be a dev Container App Service. + :vartype service: ~azure.mgmt.appcontainers.models.Service + :ivar identity_settings: Optional settings for Managed Identities that are assigned to the + Container App. If a Managed Identity is not specified here, default settings will be used. + :vartype identity_settings: list[~azure.mgmt.appcontainers.models.IdentitySettings] + """ + + secrets: Optional[list["_models.Secret"]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Collection of secrets used by a Container app.""" + active_revisions_mode: Optional[Union[str, "_models.ActiveRevisionsMode"]] = rest_field( + name="activeRevisionsMode", visibility=["read", "create", "update", "delete", "query"] + ) + """ActiveRevisionsMode controls how active revisions are handled for the Container app: + Single: Only one revision can be active at a time. Traffic weights cannot be used. + This is the default.Multiple: Multiple revisions can be active, including optional + traffic weights and labels.Labels: Only revisions with labels are active. Traffic + weights can be applied to labels.. Known values are: \"Multiple\", \"Single\", + and \"Labels\".""" + target_label: Optional[str] = rest_field( + name="targetLabel", visibility=["read", "create", "update", "delete", "query"] + ) + """Required in labels revisions mode. Label to apply to newly created revision.""" + ingress: Optional["_models.Ingress"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Ingress configurations.""" + registries: Optional[list["_models.RegistryCredentials"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Collection of private container registry credentials for containers used by the Container app.""" + dapr: Optional["_models.Dapr"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Dapr configuration for the Container App.""" + runtime: Optional["_models.Runtime"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """App runtime configuration for the Container App.""" + max_inactive_revisions: Optional[int] = rest_field( + name="maxInactiveRevisions", visibility=["read", "create", "update", "delete", "query"] + ) + """Optional. Max inactive revisions a Container App can have.""" + revision_transition_threshold: Optional[int] = rest_field( + name="revisionTransitionThreshold", visibility=["read", "create", "update", "delete", "query"] + ) + """Optional. The percent of the total number of replicas that must be brought up before revision + transition occurs. Defaults to 100 when none is given. Value must be greater than 0 and less + than or equal to 100.""" + service: Optional["_models.Service"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Container App to be a dev Container App Service.""" + identity_settings: Optional[list["_models.IdentitySettings"]] = rest_field( + name="identitySettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Optional settings for Managed Identities that are assigned to the Container App. If a Managed + Identity is not specified here, default settings will be used.""" + + @overload + def __init__( + self, + *, + secrets: Optional[list["_models.Secret"]] = None, + active_revisions_mode: Optional[Union[str, "_models.ActiveRevisionsMode"]] = None, + target_label: Optional[str] = None, + ingress: Optional["_models.Ingress"] = None, + registries: Optional[list["_models.RegistryCredentials"]] = None, + dapr: Optional["_models.Dapr"] = None, + runtime: Optional["_models.Runtime"] = None, + max_inactive_revisions: Optional[int] = None, + revision_transition_threshold: Optional[int] = None, + service: Optional["_models.Service"] = None, + identity_settings: Optional[list["_models.IdentitySettings"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ConnectedEnvironment(TrackedResource): + """An environment for Kubernetes cluster specialized for web workloads by Azure App Service. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + :ivar properties: ConnectedEnvironment resource specific properties. + :vartype properties: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentProperties + :ivar extended_location: The complex type of the extended location. + :vartype extended_location: ~azure.mgmt.appcontainers.models.ExtendedLocation + """ + + properties: Optional["_models.ConnectedEnvironmentProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """ConnectedEnvironment resource specific properties.""" + extended_location: Optional["_models.ExtendedLocation"] = rest_field( + name="extendedLocation", visibility=["read", "create", "update", "delete", "query"] + ) + """The complex type of the extended location.""" + + __flattened_items = [ + "provisioning_state", + "deployment_errors", + "default_domain", + "static_ip", + "dapr_ai_connection_string", + "custom_domain_configuration", + ] + + @overload + def __init__( + self, + *, + location: str, + tags: Optional[dict[str, str]] = None, + properties: Optional["_models.ConnectedEnvironmentProperties"] = None, + extended_location: Optional["_models.ExtendedLocation"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class ResourceTags(_Model): + """List of key value pairs that describe the resource. This will overwrite the existing tags. + + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + """ + + tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update"]) + """Resource tags.""" + + @overload + def __init__( + self, + *, + tags: Optional[dict[str, str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ConnectedEnvironmentPatchResource(ResourceTags): + """Connected environment patch properties. + + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + """ + + @overload + def __init__( + self, + *, + tags: Optional[dict[str, str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ConnectedEnvironmentProperties(_Model): + """ConnectedEnvironment resource specific properties. + + :ivar provisioning_state: Provisioning state of the Kubernetes Environment. Known values are: + "Succeeded", "Failed", "Canceled", "Waiting", "InitializationInProgress", + "InfrastructureSetupInProgress", "InfrastructureSetupComplete", and "ScheduledForDelete". + :vartype provisioning_state: str or + ~azure.mgmt.appcontainers.models.ConnectedEnvironmentProvisioningState + :ivar deployment_errors: Any errors that occurred during deployment or deployment validation. + :vartype deployment_errors: str + :ivar default_domain: Default Domain Name for the cluster. + :vartype default_domain: str + :ivar static_ip: Static IP of the connectedEnvironment. + :vartype static_ip: str + :ivar dapr_ai_connection_string: Application Insights connection string used by Dapr to export + Service to Service communication telemetry. + :vartype dapr_ai_connection_string: str + :ivar custom_domain_configuration: Custom domain configuration for the environment. + :vartype custom_domain_configuration: + ~azure.mgmt.appcontainers.models.CustomDomainConfiguration + """ + + provisioning_state: Optional[Union[str, "_models.ConnectedEnvironmentProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """Provisioning state of the Kubernetes Environment. Known values are: \"Succeeded\", \"Failed\", + \"Canceled\", \"Waiting\", \"InitializationInProgress\", \"InfrastructureSetupInProgress\", + \"InfrastructureSetupComplete\", and \"ScheduledForDelete\".""" + deployment_errors: Optional[str] = rest_field(name="deploymentErrors", visibility=["read"]) + """Any errors that occurred during deployment or deployment validation.""" + default_domain: Optional[str] = rest_field(name="defaultDomain", visibility=["read"]) + """Default Domain Name for the cluster.""" + static_ip: Optional[str] = rest_field(name="staticIp", visibility=["read", "create", "update", "delete", "query"]) + """Static IP of the connectedEnvironment.""" + dapr_ai_connection_string: Optional[str] = rest_field( + name="daprAIConnectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """Application Insights connection string used by Dapr to export Service to Service communication + telemetry.""" + custom_domain_configuration: Optional["_models.CustomDomainConfiguration"] = rest_field( + name="customDomainConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """Custom domain configuration for the environment.""" + + @overload + def __init__( + self, + *, + static_ip: Optional[str] = None, + dapr_ai_connection_string: Optional[str] = None, + custom_domain_configuration: Optional["_models.CustomDomainConfiguration"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ConnectedEnvironmentStorage(ProxyResource): + """Storage resource for connectedEnvironment. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar properties: Storage properties. + :vartype properties: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorageProperties + """ + + properties: Optional["_models.ConnectedEnvironmentStorageProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Storage properties.""" + + @overload + def __init__( + self, + *, + properties: Optional["_models.ConnectedEnvironmentStorageProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ConnectedEnvironmentStorageProperties(_Model): + """Storage properties. + + :ivar provisioning_state: Provisioning state of the storage. Known values are: "Succeeded", + "Failed", "Canceled", "InProgress", and "Deleting". + :vartype provisioning_state: str or + ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorageProvisioningState + :ivar deployment_errors: Any errors that occurred during deployment or deployment validation. + :vartype deployment_errors: str + :ivar azure_file: Azure file properties. + :vartype azure_file: ~azure.mgmt.appcontainers.models.AzureFileProperties + :ivar smb: SMB storage properties. + :vartype smb: ~azure.mgmt.appcontainers.models.SmbStorage + """ + + provisioning_state: Optional[Union[str, "_models.ConnectedEnvironmentStorageProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """Provisioning state of the storage. Known values are: \"Succeeded\", \"Failed\", \"Canceled\", + \"InProgress\", and \"Deleting\".""" + deployment_errors: Optional[str] = rest_field(name="deploymentErrors", visibility=["read"]) + """Any errors that occurred during deployment or deployment validation.""" + azure_file: Optional["_models.AzureFileProperties"] = rest_field( + name="azureFile", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure file properties.""" + smb: Optional["_models.SmbStorage"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """SMB storage properties.""" + + @overload + def __init__( + self, + *, + azure_file: Optional["_models.AzureFileProperties"] = None, + smb: Optional["_models.SmbStorage"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ConnectedEnvironmentStoragesCollection(_Model): + """Collection of Storage for Environments. + + :ivar value: Collection of storage resources. Required. + :vartype value: list[~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage] + """ + + value: list["_models.ConnectedEnvironmentStorage"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Collection of storage resources. Required.""" + + @overload + def __init__( + self, + *, + value: list["_models.ConnectedEnvironmentStorage"], + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Container(BaseContainer): + """Container App container definition. + + :ivar image: Container image tag. + :vartype image: str + :ivar image_type: The type of the image. Set to CloudBuild to let the system manages the image, + where user will not be able to update image through image field. Set to ContainerImage for user + provided image. Known values are: "CloudBuild" and "ContainerImage". + :vartype image_type: str or ~azure.mgmt.appcontainers.models.ImageType + :ivar name: Custom container name. + :vartype name: str + :ivar command: Container start command. + :vartype command: list[str] + :ivar args: Container start command arguments. + :vartype args: list[str] + :ivar env: Container environment variables. + :vartype env: list[~azure.mgmt.appcontainers.models.EnvironmentVar] + :ivar resources: Container resource requirements. + :vartype resources: ~azure.mgmt.appcontainers.models.ContainerResources + :ivar volume_mounts: Container volume mounts. + :vartype volume_mounts: list[~azure.mgmt.appcontainers.models.VolumeMount] + :ivar probes: List of probes for the container. + :vartype probes: list[~azure.mgmt.appcontainers.models.ContainerAppProbe] + """ + + probes: Optional[list["_models.ContainerAppProbe"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of probes for the container.""" + + @overload + def __init__( + self, + *, + image: Optional[str] = None, + image_type: Optional[Union[str, "_models.ImageType"]] = None, + name: Optional[str] = None, + command: Optional[list[str]] = None, + args: Optional[list[str]] = None, + env: Optional[list["_models.EnvironmentVar"]] = None, + resources: Optional["_models.ContainerResources"] = None, + volume_mounts: Optional[list["_models.VolumeMount"]] = None, + probes: Optional[list["_models.ContainerAppProbe"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ContainerApp(TrackedResource): + """Container App. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + :ivar properties: ContainerApp resource specific properties. + :vartype properties: ~azure.mgmt.appcontainers.models.ContainerAppProperties + :ivar extended_location: The complex type of the extended location. + :vartype extended_location: ~azure.mgmt.appcontainers.models.ExtendedLocation + :ivar identity: managed identities for the Container App to interact with other Azure services + without maintaining any secrets or credentials in code. + :vartype identity: ~azure.mgmt.appcontainers.models.ManagedServiceIdentity + :ivar managed_by: The fully qualified resource ID of the resource that manages this resource. + Indicates if this resource is managed by another Azure resource. If this is present, complete + mode deployment will not delete the resource if it is removed from the template since it is + managed by another resource. + :vartype managed_by: str + :ivar kind: Metadata to represent the container app kind, representing if a container app is + workflowapp or functionapp. Known values are: "workflowapp" and "functionapp". + :vartype kind: str or ~azure.mgmt.appcontainers.models.Kind + """ + + properties: Optional["_models.ContainerAppProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """ContainerApp resource specific properties.""" + extended_location: Optional["_models.ExtendedLocation"] = rest_field( + name="extendedLocation", visibility=["read", "create", "update", "delete", "query"] + ) + """The complex type of the extended location.""" + identity: Optional["_models.ManagedServiceIdentity"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """managed identities for the Container App to interact with other Azure services without + maintaining any secrets or credentials in code.""" + managed_by: Optional[str] = rest_field(name="managedBy", visibility=["read", "create", "update"]) + """The fully qualified resource ID of the resource that manages this resource. Indicates if this + resource is managed by another Azure resource. If this is present, complete mode deployment + will not delete the resource if it is removed from the template since it is managed by another + resource.""" + kind: Optional[Union[str, "_models.Kind"]] = rest_field(visibility=["read", "create"]) + """Metadata to represent the container app kind, representing if a container app is workflowapp or + functionapp. Known values are: \"workflowapp\" and \"functionapp\".""" + + __flattened_items = [ + "provisioning_state", + "running_status", + "deployment_errors", + "managed_environment_id", + "environment_id", + "workload_profile_name", + "patching_configuration", + "latest_revision_name", + "latest_ready_revision_name", + "latest_revision_fqdn", + "custom_domain_verification_id", + "configuration", + "template", + "outbound_ip_addresses", + "event_stream_endpoint", + ] + + @overload + def __init__( + self, + *, + location: str, + tags: Optional[dict[str, str]] = None, + properties: Optional["_models.ContainerAppProperties"] = None, + extended_location: Optional["_models.ExtendedLocation"] = None, + identity: Optional["_models.ManagedServiceIdentity"] = None, + managed_by: Optional[str] = None, + kind: Optional[Union[str, "_models.Kind"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class ContainerAppAuthToken(TrackedResource): + """Container App Auth Token. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + :ivar properties: Container App auth token resource specific properties. + :vartype properties: ~azure.mgmt.appcontainers.models.ContainerAppAuthTokenProperties + """ + + properties: Optional["_models.ContainerAppAuthTokenProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Container App auth token resource specific properties.""" + + __flattened_items = ["token", "expires"] + + @overload + def __init__( + self, + *, + location: str, + tags: Optional[dict[str, str]] = None, + properties: Optional["_models.ContainerAppAuthTokenProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class ContainerAppAuthTokenProperties(_Model): + """Container App auth token resource specific properties. + + :ivar token: Auth token value. + :vartype token: str + :ivar expires: Token expiration date. + :vartype expires: ~datetime.datetime + """ + + token: Optional[str] = rest_field(visibility=["read"]) + """Auth token value.""" + expires: Optional[datetime.datetime] = rest_field(visibility=["read"], format="rfc3339") + """Token expiration date.""" + + +class ContainerAppJobExecutions(_Model): + """Container App executions collection ARM resource. + + :ivar value: The JobExecution items on this page. Required. + :vartype value: list[~azure.mgmt.appcontainers.models.JobExecution] + :ivar next_link: The link to the next page of items. + :vartype next_link: str + """ + + value: list["_models.JobExecution"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The JobExecution items on this page. Required.""" + next_link: Optional[str] = rest_field(name="nextLink", visibility=["read", "create", "update", "delete", "query"]) + """The link to the next page of items.""" + + @overload + def __init__( + self, + *, + value: list["_models.JobExecution"], + next_link: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ContainerAppProbe(_Model): + """Probe describes a health check to be performed against a container to determine whether it is + alive or ready to receive traffic. + + :ivar failure_threshold: Minimum consecutive failures for the probe to be considered failed + after having succeeded. Defaults to 3. Minimum value is 1. Maximum value is 10. + :vartype failure_threshold: int + :ivar http_get: HTTPGet specifies the http request to perform. + :vartype http_get: ~azure.mgmt.appcontainers.models.ContainerAppProbeHttpGet + :ivar initial_delay_seconds: Number of seconds after the container has started before liveness + probes are initiated. Minimum value is 1. Maximum value is 60. + :vartype initial_delay_seconds: int + :ivar period_seconds: How often (in seconds) to perform the probe. Default to 10 seconds. + Minimum value is 1. Maximum value is 240. + :vartype period_seconds: int + :ivar success_threshold: Minimum consecutive successes for the probe to be considered + successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum + value is 1. Maximum value is 10. + :vartype success_threshold: int + :ivar tcp_socket: TCPSocket specifies an action involving a TCP port. TCP hooks not yet + supported. + :vartype tcp_socket: ~azure.mgmt.appcontainers.models.ContainerAppProbeTcpSocket + :ivar termination_grace_period_seconds: Optional duration in seconds the pod needs to terminate + gracefully upon probe failure. The grace period is the duration in seconds after the processes + running in the pod 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. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, + this value overrides the value provided by the pod spec. Value must be non-negative integer. + The value zero indicates stop immediately via the kill signal (no opportunity to shut down). + This is an alpha field and requires enabling ProbeTerminationGracePeriod feature gate. Maximum + value is 3600 seconds (1 hour). + :vartype termination_grace_period_seconds: int + :ivar timeout_seconds: Number of seconds after which the probe times out. Defaults to 1 second. + Minimum value is 1. Maximum value is 240. + :vartype timeout_seconds: int + :ivar type: The type of probe. Known values are: "Liveness", "Readiness", and "Startup". + :vartype type: str or ~azure.mgmt.appcontainers.models.Type + """ + + failure_threshold: Optional[int] = rest_field( + name="failureThreshold", visibility=["read", "create", "update", "delete", "query"] + ) + """Minimum consecutive failures for the probe to be considered failed after having succeeded. + Defaults to 3. Minimum value is 1. Maximum value is 10.""" + http_get: Optional["_models.ContainerAppProbeHttpGet"] = rest_field( + name="httpGet", visibility=["read", "create", "update", "delete", "query"] + ) + """HTTPGet specifies the http request to perform.""" + initial_delay_seconds: Optional[int] = rest_field( + name="initialDelaySeconds", visibility=["read", "create", "update", "delete", "query"] + ) + """Number of seconds after the container has started before liveness probes are initiated. Minimum + value is 1. Maximum value is 60.""" + period_seconds: Optional[int] = rest_field( + name="periodSeconds", visibility=["read", "create", "update", "delete", "query"] + ) + """How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum + value is 240.""" + success_threshold: Optional[int] = rest_field( + name="successThreshold", visibility=["read", "create", "update", "delete", "query"] + ) + """Minimum consecutive successes for the probe to be considered successful after having failed. + Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. Maximum value is 10.""" + tcp_socket: Optional["_models.ContainerAppProbeTcpSocket"] = rest_field( + name="tcpSocket", visibility=["read", "create", "update", "delete", "query"] + ) + """TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported.""" + termination_grace_period_seconds: Optional[int] = rest_field( + name="terminationGracePeriodSeconds", visibility=["read", "create", "update", "delete", "query"] + ) + """Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The + grace period is the duration in seconds after the processes running in the pod 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. If this value is nil, the + pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value + provided by the pod spec. Value must be non-negative integer. The value zero indicates stop + immediately via the kill signal (no opportunity to shut down). This is an alpha field and + requires enabling ProbeTerminationGracePeriod feature gate. Maximum value is 3600 seconds (1 + hour).""" + timeout_seconds: Optional[int] = rest_field( + name="timeoutSeconds", visibility=["read", "create", "update", "delete", "query"] + ) + """Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. + Maximum value is 240.""" + type: Optional[Union[str, "_models.Type"]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The type of probe. Known values are: \"Liveness\", \"Readiness\", and \"Startup\".""" + + @overload + def __init__( + self, + *, + failure_threshold: Optional[int] = None, + http_get: Optional["_models.ContainerAppProbeHttpGet"] = None, + initial_delay_seconds: Optional[int] = None, + period_seconds: Optional[int] = None, + success_threshold: Optional[int] = None, + tcp_socket: Optional["_models.ContainerAppProbeTcpSocket"] = None, + termination_grace_period_seconds: Optional[int] = None, + timeout_seconds: Optional[int] = None, + type: Optional[Union[str, "_models.Type"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ContainerAppProbeHttpGet(_Model): + """HTTPGet specifies the http request to perform. + + :ivar host: Host name to connect to, defaults to the pod IP. You probably want to set "Host" in + httpHeaders instead. + :vartype host: str + :ivar http_headers: Custom headers to set in the request. HTTP allows repeated headers. + :vartype http_headers: + list[~azure.mgmt.appcontainers.models.ContainerAppProbeHttpGetHttpHeadersItem] + :ivar path: Path to access on the HTTP server. + :vartype path: str + :ivar port: Name or number of the port to access on the container. Number must be in the range + 1 to 65535. Name must be an IANA_SVC_NAME. Required. + :vartype port: int + :ivar scheme: Scheme to use for connecting to the host. Defaults to HTTP. Known values are: + "HTTP" and "HTTPS". + :vartype scheme: str or ~azure.mgmt.appcontainers.models.Scheme + """ + + host: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in + httpHeaders instead.""" + http_headers: Optional[list["_models.ContainerAppProbeHttpGetHttpHeadersItem"]] = rest_field( + name="httpHeaders", visibility=["read", "create", "update", "delete", "query"] + ) + """Custom headers to set in the request. HTTP allows repeated headers.""" + path: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Path to access on the HTTP server.""" + port: int = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Name or number of the port to access on the container. Number must be in the range 1 to 65535. + Name must be an IANA_SVC_NAME. Required.""" + scheme: Optional[Union[str, "_models.Scheme"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Scheme to use for connecting to the host. Defaults to HTTP. Known values are: \"HTTP\" and + \"HTTPS\".""" + + @overload + def __init__( + self, + *, + port: int, + host: Optional[str] = None, + http_headers: Optional[list["_models.ContainerAppProbeHttpGetHttpHeadersItem"]] = None, + path: Optional[str] = None, + scheme: Optional[Union[str, "_models.Scheme"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ContainerAppProbeHttpGetHttpHeadersItem(_Model): + """HTTPHeader describes a custom header to be used in HTTP probes. + + :ivar name: The header field name. Required. + :vartype name: str + :ivar value: The header field value. Required. + :vartype value: str + """ + + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The header field name. Required.""" + value: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The header field value. Required.""" + + @overload + def __init__( + self, + *, + name: str, + value: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ContainerAppProbeTcpSocket(_Model): + """TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported. + + :ivar host: Optional: Host name to connect to, defaults to the pod IP. + :vartype host: str + :ivar port: Number or name of the port to access on the container. Number must be in the range + 1 to 65535. Name must be an IANA_SVC_NAME. Required. + :vartype port: int + """ + + host: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Optional: Host name to connect to, defaults to the pod IP.""" + port: int = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Number or name of the port to access on the container. Number must be in the range 1 to 65535. + Name must be an IANA_SVC_NAME. Required.""" + + @overload + def __init__( + self, + *, + port: int, + host: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ContainerAppProperties(_Model): + """ContainerApp resource specific properties. + + :ivar provisioning_state: Provisioning state of the Container App. Known values are: + "InProgress", "Succeeded", "Failed", "Canceled", and "Deleting". + :vartype provisioning_state: str or + ~azure.mgmt.appcontainers.models.ContainerAppProvisioningState + :ivar running_status: Running status of the Container App. Known values are: "Progressing", + "Running", "Stopped", "Suspended", and "Ready". + :vartype running_status: str or ~azure.mgmt.appcontainers.models.ContainerAppRunningStatus + :ivar deployment_errors: Any errors that occurred during deployment. + :vartype deployment_errors: str + :ivar managed_environment_id: Deprecated. Resource ID of the Container App's environment. + :vartype managed_environment_id: str + :ivar environment_id: Resource ID of environment. + :vartype environment_id: str + :ivar workload_profile_name: Workload profile name to pin for container app execution. + :vartype workload_profile_name: str + :ivar patching_configuration: Container App auto patch configuration. + :vartype patching_configuration: + ~azure.mgmt.appcontainers.models.ContainerAppPropertiesPatchingConfiguration + :ivar latest_revision_name: Name of the latest revision of the Container App. + :vartype latest_revision_name: str + :ivar latest_ready_revision_name: Name of the latest ready revision of the Container App. + :vartype latest_ready_revision_name: str + :ivar latest_revision_fqdn: Fully Qualified Domain Name of the latest revision of the Container + App. + :vartype latest_revision_fqdn: str + :ivar custom_domain_verification_id: Id used to verify domain name ownership. + :vartype custom_domain_verification_id: str + :ivar configuration: Non versioned Container App configuration properties. + :vartype configuration: ~azure.mgmt.appcontainers.models.Configuration + :ivar template: Container App versioned application definition. + :vartype template: ~azure.mgmt.appcontainers.models.Template + :ivar outbound_ip_addresses: Outbound IP Addresses for container app. + :vartype outbound_ip_addresses: list[str] + :ivar event_stream_endpoint: The endpoint of the eventstream of the container app. + :vartype event_stream_endpoint: str + """ + + provisioning_state: Optional[Union[str, "_models.ContainerAppProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """Provisioning state of the Container App. Known values are: \"InProgress\", \"Succeeded\", + \"Failed\", \"Canceled\", and \"Deleting\".""" + running_status: Optional[Union[str, "_models.ContainerAppRunningStatus"]] = rest_field( + name="runningStatus", visibility=["read"] + ) + """Running status of the Container App. Known values are: \"Progressing\", \"Running\", + \"Stopped\", \"Suspended\", and \"Ready\".""" + deployment_errors: Optional[str] = rest_field(name="deploymentErrors", visibility=["read"]) + """Any errors that occurred during deployment.""" + managed_environment_id: Optional[str] = rest_field(name="managedEnvironmentId", visibility=["read", "create"]) + """Deprecated. Resource ID of the Container App's environment.""" + environment_id: Optional[str] = rest_field(name="environmentId", visibility=["read", "create"]) + """Resource ID of environment.""" + workload_profile_name: Optional[str] = rest_field( + name="workloadProfileName", visibility=["read", "create", "update", "delete", "query"] + ) + """Workload profile name to pin for container app execution.""" + patching_configuration: Optional["_models.ContainerAppPropertiesPatchingConfiguration"] = rest_field( + name="patchingConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """Container App auto patch configuration.""" + latest_revision_name: Optional[str] = rest_field(name="latestRevisionName", visibility=["read"]) + """Name of the latest revision of the Container App.""" + latest_ready_revision_name: Optional[str] = rest_field(name="latestReadyRevisionName", visibility=["read"]) + """Name of the latest ready revision of the Container App.""" + latest_revision_fqdn: Optional[str] = rest_field(name="latestRevisionFqdn", visibility=["read"]) + """Fully Qualified Domain Name of the latest revision of the Container App.""" + custom_domain_verification_id: Optional[str] = rest_field(name="customDomainVerificationId", visibility=["read"]) + """Id used to verify domain name ownership.""" + configuration: Optional["_models.Configuration"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Non versioned Container App configuration properties.""" + template: Optional["_models.Template"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Container App versioned application definition.""" + outbound_ip_addresses: Optional[list[str]] = rest_field(name="outboundIpAddresses", visibility=["read"]) + """Outbound IP Addresses for container app.""" + event_stream_endpoint: Optional[str] = rest_field(name="eventStreamEndpoint", visibility=["read"]) + """The endpoint of the eventstream of the container app.""" + + @overload + def __init__( + self, + *, + managed_environment_id: Optional[str] = None, + environment_id: Optional[str] = None, + workload_profile_name: Optional[str] = None, + patching_configuration: Optional["_models.ContainerAppPropertiesPatchingConfiguration"] = None, + configuration: Optional["_models.Configuration"] = None, + template: Optional["_models.Template"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ContainerAppPropertiesPatchingConfiguration(_Model): # pylint: disable=name-too-long + """Container App auto patch configuration. + + :ivar patching_mode: Patching mode for the container app. Null or default in this field will be + interpreted as Automatic by RP. Automatic mode will automatically apply available patches. + Manual mode will require the user to manually apply patches. Disabled mode will stop patch + detection and auto patching. Known values are: "Automatic", "Manual", and "Disabled". + :vartype patching_mode: str or ~azure.mgmt.appcontainers.models.PatchingMode + """ + + patching_mode: Optional[Union[str, "_models.PatchingMode"]] = rest_field( + name="patchingMode", visibility=["read", "create", "update", "delete", "query"] + ) + """Patching mode for the container app. Null or default in this field will be interpreted as + Automatic by RP. Automatic mode will automatically apply available patches. Manual mode will + require the user to manually apply patches. Disabled mode will stop patch detection and auto + patching. Known values are: \"Automatic\", \"Manual\", and \"Disabled\".""" + + @overload + def __init__( + self, + *, + patching_mode: Optional[Union[str, "_models.PatchingMode"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ContainerAppsBuildConfiguration(_Model): + """Configuration of the build. + + :ivar base_os: Base OS used to build and run the app. + :vartype base_os: str + :ivar platform: Platform to be used to build and run the app. + :vartype platform: str + :ivar platform_version: Platform version to be used to build and run the app. + :vartype platform_version: str + :ivar environment_variables: List of environment variables to be passed to the build, secrets + should not be used in environment variable. + :vartype environment_variables: list[~azure.mgmt.appcontainers.models.EnvironmentVariable] + :ivar pre_build_steps: List of steps to perform before the build. + :vartype pre_build_steps: list[~azure.mgmt.appcontainers.models.PreBuildStep] + """ + + base_os: Optional[str] = rest_field(name="baseOs", visibility=["read"]) + """Base OS used to build and run the app.""" + platform: Optional[str] = rest_field(visibility=["read"]) + """Platform to be used to build and run the app.""" + platform_version: Optional[str] = rest_field(name="platformVersion", visibility=["read"]) + """Platform version to be used to build and run the app.""" + environment_variables: Optional[list["_models.EnvironmentVariable"]] = rest_field( + name="environmentVariables", visibility=["read"] + ) + """List of environment variables to be passed to the build, secrets should not be used in + environment variable.""" + pre_build_steps: Optional[list["_models.PreBuildStep"]] = rest_field(name="preBuildSteps", visibility=["read"]) + """List of steps to perform before the build.""" + + +class ContainerAppsBuildProperties(_Model): + """The ContainerAppBuild properties. + + :ivar provisioning_state: Build provisioning state. Known values are: "Succeeded", "Failed", + "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioning_state: str or ~azure.mgmt.appcontainers.models.BuildProvisioningState + :ivar build_status: Status of the build once it has been provisioned. Known values are: + "NotStarted", "InProgress", "Succeeded", "Canceled", and "Failed". + :vartype build_status: str or ~azure.mgmt.appcontainers.models.BuildStatus + :ivar destination_container_registry: Container registry that the final image will be uploaded + to. + :vartype destination_container_registry: + ~azure.mgmt.appcontainers.models.ContainerRegistryWithCustomImage + :ivar configuration: Configuration of the build. + :vartype configuration: ~azure.mgmt.appcontainers.models.ContainerAppsBuildConfiguration + :ivar log_stream_endpoint: Endpoint from which the build logs can be streamed. + :vartype log_stream_endpoint: str + """ + + provisioning_state: Optional[Union[str, "_models.BuildProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """Build provisioning state. Known values are: \"Succeeded\", \"Failed\", \"Canceled\", + \"Creating\", \"Updating\", and \"Deleting\".""" + build_status: Optional[Union[str, "_models.BuildStatus"]] = rest_field(name="buildStatus", visibility=["read"]) + """Status of the build once it has been provisioned. Known values are: \"NotStarted\", + \"InProgress\", \"Succeeded\", \"Canceled\", and \"Failed\".""" + destination_container_registry: Optional["_models.ContainerRegistryWithCustomImage"] = rest_field( + name="destinationContainerRegistry", visibility=["read"] + ) + """Container registry that the final image will be uploaded to.""" + configuration: Optional["_models.ContainerAppsBuildConfiguration"] = rest_field(visibility=["read"]) + """Configuration of the build.""" + log_stream_endpoint: Optional[str] = rest_field(name="logStreamEndpoint", visibility=["read"]) + """Endpoint from which the build logs can be streamed.""" + + +class ContainerAppsBuildResource(ProxyResource): + """Information pertaining to an individual build. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar properties: The resource-specific properties for this resource. + :vartype properties: ~azure.mgmt.appcontainers.models.ContainerAppsBuildProperties + """ + + properties: Optional["_models.ContainerAppsBuildProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The resource-specific properties for this resource.""" + + __flattened_items = [ + "provisioning_state", + "build_status", + "destination_container_registry", + "configuration", + "log_stream_endpoint", + ] + + @overload + def __init__( + self, + *, + properties: Optional["_models.ContainerAppsBuildProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class ContainerAppSecret(_Model): + """Container App Secret. + + :ivar name: Secret Name. + :vartype name: str + :ivar value: Secret Value. + :vartype value: str + :ivar identity: Resource ID of a managed identity to authenticate with Azure Key Vault, or + System to use a system-assigned identity. + :vartype identity: str + :ivar key_vault_url: Azure Key Vault URL pointing to the secret referenced by the container + app. + :vartype key_vault_url: str + """ + + name: Optional[str] = rest_field(visibility=["read"]) + """Secret Name.""" + value: Optional[str] = rest_field(visibility=["read"]) + """Secret Value.""" + identity: Optional[str] = rest_field(visibility=["read"]) + """Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a + system-assigned identity.""" + key_vault_url: Optional[str] = rest_field(name="keyVaultUrl", visibility=["read"]) + """Azure Key Vault URL pointing to the secret referenced by the container app.""" + + +class ContainerAppsFunction(ProxyResource): + """Container App Function. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar properties: Function resource specific properties. + :vartype properties: ~azure.mgmt.appcontainers.models.ContainerAppsFunctionProperties + """ + + properties: Optional["_models.ContainerAppsFunctionProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Function resource specific properties.""" + + __flattened_items = ["invoke_url_template", "trigger_type", "language", "is_disabled"] + + @overload + def __init__( + self, + *, + properties: Optional["_models.ContainerAppsFunctionProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class ContainerAppsFunctionProperties(_Model): + """Function resource specific properties. + + :ivar invoke_url_template: Invoke URL for the function. + :vartype invoke_url_template: str + :ivar trigger_type: Trigger type of the function. + :vartype trigger_type: str + :ivar language: Programming language of the function. + :vartype language: str + :ivar is_disabled: Indicates whether the function is disabled. + :vartype is_disabled: bool + """ + + invoke_url_template: Optional[str] = rest_field(name="invokeUrlTemplate", visibility=["read"]) + """Invoke URL for the function.""" + trigger_type: Optional[str] = rest_field(name="triggerType", visibility=["read"]) + """Trigger type of the function.""" + language: Optional[str] = rest_field(visibility=["read"]) + """Programming language of the function.""" + is_disabled: Optional[bool] = rest_field(name="isDisabled", visibility=["read"]) + """Indicates whether the function is disabled.""" + + +class ContainerAppsPatchResource(ProxyResource): + """Container App Patch. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar properties: Properties that describes current states of the patch resource. + :vartype properties: ~azure.mgmt.appcontainers.models.PatchProperties + """ + + properties: Optional["_models.PatchProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Properties that describes current states of the patch resource.""" + + @overload + def __init__( + self, + *, + properties: Optional["_models.PatchProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ContainerExecutionStatus(_Model): + """Container Apps Job execution container status. Contains status code and reason. + + :ivar name: Container Name. + :vartype name: str + :ivar code: Exit code. + :vartype code: int + :ivar additional_information: Additional information for the container status. + :vartype additional_information: str + :ivar status: Status of the container. + :vartype status: str + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Container Name.""" + code: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Exit code.""" + additional_information: Optional[str] = rest_field( + name="additionalInformation", visibility=["read", "create", "update", "delete", "query"] + ) + """Additional information for the container status.""" + status: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Status of the container.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + code: Optional[int] = None, + additional_information: Optional[str] = None, + status: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ContainerRegistry(_Model): + """Model representing a mapping from a container registry to the identity used to connect to it. + + :ivar container_registry_server: Login server of the container registry. Required. + :vartype container_registry_server: str + :ivar identity_resource_id: Resource ID of the managed identity. Required. + :vartype identity_resource_id: str + """ + + container_registry_server: str = rest_field( + name="containerRegistryServer", visibility=["read", "create", "update", "delete", "query"] + ) + """Login server of the container registry. Required.""" + identity_resource_id: str = rest_field( + name="identityResourceId", visibility=["read", "create", "update", "delete", "query"] + ) + """Resource ID of the managed identity. Required.""" + + @overload + def __init__( + self, + *, + container_registry_server: str, + identity_resource_id: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ContainerRegistryWithCustomImage(_Model): + """Container registry that the final image will be uploaded to. + + :ivar server: Login server of the container registry that the final image should be uploaded + to. Builder resource needs to have this container registry defined along with an identity to + use to access it. Required. + :vartype server: str + :ivar image: Full name that the final image should be uploaded as, including both image name + and tag. + :vartype image: str + """ + + server: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Login server of the container registry that the final image should be uploaded to. Builder + resource needs to have this container registry defined along with an identity to use to access + it. Required.""" + image: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Full name that the final image should be uploaded as, including both image name and tag.""" + + @overload + def __init__( + self, + *, + server: str, + image: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ContainerResources(_Model): + """Container App container resource requirements. + + :ivar cpu: Required CPU in cores, e.g. 0.5. + :vartype cpu: float + :ivar memory: Required memory, e.g. "250Mb". + :vartype memory: str + :ivar ephemeral_storage: Ephemeral Storage, e.g. "1Gi". + :vartype ephemeral_storage: str + :ivar gpu: Required GPU in cores for GPU based app, e.g. 1.0. + :vartype gpu: float + """ + + cpu: Optional[float] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Required CPU in cores, e.g. 0.5.""" + memory: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Required memory, e.g. \"250Mb\".""" + ephemeral_storage: Optional[str] = rest_field(name="ephemeralStorage", visibility=["read"]) + """Ephemeral Storage, e.g. \"1Gi\".""" + gpu: Optional[float] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Required GPU in cores for GPU based app, e.g. 1.0.""" + + @overload + def __init__( + self, + *, + cpu: Optional[float] = None, + memory: Optional[str] = None, + gpu: Optional[float] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CookieExpiration(_Model): + """The configuration settings of the session cookie's expiration. + + :ivar convention: The convention used when determining the session cookie's expiration. Known + values are: "FixedTime" and "IdentityProviderDerived". + :vartype convention: str or ~azure.mgmt.appcontainers.models.CookieExpirationConvention + :ivar time_to_expiration: The time after the request is made when the session cookie should + expire. + :vartype time_to_expiration: str + """ + + convention: Optional[Union[str, "_models.CookieExpirationConvention"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The convention used when determining the session cookie's expiration. Known values are: + \"FixedTime\" and \"IdentityProviderDerived\".""" + time_to_expiration: Optional[str] = rest_field( + name="timeToExpiration", visibility=["read", "create", "update", "delete", "query"] + ) + """The time after the request is made when the session cookie should expire.""" + + @overload + def __init__( + self, + *, + convention: Optional[Union[str, "_models.CookieExpirationConvention"]] = None, + time_to_expiration: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CorsPolicy(_Model): + """Cross-Origin-Resource-Sharing policy. + + :ivar allowed_origins: Specifies the content for the access-control-allow-origins header. + Required. + :vartype allowed_origins: list[str] + :ivar allowed_methods: Specifies the content for the access-control-allow-methods header. + :vartype allowed_methods: list[str] + :ivar allowed_headers: Specifies the content for the access-control-allow-headers header. + :vartype allowed_headers: list[str] + :ivar expose_headers: Specifies the content for the access-control-expose-headers header. + :vartype expose_headers: list[str] + :ivar max_age: Specifies the content for the access-control-max-age header. + :vartype max_age: int + :ivar allow_credentials: Specifies whether the resource allows credentials. + :vartype allow_credentials: bool + """ + + allowed_origins: list[str] = rest_field( + name="allowedOrigins", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the content for the access-control-allow-origins header. Required.""" + allowed_methods: Optional[list[str]] = rest_field( + name="allowedMethods", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the content for the access-control-allow-methods header.""" + allowed_headers: Optional[list[str]] = rest_field( + name="allowedHeaders", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the content for the access-control-allow-headers header.""" + expose_headers: Optional[list[str]] = rest_field( + name="exposeHeaders", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the content for the access-control-expose-headers header.""" + max_age: Optional[int] = rest_field(name="maxAge", visibility=["read", "create", "update", "delete", "query"]) + """Specifies the content for the access-control-max-age header.""" + allow_credentials: Optional[bool] = rest_field( + name="allowCredentials", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies whether the resource allows credentials.""" + + @overload + def __init__( + self, + *, + allowed_origins: list[str], + allowed_methods: Optional[list[str]] = None, + allowed_headers: Optional[list[str]] = None, + expose_headers: Optional[list[str]] = None, + max_age: Optional[int] = None, + allow_credentials: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CustomContainerTemplate(_Model): + """Custom container configuration. + + :ivar registry_credentials: Private container registry credentials for containers used by the + sessions of the session pool. + :vartype registry_credentials: ~azure.mgmt.appcontainers.models.SessionRegistryCredentials + :ivar containers: List of container definitions for the sessions of the session pool. + :vartype containers: list[~azure.mgmt.appcontainers.models.SessionContainer] + :ivar ingress: Session pool ingress configuration. + :vartype ingress: ~azure.mgmt.appcontainers.models.SessionIngress + """ + + registry_credentials: Optional["_models.SessionRegistryCredentials"] = rest_field( + name="registryCredentials", visibility=["read", "create", "update", "delete", "query"] + ) + """Private container registry credentials for containers used by the sessions of the session pool.""" + containers: Optional[list["_models.SessionContainer"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of container definitions for the sessions of the session pool.""" + ingress: Optional["_models.SessionIngress"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Session pool ingress configuration.""" + + @overload + def __init__( + self, + *, + registry_credentials: Optional["_models.SessionRegistryCredentials"] = None, + containers: Optional[list["_models.SessionContainer"]] = None, + ingress: Optional["_models.SessionIngress"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CustomDomain(_Model): + """Custom Domain of a Container App. + + :ivar name: Hostname. Required. + :vartype name: str + :ivar binding_type: Custom Domain binding type. Known values are: "Disabled", "SniEnabled", and + "Auto". + :vartype binding_type: str or ~azure.mgmt.appcontainers.models.BindingType + :ivar certificate_id: Resource Id of the Certificate to be bound to this hostname. Must exist + in the Managed Environment. + :vartype certificate_id: str + """ + + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Hostname. Required.""" + binding_type: Optional[Union[str, "_models.BindingType"]] = rest_field( + name="bindingType", visibility=["read", "create", "update", "delete", "query"] + ) + """Custom Domain binding type. Known values are: \"Disabled\", \"SniEnabled\", and \"Auto\".""" + certificate_id: Optional[str] = rest_field( + name="certificateId", visibility=["read", "create", "update", "delete", "query"] + ) + """Resource Id of the Certificate to be bound to this hostname. Must exist in the Managed + Environment.""" + + @overload + def __init__( + self, + *, + name: str, + binding_type: Optional[Union[str, "_models.BindingType"]] = None, + certificate_id: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CustomDomainConfiguration(_Model): + """Configuration properties for apps environment custom domain. + + :ivar custom_domain_verification_id: Id used to verify domain name ownership. + :vartype custom_domain_verification_id: str + :ivar dns_suffix: Dns suffix for the environment domain. + :vartype dns_suffix: str + :ivar certificate_key_vault_properties: Certificate stored in Azure Key Vault. + :vartype certificate_key_vault_properties: + ~azure.mgmt.appcontainers.models.CertificateKeyVaultProperties + :ivar certificate_value: PFX or PEM blob. + :vartype certificate_value: bytes + :ivar certificate_password: Certificate password. + :vartype certificate_password: str + :ivar expiration_date: Certificate expiration date. + :vartype expiration_date: ~datetime.datetime + :ivar thumbprint: Certificate thumbprint. + :vartype thumbprint: str + :ivar subject_name: Subject name of the certificate. + :vartype subject_name: str + """ + + custom_domain_verification_id: Optional[str] = rest_field(name="customDomainVerificationId", visibility=["read"]) + """Id used to verify domain name ownership.""" + dns_suffix: Optional[str] = rest_field(name="dnsSuffix", visibility=["read", "create"]) + """Dns suffix for the environment domain.""" + certificate_key_vault_properties: Optional["_models.CertificateKeyVaultProperties"] = rest_field( + name="certificateKeyVaultProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Certificate stored in Azure Key Vault.""" + certificate_value: Optional[bytes] = rest_field( + name="certificateValue", visibility=["read", "create", "update", "delete", "query"], format="base64" + ) + """PFX or PEM blob.""" + certificate_password: Optional[str] = rest_field( + name="certificatePassword", visibility=["read", "create", "update", "delete", "query"] + ) + """Certificate password.""" + expiration_date: Optional[datetime.datetime] = rest_field( + name="expirationDate", visibility=["read"], format="rfc3339" + ) + """Certificate expiration date.""" + thumbprint: Optional[str] = rest_field(visibility=["read"]) + """Certificate thumbprint.""" + subject_name: Optional[str] = rest_field(name="subjectName", visibility=["read"]) + """Subject name of the certificate.""" + + @overload + def __init__( + self, + *, + dns_suffix: Optional[str] = None, + certificate_key_vault_properties: Optional["_models.CertificateKeyVaultProperties"] = None, + certificate_value: Optional[bytes] = None, + certificate_password: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CustomHostnameAnalysisResult(_Model): + """Custom domain analysis. + + :ivar host_name: Host name that was analyzed. + :vartype host_name: str + :ivar is_hostname_already_verified: true if hostname is already verified; + otherwise, false. + :vartype is_hostname_already_verified: bool + :ivar custom_domain_verification_test: DNS verification test result. Known values are: + "Passed", "Failed", and "Skipped". + :vartype custom_domain_verification_test: str or + ~azure.mgmt.appcontainers.models.DnsVerificationTestResult + :ivar custom_domain_verification_failure_info: Raw failure information if DNS verification + fails. + :vartype custom_domain_verification_failure_info: + ~azure.mgmt.appcontainers.models.CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo + :ivar has_conflict_on_managed_environment: true if there is a conflict on the + Container App's managed environment; otherwise, false. + :vartype has_conflict_on_managed_environment: bool + :ivar conflict_with_environment_custom_domain: true if there is a conflict on the + Container App's managed environment level custom domain; otherwise, false. + :vartype conflict_with_environment_custom_domain: bool + :ivar conflicting_container_app_resource_id: Name of the conflicting Container App on the + Managed Environment if it's within the same subscription. + :vartype conflicting_container_app_resource_id: str + :ivar c_name_records: CName records visible for this hostname. + :vartype c_name_records: list[str] + :ivar txt_records: TXT records visible for this hostname. + :vartype txt_records: list[str] + :ivar a_records: A records visible for this hostname. + :vartype a_records: list[str] + :ivar alternate_c_name_records: Alternate CName records visible for this hostname. + :vartype alternate_c_name_records: list[str] + :ivar alternate_txt_records: Alternate TXT records visible for this hostname. + :vartype alternate_txt_records: list[str] + """ + + host_name: Optional[str] = rest_field(name="hostName", visibility=["read"]) + """Host name that was analyzed.""" + is_hostname_already_verified: Optional[bool] = rest_field(name="isHostnameAlreadyVerified", visibility=["read"]) + """true if hostname is already verified; otherwise, false.""" + custom_domain_verification_test: Optional[Union[str, "_models.DnsVerificationTestResult"]] = rest_field( + name="customDomainVerificationTest", visibility=["read"] + ) + """DNS verification test result. Known values are: \"Passed\", \"Failed\", and \"Skipped\".""" + custom_domain_verification_failure_info: Optional[ + "_models.CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo" + ] = rest_field(name="customDomainVerificationFailureInfo", visibility=["read"]) + """Raw failure information if DNS verification fails.""" + has_conflict_on_managed_environment: Optional[bool] = rest_field( + name="hasConflictOnManagedEnvironment", visibility=["read"] + ) + """true if there is a conflict on the Container App's managed environment; otherwise, + false.""" + conflict_with_environment_custom_domain: Optional[bool] = rest_field( + name="conflictWithEnvironmentCustomDomain", visibility=["read"] + ) + """true if there is a conflict on the Container App's managed environment level + custom domain; otherwise, false.""" + conflicting_container_app_resource_id: Optional[str] = rest_field( + name="conflictingContainerAppResourceId", visibility=["read"] + ) + """Name of the conflicting Container App on the Managed Environment if it's within the same + subscription.""" + c_name_records: Optional[list[str]] = rest_field( + name="cNameRecords", visibility=["read", "create", "update", "delete", "query"] + ) + """CName records visible for this hostname.""" + txt_records: Optional[list[str]] = rest_field( + name="txtRecords", visibility=["read", "create", "update", "delete", "query"] + ) + """TXT records visible for this hostname.""" + a_records: Optional[list[str]] = rest_field( + name="aRecords", visibility=["read", "create", "update", "delete", "query"] + ) + """A records visible for this hostname.""" + alternate_c_name_records: Optional[list[str]] = rest_field( + name="alternateCNameRecords", visibility=["read", "create", "update", "delete", "query"] + ) + """Alternate CName records visible for this hostname.""" + alternate_txt_records: Optional[list[str]] = rest_field( + name="alternateTxtRecords", visibility=["read", "create", "update", "delete", "query"] + ) + """Alternate TXT records visible for this hostname.""" + + @overload + def __init__( + self, + *, + c_name_records: Optional[list[str]] = None, + txt_records: Optional[list[str]] = None, + a_records: Optional[list[str]] = None, + alternate_c_name_records: Optional[list[str]] = None, + alternate_txt_records: Optional[list[str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo(_Model): # pylint: disable=name-too-long + """Raw failure information if DNS verification fails. + + :ivar code: Standardized string to programmatically identify the error. + :vartype code: str + :ivar message: Detailed error description and debugging information. + :vartype message: str + :ivar target: Detailed error description and debugging information. + :vartype target: str + :ivar details: Details or the error. + :vartype details: + list[~azure.mgmt.appcontainers.models.CustomHostnameAnalysisResultCustomDomainVerificationFailureInfoDetailsItem] + """ + + code: Optional[str] = rest_field(visibility=["read"]) + """Standardized string to programmatically identify the error.""" + message: Optional[str] = rest_field(visibility=["read"]) + """Detailed error description and debugging information.""" + target: Optional[str] = rest_field(visibility=["read"]) + """Detailed error description and debugging information.""" + details: Optional[list["_models.CustomHostnameAnalysisResultCustomDomainVerificationFailureInfoDetailsItem"]] = ( + rest_field(visibility=["read", "create", "update", "delete", "query"]) + ) + """Details or the error.""" + + @overload + def __init__( + self, + *, + details: Optional[ + list["_models.CustomHostnameAnalysisResultCustomDomainVerificationFailureInfoDetailsItem"] + ] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CustomHostnameAnalysisResultCustomDomainVerificationFailureInfoDetailsItem( + _Model +): # pylint: disable=name-too-long + """Detailed errors. + + :ivar code: Standardized string to programmatically identify the error. + :vartype code: str + :ivar message: Detailed error description and debugging information. + :vartype message: str + :ivar target: Detailed error description and debugging information. + :vartype target: str + """ + + code: Optional[str] = rest_field(visibility=["read"]) + """Standardized string to programmatically identify the error.""" + message: Optional[str] = rest_field(visibility=["read"]) + """Detailed error description and debugging information.""" + target: Optional[str] = rest_field(visibility=["read"]) + """Detailed error description and debugging information.""" + + +class CustomOpenIdConnectProvider(_Model): + """The configuration settings of the custom Open ID Connect provider. + + :ivar enabled: false if the custom Open ID provider provider should not be + enabled; otherwise, true. + :vartype enabled: bool + :ivar registration: The configuration settings of the app registration for the custom Open ID + Connect provider. + :vartype registration: ~azure.mgmt.appcontainers.models.OpenIdConnectRegistration + :ivar login: The configuration settings of the login flow of the custom Open ID Connect + provider. + :vartype login: ~azure.mgmt.appcontainers.models.OpenIdConnectLogin + """ + + enabled: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """false if the custom Open ID provider provider should not be enabled; otherwise, + true.""" + registration: Optional["_models.OpenIdConnectRegistration"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration settings of the app registration for the custom Open ID Connect provider.""" + login: Optional["_models.OpenIdConnectLogin"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration settings of the login flow of the custom Open ID Connect provider.""" + + @overload + def __init__( + self, + *, + enabled: Optional[bool] = None, + registration: Optional["_models.OpenIdConnectRegistration"] = None, + login: Optional["_models.OpenIdConnectLogin"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CustomScaleRule(_Model): + """Container App container 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.appcontainers.models.ScaleRuleAuth] + :ivar identity: The resource ID of a user-assigned managed identity that is assigned to the + Container App, or 'system' for system-assigned identity. + :vartype identity: str + """ + + type: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Type of the custom scale rule eg: azure-servicebus, redis etc.""" + metadata: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Metadata properties to describe custom scale rule.""" + auth: Optional[list["_models.ScaleRuleAuth"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Authentication secrets for the custom scale rule.""" + identity: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The resource ID of a user-assigned managed identity that is assigned to the Container App, or + 'system' for system-assigned identity.""" + + @overload + def __init__( + self, + *, + type: Optional[str] = None, + metadata: Optional[dict[str, str]] = None, + auth: Optional[list["_models.ScaleRuleAuth"]] = None, + identity: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Dapr(_Model): + """Container App Dapr configuration. + + :ivar enabled: Boolean indicating if the Dapr side car is enabled. + :vartype enabled: bool + :ivar app_id: Dapr application identifier. + :vartype app_id: str + :ivar app_protocol: Tells Dapr which protocol your application is using. Valid options are http + and grpc. Default is http. Known values are: "http" and "grpc". + :vartype app_protocol: str or ~azure.mgmt.appcontainers.models.AppProtocol + :ivar app_port: Tells Dapr which port your application is listening on. + :vartype app_port: int + :ivar http_read_buffer_size: Dapr max size of http header read buffer in KB to handle when + sending multi-KB headers. Default is 65KB. + :vartype http_read_buffer_size: int + :ivar http_max_request_size: Increasing max size of request body http and grpc servers + parameter in MB to handle uploading of big files. Default is 4 MB. + :vartype http_max_request_size: int + :ivar log_level: Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, + error. Default is info. Known values are: "info", "debug", "warn", and "error". + :vartype log_level: str or ~azure.mgmt.appcontainers.models.LogLevel + :ivar enable_api_logging: Enables API logging for the Dapr sidecar. + :vartype enable_api_logging: bool + :ivar app_health: Dapr application health check configuration. + :vartype app_health: ~azure.mgmt.appcontainers.models.DaprAppHealth + :ivar max_concurrency: Maximum number of concurrent requests, events handled by the Dapr + sidecar. + :vartype max_concurrency: int + """ + + enabled: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Boolean indicating if the Dapr side car is enabled.""" + app_id: Optional[str] = rest_field(name="appId", visibility=["read", "create", "update", "delete", "query"]) + """Dapr application identifier.""" + app_protocol: Optional[Union[str, "_models.AppProtocol"]] = rest_field( + name="appProtocol", visibility=["read", "create", "update", "delete", "query"] + ) + """Tells Dapr which protocol your application is using. Valid options are http and grpc. Default + is http. Known values are: \"http\" and \"grpc\".""" + app_port: Optional[int] = rest_field(name="appPort", visibility=["read", "create", "update", "delete", "query"]) + """Tells Dapr which port your application is listening on.""" + http_read_buffer_size: Optional[int] = rest_field( + name="httpReadBufferSize", visibility=["read", "create", "update", "delete", "query"] + ) + """Dapr max size of http header read buffer in KB to handle when sending multi-KB headers. Default + is 65KB.""" + http_max_request_size: Optional[int] = rest_field( + name="httpMaxRequestSize", visibility=["read", "create", "update", "delete", "query"] + ) + """Increasing max size of request body http and grpc servers parameter in MB to handle uploading + of big files. Default is 4 MB.""" + log_level: Optional[Union[str, "_models.LogLevel"]] = rest_field( + name="logLevel", visibility=["read", "create", "update", "delete", "query"] + ) + """Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default + is info. Known values are: \"info\", \"debug\", \"warn\", and \"error\".""" + enable_api_logging: Optional[bool] = rest_field( + name="enableApiLogging", visibility=["read", "create", "update", "delete", "query"] + ) + """Enables API logging for the Dapr sidecar.""" + app_health: Optional["_models.DaprAppHealth"] = rest_field( + name="appHealth", visibility=["read", "create", "update", "delete", "query"] + ) + """Dapr application health check configuration.""" + max_concurrency: Optional[int] = rest_field( + name="maxConcurrency", visibility=["read", "create", "update", "delete", "query"] + ) + """Maximum number of concurrent requests, events handled by the Dapr sidecar.""" + + @overload + def __init__( + self, + *, + enabled: Optional[bool] = None, + app_id: Optional[str] = None, + app_protocol: Optional[Union[str, "_models.AppProtocol"]] = None, + app_port: Optional[int] = None, + http_read_buffer_size: Optional[int] = None, + http_max_request_size: Optional[int] = None, + log_level: Optional[Union[str, "_models.LogLevel"]] = None, + enable_api_logging: Optional[bool] = None, + app_health: Optional["_models.DaprAppHealth"] = None, + max_concurrency: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DaprAppHealth(_Model): + """Dapr application health check configuration. + + :ivar enabled: Boolean indicating if the health probe is enabled. + :vartype enabled: bool + :ivar path: Path for the health probe. + :vartype path: str + :ivar probe_interval_seconds: Interval for the health probe in seconds. + :vartype probe_interval_seconds: int + :ivar probe_timeout_milliseconds: Timeout for the health probe in milliseconds. + :vartype probe_timeout_milliseconds: int + :ivar threshold: Threshold for the health probe. + :vartype threshold: int + """ + + enabled: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Boolean indicating if the health probe is enabled.""" + path: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Path for the health probe.""" + probe_interval_seconds: Optional[int] = rest_field( + name="probeIntervalSeconds", visibility=["read", "create", "update", "delete", "query"] + ) + """Interval for the health probe in seconds.""" + probe_timeout_milliseconds: Optional[int] = rest_field( + name="probeTimeoutMilliseconds", visibility=["read", "create", "update", "delete", "query"] + ) + """Timeout for the health probe in milliseconds.""" + threshold: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Threshold for the health probe.""" + + @overload + def __init__( + self, + *, + enabled: Optional[bool] = None, + path: Optional[str] = None, + probe_interval_seconds: Optional[int] = None, + probe_timeout_milliseconds: Optional[int] = None, + threshold: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DaprComponent(ProxyResource): + """Dapr Component. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar properties: Dapr Component resource specific properties. + :vartype properties: ~azure.mgmt.appcontainers.models.DaprComponentProperties + """ + + properties: Optional["_models.DaprComponentProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Dapr Component resource specific properties.""" + + __flattened_items = [ + "component_type", + "version", + "ignore_errors", + "init_timeout", + "secrets", + "secret_store_component", + "metadata", + "scopes", + "service_component_bind", + "provisioning_state", + "deployment_errors", + ] + + @overload + def __init__( + self, + *, + properties: Optional["_models.DaprComponentProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class DaprComponentProperties(_Model): + """Dapr Component resource specific properties. + + :ivar component_type: Component type. + :vartype component_type: str + :ivar version: Component version. + :vartype version: str + :ivar ignore_errors: Boolean describing if the component errors are ignores. + :vartype ignore_errors: bool + :ivar init_timeout: Initialization timeout. + :vartype init_timeout: str + :ivar secrets: Collection of secrets used by a Dapr component. + :vartype secrets: list[~azure.mgmt.appcontainers.models.Secret] + :ivar secret_store_component: Name of a Dapr component to retrieve component secrets from. + :vartype secret_store_component: str + :ivar metadata: Component metadata. + :vartype metadata: list[~azure.mgmt.appcontainers.models.DaprMetadata] + :ivar scopes: Names of container apps that can use this Dapr component. + :vartype scopes: list[str] + :ivar service_component_bind: List of container app services that are bound to the Dapr + component. + :vartype service_component_bind: + list[~azure.mgmt.appcontainers.models.DaprComponentServiceBinding] + :ivar provisioning_state: Provisioning state of the Connected Environment Dapr Component. Known + values are: "Succeeded", "Failed", "Canceled", "InProgress", and "Deleting". + :vartype provisioning_state: str or + ~azure.mgmt.appcontainers.models.DaprComponentProvisioningState + :ivar deployment_errors: Any errors that occurred during deployment or deployment validation. + :vartype deployment_errors: str + """ + + component_type: Optional[str] = rest_field( + name="componentType", visibility=["read", "create", "update", "delete", "query"] + ) + """Component type.""" + version: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Component version.""" + ignore_errors: Optional[bool] = rest_field( + name="ignoreErrors", visibility=["read", "create", "update", "delete", "query"] + ) + """Boolean describing if the component errors are ignores.""" + init_timeout: Optional[str] = rest_field( + name="initTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """Initialization timeout.""" + secrets: Optional[list["_models.Secret"]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Collection of secrets used by a Dapr component.""" + secret_store_component: Optional[str] = rest_field( + name="secretStoreComponent", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of a Dapr component to retrieve component secrets from.""" + metadata: Optional[list["_models.DaprMetadata"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Component metadata.""" + scopes: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Names of container apps that can use this Dapr component.""" + service_component_bind: Optional[list["_models.DaprComponentServiceBinding"]] = rest_field( + name="serviceComponentBind", visibility=["read", "create", "update", "delete", "query"] + ) + """List of container app services that are bound to the Dapr component.""" + provisioning_state: Optional[Union[str, "_models.DaprComponentProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """Provisioning state of the Connected Environment Dapr Component. Known values are: + \"Succeeded\", \"Failed\", \"Canceled\", \"InProgress\", and \"Deleting\".""" + deployment_errors: Optional[str] = rest_field(name="deploymentErrors", visibility=["read"]) + """Any errors that occurred during deployment or deployment validation.""" + + @overload + def __init__( + self, + *, + component_type: Optional[str] = None, + version: Optional[str] = None, + ignore_errors: Optional[bool] = None, + init_timeout: Optional[str] = None, + secrets: Optional[list["_models.Secret"]] = None, + secret_store_component: Optional[str] = None, + metadata: Optional[list["_models.DaprMetadata"]] = None, + scopes: Optional[list[str]] = None, + service_component_bind: Optional[list["_models.DaprComponentServiceBinding"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DaprComponentResiliencyPolicy(ProxyResource): + """Dapr Component Resiliency Policy. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar properties: Dapr Component Resiliency Policy resource specific properties. + :vartype properties: ~azure.mgmt.appcontainers.models.DaprComponentResiliencyPolicyProperties + """ + + properties: Optional["_models.DaprComponentResiliencyPolicyProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Dapr Component Resiliency Policy resource specific properties.""" + + __flattened_items = ["inbound_policy", "outbound_policy"] + + @overload + def __init__( + self, + *, + properties: Optional["_models.DaprComponentResiliencyPolicyProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration(_Model): # pylint: disable=name-too-long + """Dapr Component Resiliency Policy Circuit Breaker Policy Configuration. + + :ivar consecutive_errors: The number of consecutive errors before the circuit is opened. + :vartype consecutive_errors: int + :ivar timeout_in_seconds: The interval in seconds until a retry attempt is made after the + circuit is opened. + :vartype timeout_in_seconds: int + :ivar interval_in_seconds: The optional interval in seconds after which the error count resets + to 0. An interval of 0 will never reset. If not specified, the timeoutInSeconds value will be + used. + :vartype interval_in_seconds: int + """ + + consecutive_errors: Optional[int] = rest_field( + name="consecutiveErrors", visibility=["read", "create", "update", "delete", "query"] + ) + """The number of consecutive errors before the circuit is opened.""" + timeout_in_seconds: Optional[int] = rest_field( + name="timeoutInSeconds", visibility=["read", "create", "update", "delete", "query"] + ) + """The interval in seconds until a retry attempt is made after the circuit is opened.""" + interval_in_seconds: Optional[int] = rest_field( + name="intervalInSeconds", visibility=["read", "create", "update", "delete", "query"] + ) + """The optional interval in seconds after which the error count resets to 0. An interval of 0 will + never reset. If not specified, the timeoutInSeconds value will be used.""" + + @overload + def __init__( + self, + *, + consecutive_errors: Optional[int] = None, + timeout_in_seconds: Optional[int] = None, + interval_in_seconds: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DaprComponentResiliencyPolicyConfiguration(_Model): # pylint: disable=name-too-long + """Dapr Component Resiliency Policy Configuration. + + :ivar http_retry_policy: The optional HTTP retry policy configuration. + :vartype http_retry_policy: + ~azure.mgmt.appcontainers.models.DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration + :ivar timeout_policy: The optional timeout policy configuration. + :vartype timeout_policy: + ~azure.mgmt.appcontainers.models.DaprComponentResiliencyPolicyTimeoutPolicyConfiguration + :ivar circuit_breaker_policy: The optional circuit breaker policy configuration. + :vartype circuit_breaker_policy: + ~azure.mgmt.appcontainers.models.DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration + """ + + http_retry_policy: Optional["_models.DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration"] = rest_field( + name="httpRetryPolicy", visibility=["read", "create", "update", "delete", "query"] + ) + """The optional HTTP retry policy configuration.""" + timeout_policy: Optional["_models.DaprComponentResiliencyPolicyTimeoutPolicyConfiguration"] = rest_field( + name="timeoutPolicy", visibility=["read", "create", "update", "delete", "query"] + ) + """The optional timeout policy configuration.""" + circuit_breaker_policy: Optional["_models.DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration"] = ( + rest_field(name="circuitBreakerPolicy", visibility=["read", "create", "update", "delete", "query"]) + ) + """The optional circuit breaker policy configuration.""" + + @overload + def __init__( + self, + *, + http_retry_policy: Optional["_models.DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration"] = None, + timeout_policy: Optional["_models.DaprComponentResiliencyPolicyTimeoutPolicyConfiguration"] = None, + circuit_breaker_policy: Optional[ + "_models.DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration" + ] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration(_Model): # pylint: disable=name-too-long + """Dapr Component Resiliency Policy HTTP Retry Backoff Configuration. + + :ivar initial_delay_in_milliseconds: The optional initial delay in milliseconds before an + operation is retried. + :vartype initial_delay_in_milliseconds: int + :ivar max_interval_in_milliseconds: The optional maximum time interval in milliseconds between + retry attempts. + :vartype max_interval_in_milliseconds: int + """ + + initial_delay_in_milliseconds: Optional[int] = rest_field( + name="initialDelayInMilliseconds", visibility=["read", "create", "update", "delete", "query"] + ) + """The optional initial delay in milliseconds before an operation is retried.""" + max_interval_in_milliseconds: Optional[int] = rest_field( + name="maxIntervalInMilliseconds", visibility=["read", "create", "update", "delete", "query"] + ) + """The optional maximum time interval in milliseconds between retry attempts.""" + + @overload + def __init__( + self, + *, + initial_delay_in_milliseconds: Optional[int] = None, + max_interval_in_milliseconds: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration(_Model): # pylint: disable=name-too-long + """Dapr Component Resiliency Policy HTTP Retry Policy Configuration. + + :ivar max_retries: The optional maximum number of retries. + :vartype max_retries: int + :ivar retry_back_off: The optional retry backoff configuration. + :vartype retry_back_off: + ~azure.mgmt.appcontainers.models.DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration + """ + + max_retries: Optional[int] = rest_field( + name="maxRetries", visibility=["read", "create", "update", "delete", "query"] + ) + """The optional maximum number of retries.""" + retry_back_off: Optional["_models.DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration"] = rest_field( + name="retryBackOff", visibility=["read", "create", "update", "delete", "query"] + ) + """The optional retry backoff configuration.""" + + @overload + def __init__( + self, + *, + max_retries: Optional[int] = None, + retry_back_off: Optional["_models.DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DaprComponentResiliencyPolicyProperties(_Model): + """Dapr Component Resiliency Policy resource specific properties. + + :ivar inbound_policy: The optional inbound component resiliency policy configuration. + :vartype inbound_policy: + ~azure.mgmt.appcontainers.models.DaprComponentResiliencyPolicyConfiguration + :ivar outbound_policy: The optional outbound component resiliency policy configuration. + :vartype outbound_policy: + ~azure.mgmt.appcontainers.models.DaprComponentResiliencyPolicyConfiguration + """ + + inbound_policy: Optional["_models.DaprComponentResiliencyPolicyConfiguration"] = rest_field( + name="inboundPolicy", visibility=["read", "create", "update", "delete", "query"] + ) + """The optional inbound component resiliency policy configuration.""" + outbound_policy: Optional["_models.DaprComponentResiliencyPolicyConfiguration"] = rest_field( + name="outboundPolicy", visibility=["read", "create", "update", "delete", "query"] + ) + """The optional outbound component resiliency policy configuration.""" + + @overload + def __init__( + self, + *, + inbound_policy: Optional["_models.DaprComponentResiliencyPolicyConfiguration"] = None, + outbound_policy: Optional["_models.DaprComponentResiliencyPolicyConfiguration"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DaprComponentResiliencyPolicyTimeoutPolicyConfiguration(_Model): # pylint: disable=name-too-long + """Dapr Component Resiliency Policy Timeout Policy Configuration. + + :ivar response_timeout_in_seconds: The optional response timeout in seconds. + :vartype response_timeout_in_seconds: int + """ + + response_timeout_in_seconds: Optional[int] = rest_field( + name="responseTimeoutInSeconds", visibility=["read", "create", "update", "delete", "query"] + ) + """The optional response timeout in seconds.""" + + @overload + def __init__( + self, + *, + response_timeout_in_seconds: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DaprComponentServiceBinding(_Model): + """Configuration to bind a Dapr Component to a dev ContainerApp Service. + + :ivar name: Name of the service bind. + :vartype name: str + :ivar service_id: Resource id of the target service. + :vartype service_id: str + :ivar metadata: Service bind metadata. + :vartype metadata: ~azure.mgmt.appcontainers.models.DaprServiceBindMetadata + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Name of the service bind.""" + service_id: Optional[str] = rest_field(name="serviceId", visibility=["read", "create", "update", "delete", "query"]) + """Resource id of the target service.""" + metadata: Optional["_models.DaprServiceBindMetadata"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Service bind metadata.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + service_id: Optional[str] = None, + metadata: Optional["_models.DaprServiceBindMetadata"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DaprConfiguration(_Model): + """Configuration properties Dapr component. + + :ivar version: The version of Dapr. + :vartype version: str + """ + + version: Optional[str] = rest_field(visibility=["read"]) + """The version of Dapr.""" + + +class DaprMetadata(_Model): + """Dapr component metadata. + + :ivar name: Metadata property name. + :vartype name: str + :ivar value: Metadata property value. + :vartype value: str + :ivar secret_ref: Name of the Dapr Component secret from which to pull the metadata property + value. + :vartype secret_ref: str + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Metadata property name.""" + value: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Metadata property value.""" + secret_ref: Optional[str] = rest_field(name="secretRef", visibility=["read", "create", "update", "delete", "query"]) + """Name of the Dapr Component secret from which to pull the metadata property value.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + value: Optional[str] = None, + secret_ref: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DaprSecret(_Model): + """Dapr component Secret for ListSecrets Action. + + :ivar name: Secret Name. + :vartype name: str + :ivar value: Secret Value. + :vartype value: str + """ + + name: Optional[str] = rest_field(visibility=["read"]) + """Secret Name.""" + value: Optional[str] = rest_field(visibility=["read"]) + """Secret Value.""" + + +class DaprSecretsCollection(_Model): + """Dapr component Secrets Collection for ListSecrets Action. + + :ivar value: Collection of secrets used by a Dapr component. Required. + :vartype value: list[~azure.mgmt.appcontainers.models.DaprSecret] + """ + + value: list["_models.DaprSecret"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Collection of secrets used by a Dapr component. Required.""" + + @overload + def __init__( + self, + *, + value: list["_models.DaprSecret"], + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DaprServiceBindMetadata(_Model): + """Dapr component metadata. + + :ivar name: Service bind metadata property name. + :vartype name: str + :ivar value: Service bind metadata property value. + :vartype value: str + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Service bind metadata property name.""" + value: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Service bind metadata property value.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + value: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DaprSubscription(ProxyResource): + """Dapr PubSub Event Subscription. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar properties: Dapr PubSub Event Subscription resource specific properties. + :vartype properties: ~azure.mgmt.appcontainers.models.DaprSubscriptionProperties + """ + + properties: Optional["_models.DaprSubscriptionProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Dapr PubSub Event Subscription resource specific properties.""" + + __flattened_items = ["pubsub_name", "topic", "dead_letter_topic", "routes", "scopes", "metadata", "bulk_subscribe"] + + @overload + def __init__( + self, + *, + properties: Optional["_models.DaprSubscriptionProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class DaprSubscriptionBulkSubscribeOptions(_Model): + """Dapr PubSub Bulk Subscription Options. + + :ivar enabled: Enable bulk subscription. + :vartype enabled: bool + :ivar max_messages_count: Maximum number of messages to deliver in a bulk message. + :vartype max_messages_count: int + :ivar max_await_duration_ms: Maximum duration in milliseconds to wait before a bulk message is + sent to the app. + :vartype max_await_duration_ms: int + """ + + enabled: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Enable bulk subscription.""" + max_messages_count: Optional[int] = rest_field( + name="maxMessagesCount", visibility=["read", "create", "update", "delete", "query"] + ) + """Maximum number of messages to deliver in a bulk message.""" + max_await_duration_ms: Optional[int] = rest_field( + name="maxAwaitDurationMs", visibility=["read", "create", "update", "delete", "query"] + ) + """Maximum duration in milliseconds to wait before a bulk message is sent to the app.""" + + @overload + def __init__( + self, + *, + enabled: Optional[bool] = None, + max_messages_count: Optional[int] = None, + max_await_duration_ms: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DaprSubscriptionProperties(_Model): + """Dapr PubSub Event Subscription resource specific properties. + + :ivar pubsub_name: Dapr PubSub component name. + :vartype pubsub_name: str + :ivar topic: Topic name. + :vartype topic: str + :ivar dead_letter_topic: Deadletter topic name. + :vartype dead_letter_topic: str + :ivar routes: Subscription routes. + :vartype routes: ~azure.mgmt.appcontainers.models.DaprSubscriptionRoutes + :ivar scopes: Application scopes to restrict the subscription to specific apps. + :vartype scopes: list[str] + :ivar metadata: Subscription metadata. + :vartype metadata: dict[str, str] + :ivar bulk_subscribe: Bulk subscription options. + :vartype bulk_subscribe: ~azure.mgmt.appcontainers.models.DaprSubscriptionBulkSubscribeOptions + """ + + pubsub_name: Optional[str] = rest_field( + name="pubsubName", visibility=["read", "create", "update", "delete", "query"] + ) + """Dapr PubSub component name.""" + topic: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Topic name.""" + dead_letter_topic: Optional[str] = rest_field( + name="deadLetterTopic", visibility=["read", "create", "update", "delete", "query"] + ) + """Deadletter topic name.""" + routes: Optional["_models.DaprSubscriptionRoutes"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Subscription routes.""" + scopes: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Application scopes to restrict the subscription to specific apps.""" + metadata: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Subscription metadata.""" + bulk_subscribe: Optional["_models.DaprSubscriptionBulkSubscribeOptions"] = rest_field( + name="bulkSubscribe", visibility=["read", "create", "update", "delete", "query"] + ) + """Bulk subscription options.""" + + @overload + def __init__( + self, + *, + pubsub_name: Optional[str] = None, + topic: Optional[str] = None, + dead_letter_topic: Optional[str] = None, + routes: Optional["_models.DaprSubscriptionRoutes"] = None, + scopes: Optional[list[str]] = None, + metadata: Optional[dict[str, str]] = None, + bulk_subscribe: Optional["_models.DaprSubscriptionBulkSubscribeOptions"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DaprSubscriptionRouteRule(_Model): + """Dapr Pubsub Event Subscription Route Rule is used to specify the condition for sending a + message to a specific path. + + :ivar match: The optional CEL expression used to match the event. If the match is not + specified, then the route is considered the default. The rules are tested in the order + specified, so they should be define from most-to-least specific. The default route should + appear last in the list. + :vartype match: str + :ivar path: The path for events that match this rule. + :vartype path: str + """ + + match: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The optional CEL expression used to match the event. If the match is not specified, then the + route is considered the default. The rules are tested in the order specified, so they should be + define from most-to-least specific. The default route should appear last in the list.""" + path: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The path for events that match this rule.""" + + @overload + def __init__( + self, + *, + match: Optional[str] = None, + path: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DaprSubscriptionRoutes(_Model): + """Dapr PubSub Event Subscription Routes configuration. + + :ivar rules: The list of Dapr PubSub Event Subscription Route Rules. + :vartype rules: list[~azure.mgmt.appcontainers.models.DaprSubscriptionRouteRule] + :ivar default: The default path to deliver events that do not match any of the rules. + :vartype default: str + """ + + rules: Optional[list["_models.DaprSubscriptionRouteRule"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The list of Dapr PubSub Event Subscription Route Rules.""" + default: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The default path to deliver events that do not match any of the rules.""" + + @overload + def __init__( + self, + *, + rules: Optional[list["_models.DaprSubscriptionRouteRule"]] = None, + default: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DataDogConfiguration(_Model): + """Configuration of datadog. + + :ivar site: The data dog site. + :vartype site: str + :ivar key: The data dog api key. + :vartype key: str + """ + + site: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The data dog site.""" + key: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The data dog api key.""" + + @overload + def __init__( + self, + *, + site: Optional[str] = None, + key: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DefaultAuthorizationPolicy(_Model): + """The configuration settings of the Azure Active Directory default authorization policy. + + :ivar allowed_principals: The configuration settings of the Azure Active Directory allowed + principals. + :vartype allowed_principals: ~azure.mgmt.appcontainers.models.AllowedPrincipals + :ivar allowed_applications: The configuration settings of the Azure Active Directory allowed + applications. + :vartype allowed_applications: list[str] + """ + + allowed_principals: Optional["_models.AllowedPrincipals"] = rest_field( + name="allowedPrincipals", visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration settings of the Azure Active Directory allowed principals.""" + allowed_applications: Optional[list[str]] = rest_field( + name="allowedApplications", visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration settings of the Azure Active Directory allowed applications.""" + + @overload + def __init__( + self, + *, + allowed_principals: Optional["_models.AllowedPrincipals"] = None, + allowed_applications: Optional[list[str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DefaultErrorResponse(_Model): + """App Service error response. + + :ivar error: Error model. + :vartype error: ~azure.mgmt.appcontainers.models.DefaultErrorResponseError + """ + + error: Optional["_models.DefaultErrorResponseError"] = rest_field(visibility=["read"]) + """Error model.""" + + +class DefaultErrorResponseError(_Model): + """Error model. + + :ivar code: Standardized string to programmatically identify the error. + :vartype code: str + :ivar message: Detailed error description and debugging information. + :vartype message: str + :ivar target: Detailed error description and debugging information. + :vartype target: str + :ivar details: Details or the error. + :vartype details: list[~azure.mgmt.appcontainers.models.DefaultErrorResponseErrorDetailsItem] + :ivar innererror: More information to debug error. + :vartype innererror: str + """ + + code: Optional[str] = rest_field(visibility=["read"]) + """Standardized string to programmatically identify the error.""" + message: Optional[str] = rest_field(visibility=["read"]) + """Detailed error description and debugging information.""" + target: Optional[str] = rest_field(visibility=["read"]) + """Detailed error description and debugging information.""" + details: Optional[list["_models.DefaultErrorResponseErrorDetailsItem"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Details or the error.""" + innererror: Optional[str] = rest_field(visibility=["read"]) + """More information to debug error.""" + + @overload + def __init__( + self, + *, + details: Optional[list["_models.DefaultErrorResponseErrorDetailsItem"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DefaultErrorResponseErrorDetailsItem(_Model): + """Detailed errors. + + :ivar code: Standardized string to programmatically identify the error. + :vartype code: str + :ivar message: Detailed error description and debugging information. + :vartype message: str + :ivar target: Detailed error description and debugging information. + :vartype target: str + """ + + code: Optional[str] = rest_field(visibility=["read"]) + """Standardized string to programmatically identify the error.""" + message: Optional[str] = rest_field(visibility=["read"]) + """Detailed error description and debugging information.""" + target: Optional[str] = rest_field(visibility=["read"]) + """Detailed error description and debugging information.""" + + +class DestinationsConfiguration(_Model): + """Configuration of Open Telemetry destinations. + + :ivar data_dog_configuration: Open telemetry datadog destination configuration. + :vartype data_dog_configuration: ~azure.mgmt.appcontainers.models.DataDogConfiguration + :ivar otlp_configurations: Open telemetry otlp configurations. + :vartype otlp_configurations: list[~azure.mgmt.appcontainers.models.OtlpConfiguration] + """ + + data_dog_configuration: Optional["_models.DataDogConfiguration"] = rest_field( + name="dataDogConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """Open telemetry datadog destination configuration.""" + otlp_configurations: Optional[list["_models.OtlpConfiguration"]] = rest_field( + name="otlpConfigurations", visibility=["read", "create", "update", "delete", "query"] + ) + """Open telemetry otlp configurations.""" + + @overload + def __init__( + self, + *, + data_dog_configuration: Optional["_models.DataDogConfiguration"] = None, + otlp_configurations: Optional[list["_models.OtlpConfiguration"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DiagnosticDataProviderMetadata(_Model): + """Details of a diagnostics data provider. + + :ivar provider_name: Name of data provider. + :vartype provider_name: str + :ivar property_bag: Collection of properties. + :vartype property_bag: + list[~azure.mgmt.appcontainers.models.DiagnosticDataProviderMetadataPropertyBagItem] + """ + + provider_name: Optional[str] = rest_field( + name="providerName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of data provider.""" + property_bag: Optional[list["_models.DiagnosticDataProviderMetadataPropertyBagItem"]] = rest_field( + name="propertyBag", visibility=["read", "create", "update", "delete", "query"] + ) + """Collection of properties.""" + + @overload + def __init__( + self, + *, + provider_name: Optional[str] = None, + property_bag: Optional[list["_models.DiagnosticDataProviderMetadataPropertyBagItem"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DiagnosticDataProviderMetadataPropertyBagItem(_Model): # pylint: disable=name-too-long + """Property details. + + :ivar name: Property name. + :vartype name: str + :ivar value: Property value. + :vartype value: str + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Property name.""" + value: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Property value.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + value: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DiagnosticDataTableResponseColumn(_Model): + """Diagnostics data column. + + :ivar column_name: Column name. + :vartype column_name: str + :ivar data_type: Data type of the column. + :vartype data_type: str + :ivar column_type: Column type. + :vartype column_type: str + """ + + column_name: Optional[str] = rest_field( + name="columnName", visibility=["read", "create", "update", "delete", "query"] + ) + """Column name.""" + data_type: Optional[str] = rest_field(name="dataType", visibility=["read", "create", "update", "delete", "query"]) + """Data type of the column.""" + column_type: Optional[str] = rest_field( + name="columnType", visibility=["read", "create", "update", "delete", "query"] + ) + """Column type.""" + + @overload + def __init__( + self, + *, + column_name: Optional[str] = None, + data_type: Optional[str] = None, + column_type: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DiagnosticDataTableResponseObject(_Model): + """Diagnostics data table. + + :ivar table_name: Table name. + :vartype table_name: str + :ivar columns: Columns in the table. + :vartype columns: list[~azure.mgmt.appcontainers.models.DiagnosticDataTableResponseColumn] + :ivar rows: Rows in the table. + :vartype rows: list[any] + """ + + table_name: Optional[str] = rest_field(name="tableName", visibility=["read", "create", "update", "delete", "query"]) + """Table name.""" + columns: Optional[list["_models.DiagnosticDataTableResponseColumn"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Columns in the table.""" + rows: Optional[list[Any]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Rows in the table.""" + + @overload + def __init__( + self, + *, + table_name: Optional[str] = None, + columns: Optional[list["_models.DiagnosticDataTableResponseColumn"]] = None, + rows: Optional[list[Any]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DiagnosticRendering(_Model): + """Rendering details of a diagnostics table. + + :ivar type: Rendering type. + :vartype type: int + :ivar title: Title of the table. + :vartype title: str + :ivar description: Description of the table. + :vartype description: str + :ivar is_visible: Flag if the table should be rendered. + :vartype is_visible: bool + """ + + type: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Rendering type.""" + title: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Title of the table.""" + description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Description of the table.""" + is_visible: Optional[bool] = rest_field( + name="isVisible", visibility=["read", "create", "update", "delete", "query"] + ) + """Flag if the table should be rendered.""" + + @overload + def __init__( + self, + *, + type: Optional[int] = None, + title: Optional[str] = None, + description: Optional[str] = None, + is_visible: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Diagnostics(ProxyResource): + """Diagnostics data for a resource. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar properties: The resource-specific properties for this resource. + :vartype properties: ~azure.mgmt.appcontainers.models.DiagnosticsProperties + """ + + properties: Optional["_models.DiagnosticsProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The resource-specific properties for this resource.""" + + @overload + def __init__( + self, + *, + properties: Optional["_models.DiagnosticsProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DiagnosticsCollection(_Model): + """Diagnostics data collection for a resource. + + :ivar value: The Diagnostics items on this page. Required. + :vartype value: list[~azure.mgmt.appcontainers.models.Diagnostics] + :ivar next_link: The link to the next page of items. + :vartype next_link: str + """ + + value: list["_models.Diagnostics"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The Diagnostics items on this page. Required.""" + next_link: Optional[str] = rest_field(name="nextLink", visibility=["read", "create", "update", "delete", "query"]) + """The link to the next page of items.""" + + @overload + def __init__( + self, + *, + value: list["_models.Diagnostics"], + next_link: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DiagnosticsDataApiResponse(_Model): + """Diagnostics data returned from a detector. + + :ivar table: Table response. + :vartype table: ~azure.mgmt.appcontainers.models.DiagnosticDataTableResponseObject + :ivar rendering_properties: Details of the table response. + :vartype rendering_properties: ~azure.mgmt.appcontainers.models.DiagnosticRendering + """ + + table: Optional["_models.DiagnosticDataTableResponseObject"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Table response.""" + rendering_properties: Optional["_models.DiagnosticRendering"] = rest_field( + name="renderingProperties", visibility=["read", "create", "update", "delete", "query"] + ) + """Details of the table response.""" + + @overload + def __init__( + self, + *, + table: Optional["_models.DiagnosticDataTableResponseObject"] = None, + rendering_properties: Optional["_models.DiagnosticRendering"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DiagnosticsDefinition(_Model): + """Metadata of the diagnostics response. + + :ivar id: Unique detector name. + :vartype id: str + :ivar name: Display Name of the detector. + :vartype name: str + :ivar description: Details of the diagnostics info. + :vartype description: str + :ivar author: Authors' names of the detector. + :vartype author: str + :ivar category: Category of the detector. + :vartype category: str + :ivar support_topic_list: List of support topics. + :vartype support_topic_list: list[~azure.mgmt.appcontainers.models.DiagnosticSupportTopic] + :ivar analysis_types: List of analysis types. + :vartype analysis_types: list[str] + :ivar type: Authors' names of the detector. + :vartype type: str + :ivar score: Authors' names of the detector. + :vartype score: float + """ + + id: Optional[str] = rest_field(visibility=["read"]) + """Unique detector name.""" + name: Optional[str] = rest_field(visibility=["read"]) + """Display Name of the detector.""" + description: Optional[str] = rest_field(visibility=["read"]) + """Details of the diagnostics info.""" + author: Optional[str] = rest_field(visibility=["read"]) + """Authors' names of the detector.""" + category: Optional[str] = rest_field(visibility=["read"]) + """Category of the detector.""" + support_topic_list: Optional[list["_models.DiagnosticSupportTopic"]] = rest_field( + name="supportTopicList", visibility=["read", "create", "update", "delete", "query"] + ) + """List of support topics.""" + analysis_types: Optional[list[str]] = rest_field( + name="analysisTypes", visibility=["read", "create", "update", "delete", "query"] + ) + """List of analysis types.""" + type: Optional[str] = rest_field(visibility=["read"]) + """Authors' names of the detector.""" + score: Optional[float] = rest_field(visibility=["read"]) + """Authors' names of the detector.""" + + @overload + def __init__( + self, + *, + support_topic_list: Optional[list["_models.DiagnosticSupportTopic"]] = None, + analysis_types: Optional[list[str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DiagnosticsProperties(_Model): + """Diagnostics resource specific properties. + + :ivar metadata: Metadata of the diagnostics response. + :vartype metadata: ~azure.mgmt.appcontainers.models.DiagnosticsDefinition + :ivar dataset: Set of data collections associated with the response. + :vartype dataset: list[~azure.mgmt.appcontainers.models.DiagnosticsDataApiResponse] + :ivar status: Status of the diagnostics response. + :vartype status: ~azure.mgmt.appcontainers.models.DiagnosticsStatus + :ivar data_provider_metadata: List of data providers' metadata. + :vartype data_provider_metadata: + ~azure.mgmt.appcontainers.models.DiagnosticDataProviderMetadata + """ + + metadata: Optional["_models.DiagnosticsDefinition"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Metadata of the diagnostics response.""" + dataset: Optional[list["_models.DiagnosticsDataApiResponse"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Set of data collections associated with the response.""" + status: Optional["_models.DiagnosticsStatus"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Status of the diagnostics response.""" + data_provider_metadata: Optional["_models.DiagnosticDataProviderMetadata"] = rest_field( + name="dataProviderMetadata", visibility=["read", "create", "update", "delete", "query"] + ) + """List of data providers' metadata.""" + + @overload + def __init__( + self, + *, + metadata: Optional["_models.DiagnosticsDefinition"] = None, + dataset: Optional[list["_models.DiagnosticsDataApiResponse"]] = None, + status: Optional["_models.DiagnosticsStatus"] = None, + data_provider_metadata: Optional["_models.DiagnosticDataProviderMetadata"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DiagnosticsStatus(_Model): + """Rendering details of a diagnostics table. + + :ivar message: Diagnostic message. + :vartype message: str + :ivar status_id: Status. + :vartype status_id: int + """ + + message: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Diagnostic message.""" + status_id: Optional[int] = rest_field(name="statusId", visibility=["read", "create", "update", "delete", "query"]) + """Status.""" + + @overload + def __init__( + self, + *, + message: Optional[str] = None, + status_id: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DiagnosticSupportTopic(_Model): + """Support topic information. + + :ivar id: Unique topic identifier. + :vartype id: str + :ivar pes_id: PES identifier. + :vartype pes_id: str + """ + + id: Optional[str] = rest_field(visibility=["read"]) + """Unique topic identifier.""" + pes_id: Optional[str] = rest_field(name="pesId", visibility=["read"]) + """PES identifier.""" + + +class DiskEncryptionConfiguration(_Model): + """Configuration properties for disk encryption. + + :ivar key_vault_configuration: The Key Vault that contains your key to use for disk encryption. + The Key Vault must be in the same region as the Managed Environment. + :vartype key_vault_configuration: + ~azure.mgmt.appcontainers.models.DiskEncryptionConfigurationKeyVaultConfiguration + """ + + key_vault_configuration: Optional["_models.DiskEncryptionConfigurationKeyVaultConfiguration"] = rest_field( + name="keyVaultConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """The Key Vault that contains your key to use for disk encryption. The Key Vault must be in the + same region as the Managed Environment.""" + + @overload + def __init__( + self, + *, + key_vault_configuration: Optional["_models.DiskEncryptionConfigurationKeyVaultConfiguration"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DiskEncryptionConfigurationKeyVaultConfiguration(_Model): # pylint: disable=name-too-long + """The Key Vault that contains your key to use for disk encryption. The Key Vault must be in the + same region as the Managed Environment. + + :ivar key_url: Key URL pointing to a key in KeyVault. Version segment of the Url is required. + :vartype key_url: str + :ivar auth: Configuration properties for the authentication to the Key Vault. + :vartype auth: + ~azure.mgmt.appcontainers.models.DiskEncryptionConfigurationKeyVaultConfigurationAuth + """ + + key_url: Optional[str] = rest_field(name="keyUrl", visibility=["read", "create", "update", "delete", "query"]) + """Key URL pointing to a key in KeyVault. Version segment of the Url is required.""" + auth: Optional["_models.DiskEncryptionConfigurationKeyVaultConfigurationAuth"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Configuration properties for the authentication to the Key Vault.""" + + @overload + def __init__( + self, + *, + key_url: Optional[str] = None, + auth: Optional["_models.DiskEncryptionConfigurationKeyVaultConfigurationAuth"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DiskEncryptionConfigurationKeyVaultConfigurationAuth(_Model): # pylint: disable=name-too-long + """Configuration properties for the authentication to the Key Vault. + + :ivar identity: Resource ID of a user-assigned managed identity to authenticate to the Key + Vault. The identity must be assigned to the managed environment, in the same tenant as the Key + Vault, and it must have the following key permissions on the Key Vault: wrapkey, unwrapkey, + get. + :vartype identity: str + """ + + identity: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Resource ID of a user-assigned managed identity to authenticate to the Key Vault. The identity + must be assigned to the managed environment, in the same tenant as the Key Vault, and it must + have the following key permissions on the Key Vault: wrapkey, unwrapkey, get.""" + + @overload + def __init__( + self, + *, + identity: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DotNetComponent(ProxyResource): + """.NET Component. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar properties: .NET Component resource specific properties. + :vartype properties: ~azure.mgmt.appcontainers.models.DotNetComponentProperties + """ + + properties: Optional["_models.DotNetComponentProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """.NET Component resource specific properties.""" + + __flattened_items = ["component_type", "provisioning_state", "configurations", "service_binds"] + + @overload + def __init__( + self, + *, + properties: Optional["_models.DotNetComponentProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class DotNetComponentConfigurationProperty(_Model): + """Configuration properties for a .NET Component. + + :ivar property_name: The name of the property. + :vartype property_name: str + :ivar value: The value of the property. + :vartype value: str + """ + + property_name: Optional[str] = rest_field( + name="propertyName", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the property.""" + value: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The value of the property.""" + + @overload + def __init__( + self, + *, + property_name: Optional[str] = None, + value: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DotNetComponentProperties(_Model): + """.NET Component resource specific properties. + + :ivar component_type: Type of the .NET Component. "AspireDashboard" + :vartype component_type: str or ~azure.mgmt.appcontainers.models.DotNetComponentType + :ivar provisioning_state: Provisioning state of the .NET Component. Known values are: + "Succeeded", "Failed", "Canceled", "Deleting", and "InProgress". + :vartype provisioning_state: str or + ~azure.mgmt.appcontainers.models.DotNetComponentProvisioningState + :ivar configurations: List of .NET Components configuration properties. + :vartype configurations: + list[~azure.mgmt.appcontainers.models.DotNetComponentConfigurationProperty] + :ivar service_binds: List of .NET Components that are bound to the .NET component. + :vartype service_binds: list[~azure.mgmt.appcontainers.models.DotNetComponentServiceBind] + """ + + component_type: Optional[Union[str, "_models.DotNetComponentType"]] = rest_field( + name="componentType", visibility=["read", "create", "update", "delete", "query"] + ) + """Type of the .NET Component. \"AspireDashboard\"""" + provisioning_state: Optional[Union[str, "_models.DotNetComponentProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """Provisioning state of the .NET Component. Known values are: \"Succeeded\", \"Failed\", + \"Canceled\", \"Deleting\", and \"InProgress\".""" + configurations: Optional[list["_models.DotNetComponentConfigurationProperty"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of .NET Components configuration properties.""" + service_binds: Optional[list["_models.DotNetComponentServiceBind"]] = rest_field( + name="serviceBinds", visibility=["read", "create", "update", "delete", "query"] + ) + """List of .NET Components that are bound to the .NET component.""" + + @overload + def __init__( + self, + *, + component_type: Optional[Union[str, "_models.DotNetComponentType"]] = None, + configurations: Optional[list["_models.DotNetComponentConfigurationProperty"]] = None, + service_binds: Optional[list["_models.DotNetComponentServiceBind"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DotNetComponentServiceBind(_Model): + """Configuration to bind a .NET Component to another .NET Component. + + :ivar name: Name of the service bind. + :vartype name: str + :ivar service_id: Resource id of the target service. + :vartype service_id: str + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Name of the service bind.""" + service_id: Optional[str] = rest_field(name="serviceId", visibility=["read", "create", "update", "delete", "query"]) + """Resource id of the target service.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + service_id: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DynamicPoolConfiguration(_Model): + """Dynamic pool configuration. + + :ivar lifecycle_configuration: The lifecycle configuration of a session in the dynamic session + pool. + :vartype lifecycle_configuration: ~azure.mgmt.appcontainers.models.LifecycleConfiguration + """ + + lifecycle_configuration: Optional["_models.LifecycleConfiguration"] = rest_field( + name="lifecycleConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """The lifecycle configuration of a session in the dynamic session pool.""" + + @overload + def __init__( + self, + *, + lifecycle_configuration: Optional["_models.LifecycleConfiguration"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class EncryptionSettings(_Model): + """The configuration settings of the secrets references of encryption key and signing key for + ContainerApp Service Authentication/Authorization. + + :ivar container_app_auth_encryption_secret_name: The secret name which is referenced for + EncryptionKey. + :vartype container_app_auth_encryption_secret_name: str + :ivar container_app_auth_signing_secret_name: The secret name which is referenced for + SigningKey. + :vartype container_app_auth_signing_secret_name: str + """ + + container_app_auth_encryption_secret_name: Optional[str] = rest_field( + name="containerAppAuthEncryptionSecretName", visibility=["read", "create", "update", "delete", "query"] + ) + """The secret name which is referenced for EncryptionKey.""" + container_app_auth_signing_secret_name: Optional[str] = rest_field( + name="containerAppAuthSigningSecretName", visibility=["read", "create", "update", "delete", "query"] + ) + """The secret name which is referenced for SigningKey.""" + + @overload + def __init__( + self, + *, + container_app_auth_encryption_secret_name: Optional[str] = None, + container_app_auth_signing_secret_name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class EnvironmentAuthToken(TrackedResource): + """Environment Auth Token. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + :ivar properties: Environment auth token resource specific properties. + :vartype properties: ~azure.mgmt.appcontainers.models.EnvironmentAuthTokenProperties + """ + + properties: Optional["_models.EnvironmentAuthTokenProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Environment auth token resource specific properties.""" + + __flattened_items = ["token", "expires"] + + @overload + def __init__( + self, + *, + location: str, + tags: Optional[dict[str, str]] = None, + properties: Optional["_models.EnvironmentAuthTokenProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class EnvironmentAuthTokenProperties(_Model): + """Environment auth token resource specific properties. + + :ivar token: Auth token value. + :vartype token: str + :ivar expires: Token expiration date. + :vartype expires: ~datetime.datetime + """ + + token: Optional[str] = rest_field(visibility=["read"]) + """Auth token value.""" + expires: Optional[datetime.datetime] = rest_field(visibility=["read"], format="rfc3339") + """Token expiration date.""" + + +class EnvironmentVar(_Model): + """Container App container environment variable. + + :ivar name: Environment variable name. + :vartype name: str + :ivar value: Non-secret environment variable value. + :vartype value: str + :ivar secret_ref: Name of the Container App secret from which to pull the environment variable + value. + :vartype secret_ref: str + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Environment variable name.""" + value: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Non-secret environment variable value.""" + secret_ref: Optional[str] = rest_field(name="secretRef", visibility=["read", "create", "update", "delete", "query"]) + """Name of the Container App secret from which to pull the environment variable value.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + value: Optional[str] = None, + secret_ref: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class EnvironmentVariable(_Model): + """Model representing an environment variable. + + :ivar name: Environment variable name. Required. + :vartype name: str + :ivar value: Environment variable value. Required. + :vartype value: str + """ + + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Environment variable name. Required.""" + value: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Environment variable value. Required.""" + + @overload + def __init__( + self, + *, + name: str, + value: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ErrorAdditionalInfo(_Model): + """The resource management error additional info. + + :ivar type: The additional info type. + :vartype type: str + :ivar info: The additional info. + :vartype info: any + """ + + type: Optional[str] = rest_field(visibility=["read"]) + """The additional info type.""" + info: Optional[Any] = rest_field(visibility=["read"]) + """The additional info.""" + + +class ErrorDetail(_Model): + """The error detail. + + :ivar code: The error code. + :vartype code: str + :ivar message: The error message. + :vartype message: str + :ivar target: The error target. + :vartype target: str + :ivar details: The error details. + :vartype details: list[~azure.mgmt.appcontainers.models.ErrorDetail] + :ivar additional_info: The error additional info. + :vartype additional_info: list[~azure.mgmt.appcontainers.models.ErrorAdditionalInfo] + """ + + code: Optional[str] = rest_field(visibility=["read"]) + """The error code.""" + message: Optional[str] = rest_field(visibility=["read"]) + """The error message.""" + target: Optional[str] = rest_field(visibility=["read"]) + """The error target.""" + details: Optional[list["_models.ErrorDetail"]] = rest_field(visibility=["read"]) + """The error details.""" + additional_info: Optional[list["_models.ErrorAdditionalInfo"]] = rest_field( + name="additionalInfo", visibility=["read"] + ) + """The error additional info.""" + + +class ErrorEntity(_Model): + """Body of the error response returned from the API. + + :ivar extended_code: Type of error. + :vartype extended_code: str + :ivar message_template: Message template. + :vartype message_template: str + :ivar parameters: Parameters for the template. + :vartype parameters: list[str] + :ivar inner_errors: Inner errors. + :vartype inner_errors: list[~azure.mgmt.appcontainers.models.ErrorEntity] + :ivar details: Error Details. + :vartype details: list[~azure.mgmt.appcontainers.models.ErrorEntity] + :ivar target: The error target. + :vartype target: str + :ivar code: Basic error code. + :vartype code: str + :ivar message: Any details of the error. + :vartype message: str + """ + + extended_code: Optional[str] = rest_field( + name="extendedCode", visibility=["read", "create", "update", "delete", "query"] + ) + """Type of error.""" + message_template: Optional[str] = rest_field( + name="messageTemplate", visibility=["read", "create", "update", "delete", "query"] + ) + """Message template.""" + parameters: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Parameters for the template.""" + inner_errors: Optional[list["_models.ErrorEntity"]] = rest_field( + name="innerErrors", visibility=["read", "create", "update", "delete", "query"] + ) + """Inner errors.""" + details: Optional[list["_models.ErrorEntity"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Error Details.""" + target: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The error target.""" + code: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Basic error code.""" + message: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Any details of the error.""" + + @overload + def __init__( + self, + *, + extended_code: Optional[str] = None, + message_template: Optional[str] = None, + parameters: Optional[list[str]] = None, + inner_errors: Optional[list["_models.ErrorEntity"]] = None, + details: Optional[list["_models.ErrorEntity"]] = None, + target: Optional[str] = None, + code: Optional[str] = None, + message: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ErrorResponse(_Model): + """Error response. + + :ivar error: The error object. + :vartype error: ~azure.mgmt.appcontainers.models.ErrorDetail + """ + + error: Optional["_models.ErrorDetail"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The error object.""" + + @overload + def __init__( + self, + *, + error: Optional["_models.ErrorDetail"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ExecutionStatus(_Model): + """Container Apps Job execution status. + + :ivar replicas: Replicas in the execution. + :vartype replicas: list[~azure.mgmt.appcontainers.models.ReplicaExecutionStatus] + """ + + replicas: Optional[list["_models.ReplicaExecutionStatus"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Replicas in the execution.""" + + @overload + def __init__( + self, + *, + replicas: Optional[list["_models.ReplicaExecutionStatus"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ExtendedLocation(_Model): + """The complex type of the extended location. + + :ivar name: The name of the extended location. + :vartype name: str + :ivar type: The type of the extended location. "CustomLocation" + :vartype type: str or ~azure.mgmt.appcontainers.models.ExtendedLocationTypes + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the extended location.""" + type: Optional[Union[str, "_models.ExtendedLocationTypes"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The type of the extended location. \"CustomLocation\"""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + type: Optional[Union[str, "_models.ExtendedLocationTypes"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Facebook(_Model): + """The configuration settings of the Facebook provider. + + :ivar enabled: false if the Facebook provider should not be enabled despite the + set registration; otherwise, true. + :vartype enabled: bool + :ivar registration: The configuration settings of the app registration for the Facebook + provider. + :vartype registration: ~azure.mgmt.appcontainers.models.AppRegistration + :ivar graph_api_version: The version of the Facebook api to be used while logging in. + :vartype graph_api_version: str + :ivar login: The configuration settings of the login flow. + :vartype login: ~azure.mgmt.appcontainers.models.LoginScopes + """ + + enabled: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """false if the Facebook provider should not be enabled despite the set registration; + otherwise, true.""" + registration: Optional["_models.AppRegistration"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration settings of the app registration for the Facebook provider.""" + graph_api_version: Optional[str] = rest_field( + name="graphApiVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """The version of the Facebook api to be used while logging in.""" + login: Optional["_models.LoginScopes"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The configuration settings of the login flow.""" + + @overload + def __init__( + self, + *, + enabled: Optional[bool] = None, + registration: Optional["_models.AppRegistration"] = None, + graph_api_version: Optional[str] = None, + login: Optional["_models.LoginScopes"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ForwardProxy(_Model): + """The configuration settings of a forward proxy used to make the requests. + + :ivar convention: The convention used to determine the url of the request made. Known values + are: "NoProxy", "Standard", and "Custom". + :vartype convention: str or ~azure.mgmt.appcontainers.models.ForwardProxyConvention + :ivar custom_host_header_name: The name of the header containing the host of the request. + :vartype custom_host_header_name: str + :ivar custom_proto_header_name: The name of the header containing the scheme of the request. + :vartype custom_proto_header_name: str + """ + + convention: Optional[Union[str, "_models.ForwardProxyConvention"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The convention used to determine the url of the request made. Known values are: \"NoProxy\", + \"Standard\", and \"Custom\".""" + custom_host_header_name: Optional[str] = rest_field( + name="customHostHeaderName", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the header containing the host of the request.""" + custom_proto_header_name: Optional[str] = rest_field( + name="customProtoHeaderName", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the header containing the scheme of the request.""" + + @overload + def __init__( + self, + *, + convention: Optional[Union[str, "_models.ForwardProxyConvention"]] = None, + custom_host_header_name: Optional[str] = None, + custom_proto_header_name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class GitHub(_Model): + """The configuration settings of the GitHub provider. + + :ivar enabled: false if the GitHub provider should not be enabled despite the set + registration; otherwise, true. + :vartype enabled: bool + :ivar registration: The configuration settings of the app registration for the GitHub provider. + :vartype registration: ~azure.mgmt.appcontainers.models.ClientRegistration + :ivar login: The configuration settings of the login flow. + :vartype login: ~azure.mgmt.appcontainers.models.LoginScopes + """ + + enabled: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """false if the GitHub provider should not be enabled despite the set registration; + otherwise, true.""" + registration: Optional["_models.ClientRegistration"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration settings of the app registration for the GitHub provider.""" + login: Optional["_models.LoginScopes"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The configuration settings of the login flow.""" + + @overload + def __init__( + self, + *, + enabled: Optional[bool] = None, + registration: Optional["_models.ClientRegistration"] = None, + login: Optional["_models.LoginScopes"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class GithubActionConfiguration(_Model): + """Configuration properties that define the mutable settings of a Container App SourceControl. + + :ivar registry_info: Registry configurations. + :vartype registry_info: ~azure.mgmt.appcontainers.models.RegistryInfo + :ivar azure_credentials: AzureCredentials configurations. + :vartype azure_credentials: ~azure.mgmt.appcontainers.models.AzureCredentials + :ivar context_path: Context path. + :vartype context_path: str + :ivar dockerfile_path: Dockerfile path. + :vartype dockerfile_path: str + :ivar github_personal_access_token: One time Github PAT to configure github environment. + :vartype github_personal_access_token: str + :ivar image: Image name. + :vartype image: str + :ivar publish_type: Code or Image. + :vartype publish_type: str + :ivar os: Operation system. + :vartype os: str + :ivar runtime_stack: Runtime stack. + :vartype runtime_stack: str + :ivar runtime_version: Runtime version. + :vartype runtime_version: str + :ivar build_environment_variables: List of environment variables to be passed to the build. + :vartype build_environment_variables: + list[~azure.mgmt.appcontainers.models.EnvironmentVariable] + """ + + registry_info: Optional["_models.RegistryInfo"] = rest_field( + name="registryInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Registry configurations.""" + azure_credentials: Optional["_models.AzureCredentials"] = rest_field( + name="azureCredentials", visibility=["read", "create", "update", "delete", "query"] + ) + """AzureCredentials configurations.""" + context_path: Optional[str] = rest_field( + name="contextPath", visibility=["read", "create", "update", "delete", "query"] + ) + """Context path.""" + dockerfile_path: Optional[str] = rest_field( + name="dockerfilePath", visibility=["read", "create", "update", "delete", "query"] + ) + """Dockerfile path.""" + github_personal_access_token: Optional[str] = rest_field( + name="githubPersonalAccessToken", visibility=["create", "update"] + ) + """One time Github PAT to configure github environment.""" + image: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Image name.""" + publish_type: Optional[str] = rest_field( + name="publishType", visibility=["read", "create", "update", "delete", "query"] + ) + """Code or Image.""" + os: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Operation system.""" + runtime_stack: Optional[str] = rest_field( + name="runtimeStack", visibility=["read", "create", "update", "delete", "query"] + ) + """Runtime stack.""" + runtime_version: Optional[str] = rest_field( + name="runtimeVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """Runtime version.""" + build_environment_variables: Optional[list["_models.EnvironmentVariable"]] = rest_field( + name="buildEnvironmentVariables", visibility=["read", "create", "update", "delete", "query"] + ) + """List of environment variables to be passed to the build.""" + + @overload + def __init__( + self, + *, + registry_info: Optional["_models.RegistryInfo"] = None, + azure_credentials: Optional["_models.AzureCredentials"] = None, + context_path: Optional[str] = None, + dockerfile_path: Optional[str] = None, + github_personal_access_token: Optional[str] = None, + image: Optional[str] = None, + publish_type: Optional[str] = None, + os: Optional[str] = None, + runtime_stack: Optional[str] = None, + runtime_version: Optional[str] = None, + build_environment_variables: Optional[list["_models.EnvironmentVariable"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class GlobalValidation(_Model): + """The configuration settings that determines the validation flow of users using ContainerApp + Service Authentication/Authorization. + + :ivar unauthenticated_client_action: The action to take when an unauthenticated client attempts + to access the app. Known values are: "RedirectToLoginPage", "AllowAnonymous", "Return401", and + "Return403". + :vartype unauthenticated_client_action: str or + ~azure.mgmt.appcontainers.models.UnauthenticatedClientActionV2 + :ivar redirect_to_provider: The default authentication provider to use when multiple providers + are configured. This setting is only needed if multiple providers are configured and the + unauthenticated client action is set to "RedirectToLoginPage". + :vartype redirect_to_provider: str + :ivar excluded_paths: The paths for which unauthenticated flow would not be redirected to the + login page. + :vartype excluded_paths: list[str] + """ + + unauthenticated_client_action: Optional[Union[str, "_models.UnauthenticatedClientActionV2"]] = rest_field( + name="unauthenticatedClientAction", visibility=["read", "create", "update", "delete", "query"] + ) + """The action to take when an unauthenticated client attempts to access the app. Known values are: + \"RedirectToLoginPage\", \"AllowAnonymous\", \"Return401\", and \"Return403\".""" + redirect_to_provider: Optional[str] = rest_field( + name="redirectToProvider", visibility=["read", "create", "update", "delete", "query"] + ) + """The default authentication provider to use when multiple providers are configured. This setting + is only needed if multiple providers are configured and the unauthenticated client action is + set to \"RedirectToLoginPage\".""" + excluded_paths: Optional[list[str]] = rest_field( + name="excludedPaths", visibility=["read", "create", "update", "delete", "query"] + ) + """The paths for which unauthenticated flow would not be redirected to the login page.""" + + @overload + def __init__( + self, + *, + unauthenticated_client_action: Optional[Union[str, "_models.UnauthenticatedClientActionV2"]] = None, + redirect_to_provider: Optional[str] = None, + excluded_paths: Optional[list[str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Google(_Model): + """The configuration settings of the Google provider. + + :ivar enabled: false if the Google provider should not be enabled despite the set + registration; otherwise, true. + :vartype enabled: bool + :ivar registration: The configuration settings of the app registration for the Google provider. + :vartype registration: ~azure.mgmt.appcontainers.models.ClientRegistration + :ivar login: The configuration settings of the login flow. + :vartype login: ~azure.mgmt.appcontainers.models.LoginScopes + :ivar validation: The configuration settings of the Azure Active Directory token validation + flow. + :vartype validation: ~azure.mgmt.appcontainers.models.AllowedAudiencesValidation + """ + + enabled: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """false if the Google provider should not be enabled despite the set registration; + otherwise, true.""" + registration: Optional["_models.ClientRegistration"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration settings of the app registration for the Google provider.""" + login: Optional["_models.LoginScopes"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The configuration settings of the login flow.""" + validation: Optional["_models.AllowedAudiencesValidation"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration settings of the Azure Active Directory token validation flow.""" + + @overload + def __init__( + self, + *, + enabled: Optional[bool] = None, + registration: Optional["_models.ClientRegistration"] = None, + login: Optional["_models.LoginScopes"] = None, + validation: Optional["_models.AllowedAudiencesValidation"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Header(_Model): + """Header of otlp configuration. + + :ivar key: The key of otlp configuration header. + :vartype key: str + :ivar value: The value of otlp configuration header. + :vartype value: str + """ + + key: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The key of otlp configuration header.""" + value: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The value of otlp configuration header.""" + + @overload + def __init__( + self, + *, + key: Optional[str] = None, + value: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class HeaderMatch(_Model): + """Conditions required to match a header. + + :ivar header: Name of the header. + :vartype header: str + :ivar match: Type of match to perform. + :vartype match: ~azure.mgmt.appcontainers.models.HeaderMatchMatch + """ + + header: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Name of the header.""" + match: Optional["_models.HeaderMatchMatch"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Type of match to perform.""" + + __flattened_items = ["exact_match", "prefix_match", "suffix_match", "regex_match"] + + @overload + def __init__( + self, + *, + header: Optional[str] = None, + match: Optional["_models.HeaderMatchMatch"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.match is None: + return None + return getattr(self.match, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.match is None: + self.match = self._attr_to_rest_field["match"]._class_type() + setattr(self.match, key, value) + else: + super().__setattr__(key, value) + + +class HeaderMatchMatch(_Model): + """Type of match to perform. + + :ivar exact_match: Exact value of the header. + :vartype exact_match: str + :ivar prefix_match: Prefix value of the header. + :vartype prefix_match: str + :ivar suffix_match: Suffix value of the header. + :vartype suffix_match: str + :ivar regex_match: Regex value of the header. + :vartype regex_match: str + """ + + exact_match: Optional[str] = rest_field( + name="exactMatch", visibility=["read", "create", "update", "delete", "query"] + ) + """Exact value of the header.""" + prefix_match: Optional[str] = rest_field( + name="prefixMatch", visibility=["read", "create", "update", "delete", "query"] + ) + """Prefix value of the header.""" + suffix_match: Optional[str] = rest_field( + name="suffixMatch", visibility=["read", "create", "update", "delete", "query"] + ) + """Suffix value of the header.""" + regex_match: Optional[str] = rest_field( + name="regexMatch", visibility=["read", "create", "update", "delete", "query"] + ) + """Regex value of the header.""" + + @overload + def __init__( + self, + *, + exact_match: Optional[str] = None, + prefix_match: Optional[str] = None, + suffix_match: Optional[str] = None, + regex_match: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class HttpConnectionPool(_Model): + """Defines parameters for http connection pooling. + + :ivar http1_max_pending_requests: Maximum number of pending http1 requests allowed. + :vartype http1_max_pending_requests: int + :ivar http2_max_requests: Maximum number of http2 requests allowed. + :vartype http2_max_requests: int + """ + + http1_max_pending_requests: Optional[int] = rest_field( + name="http1MaxPendingRequests", visibility=["read", "create", "update", "delete", "query"] + ) + """Maximum number of pending http1 requests allowed.""" + http2_max_requests: Optional[int] = rest_field( + name="http2MaxRequests", visibility=["read", "create", "update", "delete", "query"] + ) + """Maximum number of http2 requests allowed.""" + + @overload + def __init__( + self, + *, + http1_max_pending_requests: Optional[int] = None, + http2_max_requests: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class HttpGet(_Model): + """Model representing a http get request. + + :ivar url: URL to make HTTP GET request against. Required. + :vartype url: str + :ivar file_name: Name of the file that the request should be saved to. + :vartype file_name: str + :ivar headers: List of headers to send with the request. + :vartype headers: list[str] + """ + + url: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """URL to make HTTP GET request against. Required.""" + file_name: Optional[str] = rest_field(name="fileName", visibility=["read", "create", "update", "delete", "query"]) + """Name of the file that the request should be saved to.""" + headers: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """List of headers to send with the request.""" + + @overload + def __init__( + self, + *, + url: str, + file_name: Optional[str] = None, + headers: Optional[list[str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class HttpRetryPolicy(_Model): + """Policy that defines http request retry conditions. + + :ivar max_retries: Maximum number of times a request will retry. + :vartype max_retries: int + :ivar retry_back_off: Settings for retry backoff characteristics. + :vartype retry_back_off: ~azure.mgmt.appcontainers.models.HttpRetryPolicyRetryBackOff + :ivar matches: Conditions that must be met for a request to be retried. + :vartype matches: ~azure.mgmt.appcontainers.models.HttpRetryPolicyMatches + """ + + max_retries: Optional[int] = rest_field( + name="maxRetries", visibility=["read", "create", "update", "delete", "query"] + ) + """Maximum number of times a request will retry.""" + retry_back_off: Optional["_models.HttpRetryPolicyRetryBackOff"] = rest_field( + name="retryBackOff", visibility=["read", "create", "update", "delete", "query"] + ) + """Settings for retry backoff characteristics.""" + matches: Optional["_models.HttpRetryPolicyMatches"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Conditions that must be met for a request to be retried.""" + + __flattened_items = [ + "initial_delay_in_milliseconds", + "max_interval_in_milliseconds", + "headers", + "http_status_codes", + "errors", + ] + + @overload + def __init__( + self, + *, + max_retries: Optional[int] = None, + retry_back_off: Optional["_models.HttpRetryPolicyRetryBackOff"] = None, + matches: Optional["_models.HttpRetryPolicyMatches"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.retry_back_off is None: + return None + return getattr(self.retry_back_off, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.retry_back_off is None: + self.retry_back_off = self._attr_to_rest_field["retry_back_off"]._class_type() + setattr(self.retry_back_off, key, value) + else: + super().__setattr__(key, value) + + +class HttpRetryPolicyMatches(_Model): + """Conditions that must be met for a request to be retried. + + :ivar headers: Headers that must be present for a request to be retried. + :vartype headers: list[~azure.mgmt.appcontainers.models.HeaderMatch] + :ivar http_status_codes: Additional http status codes that can trigger a retry. + :vartype http_status_codes: list[int] + :ivar errors: Errors that can trigger a retry. + :vartype errors: list[str] + """ + + headers: Optional[list["_models.HeaderMatch"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Headers that must be present for a request to be retried.""" + http_status_codes: Optional[list[int]] = rest_field( + name="httpStatusCodes", visibility=["read", "create", "update", "delete", "query"] + ) + """Additional http status codes that can trigger a retry.""" + errors: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Errors that can trigger a retry.""" + + @overload + def __init__( + self, + *, + headers: Optional[list["_models.HeaderMatch"]] = None, + http_status_codes: Optional[list[int]] = None, + errors: Optional[list[str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class HttpRetryPolicyRetryBackOff(_Model): + """Settings for retry backoff characteristics. + + :ivar initial_delay_in_milliseconds: Initial delay, in milliseconds, before retrying a request. + :vartype initial_delay_in_milliseconds: int + :ivar max_interval_in_milliseconds: Maximum interval, in milliseconds, between retries. + :vartype max_interval_in_milliseconds: int + """ + + initial_delay_in_milliseconds: Optional[int] = rest_field( + name="initialDelayInMilliseconds", visibility=["read", "create", "update", "delete", "query"] + ) + """Initial delay, in milliseconds, before retrying a request.""" + max_interval_in_milliseconds: Optional[int] = rest_field( + name="maxIntervalInMilliseconds", visibility=["read", "create", "update", "delete", "query"] + ) + """Maximum interval, in milliseconds, between retries.""" + + @overload + def __init__( + self, + *, + initial_delay_in_milliseconds: Optional[int] = None, + max_interval_in_milliseconds: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class HttpRoute(_Model): + """Http Routes configuration, including paths to match on and whether or not rewrites are to be + done. + + :ivar match: Conditions route will match on. + :vartype match: ~azure.mgmt.appcontainers.models.HttpRouteMatch + :ivar action: Once route is matched, what is the desired action. + :vartype action: ~azure.mgmt.appcontainers.models.HttpRouteAction + """ + + match: Optional["_models.HttpRouteMatch"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Conditions route will match on.""" + action: Optional["_models.HttpRouteAction"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Once route is matched, what is the desired action.""" + + @overload + def __init__( + self, + *, + match: Optional["_models.HttpRouteMatch"] = None, + action: Optional["_models.HttpRouteAction"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class HttpRouteAction(_Model): + """Action to perform once matching of routes is done. + + :ivar prefix_rewrite: Rewrite prefix, default is no rewrites. + :vartype prefix_rewrite: str + """ + + prefix_rewrite: Optional[str] = rest_field( + name="prefixRewrite", visibility=["read", "create", "update", "delete", "query"] + ) + """Rewrite prefix, default is no rewrites.""" + + @overload + def __init__( + self, + *, + prefix_rewrite: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class HttpRouteConfig(ProxyResource): + """Advanced Ingress routing for path/header based routing for a Container App Environment. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar properties: Http Route Config properties. + :vartype properties: ~azure.mgmt.appcontainers.models.HttpRouteConfigProperties + """ + + properties: Optional["_models.HttpRouteConfigProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Http Route Config properties.""" + + @overload + def __init__( + self, + *, + properties: Optional["_models.HttpRouteConfigProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class HttpRouteConfigProperties(_Model): + """Http Route Config properties. + + :ivar provisioning_state: The provisioning state of the Http Route Config in cluster. Known + values are: "Succeeded", "Failed", "Canceled", "Waiting", "Updating", "Deleting", and + "Pending". + :vartype provisioning_state: str or ~azure.mgmt.appcontainers.models.HttpRouteProvisioningState + :ivar provisioning_errors: List of errors when trying to reconcile http routes. + :vartype provisioning_errors: + list[~azure.mgmt.appcontainers.models.HttpRouteProvisioningErrors] + :ivar fqdn: FQDN of the route resource. + :vartype fqdn: str + :ivar custom_domains: Custom domain bindings for http Routes' hostnames. + :vartype custom_domains: list[~azure.mgmt.appcontainers.models.CustomDomain] + :ivar rules: Routing Rules for http route resource. + :vartype rules: list[~azure.mgmt.appcontainers.models.HttpRouteRule] + """ + + provisioning_state: Optional[Union[str, "_models.HttpRouteProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """The provisioning state of the Http Route Config in cluster. Known values are: \"Succeeded\", + \"Failed\", \"Canceled\", \"Waiting\", \"Updating\", \"Deleting\", and \"Pending\".""" + provisioning_errors: Optional[list["_models.HttpRouteProvisioningErrors"]] = rest_field( + name="provisioningErrors", visibility=["read"] + ) + """List of errors when trying to reconcile http routes.""" + fqdn: Optional[str] = rest_field(visibility=["read"]) + """FQDN of the route resource.""" + custom_domains: Optional[list["_models.CustomDomain"]] = rest_field( + name="customDomains", visibility=["read", "create", "update", "delete", "query"] + ) + """Custom domain bindings for http Routes' hostnames.""" + rules: Optional[list["_models.HttpRouteRule"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Routing Rules for http route resource.""" + + @overload + def __init__( + self, + *, + custom_domains: Optional[list["_models.CustomDomain"]] = None, + rules: Optional[list["_models.HttpRouteRule"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class HttpRouteMatch(_Model): + """Criteria to match on. + + :ivar prefix: match on all prefix's. Not exact. + :vartype prefix: str + :ivar path: match on exact path. + :vartype path: str + :ivar path_separated_prefix: match on all prefix's. Not exact. + :vartype path_separated_prefix: str + :ivar case_sensitive: path case sensitive, default is true. + :vartype case_sensitive: bool + """ + + prefix: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """match on all prefix's. Not exact.""" + path: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """match on exact path.""" + path_separated_prefix: Optional[str] = rest_field( + name="pathSeparatedPrefix", visibility=["read", "create", "update", "delete", "query"] + ) + """match on all prefix's. Not exact.""" + case_sensitive: Optional[bool] = rest_field( + name="caseSensitive", visibility=["read", "create", "update", "delete", "query"] + ) + """path case sensitive, default is true.""" + + @overload + def __init__( + self, + *, + prefix: Optional[str] = None, + path: Optional[str] = None, + path_separated_prefix: Optional[str] = None, + case_sensitive: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class HttpRouteProvisioningErrors(_Model): + """List of provisioning errors for a http route config object. + + :ivar timestamp: Timestamp error occured at. + :vartype timestamp: ~datetime.datetime + :ivar message: Description or error message. + :vartype message: str + """ + + timestamp: Optional[datetime.datetime] = rest_field(visibility=["read"], format="rfc3339") + """Timestamp error occured at.""" + message: Optional[str] = rest_field(visibility=["read"]) + """Description or error message.""" + + +class HttpRouteRule(_Model): + """Http Route rule. + + :ivar targets: Targets- container apps, revisions, labels. + :vartype targets: list[~azure.mgmt.appcontainers.models.HttpRouteTarget] + :ivar routes: Routing configuration that will allow matches on specific paths/headers. + :vartype routes: list[~azure.mgmt.appcontainers.models.HttpRoute] + :ivar description: Description of rule. Optional. + :vartype description: str + """ + + targets: Optional[list["_models.HttpRouteTarget"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Targets- container apps, revisions, labels.""" + routes: Optional[list["_models.HttpRoute"]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Routing configuration that will allow matches on specific paths/headers.""" + description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Description of rule. Optional.""" + + @overload + def __init__( + self, + *, + targets: Optional[list["_models.HttpRouteTarget"]] = None, + routes: Optional[list["_models.HttpRoute"]] = None, + description: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class HttpRouteTarget(_Model): + """Targets - Container App Names, Revision Names, Labels. + + :ivar container_app: Container App Name to route requests to. Required. + :vartype container_app: str + :ivar revision: Revision to route requests to. + :vartype revision: str + :ivar label: Label/Revision to route requests to. + :vartype label: str + :ivar weight: Weighted routing. + :vartype weight: int + """ + + container_app: str = rest_field(name="containerApp", visibility=["read", "create", "update", "delete", "query"]) + """Container App Name to route requests to. Required.""" + revision: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Revision to route requests to.""" + label: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Label/Revision to route requests to.""" + weight: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Weighted routing.""" + + @overload + def __init__( + self, + *, + container_app: str, + revision: Optional[str] = None, + label: Optional[str] = None, + weight: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class HttpScaleRule(_Model): + """Container App container 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.appcontainers.models.ScaleRuleAuth] + :ivar identity: The resource ID of a user-assigned managed identity that is assigned to the + Container App, or 'system' for system-assigned identity. + :vartype identity: str + """ + + metadata: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Metadata properties to describe http scale rule.""" + auth: Optional[list["_models.ScaleRuleAuth"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Authentication secrets for the custom scale rule.""" + identity: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The resource ID of a user-assigned managed identity that is assigned to the Container App, or + 'system' for system-assigned identity.""" + + @overload + def __init__( + self, + *, + metadata: Optional[dict[str, str]] = None, + auth: Optional[list["_models.ScaleRuleAuth"]] = None, + identity: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class HttpSettings(_Model): + """The configuration settings of the HTTP requests for authentication and authorization requests + made against ContainerApp Service Authentication/Authorization. + + :ivar require_https: false if the authentication/authorization responses not + having the HTTPS scheme are permissible; otherwise, true. + :vartype require_https: bool + :ivar routes: The configuration settings of the paths HTTP requests. + :vartype routes: ~azure.mgmt.appcontainers.models.HttpSettingsRoutes + :ivar forward_proxy: The configuration settings of a forward proxy used to make the requests. + :vartype forward_proxy: ~azure.mgmt.appcontainers.models.ForwardProxy + """ + + require_https: Optional[bool] = rest_field( + name="requireHttps", visibility=["read", "create", "update", "delete", "query"] + ) + """false if the authentication/authorization responses not having the HTTPS scheme + are permissible; otherwise, true.""" + routes: Optional["_models.HttpSettingsRoutes"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration settings of the paths HTTP requests.""" + forward_proxy: Optional["_models.ForwardProxy"] = rest_field( + name="forwardProxy", visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration settings of a forward proxy used to make the requests.""" + + @overload + def __init__( + self, + *, + require_https: Optional[bool] = None, + routes: Optional["_models.HttpSettingsRoutes"] = None, + forward_proxy: Optional["_models.ForwardProxy"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class HttpSettingsRoutes(_Model): + """The configuration settings of the paths HTTP requests. + + :ivar api_prefix: The prefix that should precede all the authentication/authorization paths. + :vartype api_prefix: str + """ + + api_prefix: Optional[str] = rest_field(name="apiPrefix", visibility=["read", "create", "update", "delete", "query"]) + """The prefix that should precede all the authentication/authorization paths.""" + + @overload + def __init__( + self, + *, + api_prefix: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class IdentityProviders(_Model): + """The configuration settings of each of the identity providers used to configure ContainerApp + Service Authentication/Authorization. + + :ivar azure_active_directory: The configuration settings of the Azure Active directory + provider. + :vartype azure_active_directory: ~azure.mgmt.appcontainers.models.AzureActiveDirectory + :ivar facebook: The configuration settings of the Facebook provider. + :vartype facebook: ~azure.mgmt.appcontainers.models.Facebook + :ivar git_hub: The configuration settings of the GitHub provider. + :vartype git_hub: ~azure.mgmt.appcontainers.models.GitHub + :ivar google: The configuration settings of the Google provider. + :vartype google: ~azure.mgmt.appcontainers.models.Google + :ivar twitter: The configuration settings of the Twitter provider. + :vartype twitter: ~azure.mgmt.appcontainers.models.Twitter + :ivar apple: The configuration settings of the Apple provider. + :vartype apple: ~azure.mgmt.appcontainers.models.Apple + :ivar azure_static_web_apps: The configuration settings of the Azure Static Web Apps provider. + :vartype azure_static_web_apps: ~azure.mgmt.appcontainers.models.AzureStaticWebApps + :ivar custom_open_id_connect_providers: The map of the name of the alias of each custom Open ID + Connect provider to the configuration settings of the custom Open ID Connect provider. + :vartype custom_open_id_connect_providers: dict[str, + ~azure.mgmt.appcontainers.models.CustomOpenIdConnectProvider] + """ + + azure_active_directory: Optional["_models.AzureActiveDirectory"] = rest_field( + name="azureActiveDirectory", visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration settings of the Azure Active directory provider.""" + facebook: Optional["_models.Facebook"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The configuration settings of the Facebook provider.""" + git_hub: Optional["_models.GitHub"] = rest_field( + name="gitHub", visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration settings of the GitHub provider.""" + google: Optional["_models.Google"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The configuration settings of the Google provider.""" + twitter: Optional["_models.Twitter"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The configuration settings of the Twitter provider.""" + apple: Optional["_models.Apple"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The configuration settings of the Apple provider.""" + azure_static_web_apps: Optional["_models.AzureStaticWebApps"] = rest_field( + name="azureStaticWebApps", visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration settings of the Azure Static Web Apps provider.""" + custom_open_id_connect_providers: Optional[dict[str, "_models.CustomOpenIdConnectProvider"]] = rest_field( + name="customOpenIdConnectProviders", visibility=["read", "create", "update", "delete", "query"] + ) + """The map of the name of the alias of each custom Open ID Connect provider to the configuration + settings of the custom Open ID Connect provider.""" + + @overload + def __init__( + self, + *, + azure_active_directory: Optional["_models.AzureActiveDirectory"] = None, + facebook: Optional["_models.Facebook"] = None, + git_hub: Optional["_models.GitHub"] = None, + google: Optional["_models.Google"] = None, + twitter: Optional["_models.Twitter"] = None, + apple: Optional["_models.Apple"] = None, + azure_static_web_apps: Optional["_models.AzureStaticWebApps"] = None, + custom_open_id_connect_providers: Optional[dict[str, "_models.CustomOpenIdConnectProvider"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class IdentitySettings(_Model): + """Optional settings for a Managed Identity that is assigned to the Container App. + + :ivar identity: The resource ID of a user-assigned managed identity that is assigned to the + Container App, or 'system' for system-assigned identity. Required. + :vartype identity: str + :ivar lifecycle: Use to select the lifecycle stages of a Container App during which the Managed + Identity should be available. Known values are: "None", "Main", "Init", and "All". + :vartype lifecycle: str or ~azure.mgmt.appcontainers.models.IdentitySettingsLifeCycle + """ + + identity: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The resource ID of a user-assigned managed identity that is assigned to the Container App, or + 'system' for system-assigned identity. Required.""" + lifecycle: Optional[Union[str, "_models.IdentitySettingsLifeCycle"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Use to select the lifecycle stages of a Container App during which the Managed Identity should + be available. Known values are: \"None\", \"Main\", \"Init\", and \"All\".""" + + @overload + def __init__( + self, + *, + identity: str, + lifecycle: Optional[Union[str, "_models.IdentitySettingsLifeCycle"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Ingress(_Model): + """Container App Ingress configuration. + + :ivar fqdn: Hostname. + :vartype fqdn: str + :ivar external: Bool indicating if app exposes an external http endpoint. + :vartype external: bool + :ivar target_port: Target Port in containers for traffic from ingress. + :vartype target_port: int + :ivar exposed_port: Exposed Port in containers for TCP traffic from ingress. + :vartype exposed_port: int + :ivar transport: Ingress transport protocol. Known values are: "auto", "http", "http2", and + "tcp". + :vartype transport: str or ~azure.mgmt.appcontainers.models.IngressTransportMethod + :ivar traffic: Traffic weights for app's revisions. + :vartype traffic: list[~azure.mgmt.appcontainers.models.TrafficWeight] + :ivar custom_domains: custom domain bindings for Container Apps' hostnames. + :vartype custom_domains: list[~azure.mgmt.appcontainers.models.CustomDomain] + :ivar allow_insecure: Bool indicating if HTTP connections to is allowed. If set to false HTTP + connections are automatically redirected to HTTPS connections. + :vartype allow_insecure: bool + :ivar ip_security_restrictions: Rules to restrict incoming IP address. + :vartype ip_security_restrictions: + list[~azure.mgmt.appcontainers.models.IpSecurityRestrictionRule] + :ivar sticky_sessions: Sticky Sessions for Single Revision Mode. + :vartype sticky_sessions: ~azure.mgmt.appcontainers.models.IngressStickySessions + :ivar client_certificate_mode: Client certificate mode for mTLS authentication. Ignore + indicates server drops client certificate on forwarding. Accept indicates server forwards + client certificate but does not require a client certificate. Require indicates server requires + a client certificate. Known values are: "ignore", "accept", and "require". + :vartype client_certificate_mode: str or + ~azure.mgmt.appcontainers.models.IngressClientCertificateMode + :ivar cors_policy: CORS policy for container app. + :vartype cors_policy: ~azure.mgmt.appcontainers.models.CorsPolicy + :ivar additional_port_mappings: Settings to expose additional ports on container app. + :vartype additional_port_mappings: list[~azure.mgmt.appcontainers.models.IngressPortMapping] + :ivar target_port_http_scheme: Whether an http app listens on http or https. Known values are: + "http" and "https". + :vartype target_port_http_scheme: str or + ~azure.mgmt.appcontainers.models.IngressTargetPortHttpScheme + """ + + fqdn: Optional[str] = rest_field(visibility=["read"]) + """Hostname.""" + external: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Bool indicating if app exposes an external http endpoint.""" + target_port: Optional[int] = rest_field( + name="targetPort", visibility=["read", "create", "update", "delete", "query"] + ) + """Target Port in containers for traffic from ingress.""" + exposed_port: Optional[int] = rest_field( + name="exposedPort", visibility=["read", "create", "update", "delete", "query"] + ) + """Exposed Port in containers for TCP traffic from ingress.""" + transport: Optional[Union[str, "_models.IngressTransportMethod"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Ingress transport protocol. Known values are: \"auto\", \"http\", \"http2\", and \"tcp\".""" + traffic: Optional[list["_models.TrafficWeight"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Traffic weights for app's revisions.""" + custom_domains: Optional[list["_models.CustomDomain"]] = rest_field( + name="customDomains", visibility=["read", "create", "update", "delete", "query"] + ) + """custom domain bindings for Container Apps' hostnames.""" + allow_insecure: Optional[bool] = rest_field( + name="allowInsecure", visibility=["read", "create", "update", "delete", "query"] + ) + """Bool indicating if HTTP connections to is allowed. If set to false HTTP connections are + automatically redirected to HTTPS connections.""" + ip_security_restrictions: Optional[list["_models.IpSecurityRestrictionRule"]] = rest_field( + name="ipSecurityRestrictions", visibility=["read", "create", "update", "delete", "query"] + ) + """Rules to restrict incoming IP address.""" + sticky_sessions: Optional["_models.IngressStickySessions"] = rest_field( + name="stickySessions", visibility=["read", "create", "update", "delete", "query"] + ) + """Sticky Sessions for Single Revision Mode.""" + client_certificate_mode: Optional[Union[str, "_models.IngressClientCertificateMode"]] = rest_field( + name="clientCertificateMode", visibility=["read", "create", "update", "delete", "query"] + ) + """Client certificate mode for mTLS authentication. Ignore indicates server drops client + certificate on forwarding. Accept indicates server forwards client certificate but does not + require a client certificate. Require indicates server requires a client certificate. Known + values are: \"ignore\", \"accept\", and \"require\".""" + cors_policy: Optional["_models.CorsPolicy"] = rest_field( + name="corsPolicy", visibility=["read", "create", "update", "delete", "query"] + ) + """CORS policy for container app.""" + additional_port_mappings: Optional[list["_models.IngressPortMapping"]] = rest_field( + name="additionalPortMappings", visibility=["read", "create", "update", "delete", "query"] + ) + """Settings to expose additional ports on container app.""" + target_port_http_scheme: Optional[Union[str, "_models.IngressTargetPortHttpScheme"]] = rest_field( + name="targetPortHttpScheme", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether an http app listens on http or https. Known values are: \"http\" and \"https\".""" + + @overload + def __init__( + self, + *, + external: Optional[bool] = None, + target_port: Optional[int] = None, + exposed_port: Optional[int] = None, + transport: Optional[Union[str, "_models.IngressTransportMethod"]] = None, + traffic: Optional[list["_models.TrafficWeight"]] = None, + custom_domains: Optional[list["_models.CustomDomain"]] = None, + allow_insecure: Optional[bool] = None, + ip_security_restrictions: Optional[list["_models.IpSecurityRestrictionRule"]] = None, + sticky_sessions: Optional["_models.IngressStickySessions"] = None, + client_certificate_mode: Optional[Union[str, "_models.IngressClientCertificateMode"]] = None, + cors_policy: Optional["_models.CorsPolicy"] = None, + additional_port_mappings: Optional[list["_models.IngressPortMapping"]] = None, + target_port_http_scheme: Optional[Union[str, "_models.IngressTargetPortHttpScheme"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class IngressConfiguration(_Model): + """Settings for the ingress component, including workload profile, scaling, and connection + handling. + + :ivar workload_profile_name: Name of the workload profile used by the ingress component. + Required. + :vartype workload_profile_name: str + :ivar termination_grace_period_seconds: Time (in seconds) to allow active connections to + complete on termination. Must be between 0 and 3600. Defaults to 480 seconds. + :vartype termination_grace_period_seconds: int + :ivar header_count_limit: Maximum number of headers per request allowed by the ingress. Must be + at least 1. Defaults to 100. + :vartype header_count_limit: int + :ivar request_idle_timeout: Duration (in minutes) before idle requests are timed out. Must be + between 4 and 30 inclusive. Defaults to 4 minutes. + :vartype request_idle_timeout: int + """ + + workload_profile_name: Optional[str] = rest_field( + name="workloadProfileName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of the workload profile used by the ingress component. Required.""" + termination_grace_period_seconds: Optional[int] = rest_field( + name="terminationGracePeriodSeconds", visibility=["read", "create", "update", "delete", "query"] + ) + """Time (in seconds) to allow active connections to complete on termination. Must be between 0 and + 3600. Defaults to 480 seconds.""" + header_count_limit: Optional[int] = rest_field( + name="headerCountLimit", visibility=["read", "create", "update", "delete", "query"] + ) + """Maximum number of headers per request allowed by the ingress. Must be at least 1. Defaults to + 100.""" + request_idle_timeout: Optional[int] = rest_field( + name="requestIdleTimeout", visibility=["read", "create", "update", "delete", "query"] + ) + """Duration (in minutes) before idle requests are timed out. Must be between 4 and 30 inclusive. + Defaults to 4 minutes.""" + + @overload + def __init__( + self, + *, + workload_profile_name: Optional[str] = None, + termination_grace_period_seconds: Optional[int] = None, + header_count_limit: Optional[int] = None, + request_idle_timeout: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class IngressPortMapping(_Model): + """Port mappings of container app ingress. + + :ivar external: Specifies whether the app port is accessible outside of the environment. + Required. + :vartype external: bool + :ivar target_port: Specifies the port user's container listens on. Required. + :vartype target_port: int + :ivar exposed_port: Specifies the exposed port for the target port. If not specified, it + defaults to target port. + :vartype exposed_port: int + """ + + external: bool = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Specifies whether the app port is accessible outside of the environment. Required.""" + target_port: int = rest_field(name="targetPort", visibility=["read", "create", "update", "delete", "query"]) + """Specifies the port user's container listens on. Required.""" + exposed_port: Optional[int] = rest_field( + name="exposedPort", visibility=["read", "create", "update", "delete", "query"] + ) + """Specifies the exposed port for the target port. If not specified, it defaults to target port.""" + + @overload + def __init__( + self, + *, + external: bool, + target_port: int, + exposed_port: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class IngressStickySessions(_Model): + """Sticky Sessions for Single Revision Mode. + + :ivar affinity: Sticky Session Affinity. Known values are: "sticky" and "none". + :vartype affinity: str or ~azure.mgmt.appcontainers.models.Affinity + """ + + affinity: Optional[Union[str, "_models.Affinity"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Sticky Session Affinity. Known values are: \"sticky\" and \"none\".""" + + @overload + def __init__( + self, + *, + affinity: Optional[Union[str, "_models.Affinity"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class InitContainer(BaseContainer): + """Container App init container definition. + + :ivar image: Container image tag. + :vartype image: str + :ivar image_type: The type of the image. Set to CloudBuild to let the system manages the image, + where user will not be able to update image through image field. Set to ContainerImage for user + provided image. Known values are: "CloudBuild" and "ContainerImage". + :vartype image_type: str or ~azure.mgmt.appcontainers.models.ImageType + :ivar name: Custom container name. + :vartype name: str + :ivar command: Container start command. + :vartype command: list[str] + :ivar args: Container start command arguments. + :vartype args: list[str] + :ivar env: Container environment variables. + :vartype env: list[~azure.mgmt.appcontainers.models.EnvironmentVar] + :ivar resources: Container resource requirements. + :vartype resources: ~azure.mgmt.appcontainers.models.ContainerResources + :ivar volume_mounts: Container volume mounts. + :vartype volume_mounts: list[~azure.mgmt.appcontainers.models.VolumeMount] + """ + + @overload + def __init__( + self, + *, + image: Optional[str] = None, + image_type: Optional[Union[str, "_models.ImageType"]] = None, + name: Optional[str] = None, + command: Optional[list[str]] = None, + args: Optional[list[str]] = None, + env: Optional[list["_models.EnvironmentVar"]] = None, + resources: Optional["_models.ContainerResources"] = None, + volume_mounts: Optional[list["_models.VolumeMount"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class IpSecurityRestrictionRule(_Model): + """Rule to restrict incoming IP address. + + :ivar name: Name for the IP restriction rule. Required. + :vartype name: str + :ivar description: Describe the IP restriction rule that is being sent to the container-app. + This is an optional field. + :vartype description: str + :ivar ip_address_range: CIDR notation to match incoming IP address. Required. + :vartype ip_address_range: str + :ivar action: Allow or Deny rules to determine for incoming IP. Note: Rules can only consist of + ALL Allow or ALL Deny. Required. Known values are: "Allow" and "Deny". + :vartype action: str or ~azure.mgmt.appcontainers.models.Action + """ + + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Name for the IP restriction rule. Required.""" + description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Describe the IP restriction rule that is being sent to the container-app. This is an optional + field.""" + ip_address_range: str = rest_field( + name="ipAddressRange", visibility=["read", "create", "update", "delete", "query"] + ) + """CIDR notation to match incoming IP address. Required.""" + action: Union[str, "_models.Action"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Allow or Deny rules to determine for incoming IP. Note: Rules can only consist of ALL Allow or + ALL Deny. Required. Known values are: \"Allow\" and \"Deny\".""" + + @overload + def __init__( + self, + *, + name: str, + ip_address_range: str, + action: Union[str, "_models.Action"], + description: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class JavaComponent(ProxyResource): + """Java Component. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar properties: Java Component resource specific properties. + :vartype properties: ~azure.mgmt.appcontainers.models.JavaComponentProperties + """ + + properties: Optional["_models.JavaComponentProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Java Component resource specific properties.""" + + @overload + def __init__( + self, + *, + properties: Optional["_models.JavaComponentProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class JavaComponentConfigurationProperty(_Model): + """Configuration properties for a Java Component. + + :ivar property_name: The name of the property. + :vartype property_name: str + :ivar value: The value of the property. + :vartype value: str + """ + + property_name: Optional[str] = rest_field( + name="propertyName", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the property.""" + value: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The value of the property.""" + + @overload + def __init__( + self, + *, + property_name: Optional[str] = None, + value: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class JavaComponentIngress(_Model): + """Container App Ingress configuration. + + :ivar fqdn: Hostname of the Java Component endpoint. + :vartype fqdn: str + """ + + fqdn: Optional[str] = rest_field(visibility=["read"]) + """Hostname of the Java Component endpoint.""" + + +class JavaComponentProperties(_Model): + """Java Component common properties. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + NacosComponent, SpringBootAdminComponent, SpringCloudConfigComponent, + SpringCloudEurekaComponent, SpringCloudGatewayComponent + + :ivar component_type: Type of the Java Component. Required. Known values are: + "SpringBootAdmin", "SpringCloudEureka", "SpringCloudConfig", "SpringCloudGateway", and "Nacos". + :vartype component_type: str or ~azure.mgmt.appcontainers.models.JavaComponentType + :ivar provisioning_state: Provisioning state of the Java Component. Known values are: + "Succeeded", "Failed", "Canceled", "Deleting", and "InProgress". + :vartype provisioning_state: str or + ~azure.mgmt.appcontainers.models.JavaComponentProvisioningState + :ivar configurations: List of Java Components configuration properties. + :vartype configurations: + list[~azure.mgmt.appcontainers.models.JavaComponentConfigurationProperty] + :ivar scale: Java component scaling configurations. + :vartype scale: ~azure.mgmt.appcontainers.models.JavaComponentPropertiesScale + :ivar service_binds: List of Java Components that are bound to the Java component. + :vartype service_binds: list[~azure.mgmt.appcontainers.models.JavaComponentServiceBind] + """ + + __mapping__: dict[str, _Model] = {} + component_type: str = rest_discriminator( + name="componentType", visibility=["read", "create", "update", "delete", "query"] + ) + """Type of the Java Component. Required. Known values are: \"SpringBootAdmin\", + \"SpringCloudEureka\", \"SpringCloudConfig\", \"SpringCloudGateway\", and \"Nacos\".""" + provisioning_state: Optional[Union[str, "_models.JavaComponentProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """Provisioning state of the Java Component. Known values are: \"Succeeded\", \"Failed\", + \"Canceled\", \"Deleting\", and \"InProgress\".""" + configurations: Optional[list["_models.JavaComponentConfigurationProperty"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of Java Components configuration properties.""" + scale: Optional["_models.JavaComponentPropertiesScale"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Java component scaling configurations.""" + service_binds: Optional[list["_models.JavaComponentServiceBind"]] = rest_field( + name="serviceBinds", visibility=["read", "create", "update", "delete", "query"] + ) + """List of Java Components that are bound to the Java component.""" + + @overload + def __init__( + self, + *, + component_type: str, + configurations: Optional[list["_models.JavaComponentConfigurationProperty"]] = None, + scale: Optional["_models.JavaComponentPropertiesScale"] = None, + service_binds: Optional[list["_models.JavaComponentServiceBind"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class JavaComponentPropertiesScale(_Model): + """Java component scaling configurations. + + :ivar min_replicas: Optional. Minimum number of Java component replicas. Defaults to 1 if not + set. + :vartype min_replicas: int + :ivar max_replicas: Optional. Maximum number of Java component replicas. + :vartype max_replicas: int + """ + + min_replicas: Optional[int] = rest_field( + name="minReplicas", visibility=["read", "create", "update", "delete", "query"] + ) + """Optional. Minimum number of Java component replicas. Defaults to 1 if not set.""" + max_replicas: Optional[int] = rest_field( + name="maxReplicas", visibility=["read", "create", "update", "delete", "query"] + ) + """Optional. Maximum number of Java component replicas.""" + + @overload + def __init__( + self, + *, + min_replicas: Optional[int] = None, + max_replicas: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class JavaComponentServiceBind(_Model): + """Configuration to bind a Java Component to another Java Component. + + :ivar name: Name of the service bind. + :vartype name: str + :ivar service_id: Resource id of the target service. + :vartype service_id: str + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Name of the service bind.""" + service_id: Optional[str] = rest_field(name="serviceId", visibility=["read", "create", "update", "delete", "query"]) + """Resource id of the target service.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + service_id: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Job(TrackedResource): + """Container App Job. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + :ivar properties: Container Apps Job resource specific properties. + :vartype properties: ~azure.mgmt.appcontainers.models.JobProperties + :ivar extended_location: The complex type of the extended location. + :vartype extended_location: ~azure.mgmt.appcontainers.models.ExtendedLocation + :ivar identity: The managed service identities assigned to this resource. + :vartype identity: ~azure.mgmt.appcontainers.models.ManagedServiceIdentity + """ + + properties: Optional["_models.JobProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Container Apps Job resource specific properties.""" + extended_location: Optional["_models.ExtendedLocation"] = rest_field( + name="extendedLocation", visibility=["read", "create", "update", "delete", "query"] + ) + """The complex type of the extended location.""" + identity: Optional["_models.ManagedServiceIdentity"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The managed service identities assigned to this resource.""" + + __flattened_items = [ + "provisioning_state", + "running_state", + "environment_id", + "workload_profile_name", + "configuration", + "template", + "outbound_ip_addresses", + "event_stream_endpoint", + ] + + @overload + def __init__( + self, + *, + location: str, + tags: Optional[dict[str, str]] = None, + properties: Optional["_models.JobProperties"] = None, + extended_location: Optional["_models.ExtendedLocation"] = None, + identity: Optional["_models.ManagedServiceIdentity"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class JobConfiguration(_Model): + """Non versioned Container Apps Job configuration properties. + + :ivar secrets: Collection of secrets used by a Container Apps Job. + :vartype secrets: list[~azure.mgmt.appcontainers.models.Secret] + :ivar trigger_type: Trigger type of the job. Required. Known values are: "Schedule", "Event", + and "Manual". + :vartype trigger_type: str or ~azure.mgmt.appcontainers.models.TriggerType + :ivar replica_timeout: Maximum number of seconds a replica is allowed to run. Required. + :vartype replica_timeout: int + :ivar replica_retry_limit: Maximum number of retries before failing the job. + :vartype replica_retry_limit: int + :ivar manual_trigger_config: Manual trigger configuration for a single execution job. + Properties replicaCompletionCount and parallelism would be set to 1 by default. + :vartype manual_trigger_config: + ~azure.mgmt.appcontainers.models.JobConfigurationManualTriggerConfig + :ivar schedule_trigger_config: Cron formatted repeating trigger schedule ("* * * * *") for + cronjobs. Properties completions and parallelism would be set to 1 by default. + :vartype schedule_trigger_config: + ~azure.mgmt.appcontainers.models.JobConfigurationScheduleTriggerConfig + :ivar event_trigger_config: Trigger configuration of an event driven job. + :vartype event_trigger_config: + ~azure.mgmt.appcontainers.models.JobConfigurationEventTriggerConfig + :ivar registries: Collection of private container registry credentials used by a Container apps + job. + :vartype registries: list[~azure.mgmt.appcontainers.models.RegistryCredentials] + :ivar identity_settings: Optional settings for Managed Identities that are assigned to the + Container App Job. If a Managed Identity is not specified here, default settings will be used. + :vartype identity_settings: list[~azure.mgmt.appcontainers.models.IdentitySettings] + """ + + secrets: Optional[list["_models.Secret"]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Collection of secrets used by a Container Apps Job.""" + trigger_type: Union[str, "_models.TriggerType"] = rest_field( + name="triggerType", visibility=["read", "create", "update", "delete", "query"] + ) + """Trigger type of the job. Required. Known values are: \"Schedule\", \"Event\", and \"Manual\".""" + replica_timeout: int = rest_field(name="replicaTimeout", visibility=["read", "create", "update", "delete", "query"]) + """Maximum number of seconds a replica is allowed to run. Required.""" + replica_retry_limit: Optional[int] = rest_field( + name="replicaRetryLimit", visibility=["read", "create", "update", "delete", "query"] + ) + """Maximum number of retries before failing the job.""" + manual_trigger_config: Optional["_models.JobConfigurationManualTriggerConfig"] = rest_field( + name="manualTriggerConfig", visibility=["read", "create", "update", "delete", "query"] + ) + """Manual trigger configuration for a single execution job. Properties replicaCompletionCount and + parallelism would be set to 1 by default.""" + schedule_trigger_config: Optional["_models.JobConfigurationScheduleTriggerConfig"] = rest_field( + name="scheduleTriggerConfig", visibility=["read", "create", "update", "delete", "query"] + ) + """Cron formatted repeating trigger schedule (\"* * * * *\") for cronjobs. Properties completions + and parallelism would be set to 1 by default.""" + event_trigger_config: Optional["_models.JobConfigurationEventTriggerConfig"] = rest_field( + name="eventTriggerConfig", visibility=["read", "create", "update", "delete", "query"] + ) + """Trigger configuration of an event driven job.""" + registries: Optional[list["_models.RegistryCredentials"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Collection of private container registry credentials used by a Container apps job.""" + identity_settings: Optional[list["_models.IdentitySettings"]] = rest_field( + name="identitySettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Optional settings for Managed Identities that are assigned to the Container App Job. If a + Managed Identity is not specified here, default settings will be used.""" + + @overload + def __init__( + self, + *, + trigger_type: Union[str, "_models.TriggerType"], + replica_timeout: int, + secrets: Optional[list["_models.Secret"]] = None, + replica_retry_limit: Optional[int] = None, + manual_trigger_config: Optional["_models.JobConfigurationManualTriggerConfig"] = None, + schedule_trigger_config: Optional["_models.JobConfigurationScheduleTriggerConfig"] = None, + event_trigger_config: Optional["_models.JobConfigurationEventTriggerConfig"] = None, + registries: Optional[list["_models.RegistryCredentials"]] = None, + identity_settings: Optional[list["_models.IdentitySettings"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class JobConfigurationEventTriggerConfig(_Model): + """Trigger configuration of an event driven job. + + :ivar replica_completion_count: Minimum number of successful replica completions before overall + job completion. + :vartype replica_completion_count: int + :ivar parallelism: Number of parallel replicas of a job that can run at a given time. + :vartype parallelism: int + :ivar scale: Scaling configurations for event driven jobs. + :vartype scale: ~azure.mgmt.appcontainers.models.JobScale + """ + + replica_completion_count: Optional[int] = rest_field( + name="replicaCompletionCount", visibility=["read", "create", "update", "delete", "query"] + ) + """Minimum number of successful replica completions before overall job completion.""" + parallelism: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Number of parallel replicas of a job that can run at a given time.""" + scale: Optional["_models.JobScale"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Scaling configurations for event driven jobs.""" + + @overload + def __init__( + self, + *, + replica_completion_count: Optional[int] = None, + parallelism: Optional[int] = None, + scale: Optional["_models.JobScale"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class JobConfigurationManualTriggerConfig(_Model): + """Manual trigger configuration for a single execution job. Properties replicaCompletionCount and + parallelism would be set to 1 by default. + + :ivar replica_completion_count: Minimum number of successful replica completions before overall + job completion. + :vartype replica_completion_count: int + :ivar parallelism: Number of parallel replicas of a job that can run at a given time. + :vartype parallelism: int + """ + + replica_completion_count: Optional[int] = rest_field( + name="replicaCompletionCount", visibility=["read", "create", "update", "delete", "query"] + ) + """Minimum number of successful replica completions before overall job completion.""" + parallelism: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Number of parallel replicas of a job that can run at a given time.""" + + @overload + def __init__( + self, + *, + replica_completion_count: Optional[int] = None, + parallelism: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class JobConfigurationScheduleTriggerConfig(_Model): + """Cron formatted repeating trigger schedule ("* * * * *") for cronjobs. Properties completions + and parallelism would be set to 1 by default. + + :ivar replica_completion_count: Minimum number of successful replica completions before overall + job completion. + :vartype replica_completion_count: int + :ivar cron_expression: Cron formatted repeating schedule ("* * * * *") of a Cron Job. Required. + :vartype cron_expression: str + :ivar parallelism: Number of parallel replicas of a job that can run at a given time. + :vartype parallelism: int + """ + + replica_completion_count: Optional[int] = rest_field( + name="replicaCompletionCount", visibility=["read", "create", "update", "delete", "query"] + ) + """Minimum number of successful replica completions before overall job completion.""" + cron_expression: str = rest_field(name="cronExpression", visibility=["read", "create", "update", "delete", "query"]) + """Cron formatted repeating schedule (\"* * * * *\") of a Cron Job. Required.""" + parallelism: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Number of parallel replicas of a job that can run at a given time.""" + + @overload + def __init__( + self, + *, + cron_expression: str, + replica_completion_count: Optional[int] = None, + parallelism: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class JobExecution(ProxyResource): + """Container Apps Job execution. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar properties: Container Apps Job execution specific properties. + :vartype properties: ~azure.mgmt.appcontainers.models.JobExecutionProperties + """ + + properties: Optional["_models.JobExecutionProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Container Apps Job execution specific properties.""" + + __flattened_items = ["status", "start_time", "end_time", "template", "detailed_status", "reason", "message"] + + @overload + def __init__( + self, + *, + properties: Optional["_models.JobExecutionProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class JobExecutionBase(_Model): + """Container App's Job execution name. + + :ivar name: Job execution name. + :vartype name: str + :ivar id: Job execution Id. + :vartype id: str + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Job execution name.""" + id: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Job execution Id.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + id: Optional[str] = None, # pylint: disable=redefined-builtin + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class JobExecutionContainer(_Model): + """Container Apps Jobs execution container definition. + + :ivar image: Container image tag. + :vartype image: str + :ivar name: Custom container name. + :vartype name: str + :ivar command: Container start command. + :vartype command: list[str] + :ivar args: Container start command arguments. + :vartype args: list[str] + :ivar env: Container environment variables. + :vartype env: list[~azure.mgmt.appcontainers.models.EnvironmentVar] + :ivar resources: Container resource requirements. + :vartype resources: ~azure.mgmt.appcontainers.models.ContainerResources + """ + + image: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Container image tag.""" + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Custom container name.""" + command: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Container start command.""" + args: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Container start command arguments.""" + env: Optional[list["_models.EnvironmentVar"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Container environment variables.""" + resources: Optional["_models.ContainerResources"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Container resource requirements.""" + + @overload + def __init__( + self, + *, + image: Optional[str] = None, + name: Optional[str] = None, + command: Optional[list[str]] = None, + args: Optional[list[str]] = None, + env: Optional[list["_models.EnvironmentVar"]] = None, + resources: Optional["_models.ContainerResources"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class JobExecutionProperties(_Model): + """Container Apps Job execution specific properties. + + :ivar status: Current running State of the job. Known values are: "Running", "Processing", + "Stopped", "Degraded", "Failed", "Unknown", and "Succeeded". + :vartype status: str or ~azure.mgmt.appcontainers.models.JobExecutionRunningState + :ivar start_time: Job execution start time. + :vartype start_time: ~datetime.datetime + :ivar end_time: Job execution end time. + :vartype end_time: ~datetime.datetime + :ivar template: Job's execution container. + :vartype template: ~azure.mgmt.appcontainers.models.JobExecutionTemplate + :ivar detailed_status: Detailed status of the job execution. + :vartype detailed_status: ~azure.mgmt.appcontainers.models.ExecutionStatus + :ivar reason: Reason for the current condition of job execution. + :vartype reason: str + :ivar message: Human readable message indicating details about the current condition of the job + execution. + :vartype message: str + """ + + status: Optional[Union[str, "_models.JobExecutionRunningState"]] = rest_field(visibility=["read"]) + """Current running State of the job. Known values are: \"Running\", \"Processing\", \"Stopped\", + \"Degraded\", \"Failed\", \"Unknown\", and \"Succeeded\".""" + start_time: Optional[datetime.datetime] = rest_field( + name="startTime", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """Job execution start time.""" + end_time: Optional[datetime.datetime] = rest_field( + name="endTime", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """Job execution end time.""" + template: Optional["_models.JobExecutionTemplate"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Job's execution container.""" + detailed_status: Optional["_models.ExecutionStatus"] = rest_field( + name="detailedStatus", visibility=["read", "create", "update", "delete", "query"] + ) + """Detailed status of the job execution.""" + reason: Optional[str] = rest_field(visibility=["read"]) + """Reason for the current condition of job execution.""" + message: Optional[str] = rest_field(visibility=["read"]) + """Human readable message indicating details about the current condition of the job execution.""" + + @overload + def __init__( + self, + *, + start_time: Optional[datetime.datetime] = None, + end_time: Optional[datetime.datetime] = None, + template: Optional["_models.JobExecutionTemplate"] = None, + detailed_status: Optional["_models.ExecutionStatus"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class JobExecutionTemplate(_Model): + """Job's execution template, containing container configuration for a job's execution. + + :ivar containers: List of container definitions for the Container Apps Job. + :vartype containers: list[~azure.mgmt.appcontainers.models.JobExecutionContainer] + :ivar init_containers: List of specialized containers that run before job containers. + :vartype init_containers: list[~azure.mgmt.appcontainers.models.JobExecutionContainer] + """ + + containers: Optional[list["_models.JobExecutionContainer"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of container definitions for the Container Apps Job.""" + init_containers: Optional[list["_models.JobExecutionContainer"]] = rest_field( + name="initContainers", visibility=["read", "create", "update", "delete", "query"] + ) + """List of specialized containers that run before job containers.""" + + @overload + def __init__( + self, + *, + containers: Optional[list["_models.JobExecutionContainer"]] = None, + init_containers: Optional[list["_models.JobExecutionContainer"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class JobPatchProperties(_Model): + """Container Apps Job resource specific properties. + + :ivar extended_location: The complex type of the extended location. + :vartype extended_location: ~azure.mgmt.appcontainers.models.ExtendedLocation + :ivar identity: Managed identities needed by a container app job to interact with other Azure + services to not maintain any secrets or credentials in code. + :vartype identity: ~azure.mgmt.appcontainers.models.ManagedServiceIdentity + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: + :vartype properties: ~azure.mgmt.appcontainers.models.JobPatchPropertiesProperties + """ + + extended_location: Optional["_models.ExtendedLocation"] = rest_field( + name="extendedLocation", visibility=["read", "create", "update", "delete", "query"] + ) + """The complex type of the extended location.""" + identity: Optional["_models.ManagedServiceIdentity"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Managed identities needed by a container app job to interact with other Azure services to not + maintain any secrets or credentials in code.""" + tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update"]) + """Resource tags.""" + properties: Optional["_models.JobPatchPropertiesProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + + @overload + def __init__( + self, + *, + extended_location: Optional["_models.ExtendedLocation"] = None, + identity: Optional["_models.ManagedServiceIdentity"] = None, + tags: Optional[dict[str, str]] = None, + properties: Optional["_models.JobPatchPropertiesProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class JobPatchPropertiesProperties(_Model): + """JobPatchPropertiesProperties. + + :ivar environment_id: Resource ID of environment. + :vartype environment_id: str + :ivar configuration: Container Apps Job configuration properties. + :vartype configuration: ~azure.mgmt.appcontainers.models.JobConfiguration + :ivar template: Container Apps job definition. + :vartype template: ~azure.mgmt.appcontainers.models.JobTemplate + :ivar outbound_ip_addresses: Outbound IP Addresses of a container apps job. + :vartype outbound_ip_addresses: list[str] + :ivar event_stream_endpoint: The endpoint of the eventstream of the container apps job. + :vartype event_stream_endpoint: str + """ + + environment_id: Optional[str] = rest_field(name="environmentId", visibility=["read", "create", "update"]) + """Resource ID of environment.""" + configuration: Optional["_models.JobConfiguration"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Container Apps Job configuration properties.""" + template: Optional["_models.JobTemplate"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Container Apps job definition.""" + outbound_ip_addresses: Optional[list[str]] = rest_field( + name="outboundIpAddresses", visibility=["read", "create", "update", "delete", "query"] + ) + """Outbound IP Addresses of a container apps job.""" + event_stream_endpoint: Optional[str] = rest_field( + name="eventStreamEndpoint", visibility=["read", "create", "update", "delete", "query"] + ) + """The endpoint of the eventstream of the container apps job.""" + + @overload + def __init__( + self, + *, + environment_id: Optional[str] = None, + configuration: Optional["_models.JobConfiguration"] = None, + template: Optional["_models.JobTemplate"] = None, + outbound_ip_addresses: Optional[list[str]] = None, + event_stream_endpoint: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class JobProperties(_Model): + """Container Apps Job resource specific properties. + + :ivar provisioning_state: Provisioning state of the Container Apps Job. Known values are: + "InProgress", "Succeeded", "Failed", "Canceled", and "Deleting". + :vartype provisioning_state: str or ~azure.mgmt.appcontainers.models.JobProvisioningState + :ivar running_state: Current running state of the job. Known values are: "Ready", + "Progressing", and "Suspended". + :vartype running_state: str or ~azure.mgmt.appcontainers.models.JobRunningState + :ivar environment_id: Resource ID of environment. + :vartype environment_id: str + :ivar workload_profile_name: Workload profile name to pin for container apps job execution. + :vartype workload_profile_name: str + :ivar configuration: Container Apps Job configuration properties. + :vartype configuration: ~azure.mgmt.appcontainers.models.JobConfiguration + :ivar template: Container Apps job definition. + :vartype template: ~azure.mgmt.appcontainers.models.JobTemplate + :ivar outbound_ip_addresses: Outbound IP Addresses of a container apps job. + :vartype outbound_ip_addresses: list[str] + :ivar event_stream_endpoint: The endpoint of the eventstream of the container apps job. + :vartype event_stream_endpoint: str + """ + + provisioning_state: Optional[Union[str, "_models.JobProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """Provisioning state of the Container Apps Job. Known values are: \"InProgress\", \"Succeeded\", + \"Failed\", \"Canceled\", and \"Deleting\".""" + running_state: Optional[Union[str, "_models.JobRunningState"]] = rest_field( + name="runningState", visibility=["read"] + ) + """Current running state of the job. Known values are: \"Ready\", \"Progressing\", and + \"Suspended\".""" + environment_id: Optional[str] = rest_field(name="environmentId", visibility=["read", "create"]) + """Resource ID of environment.""" + workload_profile_name: Optional[str] = rest_field( + name="workloadProfileName", visibility=["read", "create", "update", "delete", "query"] + ) + """Workload profile name to pin for container apps job execution.""" + configuration: Optional["_models.JobConfiguration"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Container Apps Job configuration properties.""" + template: Optional["_models.JobTemplate"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Container Apps job definition.""" + outbound_ip_addresses: Optional[list[str]] = rest_field(name="outboundIpAddresses", visibility=["read"]) + """Outbound IP Addresses of a container apps job.""" + event_stream_endpoint: Optional[str] = rest_field(name="eventStreamEndpoint", visibility=["read"]) + """The endpoint of the eventstream of the container apps job.""" + + @overload + def __init__( + self, + *, + environment_id: Optional[str] = None, + workload_profile_name: Optional[str] = None, + configuration: Optional["_models.JobConfiguration"] = None, + template: Optional["_models.JobTemplate"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class JobScale(_Model): + """Scaling configurations for event driven jobs. + + :ivar polling_interval: Interval to check each event source in seconds. Defaults to 30s. + :vartype polling_interval: int + :ivar min_executions: Minimum number of job executions that are created for a trigger, default + 0. + :vartype min_executions: int + :ivar max_executions: Maximum number of job executions that are created for a trigger, default + 100. + :vartype max_executions: int + :ivar rules: Scaling rules. + :vartype rules: list[~azure.mgmt.appcontainers.models.JobScaleRule] + """ + + polling_interval: Optional[int] = rest_field( + name="pollingInterval", visibility=["read", "create", "update", "delete", "query"] + ) + """Interval to check each event source in seconds. Defaults to 30s.""" + min_executions: Optional[int] = rest_field( + name="minExecutions", visibility=["read", "create", "update", "delete", "query"] + ) + """Minimum number of job executions that are created for a trigger, default 0.""" + max_executions: Optional[int] = rest_field( + name="maxExecutions", visibility=["read", "create", "update", "delete", "query"] + ) + """Maximum number of job executions that are created for a trigger, default 100.""" + rules: Optional[list["_models.JobScaleRule"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Scaling rules.""" + + @overload + def __init__( + self, + *, + polling_interval: Optional[int] = None, + min_executions: Optional[int] = None, + max_executions: Optional[int] = None, + rules: Optional[list["_models.JobScaleRule"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class JobScaleRule(_Model): + """Scaling rule. + + :ivar name: Scale Rule Name. + :vartype name: str + :ivar type: Type of the scale rule eg: azure-servicebus, redis etc. + :vartype type: str + :ivar metadata: Metadata properties to describe the scale rule. + :vartype metadata: any + :ivar auth: Authentication secrets for the scale rule. + :vartype auth: list[~azure.mgmt.appcontainers.models.ScaleRuleAuth] + :ivar identity: The resource ID of a user-assigned managed identity that is assigned to the + job, or 'system' for system-assigned identity. + :vartype identity: str + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Scale Rule Name.""" + type: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Type of the scale rule eg: azure-servicebus, redis etc.""" + metadata: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Metadata properties to describe the scale rule.""" + auth: Optional[list["_models.ScaleRuleAuth"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Authentication secrets for the scale rule.""" + identity: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The resource ID of a user-assigned managed identity that is assigned to the job, or 'system' + for system-assigned identity.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + type: Optional[str] = None, + metadata: Optional[Any] = None, + auth: Optional[list["_models.ScaleRuleAuth"]] = None, + identity: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class JobSecretsCollection(_Model): + """Container Apps Job Secrets Collection ARM resource. + + :ivar value: Collection of resources. Required. + :vartype value: list[~azure.mgmt.appcontainers.models.Secret] + """ + + value: list["_models.Secret"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Collection of resources. Required.""" + + @overload + def __init__( + self, + *, + value: list["_models.Secret"], + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class JobTemplate(_Model): + """Container Apps Job versioned application definition. Defines the desired state of an immutable + revision. Any changes to this section Will result in a new revision being created. + + :ivar init_containers: List of specialized containers that run before app containers. + :vartype init_containers: list[~azure.mgmt.appcontainers.models.InitContainer] + :ivar containers: List of container definitions for the Container App. + :vartype containers: list[~azure.mgmt.appcontainers.models.Container] + :ivar volumes: List of volume definitions for the Container App. + :vartype volumes: list[~azure.mgmt.appcontainers.models.Volume] + """ + + init_containers: Optional[list["_models.InitContainer"]] = rest_field( + name="initContainers", visibility=["read", "create", "update", "delete", "query"] + ) + """List of specialized containers that run before app containers.""" + containers: Optional[list["_models.Container"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of container definitions for the Container App.""" + volumes: Optional[list["_models.Volume"]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """List of volume definitions for the Container App.""" + + @overload + def __init__( + self, + *, + init_containers: Optional[list["_models.InitContainer"]] = None, + containers: Optional[list["_models.Container"]] = None, + volumes: Optional[list["_models.Volume"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class JwtClaimChecks(_Model): + """The configuration settings of the checks that should be made while validating the JWT Claims. + + :ivar allowed_groups: The list of the allowed groups. + :vartype allowed_groups: list[str] + :ivar allowed_client_applications: The list of the allowed client applications. + :vartype allowed_client_applications: list[str] + """ + + allowed_groups: Optional[list[str]] = rest_field( + name="allowedGroups", visibility=["read", "create", "update", "delete", "query"] + ) + """The list of the allowed groups.""" + allowed_client_applications: Optional[list[str]] = rest_field( + name="allowedClientApplications", visibility=["read", "create", "update", "delete", "query"] + ) + """The list of the allowed client applications.""" + + @overload + def __init__( + self, + *, + allowed_groups: Optional[list[str]] = None, + allowed_client_applications: Optional[list[str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class KedaConfiguration(_Model): + """Configuration properties Keda component. + + :ivar version: The version of Keda. + :vartype version: str + """ + + version: Optional[str] = rest_field(visibility=["read"]) + """The version of Keda.""" + + +class LabelHistory(ProxyResource): + """Container App Label History. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar properties: Container App Label History resource specific properties. + :vartype properties: ~azure.mgmt.appcontainers.models.LabelHistoryProperties + """ + + properties: Optional["_models.LabelHistoryProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Container App Label History resource specific properties.""" + + @overload + def __init__( + self, + *, + properties: Optional["_models.LabelHistoryProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class LabelHistoryProperties(_Model): + """Container App Label History resource specific properties. + + :ivar records: List of label history records. + :vartype records: list[~azure.mgmt.appcontainers.models.LabelHistoryRecordItem] + """ + + records: Optional[list["_models.LabelHistoryRecordItem"]] = rest_field(visibility=["read"]) + """List of label history records.""" + + +class LabelHistoryRecordItem(_Model): + """Container App Label History Item resource specific properties. + + :ivar revision: Container App revision name that label was applied to. + :vartype revision: str + :ivar start: Timestamp describing when the label was applied to the revision. + :vartype start: ~datetime.datetime + :ivar stop: Timestamp describing when the label was removed from the revision. Only meaningful + when the label is currently applied to the revision. + :vartype stop: ~datetime.datetime + :ivar status: Status of the label history record. Known values are: "Succeeded", "Failed", and + "Starting". + :vartype status: str or ~azure.mgmt.appcontainers.models.Status + """ + + revision: Optional[str] = rest_field(visibility=["read"]) + """Container App revision name that label was applied to.""" + start: Optional[datetime.datetime] = rest_field(visibility=["read"], format="rfc3339") + """Timestamp describing when the label was applied to the revision.""" + stop: Optional[datetime.datetime] = rest_field(visibility=["read"], format="rfc3339") + """Timestamp describing when the label was removed from the revision. Only meaningful when the + label is currently applied to the revision.""" + status: Optional[Union[str, "_models.Status"]] = rest_field(visibility=["read"]) + """Status of the label history record. Known values are: \"Succeeded\", \"Failed\", and + \"Starting\".""" + + +class LifecycleConfiguration(_Model): + """The lifecycle configuration properties of a session in the dynamic session pool. + + :ivar lifecycle_type: The lifecycle type of the session pool. Known values are: "Timed" and + "OnContainerExit". + :vartype lifecycle_type: str or ~azure.mgmt.appcontainers.models.LifecycleType + :ivar cooldown_period_in_seconds: The cooldown period of a session in seconds when the + lifecycle type is 'Timed'. + :vartype cooldown_period_in_seconds: int + :ivar max_alive_period_in_seconds: The maximum alive period of a session in seconds when the + lifecycle type is 'OnContainerExit'. + :vartype max_alive_period_in_seconds: int + """ + + lifecycle_type: Optional[Union[str, "_models.LifecycleType"]] = rest_field( + name="lifecycleType", visibility=["read", "create", "update", "delete", "query"] + ) + """The lifecycle type of the session pool. Known values are: \"Timed\" and \"OnContainerExit\".""" + cooldown_period_in_seconds: Optional[int] = rest_field( + name="cooldownPeriodInSeconds", visibility=["read", "create", "update", "delete", "query"] + ) + """The cooldown period of a session in seconds when the lifecycle type is 'Timed'.""" + max_alive_period_in_seconds: Optional[int] = rest_field( + name="maxAlivePeriodInSeconds", visibility=["read", "create", "update", "delete", "query"] + ) + """The maximum alive period of a session in seconds when the lifecycle type is 'OnContainerExit'.""" + + @overload + def __init__( + self, + *, + lifecycle_type: Optional[Union[str, "_models.LifecycleType"]] = None, + cooldown_period_in_seconds: Optional[int] = None, + max_alive_period_in_seconds: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class LogAnalyticsConfiguration(_Model): + """Log Analytics configuration, must only be provided when destination is configured as + 'log-analytics'. + + :ivar customer_id: Log analytics customer id. + :vartype customer_id: str + :ivar shared_key: Log analytics customer key. + :vartype shared_key: str + :ivar dynamic_json_columns: Boolean indicating whether to parse json string log into dynamic + json columns. + :vartype dynamic_json_columns: bool + """ + + customer_id: Optional[str] = rest_field( + name="customerId", visibility=["read", "create", "update", "delete", "query"] + ) + """Log analytics customer id.""" + shared_key: Optional[str] = rest_field(name="sharedKey", visibility=["create", "update"]) + """Log analytics customer key.""" + dynamic_json_columns: Optional[bool] = rest_field( + name="dynamicJsonColumns", visibility=["read", "create", "update", "delete", "query"] + ) + """Boolean indicating whether to parse json string log into dynamic json columns.""" + + @overload + def __init__( + self, + *, + customer_id: Optional[str] = None, + shared_key: Optional[str] = None, + dynamic_json_columns: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class LoggerSetting(_Model): + """Logger settings for java workloads. + + :ivar logger: Logger name. Required. + :vartype logger: str + :ivar level: The specified logger's log level. Required. Known values are: "off", "error", + "info", "debug", "trace", and "warn". + :vartype level: str or ~azure.mgmt.appcontainers.models.Level + """ + + logger: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Logger name. Required.""" + level: Union[str, "_models.Level"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The specified logger's log level. Required. Known values are: \"off\", \"error\", \"info\", + \"debug\", \"trace\", and \"warn\".""" + + @overload + def __init__( + self, + *, + logger: str, + level: Union[str, "_models.Level"], + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class LogicApp(ProxyResource): + """A logic app extension resource. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar properties: The resource-specific properties for this resource. + :vartype properties: ~azure.mgmt.appcontainers.models.LogicAppProperties + """ + + properties: Optional["_models.LogicAppProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The resource-specific properties for this resource.""" + + __flattened_items = [""] + + @overload + def __init__( + self, + *, + properties: Optional["_models.LogicAppProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class LogicAppProperties(_Model): + """The properties of logic apps extension.""" + + +class Login(_Model): + """The configuration settings of the login flow of users using ContainerApp Service + Authentication/Authorization. + + :ivar routes: The routes that specify the endpoints used for login and logout requests. + :vartype routes: ~azure.mgmt.appcontainers.models.LoginRoutes + :ivar token_store: The configuration settings of the token store. + :vartype token_store: ~azure.mgmt.appcontainers.models.TokenStore + :ivar preserve_url_fragments_for_logins: true if the fragments from the request + are preserved after the login request is made; otherwise, false. + :vartype preserve_url_fragments_for_logins: bool + :ivar allowed_external_redirect_urls: External URLs that can be redirected to as part of + logging in or logging out of the app. Note that the query string part of the URL is ignored. + This is an advanced setting typically only needed by Windows Store application backends. Note + that URLs within the current domain are always implicitly allowed. + :vartype allowed_external_redirect_urls: list[str] + :ivar cookie_expiration: The configuration settings of the session cookie's expiration. + :vartype cookie_expiration: ~azure.mgmt.appcontainers.models.CookieExpiration + :ivar nonce: The configuration settings of the nonce used in the login flow. + :vartype nonce: ~azure.mgmt.appcontainers.models.Nonce + """ + + routes: Optional["_models.LoginRoutes"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The routes that specify the endpoints used for login and logout requests.""" + token_store: Optional["_models.TokenStore"] = rest_field( + name="tokenStore", visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration settings of the token store.""" + preserve_url_fragments_for_logins: Optional[bool] = rest_field( + name="preserveUrlFragmentsForLogins", visibility=["read", "create", "update", "delete", "query"] + ) + """true if the fragments from the request are preserved after the login request is + made; otherwise, false.""" + allowed_external_redirect_urls: Optional[list[str]] = rest_field( + name="allowedExternalRedirectUrls", visibility=["read", "create", "update", "delete", "query"] + ) + """External URLs that can be redirected to as part of logging in or logging out of the app. Note + that the query string part of the URL is ignored. This is an advanced setting typically only + needed by Windows Store application backends. Note that URLs within the current domain are + always implicitly allowed.""" + cookie_expiration: Optional["_models.CookieExpiration"] = rest_field( + name="cookieExpiration", visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration settings of the session cookie's expiration.""" + nonce: Optional["_models.Nonce"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The configuration settings of the nonce used in the login flow.""" + + @overload + def __init__( + self, + *, + routes: Optional["_models.LoginRoutes"] = None, + token_store: Optional["_models.TokenStore"] = None, + preserve_url_fragments_for_logins: Optional[bool] = None, + allowed_external_redirect_urls: Optional[list[str]] = None, + cookie_expiration: Optional["_models.CookieExpiration"] = None, + nonce: Optional["_models.Nonce"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class LoginRoutes(_Model): + """The routes that specify the endpoints used for login and logout requests. + + :ivar logout_endpoint: The endpoint at which a logout request should be made. + :vartype logout_endpoint: str + """ + + logout_endpoint: Optional[str] = rest_field( + name="logoutEndpoint", visibility=["read", "create", "update", "delete", "query"] + ) + """The endpoint at which a logout request should be made.""" + + @overload + def __init__( + self, + *, + logout_endpoint: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class LoginScopes(_Model): + """The configuration settings of the login flow, including the scopes that should be requested. + + :ivar scopes: A list of the scopes that should be requested while authenticating. + :vartype scopes: list[str] + """ + + scopes: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A list of the scopes that should be requested while authenticating.""" + + @overload + def __init__( + self, + *, + scopes: Optional[list[str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class LogsConfiguration(_Model): + """Configuration of Open Telemetry logs. + + :ivar destinations: Open telemetry logs destinations. + :vartype destinations: list[str] + """ + + destinations: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Open telemetry logs destinations.""" + + @overload + def __init__( + self, + *, + destinations: Optional[list[str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MaintenanceConfigurationResource(ProxyResource): + """Information about the Maintenance Configuration resource. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar properties: The resource-specific properties for this resource. + :vartype properties: ~azure.mgmt.appcontainers.models.ScheduledEntries + """ + + properties: Optional["_models.ScheduledEntries"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The resource-specific properties for this resource.""" + + __flattened_items = ["scheduled_entries"] + + @overload + def __init__( + self, + *, + properties: Optional["_models.ScheduledEntries"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class ManagedCertificate(TrackedResource): + """Managed certificates used for Custom Domain bindings of Container Apps in a Managed + Environment. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + :ivar properties: Certificate resource specific properties. + :vartype properties: ~azure.mgmt.appcontainers.models.ManagedCertificateProperties + """ + + properties: Optional["_models.ManagedCertificateProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Certificate resource specific properties.""" + + @overload + def __init__( + self, + *, + location: str, + tags: Optional[dict[str, str]] = None, + properties: Optional["_models.ManagedCertificateProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ManagedCertificatePatch(_Model): + """A managed certificate to update. + + :ivar tags: Application-specific metadata in the form of key-value pairs. + :vartype tags: dict[str, str] + """ + + tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Application-specific metadata in the form of key-value pairs.""" + + @overload + def __init__( + self, + *, + tags: Optional[dict[str, str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ManagedCertificateProperties(_Model): + """Certificate resource specific properties. + + :ivar provisioning_state: Provisioning state of the certificate. Known values are: "Succeeded", + "Failed", "Canceled", "DeleteFailed", "Pending", and "Deleting". + :vartype provisioning_state: str or + ~azure.mgmt.appcontainers.models.CertificateProvisioningState + :ivar subject_name: Subject name of the certificate. + :vartype subject_name: str + :ivar error: Any error occurred during the certificate provision. + :vartype error: str + :ivar domain_control_validation: Selected type of domain control validation for managed + certificates. Known values are: "CNAME", "HTTP", and "TXT". + :vartype domain_control_validation: str or + ~azure.mgmt.appcontainers.models.ManagedCertificateDomainControlValidation + :ivar validation_token: A TXT token used for DNS TXT domain control validation when issuing + this type of managed certificates. + :vartype validation_token: str + """ + + provisioning_state: Optional[Union[str, "_models.CertificateProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """Provisioning state of the certificate. Known values are: \"Succeeded\", \"Failed\", + \"Canceled\", \"DeleteFailed\", \"Pending\", and \"Deleting\".""" + subject_name: Optional[str] = rest_field( + name="subjectName", visibility=["read", "create", "update", "delete", "query"] + ) + """Subject name of the certificate.""" + error: Optional[str] = rest_field(visibility=["read"]) + """Any error occurred during the certificate provision.""" + domain_control_validation: Optional[Union[str, "_models.ManagedCertificateDomainControlValidation"]] = rest_field( + name="domainControlValidation", visibility=["read", "create", "update", "delete", "query"] + ) + """Selected type of domain control validation for managed certificates. Known values are: + \"CNAME\", \"HTTP\", and \"TXT\".""" + validation_token: Optional[str] = rest_field(name="validationToken", visibility=["read"]) + """A TXT token used for DNS TXT domain control validation when issuing this type of managed + certificates.""" + + @overload + def __init__( + self, + *, + subject_name: Optional[str] = None, + domain_control_validation: Optional[Union[str, "_models.ManagedCertificateDomainControlValidation"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ManagedEnvironment(TrackedResource): + """An environment for hosting container apps. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + :ivar properties: Managed environment resource specific properties. + :vartype properties: ~azure.mgmt.appcontainers.models.ManagedEnvironmentProperties + :ivar kind: Kind of the Environment. + :vartype kind: str + :ivar identity: The managed service identities assigned to this resource. + :vartype identity: ~azure.mgmt.appcontainers.models.ManagedServiceIdentity + """ + + properties: Optional["_models.ManagedEnvironmentProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Managed environment resource specific properties.""" + kind: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Kind of the Environment.""" + identity: Optional["_models.ManagedServiceIdentity"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The managed service identities assigned to this resource.""" + + __flattened_items = [ + "provisioning_state", + "dapr_ai_instrumentation_key", + "dapr_ai_connection_string", + "vnet_configuration", + "deployment_errors", + "default_domain", + "private_link_default_domain", + "static_ip", + "app_logs_configuration", + "app_insights_configuration", + "open_telemetry_configuration", + "zone_redundant", + "availability_zones", + "custom_domain_configuration", + "event_stream_endpoint", + "workload_profiles", + "keda_configuration", + "dapr_configuration", + "infrastructure_resource_group", + "peer_authentication", + "peer_traffic_configuration", + "ingress_configuration", + "private_endpoint_connections", + "public_network_access", + "disk_encryption_configuration", + ] + + @overload + def __init__( + self, + *, + location: str, + tags: Optional[dict[str, str]] = None, + properties: Optional["_models.ManagedEnvironmentProperties"] = None, + kind: Optional[str] = None, + identity: Optional["_models.ManagedServiceIdentity"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class ManagedEnvironmentProperties(_Model): + """Managed environment resource specific properties. + + :ivar provisioning_state: Provisioning state of the Environment. Known values are: "Succeeded", + "Failed", "Canceled", "Waiting", "InitializationInProgress", "InfrastructureSetupInProgress", + "InfrastructureSetupComplete", "ScheduledForDelete", "UpgradeRequested", and "UpgradeFailed". + :vartype provisioning_state: str or + ~azure.mgmt.appcontainers.models.EnvironmentProvisioningState + :ivar dapr_ai_instrumentation_key: Azure Monitor instrumentation key used by Dapr to export + Service to Service communication telemetry. + :vartype dapr_ai_instrumentation_key: str + :ivar dapr_ai_connection_string: Application Insights connection string used by Dapr to export + Service to Service communication telemetry. + :vartype dapr_ai_connection_string: str + :ivar vnet_configuration: Vnet configuration for the environment. + :vartype vnet_configuration: ~azure.mgmt.appcontainers.models.VnetConfiguration + :ivar deployment_errors: Any errors that occurred during deployment or deployment validation. + :vartype deployment_errors: str + :ivar default_domain: Default Domain Name for the cluster. + :vartype default_domain: str + :ivar private_link_default_domain: Private Link Default Domain Name for the environment. + :vartype private_link_default_domain: str + :ivar static_ip: Static IP of the Environment. + :vartype static_ip: str + :ivar app_logs_configuration: Cluster configuration which enables the log daemon to export app + logs to configured destination. + :vartype app_logs_configuration: ~azure.mgmt.appcontainers.models.AppLogsConfiguration + :ivar app_insights_configuration: Environment level Application Insights configuration. + :vartype app_insights_configuration: ~azure.mgmt.appcontainers.models.AppInsightsConfiguration + :ivar open_telemetry_configuration: Environment Open Telemetry configuration. + :vartype open_telemetry_configuration: + ~azure.mgmt.appcontainers.models.OpenTelemetryConfiguration + :ivar zone_redundant: Whether or not this Managed Environment is zone-redundant. + :vartype zone_redundant: bool + :ivar availability_zones: The list of availability zones to use for managed environment. + :vartype availability_zones: list[str] + :ivar custom_domain_configuration: Custom domain configuration for the environment. + :vartype custom_domain_configuration: + ~azure.mgmt.appcontainers.models.CustomDomainConfiguration + :ivar event_stream_endpoint: The endpoint of the eventstream of the Environment. + :vartype event_stream_endpoint: str + :ivar workload_profiles: Workload profiles configured for the Managed Environment. + :vartype workload_profiles: list[~azure.mgmt.appcontainers.models.WorkloadProfile] + :ivar keda_configuration: The configuration of Keda component. + :vartype keda_configuration: ~azure.mgmt.appcontainers.models.KedaConfiguration + :ivar dapr_configuration: The configuration of Dapr component. + :vartype dapr_configuration: ~azure.mgmt.appcontainers.models.DaprConfiguration + :ivar infrastructure_resource_group: Name of the platform-managed resource group created for + the Managed Environment to host infrastructure resources. If a subnet ID is provided, this + resource group will be created in the same subscription as the subnet. + :vartype infrastructure_resource_group: str + :ivar peer_authentication: Peer authentication settings for the Managed Environment. + :vartype peer_authentication: + ~azure.mgmt.appcontainers.models.ManagedEnvironmentPropertiesPeerAuthentication + :ivar peer_traffic_configuration: Peer traffic settings for the Managed Environment. + :vartype peer_traffic_configuration: + ~azure.mgmt.appcontainers.models.ManagedEnvironmentPropertiesPeerTrafficConfiguration + :ivar ingress_configuration: Ingress configuration for the Managed Environment. + :vartype ingress_configuration: ~azure.mgmt.appcontainers.models.IngressConfiguration + :ivar private_endpoint_connections: Private endpoint connections to the resource. + :vartype private_endpoint_connections: + list[~azure.mgmt.appcontainers.models.PrivateEndpointConnection] + :ivar public_network_access: Property to allow or block all public traffic. Allowed Values: + 'Enabled', 'Disabled'. Known values are: "Enabled" and "Disabled". + :vartype public_network_access: str or ~azure.mgmt.appcontainers.models.PublicNetworkAccess + :ivar disk_encryption_configuration: Disk encryption configuration for the Managed Environment. + :vartype disk_encryption_configuration: + ~azure.mgmt.appcontainers.models.DiskEncryptionConfiguration + """ + + provisioning_state: Optional[Union[str, "_models.EnvironmentProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """Provisioning state of the Environment. Known values are: \"Succeeded\", \"Failed\", + \"Canceled\", \"Waiting\", \"InitializationInProgress\", \"InfrastructureSetupInProgress\", + \"InfrastructureSetupComplete\", \"ScheduledForDelete\", \"UpgradeRequested\", and + \"UpgradeFailed\".""" + dapr_ai_instrumentation_key: Optional[str] = rest_field( + name="daprAIInstrumentationKey", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Monitor instrumentation key used by Dapr to export Service to Service communication + telemetry.""" + dapr_ai_connection_string: Optional[str] = rest_field( + name="daprAIConnectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """Application Insights connection string used by Dapr to export Service to Service communication + telemetry.""" + vnet_configuration: Optional["_models.VnetConfiguration"] = rest_field( + name="vnetConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """Vnet configuration for the environment.""" + deployment_errors: Optional[str] = rest_field(name="deploymentErrors", visibility=["read"]) + """Any errors that occurred during deployment or deployment validation.""" + default_domain: Optional[str] = rest_field(name="defaultDomain", visibility=["read"]) + """Default Domain Name for the cluster.""" + private_link_default_domain: Optional[str] = rest_field(name="privateLinkDefaultDomain", visibility=["read"]) + """Private Link Default Domain Name for the environment.""" + static_ip: Optional[str] = rest_field(name="staticIp", visibility=["read"]) + """Static IP of the Environment.""" + app_logs_configuration: Optional["_models.AppLogsConfiguration"] = rest_field( + name="appLogsConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """Cluster configuration which enables the log daemon to export app logs to configured + destination.""" + app_insights_configuration: Optional["_models.AppInsightsConfiguration"] = rest_field( + name="appInsightsConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """Environment level Application Insights configuration.""" + open_telemetry_configuration: Optional["_models.OpenTelemetryConfiguration"] = rest_field( + name="openTelemetryConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """Environment Open Telemetry configuration.""" + zone_redundant: Optional[bool] = rest_field(name="zoneRedundant", visibility=["read", "create"]) + """Whether or not this Managed Environment is zone-redundant.""" + availability_zones: Optional[list[str]] = rest_field( + name="availabilityZones", visibility=["read", "create", "update", "delete", "query"] + ) + """The list of availability zones to use for managed environment.""" + custom_domain_configuration: Optional["_models.CustomDomainConfiguration"] = rest_field( + name="customDomainConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """Custom domain configuration for the environment.""" + event_stream_endpoint: Optional[str] = rest_field(name="eventStreamEndpoint", visibility=["read"]) + """The endpoint of the eventstream of the Environment.""" + workload_profiles: Optional[list["_models.WorkloadProfile"]] = rest_field( + name="workloadProfiles", visibility=["read", "create", "update", "delete", "query"] + ) + """Workload profiles configured for the Managed Environment.""" + keda_configuration: Optional["_models.KedaConfiguration"] = rest_field( + name="kedaConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration of Keda component.""" + dapr_configuration: Optional["_models.DaprConfiguration"] = rest_field( + name="daprConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration of Dapr component.""" + infrastructure_resource_group: Optional[str] = rest_field( + name="infrastructureResourceGroup", visibility=["read", "create"] + ) + """Name of the platform-managed resource group created for the Managed Environment to host + infrastructure resources. If a subnet ID is provided, this resource group will be created in + the same subscription as the subnet.""" + peer_authentication: Optional["_models.ManagedEnvironmentPropertiesPeerAuthentication"] = rest_field( + name="peerAuthentication", visibility=["read", "create", "update", "delete", "query"] + ) + """Peer authentication settings for the Managed Environment.""" + peer_traffic_configuration: Optional["_models.ManagedEnvironmentPropertiesPeerTrafficConfiguration"] = rest_field( + name="peerTrafficConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """Peer traffic settings for the Managed Environment.""" + ingress_configuration: Optional["_models.IngressConfiguration"] = rest_field( + name="ingressConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """Ingress configuration for the Managed Environment.""" + private_endpoint_connections: Optional[list["_models.PrivateEndpointConnection"]] = rest_field( + name="privateEndpointConnections", visibility=["read"] + ) + """Private endpoint connections to the resource.""" + public_network_access: Optional[Union[str, "_models.PublicNetworkAccess"]] = rest_field( + name="publicNetworkAccess", visibility=["read", "create", "update", "delete", "query"] + ) + """Property to allow or block all public traffic. Allowed Values: 'Enabled', 'Disabled'. Known + values are: \"Enabled\" and \"Disabled\".""" + disk_encryption_configuration: Optional["_models.DiskEncryptionConfiguration"] = rest_field( + name="diskEncryptionConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """Disk encryption configuration for the Managed Environment.""" + + @overload + def __init__( + self, + *, + dapr_ai_instrumentation_key: Optional[str] = None, + dapr_ai_connection_string: Optional[str] = None, + vnet_configuration: Optional["_models.VnetConfiguration"] = None, + app_logs_configuration: Optional["_models.AppLogsConfiguration"] = None, + app_insights_configuration: Optional["_models.AppInsightsConfiguration"] = None, + open_telemetry_configuration: Optional["_models.OpenTelemetryConfiguration"] = None, + zone_redundant: Optional[bool] = None, + availability_zones: Optional[list[str]] = None, + custom_domain_configuration: Optional["_models.CustomDomainConfiguration"] = None, + workload_profiles: Optional[list["_models.WorkloadProfile"]] = None, + keda_configuration: Optional["_models.KedaConfiguration"] = None, + dapr_configuration: Optional["_models.DaprConfiguration"] = None, + infrastructure_resource_group: Optional[str] = None, + peer_authentication: Optional["_models.ManagedEnvironmentPropertiesPeerAuthentication"] = None, + peer_traffic_configuration: Optional["_models.ManagedEnvironmentPropertiesPeerTrafficConfiguration"] = None, + ingress_configuration: Optional["_models.IngressConfiguration"] = None, + public_network_access: Optional[Union[str, "_models.PublicNetworkAccess"]] = None, + disk_encryption_configuration: Optional["_models.DiskEncryptionConfiguration"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ManagedEnvironmentPropertiesPeerAuthentication(_Model): # pylint: disable=name-too-long + """Peer authentication settings for the Managed Environment. + + :ivar mtls: Mutual TLS authentication settings for the Managed Environment. + :vartype mtls: ~azure.mgmt.appcontainers.models.Mtls + """ + + mtls: Optional["_models.Mtls"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Mutual TLS authentication settings for the Managed Environment.""" + + @overload + def __init__( + self, + *, + mtls: Optional["_models.Mtls"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ManagedEnvironmentPropertiesPeerTrafficConfiguration(_Model): # pylint: disable=name-too-long + """Peer traffic settings for the Managed Environment. + + :ivar encryption: Peer traffic encryption settings for the Managed Environment. + :vartype encryption: + ~azure.mgmt.appcontainers.models.ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryption + """ + + encryption: Optional["_models.ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryption"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Peer traffic encryption settings for the Managed Environment.""" + + @overload + def __init__( + self, + *, + encryption: Optional["_models.ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryption"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryption(_Model): # pylint: disable=name-too-long + """Peer traffic encryption settings for the Managed Environment. + + :ivar enabled: Boolean indicating whether the peer traffic encryption is enabled. + :vartype enabled: bool + """ + + enabled: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Boolean indicating whether the peer traffic encryption is enabled.""" + + @overload + def __init__( + self, + *, + enabled: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ManagedEnvironmentStorage(ProxyResource): + """Storage resource for managedEnvironment. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar properties: Storage properties. + :vartype properties: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStorageProperties + """ + + properties: Optional["_models.ManagedEnvironmentStorageProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Storage properties.""" + + @overload + def __init__( + self, + *, + properties: Optional["_models.ManagedEnvironmentStorageProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ManagedEnvironmentStorageProperties(_Model): + """Storage properties. + + :ivar azure_file: Azure file properties. + :vartype azure_file: ~azure.mgmt.appcontainers.models.AzureFileProperties + :ivar nfs_azure_file: NFS Azure file properties. + :vartype nfs_azure_file: ~azure.mgmt.appcontainers.models.NfsAzureFileProperties + """ + + azure_file: Optional["_models.AzureFileProperties"] = rest_field( + name="azureFile", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure file properties.""" + nfs_azure_file: Optional["_models.NfsAzureFileProperties"] = rest_field( + name="nfsAzureFile", visibility=["read", "create", "update", "delete", "query"] + ) + """NFS Azure file properties.""" + + @overload + def __init__( + self, + *, + azure_file: Optional["_models.AzureFileProperties"] = None, + nfs_azure_file: Optional["_models.NfsAzureFileProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ManagedEnvironmentStoragesCollection(_Model): + """Collection of Storage for Environments. + + :ivar value: Collection of storage resources. Required. + :vartype value: list[~azure.mgmt.appcontainers.models.ManagedEnvironmentStorage] + """ + + value: list["_models.ManagedEnvironmentStorage"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Collection of storage resources. Required.""" + + @overload + def __init__( + self, + *, + value: list["_models.ManagedEnvironmentStorage"], + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ManagedIdentitySetting(_Model): + """Optional settings for a Managed Identity that is assigned to the Session pool. + + :ivar identity: The resource ID of a user-assigned managed identity that is assigned to the + Session Pool, or 'system' for system-assigned identity. Required. + :vartype identity: str + :ivar lifecycle: Use to select the lifecycle stages of a Session Pool during which the Managed + Identity should be available. Known values are: "None", "Main", "Init", and "All". + :vartype lifecycle: str or ~azure.mgmt.appcontainers.models.IdentitySettingsLifeCycle + """ + + identity: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The resource ID of a user-assigned managed identity that is assigned to the Session Pool, or + 'system' for system-assigned identity. Required.""" + lifecycle: Optional[Union[str, "_models.IdentitySettingsLifeCycle"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Use to select the lifecycle stages of a Session Pool during which the Managed Identity should + be available. Known values are: \"None\", \"Main\", \"Init\", and \"All\".""" + + @overload + def __init__( + self, + *, + identity: str, + lifecycle: Optional[Union[str, "_models.IdentitySettingsLifeCycle"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ManagedServiceIdentity(_Model): + """Managed service identity (system assigned and/or user assigned identities). + + :ivar principal_id: The service principal ID of the system assigned identity. This property + will only be provided for a system assigned identity. + :vartype principal_id: str + :ivar tenant_id: The tenant ID of the system assigned identity. This property will only be + provided for a system assigned identity. + :vartype tenant_id: str + :ivar type: The type of managed identity assigned to this resource. Required. Known values are: + "None", "SystemAssigned", "UserAssigned", and "SystemAssigned,UserAssigned". + :vartype type: str or ~azure.mgmt.appcontainers.models.ManagedServiceIdentityType + :ivar user_assigned_identities: The identities assigned to this resource by the user. + :vartype user_assigned_identities: dict[str, + ~azure.mgmt.appcontainers.models.UserAssignedIdentity] + """ + + principal_id: Optional[str] = rest_field(name="principalId", visibility=["read"]) + """The service principal ID of the system assigned identity. This property will only be provided + for a system assigned identity.""" + tenant_id: Optional[str] = rest_field(name="tenantId", visibility=["read"]) + """The tenant ID of the system assigned identity. This property will only be provided for a system + assigned identity.""" + type: Union[str, "_models.ManagedServiceIdentityType"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The type of managed identity assigned to this resource. Required. Known values are: \"None\", + \"SystemAssigned\", \"UserAssigned\", and \"SystemAssigned,UserAssigned\".""" + user_assigned_identities: Optional[dict[str, "_models.UserAssignedIdentity"]] = rest_field( + name="userAssignedIdentities", visibility=["read", "create", "update", "delete", "query"] + ) + """The identities assigned to this resource by the user.""" + + @overload + def __init__( + self, + *, + type: Union[str, "_models.ManagedServiceIdentityType"], + user_assigned_identities: Optional[dict[str, "_models.UserAssignedIdentity"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class McpServerCredential(_Model): + """The credentials used for the MCP server endpoint authentication. + + :ivar api_key: The API key for the MCP server. + :vartype api_key: str + """ + + api_key: Optional[str] = rest_field(name="apiKey", visibility=["read"]) + """The API key for the MCP server.""" + + +class McpServerSettings(_Model): + """The settings of the MCP (Model Context Protocol) server for this session pool. + + :ivar is_mcp_server_enabled: Indicates whether the MCP server is enabled. + :vartype is_mcp_server_enabled: bool + :ivar is_mcp_server_api_key_disabled: Indicates whether the MCP server API key is disabled. + :vartype is_mcp_server_api_key_disabled: bool + :ivar mcp_server_endpoint: The endpoint of the MCP server. + :vartype mcp_server_endpoint: str + """ + + is_mcp_server_enabled: Optional[bool] = rest_field( + name="isMcpServerEnabled", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether the MCP server is enabled.""" + is_mcp_server_api_key_disabled: Optional[bool] = rest_field( + name="isMcpServerApiKeyDisabled", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether the MCP server API key is disabled.""" + mcp_server_endpoint: Optional[str] = rest_field(name="mcpServerEndpoint", visibility=["read"]) + """The endpoint of the MCP server.""" + + @overload + def __init__( + self, + *, + is_mcp_server_enabled: Optional[bool] = None, + is_mcp_server_api_key_disabled: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MetricsConfiguration(_Model): + """Configuration of Open Telemetry metrics. + + :ivar include_keda: Boolean indicating if including keda metrics. + :vartype include_keda: bool + :ivar destinations: Open telemetry metrics destinations. + :vartype destinations: list[str] + """ + + include_keda: Optional[bool] = rest_field( + name="includeKeda", visibility=["read", "create", "update", "delete", "query"] + ) + """Boolean indicating if including keda metrics.""" + destinations: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Open telemetry metrics destinations.""" + + @overload + def __init__( + self, + *, + include_keda: Optional[bool] = None, + destinations: Optional[list[str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Mtls(_Model): + """Configuration properties for mutual TLS authentication. + + :ivar enabled: Boolean indicating whether the mutual TLS authentication is enabled. + :vartype enabled: bool + """ + + enabled: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Boolean indicating whether the mutual TLS authentication is enabled.""" + + @overload + def __init__( + self, + *, + enabled: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class NacosComponent(JavaComponentProperties, discriminator="Nacos"): + """Nacos properties. + + :ivar provisioning_state: Provisioning state of the Java Component. Known values are: + "Succeeded", "Failed", "Canceled", "Deleting", and "InProgress". + :vartype provisioning_state: str or + ~azure.mgmt.appcontainers.models.JavaComponentProvisioningState + :ivar configurations: List of Java Components configuration properties. + :vartype configurations: + list[~azure.mgmt.appcontainers.models.JavaComponentConfigurationProperty] + :ivar scale: Java component scaling configurations. + :vartype scale: ~azure.mgmt.appcontainers.models.JavaComponentPropertiesScale + :ivar service_binds: List of Java Components that are bound to the Java component. + :vartype service_binds: list[~azure.mgmt.appcontainers.models.JavaComponentServiceBind] + :ivar ingress: Java Component Ingress configurations. + :vartype ingress: ~azure.mgmt.appcontainers.models.JavaComponentIngress + :ivar component_type: Type of the Java Component. Required. Nacos. + :vartype component_type: str or ~azure.mgmt.appcontainers.models.NACOS + """ + + ingress: Optional["_models.JavaComponentIngress"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Java Component Ingress configurations.""" + component_type: Literal[JavaComponentType.NACOS] = rest_discriminator(name="componentType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of the Java Component. Required. Nacos.""" + + @overload + def __init__( + self, + *, + configurations: Optional[list["_models.JavaComponentConfigurationProperty"]] = None, + scale: Optional["_models.JavaComponentPropertiesScale"] = None, + service_binds: Optional[list["_models.JavaComponentServiceBind"]] = None, + ingress: Optional["_models.JavaComponentIngress"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.component_type = JavaComponentType.NACOS # type: ignore + + +class NfsAzureFileProperties(_Model): + """NFS Azure File Properties. + + :ivar server: Server for NFS azure file. + :vartype server: str + :ivar access_mode: Access mode for storage. Known values are: "ReadOnly" and "ReadWrite". + :vartype access_mode: str or ~azure.mgmt.appcontainers.models.AccessMode + :ivar share_name: NFS Azure file share name. + :vartype share_name: str + """ + + server: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Server for NFS azure file.""" + access_mode: Optional[Union[str, "_models.AccessMode"]] = rest_field( + name="accessMode", visibility=["read", "create", "update", "delete", "query"] + ) + """Access mode for storage. Known values are: \"ReadOnly\" and \"ReadWrite\".""" + share_name: Optional[str] = rest_field(name="shareName", visibility=["read", "create", "update", "delete", "query"]) + """NFS Azure file share name.""" + + @overload + def __init__( + self, + *, + server: Optional[str] = None, + access_mode: Optional[Union[str, "_models.AccessMode"]] = None, + share_name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Nonce(_Model): + """The configuration settings of the nonce used in the login flow. + + :ivar validate_nonce: false if the nonce should not be validated while completing + the login flow; otherwise, true. + :vartype validate_nonce: bool + :ivar nonce_expiration_interval: The time after the request is made when the nonce should + expire. + :vartype nonce_expiration_interval: str + """ + + validate_nonce: Optional[bool] = rest_field( + name="validateNonce", visibility=["read", "create", "update", "delete", "query"] + ) + """false if the nonce should not be validated while completing the login flow; + otherwise, true.""" + nonce_expiration_interval: Optional[str] = rest_field( + name="nonceExpirationInterval", visibility=["read", "create", "update", "delete", "query"] + ) + """The time after the request is made when the nonce should expire.""" + + @overload + def __init__( + self, + *, + validate_nonce: Optional[bool] = None, + nonce_expiration_interval: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Object(_Model): + """Logic App call response object.""" + + +class OpenIdConnectClientCredential(_Model): + """The authentication client credentials of the custom Open ID Connect provider. + + :ivar method: The method that should be used to authenticate the user. Default value is + "ClientSecretPost". + :vartype method: str + :ivar client_secret_setting_name: The app setting that contains the client secret for the + custom Open ID Connect provider. + :vartype client_secret_setting_name: str + """ + + method: Optional[Literal["ClientSecretPost"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The method that should be used to authenticate the user. Default value is \"ClientSecretPost\".""" + client_secret_setting_name: Optional[str] = rest_field( + name="clientSecretSettingName", visibility=["read", "create", "update", "delete", "query"] + ) + """The app setting that contains the client secret for the custom Open ID Connect provider.""" + + @overload + def __init__( + self, + *, + method: Optional[Literal["ClientSecretPost"]] = None, + client_secret_setting_name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class OpenIdConnectConfig(_Model): + """The configuration settings of the endpoints used for the custom Open ID Connect provider. + + :ivar authorization_endpoint: The endpoint to be used to make an authorization request. + :vartype authorization_endpoint: str + :ivar token_endpoint: The endpoint to be used to request a token. + :vartype token_endpoint: str + :ivar issuer: The endpoint that issues the token. + :vartype issuer: str + :ivar certification_uri: The endpoint that provides the keys necessary to validate the token. + :vartype certification_uri: str + :ivar well_known_open_id_configuration: The endpoint that contains all the configuration + endpoints for the provider. + :vartype well_known_open_id_configuration: str + """ + + authorization_endpoint: Optional[str] = rest_field( + name="authorizationEndpoint", visibility=["read", "create", "update", "delete", "query"] + ) + """The endpoint to be used to make an authorization request.""" + token_endpoint: Optional[str] = rest_field( + name="tokenEndpoint", visibility=["read", "create", "update", "delete", "query"] + ) + """The endpoint to be used to request a token.""" + issuer: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The endpoint that issues the token.""" + certification_uri: Optional[str] = rest_field( + name="certificationUri", visibility=["read", "create", "update", "delete", "query"] + ) + """The endpoint that provides the keys necessary to validate the token.""" + well_known_open_id_configuration: Optional[str] = rest_field( + name="wellKnownOpenIdConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """The endpoint that contains all the configuration endpoints for the provider.""" + + @overload + def __init__( + self, + *, + authorization_endpoint: Optional[str] = None, + token_endpoint: Optional[str] = None, + issuer: Optional[str] = None, + certification_uri: Optional[str] = None, + well_known_open_id_configuration: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class OpenIdConnectLogin(_Model): + """The configuration settings of the login flow of the custom Open ID Connect provider. + + :ivar name_claim_type: The name of the claim that contains the users name. + :vartype name_claim_type: str + :ivar scopes: A list of the scopes that should be requested while authenticating. + :vartype scopes: list[str] + """ + + name_claim_type: Optional[str] = rest_field( + name="nameClaimType", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the claim that contains the users name.""" + scopes: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A list of the scopes that should be requested while authenticating.""" + + @overload + def __init__( + self, + *, + name_claim_type: Optional[str] = None, + scopes: Optional[list[str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class OpenIdConnectRegistration(_Model): + """The configuration settings of the app registration for the custom Open ID Connect provider. + + :ivar client_id: The client id of the custom Open ID Connect provider. + :vartype client_id: str + :ivar client_credential: The authentication credentials of the custom Open ID Connect provider. + :vartype client_credential: ~azure.mgmt.appcontainers.models.OpenIdConnectClientCredential + :ivar open_id_connect_configuration: The configuration settings of the endpoints used for the + custom Open ID Connect provider. + :vartype open_id_connect_configuration: ~azure.mgmt.appcontainers.models.OpenIdConnectConfig + """ + + client_id: Optional[str] = rest_field(name="clientId", visibility=["read", "create", "update", "delete", "query"]) + """The client id of the custom Open ID Connect provider.""" + client_credential: Optional["_models.OpenIdConnectClientCredential"] = rest_field( + name="clientCredential", visibility=["read", "create", "update", "delete", "query"] + ) + """The authentication credentials of the custom Open ID Connect provider.""" + open_id_connect_configuration: Optional["_models.OpenIdConnectConfig"] = rest_field( + name="openIdConnectConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration settings of the endpoints used for the custom Open ID Connect provider.""" + + @overload + def __init__( + self, + *, + client_id: Optional[str] = None, + client_credential: Optional["_models.OpenIdConnectClientCredential"] = None, + open_id_connect_configuration: Optional["_models.OpenIdConnectConfig"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class OpenTelemetryConfiguration(_Model): + """Configuration of Open Telemetry. + + :ivar destinations_configuration: Open telemetry destinations configuration. + :vartype destinations_configuration: ~azure.mgmt.appcontainers.models.DestinationsConfiguration + :ivar traces_configuration: Open telemetry trace configuration. + :vartype traces_configuration: ~azure.mgmt.appcontainers.models.TracesConfiguration + :ivar logs_configuration: Open telemetry logs configuration. + :vartype logs_configuration: ~azure.mgmt.appcontainers.models.LogsConfiguration + :ivar metrics_configuration: Open telemetry metrics configuration. + :vartype metrics_configuration: ~azure.mgmt.appcontainers.models.MetricsConfiguration + """ + + destinations_configuration: Optional["_models.DestinationsConfiguration"] = rest_field( + name="destinationsConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """Open telemetry destinations configuration.""" + traces_configuration: Optional["_models.TracesConfiguration"] = rest_field( + name="tracesConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """Open telemetry trace configuration.""" + logs_configuration: Optional["_models.LogsConfiguration"] = rest_field( + name="logsConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """Open telemetry logs configuration.""" + metrics_configuration: Optional["_models.MetricsConfiguration"] = rest_field( + name="metricsConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """Open telemetry metrics configuration.""" + + @overload + def __init__( + self, + *, + destinations_configuration: Optional["_models.DestinationsConfiguration"] = None, + traces_configuration: Optional["_models.TracesConfiguration"] = None, + logs_configuration: Optional["_models.LogsConfiguration"] = None, + metrics_configuration: Optional["_models.MetricsConfiguration"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class OperationDetail(_Model): + """Operation detail payload. + + :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.appcontainers.models.OperationDisplay + :ivar origin: Origin of the operation. + :vartype origin: str + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Name of the operation.""" + is_data_action: Optional[bool] = rest_field( + name="isDataAction", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether the operation is a data action.""" + display: Optional["_models.OperationDisplay"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Display of the operation.""" + origin: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Origin of the operation.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + is_data_action: Optional[bool] = None, + display: Optional["_models.OperationDisplay"] = None, + origin: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class OperationDisplay(_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 + """ + + provider: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Resource provider of the operation.""" + resource: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Resource of the operation.""" + operation: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Localized friendly name for the operation.""" + description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Localized friendly description for the operation.""" + + @overload + def __init__( + self, + *, + provider: Optional[str] = None, + resource: Optional[str] = None, + operation: Optional[str] = None, + description: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class OtlpConfiguration(_Model): + """Configuration of otlp. + + :ivar name: The name of otlp configuration. + :vartype name: str + :ivar endpoint: The endpoint of otlp configuration. + :vartype endpoint: str + :ivar insecure: Boolean indicating if otlp configuration is insecure. + :vartype insecure: bool + :ivar headers: Headers of otlp configurations. + :vartype headers: list[~azure.mgmt.appcontainers.models.Header] + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of otlp configuration.""" + endpoint: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The endpoint of otlp configuration.""" + insecure: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Boolean indicating if otlp configuration is insecure.""" + headers: Optional[list["_models.Header"]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Headers of otlp configurations.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + endpoint: Optional[str] = None, + insecure: Optional[bool] = None, + headers: Optional[list["_models.Header"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PatchDetails(_Model): + """The detailed info of patch operation performing when applying a patch. + + :ivar target_container_name: The name of the target container for the patch. Required. + :vartype target_container_name: str + :ivar target_image: The name of the target image for the patch. Required. + :vartype target_image: str + :ivar last_detection_time: The UTC timestamp that describes the latest detection was done. + Required. + :vartype last_detection_time: ~datetime.datetime + :ivar detection_status: The status of the patch detection. Required. Known values are: + "Succeeded", "RegistryLoginFailed", and "Failed". + :vartype detection_status: str or ~azure.mgmt.appcontainers.models.DetectionStatus + :ivar new_image_name: The name of the new image created by the patch. + :vartype new_image_name: str + :ivar new_layer: New layer update details in the target image. + :vartype new_layer: ~azure.mgmt.appcontainers.models.PatchDetailsNewLayer + :ivar old_layer: The old layer details in the target image. + :vartype old_layer: ~azure.mgmt.appcontainers.models.PatchDetailsOldLayer + :ivar patch_type: The type for the patch. Known values are: "FrameworkSecurity", "OSSecurity", + "FrameworkAndOSSecurity", and "Other". + :vartype patch_type: str or ~azure.mgmt.appcontainers.models.PatchType + """ + + target_container_name: str = rest_field(name="targetContainerName", visibility=["read"]) + """The name of the target container for the patch. Required.""" + target_image: str = rest_field(name="targetImage", visibility=["read"]) + """The name of the target image for the patch. Required.""" + last_detection_time: datetime.datetime = rest_field(name="lastDetectionTime", visibility=["read"], format="rfc3339") + """The UTC timestamp that describes the latest detection was done. Required.""" + detection_status: Union[str, "_models.DetectionStatus"] = rest_field(name="detectionStatus", visibility=["read"]) + """The status of the patch detection. Required. Known values are: \"Succeeded\", + \"RegistryLoginFailed\", and \"Failed\".""" + new_image_name: Optional[str] = rest_field(name="newImageName", visibility=["read"]) + """The name of the new image created by the patch.""" + new_layer: Optional["_models.PatchDetailsNewLayer"] = rest_field(name="newLayer", visibility=["read"]) + """New layer update details in the target image.""" + old_layer: Optional["_models.PatchDetailsOldLayer"] = rest_field(name="oldLayer", visibility=["read"]) + """The old layer details in the target image.""" + patch_type: Optional[Union[str, "_models.PatchType"]] = rest_field(name="patchType", visibility=["read"]) + """The type for the patch. Known values are: \"FrameworkSecurity\", \"OSSecurity\", + \"FrameworkAndOSSecurity\", and \"Other\".""" + + +class PatchDetailsNewLayer(_Model): + """New layer update details in the target image. + + :ivar name: The details of the new layer for the target image. + :vartype name: str + :ivar framework_and_version: The framework and its version in the new run image for the target + image. + :vartype framework_and_version: str + :ivar os_and_version: The OS name and its version in the new run image for the target image. + :vartype os_and_version: str + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The details of the new layer for the target image.""" + framework_and_version: Optional[str] = rest_field( + name="frameworkAndVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """The framework and its version in the new run image for the target image.""" + os_and_version: Optional[str] = rest_field( + name="osAndVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """The OS name and its version in the new run image for the target image.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + framework_and_version: Optional[str] = None, + os_and_version: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PatchDetailsOldLayer(_Model): + """The old layer details in the target image. + + :ivar name: The details of the old layer for the target image. + :vartype name: str + :ivar framework_and_version: The framework and its version in the old run image for the target + image. + :vartype framework_and_version: str + :ivar os_and_version: The OS name and its version in the old run image for the target image. + :vartype os_and_version: str + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The details of the old layer for the target image.""" + framework_and_version: Optional[str] = rest_field( + name="frameworkAndVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """The framework and its version in the old run image for the target image.""" + os_and_version: Optional[str] = rest_field( + name="osAndVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """The OS name and its version in the old run image for the target image.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + framework_and_version: Optional[str] = None, + os_and_version: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PatchProperties(_Model): + """Top level properties that describes current states of the patch resource. + + :ivar target_environment_id: The Azure resource id of the target environment for the patch. + :vartype target_environment_id: str + :ivar target_container_app_id: The Azure resource id of the target container app for the patch. + :vartype target_container_app_id: str + :ivar target_revision_id: The Azure resource id of the target revision for the patch. + :vartype target_revision_id: str + :ivar patch_apply_status: The status of the patch operation. Known values are: "NotStarted", + "RebaseInProgress", "CreatingRevision", "Succeeded", "Canceled", "RebaseFailed", + "RevisionCreationFailed", "ImagePushPullFailed", and "ManuallySkipped". + :vartype patch_apply_status: str or ~azure.mgmt.appcontainers.models.PatchApplyStatus + :ivar created_at: The UTC timestamp that describes when the patch object was created. + :vartype created_at: ~datetime.datetime + :ivar last_modified_at: The UTC timestamp that describes when the patch object was last + updated. + :vartype last_modified_at: ~datetime.datetime + :ivar patch_details: Detailed info describes the patch operation for the target container app. + :vartype patch_details: list[~azure.mgmt.appcontainers.models.PatchDetails] + """ + + target_environment_id: Optional[str] = rest_field( + name="targetEnvironmentId", visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure resource id of the target environment for the patch.""" + target_container_app_id: Optional[str] = rest_field( + name="targetContainerAppId", visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure resource id of the target container app for the patch.""" + target_revision_id: Optional[str] = rest_field( + name="targetRevisionId", visibility=["read", "create", "update", "delete", "query"] + ) + """The Azure resource id of the target revision for the patch.""" + patch_apply_status: Optional[Union[str, "_models.PatchApplyStatus"]] = rest_field( + name="patchApplyStatus", visibility=["read"] + ) + """The status of the patch operation. Known values are: \"NotStarted\", \"RebaseInProgress\", + \"CreatingRevision\", \"Succeeded\", \"Canceled\", \"RebaseFailed\", + \"RevisionCreationFailed\", \"ImagePushPullFailed\", and \"ManuallySkipped\".""" + created_at: Optional[datetime.datetime] = rest_field(name="createdAt", visibility=["read"], format="rfc3339") + """The UTC timestamp that describes when the patch object was created.""" + last_modified_at: Optional[datetime.datetime] = rest_field( + name="lastModifiedAt", visibility=["read"], format="rfc3339" + ) + """The UTC timestamp that describes when the patch object was last updated.""" + patch_details: Optional[list["_models.PatchDetails"]] = rest_field(name="patchDetails", visibility=["read"]) + """Detailed info describes the patch operation for the target container app.""" + + @overload + def __init__( + self, + *, + target_environment_id: Optional[str] = None, + target_container_app_id: Optional[str] = None, + target_revision_id: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PatchSkipConfig(_Model): + """The configuration for patcher to skip a patch or not. + + :ivar skip: The flag to indicate whether to skip the patch or not. + :vartype skip: bool + """ + + skip: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The flag to indicate whether to skip the patch or not.""" + + @overload + def __init__( + self, + *, + skip: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PreBuildStep(_Model): + """Model representing a pre-build step. + + :ivar description: Description of the pre-build step. + :vartype description: str + :ivar scripts: List of custom commands to run. + :vartype scripts: list[str] + :ivar http_get: Http get request to send before the build. + :vartype http_get: ~azure.mgmt.appcontainers.models.HttpGet + """ + + description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Description of the pre-build step.""" + scripts: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """List of custom commands to run.""" + http_get: Optional["_models.HttpGet"] = rest_field( + name="httpGet", visibility=["read", "create", "update", "delete", "query"] + ) + """Http get request to send before the build.""" + + @overload + def __init__( + self, + *, + description: Optional[str] = None, + scripts: Optional[list[str]] = None, + http_get: Optional["_models.HttpGet"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PrivateEndpoint(_Model): + """The Private Endpoint resource. + + :ivar id: The ARM identifier for Private Endpoint. + :vartype id: str + """ + + id: Optional[str] = rest_field(visibility=["read"]) + """The ARM identifier for Private Endpoint.""" + + +class PrivateEndpointConnection(ProxyResource): + """The Private Endpoint Connection resource. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar properties: Resource properties. + :vartype properties: ~azure.mgmt.appcontainers.models.PrivateEndpointConnectionProperties + """ + + properties: Optional["_models.PrivateEndpointConnectionProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Resource properties.""" + + __flattened_items = ["group_ids", "private_endpoint", "private_link_service_connection_state", "provisioning_state"] + + @overload + def __init__( + self, + *, + properties: Optional["_models.PrivateEndpointConnectionProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class PrivateEndpointConnectionProperties(_Model): + """Properties of the private endpoint connection. + + :ivar group_ids: The group ids for the private endpoint resource. + :vartype group_ids: list[str] + :ivar private_endpoint: The resource of private end point. + :vartype private_endpoint: ~azure.mgmt.appcontainers.models.PrivateEndpoint + :ivar private_link_service_connection_state: A collection of information about the state of the + connection between service consumer and provider. Required. + :vartype private_link_service_connection_state: + ~azure.mgmt.appcontainers.models.PrivateLinkServiceConnectionState + :ivar provisioning_state: The provisioning state of the private endpoint connection resource. + Known values are: "Succeeded", "Failed", "Canceled", "Waiting", "Updating", "Deleting", and + "Pending". + :vartype provisioning_state: str or + ~azure.mgmt.appcontainers.models.PrivateEndpointConnectionProvisioningState + """ + + group_ids: Optional[list[str]] = rest_field(name="groupIds", visibility=["read"]) + """The group ids for the private endpoint resource.""" + private_endpoint: Optional["_models.PrivateEndpoint"] = rest_field( + name="privateEndpoint", visibility=["read", "create", "update", "delete", "query"] + ) + """The resource of private end point.""" + private_link_service_connection_state: "_models.PrivateLinkServiceConnectionState" = rest_field( + name="privateLinkServiceConnectionState", visibility=["read", "create", "update", "delete", "query"] + ) + """A collection of information about the state of the connection between service consumer and + provider. Required.""" + provisioning_state: Optional[Union[str, "_models.PrivateEndpointConnectionProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """The provisioning state of the private endpoint connection resource. Known values are: + \"Succeeded\", \"Failed\", \"Canceled\", \"Waiting\", \"Updating\", \"Deleting\", and + \"Pending\".""" + + @overload + def __init__( + self, + *, + private_link_service_connection_state: "_models.PrivateLinkServiceConnectionState", + private_endpoint: Optional["_models.PrivateEndpoint"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PrivateLinkResource(Resource): + """A private link resource. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar properties: Resource properties. + :vartype properties: ~azure.mgmt.appcontainers.models.PrivateLinkResourceProperties + """ + + properties: Optional["_models.PrivateLinkResourceProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Resource properties.""" + + __flattened_items = ["group_id", "required_members", "required_zone_names"] + + @overload + def __init__( + self, + *, + properties: Optional["_models.PrivateLinkResourceProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class PrivateLinkResourceProperties(_Model): + """Properties of a private link resource. + + :ivar group_id: The private link resource group id. + :vartype group_id: str + :ivar required_members: The private link resource required member names. + :vartype required_members: list[str] + :ivar required_zone_names: The private link resource private link DNS zone name. + :vartype required_zone_names: list[str] + """ + + group_id: Optional[str] = rest_field(name="groupId", visibility=["read"]) + """The private link resource group id.""" + required_members: Optional[list[str]] = rest_field(name="requiredMembers", visibility=["read"]) + """The private link resource required member names.""" + required_zone_names: Optional[list[str]] = rest_field( + name="requiredZoneNames", visibility=["read", "create", "update", "delete", "query"] + ) + """The private link resource private link DNS zone name.""" + + @overload + def __init__( + self, + *, + required_zone_names: Optional[list[str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PrivateLinkServiceConnectionState(_Model): + """A collection of information about the state of the connection between service consumer and + provider. + + :ivar status: Indicates whether the connection has been Approved/Rejected/Removed by the owner + of the service. Known values are: "Pending", "Approved", "Rejected", and "Disconnected". + :vartype status: str or ~azure.mgmt.appcontainers.models.PrivateEndpointServiceConnectionStatus + :ivar description: The reason for approval/rejection of the connection. + :vartype description: str + :ivar actions_required: A message indicating if changes on the service provider require any + updates on the consumer. + :vartype actions_required: str + """ + + status: Optional[Union[str, "_models.PrivateEndpointServiceConnectionStatus"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether the connection has been Approved/Rejected/Removed by the owner of the + service. Known values are: \"Pending\", \"Approved\", \"Rejected\", and \"Disconnected\".""" + description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The reason for approval/rejection of the connection.""" + actions_required: Optional[str] = rest_field( + name="actionsRequired", visibility=["read", "create", "update", "delete", "query"] + ) + """A message indicating if changes on the service provider require any updates on the consumer.""" + + @overload + def __init__( + self, + *, + status: Optional[Union[str, "_models.PrivateEndpointServiceConnectionStatus"]] = None, + description: Optional[str] = None, + actions_required: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class QueueScaleRule(_Model): + """Container App container Azure Queue based scaling rule. + + :ivar account_name: Storage account name. required if using managed identity to authenticate. + :vartype account_name: str + :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.appcontainers.models.ScaleRuleAuth] + :ivar identity: The resource ID of a user-assigned managed identity that is assigned to the + Container App, or 'system' for system-assigned identity. + :vartype identity: str + """ + + account_name: Optional[str] = rest_field( + name="accountName", visibility=["read", "create", "update", "delete", "query"] + ) + """Storage account name. required if using managed identity to authenticate.""" + queue_name: Optional[str] = rest_field(name="queueName", visibility=["read", "create", "update", "delete", "query"]) + """Queue name.""" + queue_length: Optional[int] = rest_field( + name="queueLength", visibility=["read", "create", "update", "delete", "query"] + ) + """Queue length.""" + auth: Optional[list["_models.ScaleRuleAuth"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Authentication secrets for the queue scale rule.""" + identity: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The resource ID of a user-assigned managed identity that is assigned to the Container App, or + 'system' for system-assigned identity.""" + + @overload + def __init__( + self, + *, + account_name: Optional[str] = None, + queue_name: Optional[str] = None, + queue_length: Optional[int] = None, + auth: Optional[list["_models.ScaleRuleAuth"]] = None, + identity: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class RegistryCredentials(_Model): + """Container App Private Registry. + + :ivar server: Container Registry Server. + :vartype server: str + :ivar username: Container Registry Username. + :vartype username: str + :ivar password_secret_ref: The name of the Secret that contains the registry login password. + :vartype password_secret_ref: str + :ivar identity: A Managed Identity to use to authenticate with Azure Container Registry. For + user-assigned identities, use the full user-assigned identity Resource ID. For system-assigned + identities, use 'system'. + :vartype identity: str + """ + + server: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Container Registry Server.""" + username: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Container Registry Username.""" + password_secret_ref: Optional[str] = rest_field( + name="passwordSecretRef", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the Secret that contains the registry login password.""" + identity: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A Managed Identity to use to authenticate with Azure Container Registry. For user-assigned + identities, use the full user-assigned identity Resource ID. For system-assigned identities, + use 'system'.""" + + @overload + def __init__( + self, + *, + server: Optional[str] = None, + username: Optional[str] = None, + password_secret_ref: Optional[str] = None, + identity: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class RegistryInfo(_Model): + """Container App registry information. + + :ivar registry_url: registry server Url. + :vartype registry_url: str + :ivar registry_user_name: registry username. + :vartype registry_user_name: str + :ivar registry_password: registry secret. + :vartype registry_password: str + """ + + registry_url: Optional[str] = rest_field( + name="registryUrl", visibility=["read", "create", "update", "delete", "query"] + ) + """registry server Url.""" + registry_user_name: Optional[str] = rest_field( + name="registryUserName", visibility=["read", "create", "update", "delete", "query"] + ) + """registry username.""" + registry_password: Optional[str] = rest_field(name="registryPassword", visibility=["create", "update"]) + """registry secret.""" + + @overload + def __init__( + self, + *, + registry_url: Optional[str] = None, + registry_user_name: Optional[str] = None, + registry_password: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Replica(ProxyResource): + """Container App Revision Replica. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar properties: Replica resource specific properties. + :vartype properties: ~azure.mgmt.appcontainers.models.ReplicaProperties + """ + + properties: Optional["_models.ReplicaProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Replica resource specific properties.""" + + __flattened_items = ["created_time", "running_state", "running_state_details", "containers", "init_containers"] + + @overload + def __init__( + self, + *, + properties: Optional["_models.ReplicaProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class ReplicaCollection(_Model): + """Container App Revision Replicas collection ARM resource. + + :ivar value: Collection of resources. Required. + :vartype value: list[~azure.mgmt.appcontainers.models.Replica] + """ + + value: list["_models.Replica"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Collection of resources. Required.""" + + @overload + def __init__( + self, + *, + value: list["_models.Replica"], + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ReplicaContainer(_Model): + """Container object under Container App Revision Replica. + + :ivar name: The Name of the Container. + :vartype name: str + :ivar container_id: The Id of the Container. + :vartype container_id: str + :ivar ready: The container ready status. + :vartype ready: bool + :ivar started: The container start status. + :vartype started: bool + :ivar restart_count: The container restart count. + :vartype restart_count: int + :ivar running_state: Current running state of the container. Known values are: "Running", + "Terminated", and "Waiting". + :vartype running_state: str or + ~azure.mgmt.appcontainers.models.ContainerAppContainerRunningState + :ivar running_state_details: The details of container current running state. + :vartype running_state_details: str + :ivar log_stream_endpoint: Log Stream endpoint. + :vartype log_stream_endpoint: str + :ivar exec_endpoint: Container exec endpoint. + :vartype exec_endpoint: str + :ivar debug_endpoint: Container debug endpoint. + :vartype debug_endpoint: str + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The Name of the Container.""" + container_id: Optional[str] = rest_field( + name="containerId", visibility=["read", "create", "update", "delete", "query"] + ) + """The Id of the Container.""" + ready: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The container ready status.""" + started: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The container start status.""" + restart_count: Optional[int] = rest_field( + name="restartCount", visibility=["read", "create", "update", "delete", "query"] + ) + """The container restart count.""" + running_state: Optional[Union[str, "_models.ContainerAppContainerRunningState"]] = rest_field( + name="runningState", visibility=["read"] + ) + """Current running state of the container. Known values are: \"Running\", \"Terminated\", and + \"Waiting\".""" + running_state_details: Optional[str] = rest_field(name="runningStateDetails", visibility=["read"]) + """The details of container current running state.""" + log_stream_endpoint: Optional[str] = rest_field(name="logStreamEndpoint", visibility=["read"]) + """Log Stream endpoint.""" + exec_endpoint: Optional[str] = rest_field(name="execEndpoint", visibility=["read"]) + """Container exec endpoint.""" + debug_endpoint: Optional[str] = rest_field(name="debugEndpoint", visibility=["read"]) + """Container debug endpoint.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + container_id: Optional[str] = None, + ready: Optional[bool] = None, + started: Optional[bool] = None, + restart_count: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ReplicaExecutionStatus(_Model): + """Container Apps Job execution replica status. + + :ivar name: Replica Name. + :vartype name: str + :ivar containers: Containers in the execution replica. + :vartype containers: list[~azure.mgmt.appcontainers.models.ContainerExecutionStatus] + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Replica Name.""" + containers: Optional[list["_models.ContainerExecutionStatus"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Containers in the execution replica.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + containers: Optional[list["_models.ContainerExecutionStatus"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ReplicaProperties(_Model): + """Replica resource specific properties. + + :ivar created_time: Timestamp describing when the pod was created by controller. + :vartype created_time: ~datetime.datetime + :ivar running_state: Current running state of the replica. Known values are: "Running", + "NotRunning", and "Unknown". + :vartype running_state: str or ~azure.mgmt.appcontainers.models.ContainerAppReplicaRunningState + :ivar running_state_details: The details of replica current running state. + :vartype running_state_details: str + :ivar containers: The containers collection under a replica. + :vartype containers: list[~azure.mgmt.appcontainers.models.ReplicaContainer] + :ivar init_containers: The init containers collection under a replica. + :vartype init_containers: list[~azure.mgmt.appcontainers.models.ReplicaContainer] + """ + + created_time: Optional[datetime.datetime] = rest_field(name="createdTime", visibility=["read"], format="rfc3339") + """Timestamp describing when the pod was created by controller.""" + running_state: Optional[Union[str, "_models.ContainerAppReplicaRunningState"]] = rest_field( + name="runningState", visibility=["read"] + ) + """Current running state of the replica. Known values are: \"Running\", \"NotRunning\", and + \"Unknown\".""" + running_state_details: Optional[str] = rest_field(name="runningStateDetails", visibility=["read"]) + """The details of replica current running state.""" + containers: Optional[list["_models.ReplicaContainer"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The containers collection under a replica.""" + init_containers: Optional[list["_models.ReplicaContainer"]] = rest_field( + name="initContainers", visibility=["read", "create", "update", "delete", "query"] + ) + """The init containers collection under a replica.""" + + @overload + def __init__( + self, + *, + containers: Optional[list["_models.ReplicaContainer"]] = None, + init_containers: Optional[list["_models.ReplicaContainer"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Revision(ProxyResource): + """Container App Revision. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar properties: Revision resource specific properties. + :vartype properties: ~azure.mgmt.appcontainers.models.RevisionProperties + """ + + properties: Optional["_models.RevisionProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Revision resource specific properties.""" + + __flattened_items = [ + "created_time", + "last_active_time", + "fqdn", + "template", + "active", + "replicas", + "traffic_weight", + "labels", + "provisioning_error", + "health_state", + "provisioning_state", + "running_state", + ] + + @overload + def __init__( + self, + *, + properties: Optional["_models.RevisionProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class RevisionProperties(_Model): + """Revision resource specific properties. + + :ivar created_time: Timestamp describing when the revision was created by controller. + :vartype created_time: ~datetime.datetime + :ivar last_active_time: Timestamp describing when the revision was last active. Only meaningful + when revision is inactive. + :vartype last_active_time: ~datetime.datetime + :ivar fqdn: Fully qualified domain name of the revision. + :vartype fqdn: str + :ivar template: Container App Revision Template with all possible settings and the defaults if + user did not provide them. The defaults are populated as they were at the creation time. + :vartype template: ~azure.mgmt.appcontainers.models.Template + :ivar active: Boolean describing if the Revision is Active. + :vartype active: bool + :ivar replicas: Number of pods currently running for this revision. + :vartype replicas: int + :ivar traffic_weight: Traffic weight assigned to this revision. + :vartype traffic_weight: int + :ivar labels: List of labels assigned to this revision. + :vartype labels: list[str] + :ivar provisioning_error: Optional Field - Platform Error Message. + :vartype provisioning_error: str + :ivar health_state: Current health State of the revision. Known values are: "Healthy", + "Unhealthy", and "None". + :vartype health_state: str or ~azure.mgmt.appcontainers.models.RevisionHealthState + :ivar provisioning_state: Current provisioning State of the revision. Known values are: + "Provisioning", "Provisioned", "Failed", "Deprovisioning", and "Deprovisioned". + :vartype provisioning_state: str or ~azure.mgmt.appcontainers.models.RevisionProvisioningState + :ivar running_state: Current running state of the revision. Known values are: "Running", + "Processing", "Stopped", "Degraded", "Failed", and "Unknown". + :vartype running_state: str or ~azure.mgmt.appcontainers.models.RevisionRunningState + """ + + created_time: Optional[datetime.datetime] = rest_field(name="createdTime", visibility=["read"], format="rfc3339") + """Timestamp describing when the revision was created by controller.""" + last_active_time: Optional[datetime.datetime] = rest_field( + name="lastActiveTime", visibility=["read"], format="rfc3339" + ) + """Timestamp describing when the revision was last active. Only meaningful when revision is + inactive.""" + fqdn: Optional[str] = rest_field(visibility=["read"]) + """Fully qualified domain name of the revision.""" + template: Optional["_models.Template"] = rest_field(visibility=["read"]) + """Container App Revision Template with all possible settings and the defaults if user did not + provide them. The defaults are populated as they were at the creation time.""" + active: Optional[bool] = rest_field(visibility=["read"]) + """Boolean describing if the Revision is Active.""" + replicas: Optional[int] = rest_field(visibility=["read"]) + """Number of pods currently running for this revision.""" + traffic_weight: Optional[int] = rest_field(name="trafficWeight", visibility=["read"]) + """Traffic weight assigned to this revision.""" + labels: Optional[list[str]] = rest_field(visibility=["read"]) + """List of labels assigned to this revision.""" + provisioning_error: Optional[str] = rest_field(name="provisioningError", visibility=["read"]) + """Optional Field - Platform Error Message.""" + health_state: Optional[Union[str, "_models.RevisionHealthState"]] = rest_field( + name="healthState", visibility=["read"] + ) + """Current health State of the revision. Known values are: \"Healthy\", \"Unhealthy\", and + \"None\".""" + provisioning_state: Optional[Union[str, "_models.RevisionProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """Current provisioning State of the revision. Known values are: \"Provisioning\", + \"Provisioned\", \"Failed\", \"Deprovisioning\", and \"Deprovisioned\".""" + running_state: Optional[Union[str, "_models.RevisionRunningState"]] = rest_field( + name="runningState", visibility=["read"] + ) + """Current running state of the revision. Known values are: \"Running\", \"Processing\", + \"Stopped\", \"Degraded\", \"Failed\", and \"Unknown\".""" + + +class Runtime(_Model): + """Container App Runtime configuration. + + :ivar java: Java app configuration. + :vartype java: ~azure.mgmt.appcontainers.models.RuntimeJava + :ivar dotnet: .NET app configuration. + :vartype dotnet: ~azure.mgmt.appcontainers.models.RuntimeDotnet + """ + + java: Optional["_models.RuntimeJava"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Java app configuration.""" + dotnet: Optional["_models.RuntimeDotnet"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """.NET app configuration.""" + + @overload + def __init__( + self, + *, + java: Optional["_models.RuntimeJava"] = None, + dotnet: Optional["_models.RuntimeDotnet"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class RuntimeDotnet(_Model): + """.NET app configuration. + + :ivar auto_configure_data_protection: Auto configure the ASP.NET Core Data Protection feature. + :vartype auto_configure_data_protection: bool + """ + + auto_configure_data_protection: Optional[bool] = rest_field( + name="autoConfigureDataProtection", visibility=["read", "create", "update", "delete", "query"] + ) + """Auto configure the ASP.NET Core Data Protection feature.""" + + @overload + def __init__( + self, + *, + auto_configure_data_protection: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class RuntimeJava(_Model): + """Java app configuration. + + :ivar enable_metrics: Enable jmx core metrics for the java app. + :vartype enable_metrics: bool + :ivar java_agent: Diagnostic capabilities achieved by java agent. + :vartype java_agent: ~azure.mgmt.appcontainers.models.RuntimeJavaJavaAgent + """ + + enable_metrics: Optional[bool] = rest_field( + name="enableMetrics", visibility=["read", "create", "update", "delete", "query"] + ) + """Enable jmx core metrics for the java app.""" + java_agent: Optional["_models.RuntimeJavaJavaAgent"] = rest_field( + name="javaAgent", visibility=["read", "create", "update", "delete", "query"] + ) + """Diagnostic capabilities achieved by java agent.""" + + @overload + def __init__( + self, + *, + enable_metrics: Optional[bool] = None, + java_agent: Optional["_models.RuntimeJavaJavaAgent"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class RuntimeJavaJavaAgent(_Model): + """Diagnostic capabilities achieved by java agent. + + :ivar enabled: Enable java agent injection for the java app. + :vartype enabled: bool + :ivar logging: Capabilities on the java logging scenario. + :vartype logging: ~azure.mgmt.appcontainers.models.RuntimeJavaJavaAgentLogging + """ + + enabled: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Enable java agent injection for the java app.""" + logging: Optional["_models.RuntimeJavaJavaAgentLogging"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Capabilities on the java logging scenario.""" + + @overload + def __init__( + self, + *, + enabled: Optional[bool] = None, + logging: Optional["_models.RuntimeJavaJavaAgentLogging"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class RuntimeJavaJavaAgentLogging(_Model): + """Capabilities on the java logging scenario. + + :ivar logger_settings: Settings of the logger for the java app. + :vartype logger_settings: list[~azure.mgmt.appcontainers.models.LoggerSetting] + """ + + logger_settings: Optional[list["_models.LoggerSetting"]] = rest_field( + name="loggerSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Settings of the logger for the java app.""" + + @overload + def __init__( + self, + *, + logger_settings: Optional[list["_models.LoggerSetting"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Scale(_Model): + """Container App 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 cooldown_period: Optional. KEDA Cooldown Period. Defaults to 300 seconds if not set. + :vartype cooldown_period: int + :ivar polling_interval: Optional. KEDA Polling Interval. Defaults to 30 seconds if not set. + :vartype polling_interval: int + :ivar rules: Scaling rules. + :vartype rules: list[~azure.mgmt.appcontainers.models.ScaleRule] + """ + + min_replicas: Optional[int] = rest_field( + name="minReplicas", visibility=["read", "create", "update", "delete", "query"] + ) + """Optional. Minimum number of container replicas.""" + max_replicas: Optional[int] = rest_field( + name="maxReplicas", visibility=["read", "create", "update", "delete", "query"] + ) + """Optional. Maximum number of container replicas. Defaults to 10 if not set.""" + cooldown_period: Optional[int] = rest_field( + name="cooldownPeriod", visibility=["read", "create", "update", "delete", "query"] + ) + """Optional. KEDA Cooldown Period. Defaults to 300 seconds if not set.""" + polling_interval: Optional[int] = rest_field( + name="pollingInterval", visibility=["read", "create", "update", "delete", "query"] + ) + """Optional. KEDA Polling Interval. Defaults to 30 seconds if not set.""" + rules: Optional[list["_models.ScaleRule"]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Scaling rules.""" + + @overload + def __init__( + self, + *, + min_replicas: Optional[int] = None, + max_replicas: Optional[int] = None, + cooldown_period: Optional[int] = None, + polling_interval: Optional[int] = None, + rules: Optional[list["_models.ScaleRule"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ScaleConfiguration(_Model): + """Scale configuration. + + :ivar max_concurrent_sessions: The maximum count of sessions at the same time. + :vartype max_concurrent_sessions: int + :ivar ready_session_instances: The minimum count of ready session instances. + :vartype ready_session_instances: int + """ + + max_concurrent_sessions: Optional[int] = rest_field( + name="maxConcurrentSessions", visibility=["read", "create", "update", "delete", "query"] + ) + """The maximum count of sessions at the same time.""" + ready_session_instances: Optional[int] = rest_field( + name="readySessionInstances", visibility=["read", "create", "update", "delete", "query"] + ) + """The minimum count of ready session instances.""" + + @overload + def __init__( + self, + *, + max_concurrent_sessions: Optional[int] = None, + ready_session_instances: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ScaleRule(_Model): + """Container App container scaling rule. + + :ivar name: Scale Rule Name. + :vartype name: str + :ivar azure_queue: Azure Queue based scaling. + :vartype azure_queue: ~azure.mgmt.appcontainers.models.QueueScaleRule + :ivar custom: Custom scale rule. + :vartype custom: ~azure.mgmt.appcontainers.models.CustomScaleRule + :ivar http: HTTP requests based scaling. + :vartype http: ~azure.mgmt.appcontainers.models.HttpScaleRule + :ivar tcp: Tcp requests based scaling. + :vartype tcp: ~azure.mgmt.appcontainers.models.TcpScaleRule + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Scale Rule Name.""" + azure_queue: Optional["_models.QueueScaleRule"] = rest_field( + name="azureQueue", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Queue based scaling.""" + custom: Optional["_models.CustomScaleRule"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Custom scale rule.""" + http: Optional["_models.HttpScaleRule"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """HTTP requests based scaling.""" + tcp: Optional["_models.TcpScaleRule"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Tcp requests based scaling.""" + + @overload + 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, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ScaleRuleAuth(_Model): + """Auth Secrets for Scale Rule. + + :ivar secret_ref: Name of the 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 + """ + + secret_ref: Optional[str] = rest_field(name="secretRef", visibility=["read", "create", "update", "delete", "query"]) + """Name of the secret from which to pull the auth params.""" + trigger_parameter: Optional[str] = rest_field( + name="triggerParameter", visibility=["read", "create", "update", "delete", "query"] + ) + """Trigger Parameter that uses the secret.""" + + @overload + def __init__( + self, + *, + secret_ref: Optional[str] = None, + trigger_parameter: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ScgRoute(_Model): + """Spring Cloud Gateway route definition. + + :ivar id: Id of the route. Required. + :vartype id: str + :ivar uri: Uri of the route. Required. + :vartype uri: str + :ivar predicates: Predicates of the route. + :vartype predicates: list[str] + :ivar filters: Filters of the route. + :vartype filters: list[str] + :ivar order: Order of the route. + :vartype order: int + """ + + id: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Id of the route. Required.""" + uri: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Uri of the route. Required.""" + predicates: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Predicates of the route.""" + filters: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Filters of the route.""" + order: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Order of the route.""" + + @overload + def __init__( + self, + *, + id: str, # pylint: disable=redefined-builtin + uri: str, + predicates: Optional[list[str]] = None, + filters: Optional[list[str]] = None, + order: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ScheduledEntries(_Model): + """List of maintenance schedules for a managed environment. + + :ivar scheduled_entries: List of maintenance schedules for a managed environment. Required. + :vartype scheduled_entries: list[~azure.mgmt.appcontainers.models.ScheduledEntry] + """ + + scheduled_entries: list["_models.ScheduledEntry"] = rest_field( + name="scheduledEntries", visibility=["read", "create", "update", "delete", "query"] + ) + """List of maintenance schedules for a managed environment. Required.""" + + @overload + def __init__( + self, + *, + scheduled_entries: list["_models.ScheduledEntry"], + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ScheduledEntry(_Model): + """Maintenance schedule entry for a managed environment. + + :ivar week_day: Day of the week when a managed environment can be patched. Required. Known + values are: "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", and "Sunday". + :vartype week_day: str or ~azure.mgmt.appcontainers.models.WeekDay + :ivar start_hour_utc: Start hour after which managed environment maintenance can start from 0 + to 23 hour. Required. + :vartype start_hour_utc: int + :ivar duration_hours: Length of maintenance window range from 8 to 24 hours. Required. + :vartype duration_hours: int + """ + + week_day: Union[str, "_models.WeekDay"] = rest_field( + name="weekDay", visibility=["read", "create", "update", "delete", "query"] + ) + """Day of the week when a managed environment can be patched. Required. Known values are: + \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\", and \"Sunday\".""" + start_hour_utc: int = rest_field(name="startHourUtc", visibility=["read", "create", "update", "delete", "query"]) + """Start hour after which managed environment maintenance can start from 0 to 23 hour. Required.""" + duration_hours: int = rest_field(name="durationHours", visibility=["read", "create", "update", "delete", "query"]) + """Length of maintenance window range from 8 to 24 hours. Required.""" + + @overload + def __init__( + self, + *, + week_day: Union[str, "_models.WeekDay"], + start_hour_utc: int, + duration_hours: int, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Secret(_Model): + """Secret definition. + + :ivar name: Secret Name. + :vartype name: str + :ivar value: Secret Value. + :vartype value: str + :ivar identity: Resource ID of a managed identity to authenticate with Azure Key Vault, or + System to use a system-assigned identity. + :vartype identity: str + :ivar key_vault_url: Azure Key Vault URL pointing to the secret referenced by the container + app. + :vartype key_vault_url: str + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Secret Name.""" + value: Optional[str] = rest_field(visibility=["create", "update"]) + """Secret Value.""" + identity: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a + system-assigned identity.""" + key_vault_url: Optional[str] = rest_field( + name="keyVaultUrl", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Key Vault URL pointing to the secret referenced by the container app.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + value: Optional[str] = None, + identity: Optional[str] = None, + key_vault_url: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SecretKeyVaultProperties(_Model): + """Properties for a secret stored in a Key Vault. + + :ivar identity: Resource ID of a managed identity to authenticate with Azure Key Vault, or + System to use a system-assigned identity. + :vartype identity: str + :ivar key_vault_url: URL pointing to the Azure Key Vault secret. + :vartype key_vault_url: str + """ + + identity: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a + system-assigned identity.""" + key_vault_url: Optional[str] = rest_field( + name="keyVaultUrl", visibility=["read", "create", "update", "delete", "query"] + ) + """URL pointing to the Azure Key Vault secret.""" + + @overload + def __init__( + self, + *, + identity: Optional[str] = None, + key_vault_url: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SecretsCollection(_Model): + """Container App Secrets Collection ARM resource. + + :ivar value: Collection of resources. Required. + :vartype value: list[~azure.mgmt.appcontainers.models.ContainerAppSecret] + """ + + value: list["_models.ContainerAppSecret"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Collection of resources. Required.""" + + @overload + def __init__( + self, + *, + value: list["_models.ContainerAppSecret"], + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SecretVolumeItem(_Model): + """Secret to be added to volume. + + :ivar secret_ref: Name of the Container App secret from which to pull the secret value. + :vartype secret_ref: str + :ivar path: Path to project secret to. If no path is provided, path defaults to name of secret + listed in secretRef. + :vartype path: str + """ + + secret_ref: Optional[str] = rest_field(name="secretRef", visibility=["read", "create", "update", "delete", "query"]) + """Name of the Container App secret from which to pull the secret value.""" + path: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Path to project secret to. If no path is provided, path defaults to name of secret listed in + secretRef.""" + + @overload + def __init__( + self, + *, + secret_ref: Optional[str] = None, + path: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Service(_Model): + """Container App to be a dev service. + + :ivar type: Dev ContainerApp service type. Required. + :vartype type: str + """ + + type: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Dev ContainerApp service type. Required.""" + + @overload + def __init__( + self, + *, + type: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ServiceBind(_Model): + """Configuration to bind a ContainerApp to a dev ContainerApp Service. + + :ivar service_id: Resource id of the target service. + :vartype service_id: str + :ivar name: Name of the service bind. + :vartype name: str + :ivar client_type: Type of the client to be used to connect to the service. + :vartype client_type: str + :ivar customized_keys: Customized keys for customizing injected values to the app. + :vartype customized_keys: dict[str, str] + """ + + service_id: Optional[str] = rest_field(name="serviceId", visibility=["read", "create", "update", "delete", "query"]) + """Resource id of the target service.""" + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Name of the service bind.""" + client_type: Optional[str] = rest_field( + name="clientType", visibility=["read", "create", "update", "delete", "query"] + ) + """Type of the client to be used to connect to the service.""" + customized_keys: Optional[dict[str, str]] = rest_field( + name="customizedKeys", visibility=["read", "create", "update", "delete", "query"] + ) + """Customized keys for customizing injected values to the app.""" + + @overload + def __init__( + self, + *, + service_id: Optional[str] = None, + name: Optional[str] = None, + client_type: Optional[str] = None, + customized_keys: Optional[dict[str, str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SessionContainer(_Model): + """Container definitions for the sessions of the session pool. + + :ivar image: Container image tag. + :vartype image: str + :ivar name: Custom container name. + :vartype name: str + :ivar command: Container start command. + :vartype command: list[str] + :ivar args: Container start command arguments. + :vartype args: list[str] + :ivar env: Container environment variables. + :vartype env: list[~azure.mgmt.appcontainers.models.EnvironmentVar] + :ivar resources: Container resource requirements. + :vartype resources: ~azure.mgmt.appcontainers.models.SessionContainerResources + :ivar probes: List of probes for the container. + :vartype probes: list[~azure.mgmt.appcontainers.models.SessionProbe] + """ + + image: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Container image tag.""" + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Custom container name.""" + command: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Container start command.""" + args: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Container start command arguments.""" + env: Optional[list["_models.EnvironmentVar"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Container environment variables.""" + resources: Optional["_models.SessionContainerResources"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Container resource requirements.""" + probes: Optional[list["_models.SessionProbe"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of probes for the container.""" + + @overload + def __init__( + self, + *, + image: Optional[str] = None, + name: Optional[str] = None, + command: Optional[list[str]] = None, + args: Optional[list[str]] = None, + env: Optional[list["_models.EnvironmentVar"]] = None, + resources: Optional["_models.SessionContainerResources"] = None, + probes: Optional[list["_models.SessionProbe"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SessionContainerResources(_Model): + """Container resource requirements for sessions of the session pool. + + :ivar cpu: Required CPU in cores, e.g. 0.5. + :vartype cpu: float + :ivar memory: Required memory, e.g. "250Mb". + :vartype memory: str + """ + + cpu: Optional[float] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Required CPU in cores, e.g. 0.5.""" + memory: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Required memory, e.g. \"250Mb\".""" + + @overload + def __init__( + self, + *, + cpu: Optional[float] = None, + memory: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SessionIngress(_Model): + """Session pool ingress configuration. + + :ivar target_port: Target port in containers for traffic from ingress. + :vartype target_port: int + """ + + target_port: Optional[int] = rest_field( + name="targetPort", visibility=["read", "create", "update", "delete", "query"] + ) + """Target port in containers for traffic from ingress.""" + + @overload + def __init__( + self, + *, + target_port: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SessionNetworkConfiguration(_Model): + """Session network configuration. + + :ivar status: Network status for the sessions. Known values are: "EgressEnabled" and + "EgressDisabled". + :vartype status: str or ~azure.mgmt.appcontainers.models.SessionNetworkStatus + """ + + status: Optional[Union[str, "_models.SessionNetworkStatus"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Network status for the sessions. Known values are: \"EgressEnabled\" and \"EgressDisabled\".""" + + @overload + def __init__( + self, + *, + status: Optional[Union[str, "_models.SessionNetworkStatus"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SessionPool(TrackedResource): + """Container App session pool. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + :ivar properties: Container App session pool resource specific properties. + :vartype properties: ~azure.mgmt.appcontainers.models.SessionPoolProperties + :ivar identity: The managed service identities assigned to this resource. + :vartype identity: ~azure.mgmt.appcontainers.models.ManagedServiceIdentity + """ + + properties: Optional["_models.SessionPoolProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Container App session pool resource specific properties.""" + identity: Optional["_models.ManagedServiceIdentity"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The managed service identities assigned to this resource.""" + + __flattened_items = [ + "environment_id", + "container_type", + "pool_management_type", + "node_count", + "scale_configuration", + "secrets", + "dynamic_pool_configuration", + "custom_container_template", + "session_network_configuration", + "template_update_status", + "pool_management_endpoint", + "provisioning_state", + "managed_identity_settings", + "mcp_server_settings", + ] + + @overload + def __init__( + self, + *, + location: str, + tags: Optional[dict[str, str]] = None, + properties: Optional["_models.SessionPoolProperties"] = None, + identity: Optional["_models.ManagedServiceIdentity"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class SessionPoolProperties(_Model): + """Container App session pool resource specific properties. + + :ivar environment_id: Resource ID of the session pool's environment. + :vartype environment_id: str + :ivar container_type: The container type of the sessions. You can use your own container to + build the session pool, or you can use a predefined container to run workload with specific + language. Known values are: "CustomContainer", "PythonLTS", "Shell", and "NodeLTS". + :vartype container_type: str or ~azure.mgmt.appcontainers.models.ContainerType + :ivar pool_management_type: The pool management type of the session pool. Known values are: + "Manual" and "Dynamic". + :vartype pool_management_type: str or ~azure.mgmt.appcontainers.models.PoolManagementType + :ivar node_count: The number of nodes the session pool is using. + :vartype node_count: int + :ivar scale_configuration: The scale configuration of the session pool. + :vartype scale_configuration: ~azure.mgmt.appcontainers.models.ScaleConfiguration + :ivar secrets: The secrets of the session pool. + :vartype secrets: list[~azure.mgmt.appcontainers.models.SessionPoolSecret] + :ivar dynamic_pool_configuration: The pool configuration if the poolManagementType is dynamic. + :vartype dynamic_pool_configuration: ~azure.mgmt.appcontainers.models.DynamicPoolConfiguration + :ivar custom_container_template: The custom container configuration if the containerType is + CustomContainer. + :vartype custom_container_template: ~azure.mgmt.appcontainers.models.CustomContainerTemplate + :ivar session_network_configuration: The network configuration of the sessions in the session + pool. + :vartype session_network_configuration: + ~azure.mgmt.appcontainers.models.SessionNetworkConfiguration + :ivar template_update_status: The template status of the session pool, showing active template, + or desired template during session pool update. This is only available if the containerType is + CustomContainer. + :vartype template_update_status: ~azure.mgmt.appcontainers.models.TemplateUpdateStatus + :ivar pool_management_endpoint: The endpoint to manage the pool. + :vartype pool_management_endpoint: str + :ivar provisioning_state: Provisioning state of the session pool. Known values are: + "InProgress", "Succeeded", "Failed", "Canceled", and "Deleting". + :vartype provisioning_state: str or + ~azure.mgmt.appcontainers.models.SessionPoolProvisioningState + :ivar managed_identity_settings: Optional settings for a Managed Identity that is assigned to + the Session pool. + :vartype managed_identity_settings: + list[~azure.mgmt.appcontainers.models.ManagedIdentitySetting] + :ivar mcp_server_settings: The MCP (Model Context Protocol) server settings of the session + pool. + :vartype mcp_server_settings: ~azure.mgmt.appcontainers.models.McpServerSettings + """ + + environment_id: Optional[str] = rest_field(name="environmentId", visibility=["read", "create"]) + """Resource ID of the session pool's environment.""" + container_type: Optional[Union[str, "_models.ContainerType"]] = rest_field( + name="containerType", visibility=["read", "create", "update", "delete", "query"] + ) + """The container type of the sessions. You can use your own container to build the session pool, + or you can use a predefined container to run workload with specific language. Known values are: + \"CustomContainer\", \"PythonLTS\", \"Shell\", and \"NodeLTS\".""" + pool_management_type: Optional[Union[str, "_models.PoolManagementType"]] = rest_field( + name="poolManagementType", visibility=["read", "create", "update", "delete", "query"] + ) + """The pool management type of the session pool. Known values are: \"Manual\" and \"Dynamic\".""" + node_count: Optional[int] = rest_field(name="nodeCount", visibility=["read"]) + """The number of nodes the session pool is using.""" + scale_configuration: Optional["_models.ScaleConfiguration"] = rest_field( + name="scaleConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """The scale configuration of the session pool.""" + secrets: Optional[list["_models.SessionPoolSecret"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The secrets of the session pool.""" + dynamic_pool_configuration: Optional["_models.DynamicPoolConfiguration"] = rest_field( + name="dynamicPoolConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """The pool configuration if the poolManagementType is dynamic.""" + custom_container_template: Optional["_models.CustomContainerTemplate"] = rest_field( + name="customContainerTemplate", visibility=["read", "create", "update", "delete", "query"] + ) + """The custom container configuration if the containerType is CustomContainer.""" + session_network_configuration: Optional["_models.SessionNetworkConfiguration"] = rest_field( + name="sessionNetworkConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """The network configuration of the sessions in the session pool.""" + template_update_status: Optional["_models.TemplateUpdateStatus"] = rest_field( + name="templateUpdateStatus", visibility=["read"] + ) + """The template status of the session pool, showing active template, or desired template during + session pool update. This is only available if the containerType is CustomContainer.""" + pool_management_endpoint: Optional[str] = rest_field(name="poolManagementEndpoint", visibility=["read"]) + """The endpoint to manage the pool.""" + provisioning_state: Optional[Union[str, "_models.SessionPoolProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """Provisioning state of the session pool. Known values are: \"InProgress\", \"Succeeded\", + \"Failed\", \"Canceled\", and \"Deleting\".""" + managed_identity_settings: Optional[list["_models.ManagedIdentitySetting"]] = rest_field( + name="managedIdentitySettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Optional settings for a Managed Identity that is assigned to the Session pool.""" + mcp_server_settings: Optional["_models.McpServerSettings"] = rest_field( + name="mcpServerSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """The MCP (Model Context Protocol) server settings of the session pool.""" + + @overload + def __init__( + self, + *, + environment_id: Optional[str] = None, + container_type: Optional[Union[str, "_models.ContainerType"]] = None, + pool_management_type: Optional[Union[str, "_models.PoolManagementType"]] = None, + scale_configuration: Optional["_models.ScaleConfiguration"] = None, + secrets: Optional[list["_models.SessionPoolSecret"]] = None, + dynamic_pool_configuration: Optional["_models.DynamicPoolConfiguration"] = None, + custom_container_template: Optional["_models.CustomContainerTemplate"] = None, + session_network_configuration: Optional["_models.SessionNetworkConfiguration"] = None, + managed_identity_settings: Optional[list["_models.ManagedIdentitySetting"]] = None, + mcp_server_settings: Optional["_models.McpServerSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SessionPoolSecret(_Model): + """Secret definition. + + :ivar name: Secret Name. + :vartype name: str + :ivar value: Secret Value. + :vartype value: str + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Secret Name.""" + value: Optional[str] = rest_field(visibility=["create", "update"]) + """Secret Value.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + value: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SessionPoolUpdatableProperties(_Model): + """Container App session pool updatable properties. + + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar identity: Managed identities needed by a session pool to interact with other Azure + services to not maintain any secrets or credentials in code. + :vartype identity: ~azure.mgmt.appcontainers.models.ManagedServiceIdentity + :ivar properties: Session pool resource specific updatable properties. + :vartype properties: ~azure.mgmt.appcontainers.models.SessionPoolUpdatablePropertiesProperties + """ + + tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update"]) + """Resource tags.""" + identity: Optional["_models.ManagedServiceIdentity"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Managed identities needed by a session pool to interact with other Azure services to not + maintain any secrets or credentials in code.""" + properties: Optional["_models.SessionPoolUpdatablePropertiesProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Session pool resource specific updatable properties.""" + + __flattened_items = [ + "scale_configuration", + "secrets", + "dynamic_pool_configuration", + "custom_container_template", + "session_network_configuration", + ] + + @overload + def __init__( + self, + *, + tags: Optional[dict[str, str]] = None, + identity: Optional["_models.ManagedServiceIdentity"] = None, + properties: Optional["_models.SessionPoolUpdatablePropertiesProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class SessionPoolUpdatablePropertiesProperties(_Model): + """Session pool resource specific updatable properties. + + :ivar scale_configuration: The scale configuration of the session pool. + :vartype scale_configuration: ~azure.mgmt.appcontainers.models.ScaleConfiguration + :ivar secrets: The secrets of the session pool. + :vartype secrets: list[~azure.mgmt.appcontainers.models.SessionPoolSecret] + :ivar dynamic_pool_configuration: The pool configuration if the poolManagementType is dynamic. + :vartype dynamic_pool_configuration: ~azure.mgmt.appcontainers.models.DynamicPoolConfiguration + :ivar custom_container_template: The custom container configuration if the containerType is + CustomContainer. + :vartype custom_container_template: ~azure.mgmt.appcontainers.models.CustomContainerTemplate + :ivar session_network_configuration: The network configuration of the sessions in the session + pool. + :vartype session_network_configuration: + ~azure.mgmt.appcontainers.models.SessionNetworkConfiguration + """ + + scale_configuration: Optional["_models.ScaleConfiguration"] = rest_field( + name="scaleConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """The scale configuration of the session pool.""" + secrets: Optional[list["_models.SessionPoolSecret"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The secrets of the session pool.""" + dynamic_pool_configuration: Optional["_models.DynamicPoolConfiguration"] = rest_field( + name="dynamicPoolConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """The pool configuration if the poolManagementType is dynamic.""" + custom_container_template: Optional["_models.CustomContainerTemplate"] = rest_field( + name="customContainerTemplate", visibility=["read", "create", "update", "delete", "query"] + ) + """The custom container configuration if the containerType is CustomContainer.""" + session_network_configuration: Optional["_models.SessionNetworkConfiguration"] = rest_field( + name="sessionNetworkConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """The network configuration of the sessions in the session pool.""" + + @overload + def __init__( + self, + *, + scale_configuration: Optional["_models.ScaleConfiguration"] = None, + secrets: Optional[list["_models.SessionPoolSecret"]] = None, + dynamic_pool_configuration: Optional["_models.DynamicPoolConfiguration"] = None, + custom_container_template: Optional["_models.CustomContainerTemplate"] = None, + session_network_configuration: Optional["_models.SessionNetworkConfiguration"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SessionProbe(_Model): + """Session probe configuration. + + :ivar type: Denotes the type of probe. Can be Liveness or Startup, Readiness probe is not + supported in sessions. Type must be unique for each probe within the context of a list of + probes (SessionProbes). Known values are: "Liveness" and "Startup". + :vartype type: str or ~azure.mgmt.appcontainers.models.SessionProbeType + :ivar http_get: HTTPGet specifies the http request to perform. + :vartype http_get: ~azure.mgmt.appcontainers.models.SessionProbeHttpGet + :ivar tcp_socket: TCPSocket specifies an action involving a TCP port. TCP hooks not yet + supported. + :vartype tcp_socket: ~azure.mgmt.appcontainers.models.SessionProbeTcpSocket + :ivar failure_threshold: Minimum consecutive failures for the probe to be considered failed + after having succeeded. Defaults to 3. Minimum value is 1. Maximum value is 10. + :vartype failure_threshold: int + :ivar initial_delay_seconds: Number of seconds after the container has started before liveness + probes are initiated. Minimum value is 1. Maximum value is 60. + :vartype initial_delay_seconds: int + :ivar period_seconds: How often (in seconds) to perform the probe. Default to 10 seconds. + Minimum value is 1. Maximum value is 240. + :vartype period_seconds: int + :ivar success_threshold: Minimum consecutive successes for the probe to be considered + successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum + value is 1. Maximum value is 10. + :vartype success_threshold: int + :ivar termination_grace_period_seconds: Optional duration in seconds the pod needs to terminate + gracefully upon probe failure. The grace period is the duration in seconds after the processes + running in the pod 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. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, + this value overrides the value provided by the pod spec. Value must be non-negative integer. + The value zero indicates stop immediately via the kill signal (no opportunity to shut down). + This is an alpha field and requires enabling ProbeTerminationGracePeriod feature gate. Maximum + value is 3600 seconds (1 hour). + :vartype termination_grace_period_seconds: int + :ivar timeout_seconds: Number of seconds after which the probe times out. Defaults to 1 second. + Minimum value is 1. Maximum value is 240. + :vartype timeout_seconds: int + """ + + type: Optional[Union[str, "_models.SessionProbeType"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Denotes the type of probe. Can be Liveness or Startup, Readiness probe is not supported in + sessions. Type must be unique for each probe within the context of a list of probes + (SessionProbes). Known values are: \"Liveness\" and \"Startup\".""" + http_get: Optional["_models.SessionProbeHttpGet"] = rest_field( + name="httpGet", visibility=["read", "create", "update", "delete", "query"] + ) + """HTTPGet specifies the http request to perform.""" + tcp_socket: Optional["_models.SessionProbeTcpSocket"] = rest_field( + name="tcpSocket", visibility=["read", "create", "update", "delete", "query"] + ) + """TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported.""" + failure_threshold: Optional[int] = rest_field( + name="failureThreshold", visibility=["read", "create", "update", "delete", "query"] + ) + """Minimum consecutive failures for the probe to be considered failed after having succeeded. + Defaults to 3. Minimum value is 1. Maximum value is 10.""" + initial_delay_seconds: Optional[int] = rest_field( + name="initialDelaySeconds", visibility=["read", "create", "update", "delete", "query"] + ) + """Number of seconds after the container has started before liveness probes are initiated. Minimum + value is 1. Maximum value is 60.""" + period_seconds: Optional[int] = rest_field( + name="periodSeconds", visibility=["read", "create", "update", "delete", "query"] + ) + """How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum + value is 240.""" + success_threshold: Optional[int] = rest_field( + name="successThreshold", visibility=["read", "create", "update", "delete", "query"] + ) + """Minimum consecutive successes for the probe to be considered successful after having failed. + Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. Maximum value is 10.""" + termination_grace_period_seconds: Optional[int] = rest_field( + name="terminationGracePeriodSeconds", visibility=["read", "create", "update", "delete", "query"] + ) + """Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The + grace period is the duration in seconds after the processes running in the pod 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. If this value is nil, the + pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value + provided by the pod spec. Value must be non-negative integer. The value zero indicates stop + immediately via the kill signal (no opportunity to shut down). This is an alpha field and + requires enabling ProbeTerminationGracePeriod feature gate. Maximum value is 3600 seconds (1 + hour).""" + timeout_seconds: Optional[int] = rest_field( + name="timeoutSeconds", visibility=["read", "create", "update", "delete", "query"] + ) + """Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. + Maximum value is 240.""" + + @overload + def __init__( + self, + *, + type: Optional[Union[str, "_models.SessionProbeType"]] = None, + http_get: Optional["_models.SessionProbeHttpGet"] = None, + tcp_socket: Optional["_models.SessionProbeTcpSocket"] = None, + failure_threshold: Optional[int] = None, + initial_delay_seconds: Optional[int] = None, + period_seconds: Optional[int] = None, + success_threshold: Optional[int] = None, + termination_grace_period_seconds: Optional[int] = None, + timeout_seconds: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SessionProbeHttpGet(_Model): + """HTTPGet specifies the http request to perform. + + :ivar host: Host name to connect to, defaults to the pod IP. You probably want to set "Host" in + httpHeaders instead. + :vartype host: str + :ivar http_headers: Custom headers to set in the request. HTTP allows repeated headers. + :vartype http_headers: + list[~azure.mgmt.appcontainers.models.SessionProbeHttpGetHttpHeadersItem] + :ivar path: Path to access on the HTTP server. + :vartype path: str + :ivar port: Name or number of the port to access on the container. Number must be in the range + 1 to 65535. Name must be an IANA_SVC_NAME. Required. + :vartype port: int + :ivar scheme: Scheme to use for connecting to the host. Defaults to HTTP. Known values are: + "HTTP" and "HTTPS". + :vartype scheme: str or ~azure.mgmt.appcontainers.models.Scheme + """ + + host: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in + httpHeaders instead.""" + http_headers: Optional[list["_models.SessionProbeHttpGetHttpHeadersItem"]] = rest_field( + name="httpHeaders", visibility=["read", "create", "update", "delete", "query"] + ) + """Custom headers to set in the request. HTTP allows repeated headers.""" + path: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Path to access on the HTTP server.""" + port: int = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Name or number of the port to access on the container. Number must be in the range 1 to 65535. + Name must be an IANA_SVC_NAME. Required.""" + scheme: Optional[Union[str, "_models.Scheme"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Scheme to use for connecting to the host. Defaults to HTTP. Known values are: \"HTTP\" and + \"HTTPS\".""" + + @overload + def __init__( + self, + *, + port: int, + host: Optional[str] = None, + http_headers: Optional[list["_models.SessionProbeHttpGetHttpHeadersItem"]] = None, + path: Optional[str] = None, + scheme: Optional[Union[str, "_models.Scheme"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SessionProbeHttpGetHttpHeadersItem(_Model): + """HTTPHeader describes a custom header to be used in HTTP probes. + + :ivar name: The header field name. Required. + :vartype name: str + :ivar value: The header field value. Required. + :vartype value: str + """ + + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The header field name. Required.""" + value: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The header field value. Required.""" + + @overload + def __init__( + self, + *, + name: str, + value: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SessionProbeTcpSocket(_Model): + """TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported. + + :ivar host: Optional: Host name to connect to, defaults to the pod IP. + :vartype host: str + :ivar port: Number or name of the port to access on the container. Number must be in the range + 1 to 65535. Name must be an IANA_SVC_NAME. Required. + :vartype port: int + """ + + host: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Optional: Host name to connect to, defaults to the pod IP.""" + port: int = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Number or name of the port to access on the container. Number must be in the range 1 to 65535. + Name must be an IANA_SVC_NAME. Required.""" + + @overload + def __init__( + self, + *, + port: int, + host: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SessionRegistryCredentials(_Model): + """Session pool private registry credentials. + + :ivar server: Container registry server. + :vartype server: str + :ivar username: Container registry username. + :vartype username: str + :ivar password_secret_ref: The name of the secret that contains the registry login password. + :vartype password_secret_ref: str + :ivar identity: A Managed Identity to use to authenticate with Azure Container Registry. For + user-assigned identities, use the full user-assigned identity Resource ID. For system-assigned + identities, use 'system'. + :vartype identity: str + """ + + server: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Container registry server.""" + username: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Container registry username.""" + password_secret_ref: Optional[str] = rest_field( + name="passwordSecretRef", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the secret that contains the registry login password.""" + identity: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A Managed Identity to use to authenticate with Azure Container Registry. For user-assigned + identities, use the full user-assigned identity Resource ID. For system-assigned identities, + use 'system'.""" + + @overload + def __init__( + self, + *, + server: Optional[str] = None, + username: Optional[str] = None, + password_secret_ref: Optional[str] = None, + identity: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SmbStorage(_Model): + """SMB storage properties. + + :ivar host: The host name or IP address of the SMB server. + :vartype host: str + :ivar share_name: The path to the SMB shared folder. + :vartype share_name: str + :ivar username: The user to log on to the SMB server. + :vartype username: str + :ivar domain: The domain name for the user. + :vartype domain: str + :ivar password: The password for the user. + :vartype password: str + :ivar access_mode: Access mode for storage. Known values are: "ReadOnly" and "ReadWrite". + :vartype access_mode: str or ~azure.mgmt.appcontainers.models.AccessMode + """ + + host: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The host name or IP address of the SMB server.""" + share_name: Optional[str] = rest_field(name="shareName", visibility=["read", "create", "update", "delete", "query"]) + """The path to the SMB shared folder.""" + username: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The user to log on to the SMB server.""" + domain: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The domain name for the user.""" + password: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The password for the user.""" + access_mode: Optional[Union[str, "_models.AccessMode"]] = rest_field( + name="accessMode", visibility=["read", "create", "update", "delete", "query"] + ) + """Access mode for storage. Known values are: \"ReadOnly\" and \"ReadWrite\".""" + + @overload + def __init__( + self, + *, + host: Optional[str] = None, + share_name: Optional[str] = None, + username: Optional[str] = None, + domain: Optional[str] = None, + password: Optional[str] = None, + access_mode: Optional[Union[str, "_models.AccessMode"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SourceControl(ProxyResource): + """Container App SourceControl. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar properties: SourceControl resource specific properties. + :vartype properties: ~azure.mgmt.appcontainers.models.SourceControlProperties + """ + + properties: Optional["_models.SourceControlProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """SourceControl resource specific properties.""" + + __flattened_items = ["operation_state", "repo_url", "branch", "github_action_configuration"] + + @overload + def __init__( + self, + *, + properties: Optional["_models.SourceControlProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class SourceControlProperties(_Model): + """SourceControl resource specific properties. + + :ivar operation_state: Current provisioning State of the operation. Known values are: + "InProgress", "Succeeded", "Failed", and "Canceled". + :vartype operation_state: str or ~azure.mgmt.appcontainers.models.SourceControlOperationState + :ivar repo_url: The repo url which will be integrated to ContainerApp. + :vartype repo_url: str + :ivar branch: The branch which will trigger the auto deployment. + :vartype branch: str + :ivar github_action_configuration: Container App Revision Template with all possible settings + and the defaults if user did not provide them. The defaults are populated as they were at the + creation time. + :vartype github_action_configuration: + ~azure.mgmt.appcontainers.models.GithubActionConfiguration + """ + + operation_state: Optional[Union[str, "_models.SourceControlOperationState"]] = rest_field( + name="operationState", visibility=["read"] + ) + """Current provisioning State of the operation. Known values are: \"InProgress\", \"Succeeded\", + \"Failed\", and \"Canceled\".""" + repo_url: Optional[str] = rest_field(name="repoUrl", visibility=["read", "create", "update", "delete", "query"]) + """The repo url which will be integrated to ContainerApp.""" + branch: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The branch which will trigger the auto deployment.""" + github_action_configuration: Optional["_models.GithubActionConfiguration"] = rest_field( + name="githubActionConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """Container App Revision Template with all possible settings and the defaults if user did not + provide them. The defaults are populated as they were at the creation time.""" + + @overload + def __init__( + self, + *, + repo_url: Optional[str] = None, + branch: Optional[str] = None, + github_action_configuration: Optional["_models.GithubActionConfiguration"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SpringBootAdminComponent(JavaComponentProperties, discriminator="SpringBootAdmin"): + """Spring Boot Admin properties. + + :ivar provisioning_state: Provisioning state of the Java Component. Known values are: + "Succeeded", "Failed", "Canceled", "Deleting", and "InProgress". + :vartype provisioning_state: str or + ~azure.mgmt.appcontainers.models.JavaComponentProvisioningState + :ivar configurations: List of Java Components configuration properties. + :vartype configurations: + list[~azure.mgmt.appcontainers.models.JavaComponentConfigurationProperty] + :ivar scale: Java component scaling configurations. + :vartype scale: ~azure.mgmt.appcontainers.models.JavaComponentPropertiesScale + :ivar service_binds: List of Java Components that are bound to the Java component. + :vartype service_binds: list[~azure.mgmt.appcontainers.models.JavaComponentServiceBind] + :ivar ingress: Java Component Ingress configurations. + :vartype ingress: ~azure.mgmt.appcontainers.models.JavaComponentIngress + :ivar component_type: Type of the Java Component. Required. SpringBootAdmin. + :vartype component_type: str or ~azure.mgmt.appcontainers.models.SPRING_BOOT_ADMIN + """ + + ingress: Optional["_models.JavaComponentIngress"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Java Component Ingress configurations.""" + component_type: Literal[JavaComponentType.SPRING_BOOT_ADMIN] = rest_discriminator(name="componentType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of the Java Component. Required. SpringBootAdmin.""" + + @overload + def __init__( + self, + *, + configurations: Optional[list["_models.JavaComponentConfigurationProperty"]] = None, + scale: Optional["_models.JavaComponentPropertiesScale"] = None, + service_binds: Optional[list["_models.JavaComponentServiceBind"]] = None, + ingress: Optional["_models.JavaComponentIngress"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.component_type = JavaComponentType.SPRING_BOOT_ADMIN # type: ignore + + +class SpringCloudConfigComponent(JavaComponentProperties, discriminator="SpringCloudConfig"): + """Spring Cloud Config properties. + + :ivar provisioning_state: Provisioning state of the Java Component. Known values are: + "Succeeded", "Failed", "Canceled", "Deleting", and "InProgress". + :vartype provisioning_state: str or + ~azure.mgmt.appcontainers.models.JavaComponentProvisioningState + :ivar configurations: List of Java Components configuration properties. + :vartype configurations: + list[~azure.mgmt.appcontainers.models.JavaComponentConfigurationProperty] + :ivar scale: Java component scaling configurations. + :vartype scale: ~azure.mgmt.appcontainers.models.JavaComponentPropertiesScale + :ivar service_binds: List of Java Components that are bound to the Java component. + :vartype service_binds: list[~azure.mgmt.appcontainers.models.JavaComponentServiceBind] + :ivar component_type: Type of the Java Component. Required. SpringCloudConfig. + :vartype component_type: str or ~azure.mgmt.appcontainers.models.SPRING_CLOUD_CONFIG + """ + + component_type: Literal[JavaComponentType.SPRING_CLOUD_CONFIG] = rest_discriminator(name="componentType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of the Java Component. Required. SpringCloudConfig.""" + + @overload + def __init__( + self, + *, + configurations: Optional[list["_models.JavaComponentConfigurationProperty"]] = None, + scale: Optional["_models.JavaComponentPropertiesScale"] = None, + service_binds: Optional[list["_models.JavaComponentServiceBind"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.component_type = JavaComponentType.SPRING_CLOUD_CONFIG # type: ignore + + +class SpringCloudEurekaComponent(JavaComponentProperties, discriminator="SpringCloudEureka"): + """Spring Cloud Eureka properties. + + :ivar provisioning_state: Provisioning state of the Java Component. Known values are: + "Succeeded", "Failed", "Canceled", "Deleting", and "InProgress". + :vartype provisioning_state: str or + ~azure.mgmt.appcontainers.models.JavaComponentProvisioningState + :ivar configurations: List of Java Components configuration properties. + :vartype configurations: + list[~azure.mgmt.appcontainers.models.JavaComponentConfigurationProperty] + :ivar scale: Java component scaling configurations. + :vartype scale: ~azure.mgmt.appcontainers.models.JavaComponentPropertiesScale + :ivar service_binds: List of Java Components that are bound to the Java component. + :vartype service_binds: list[~azure.mgmt.appcontainers.models.JavaComponentServiceBind] + :ivar ingress: Java Component Ingress configurations. + :vartype ingress: ~azure.mgmt.appcontainers.models.JavaComponentIngress + :ivar component_type: Type of the Java Component. Required. SpringCloudEureka. + :vartype component_type: str or ~azure.mgmt.appcontainers.models.SPRING_CLOUD_EUREKA + """ + + ingress: Optional["_models.JavaComponentIngress"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Java Component Ingress configurations.""" + component_type: Literal[JavaComponentType.SPRING_CLOUD_EUREKA] = rest_discriminator(name="componentType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of the Java Component. Required. SpringCloudEureka.""" + + @overload + def __init__( + self, + *, + configurations: Optional[list["_models.JavaComponentConfigurationProperty"]] = None, + scale: Optional["_models.JavaComponentPropertiesScale"] = None, + service_binds: Optional[list["_models.JavaComponentServiceBind"]] = None, + ingress: Optional["_models.JavaComponentIngress"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.component_type = JavaComponentType.SPRING_CLOUD_EUREKA # type: ignore + + +class SpringCloudGatewayComponent(JavaComponentProperties, discriminator="SpringCloudGateway"): + """Spring Cloud Gateway properties. + + :ivar provisioning_state: Provisioning state of the Java Component. Known values are: + "Succeeded", "Failed", "Canceled", "Deleting", and "InProgress". + :vartype provisioning_state: str or + ~azure.mgmt.appcontainers.models.JavaComponentProvisioningState + :ivar configurations: List of Java Components configuration properties. + :vartype configurations: + list[~azure.mgmt.appcontainers.models.JavaComponentConfigurationProperty] + :ivar scale: Java component scaling configurations. + :vartype scale: ~azure.mgmt.appcontainers.models.JavaComponentPropertiesScale + :ivar service_binds: List of Java Components that are bound to the Java component. + :vartype service_binds: list[~azure.mgmt.appcontainers.models.JavaComponentServiceBind] + :ivar ingress: Java Component Ingress configurations. + :vartype ingress: ~azure.mgmt.appcontainers.models.JavaComponentIngress + :ivar spring_cloud_gateway_routes: Gateway route definition. + :vartype spring_cloud_gateway_routes: list[~azure.mgmt.appcontainers.models.ScgRoute] + :ivar component_type: Type of the Java Component. Required. SpringCloudGateway. + :vartype component_type: str or ~azure.mgmt.appcontainers.models.SPRING_CLOUD_GATEWAY + """ + + ingress: Optional["_models.JavaComponentIngress"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Java Component Ingress configurations.""" + spring_cloud_gateway_routes: Optional[list["_models.ScgRoute"]] = rest_field( + name="springCloudGatewayRoutes", visibility=["read", "create", "update", "delete", "query"] + ) + """Gateway route definition.""" + component_type: Literal[JavaComponentType.SPRING_CLOUD_GATEWAY] = rest_discriminator(name="componentType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of the Java Component. Required. SpringCloudGateway.""" + + @overload + def __init__( + self, + *, + configurations: Optional[list["_models.JavaComponentConfigurationProperty"]] = None, + scale: Optional["_models.JavaComponentPropertiesScale"] = None, + service_binds: Optional[list["_models.JavaComponentServiceBind"]] = None, + ingress: Optional["_models.JavaComponentIngress"] = None, + spring_cloud_gateway_routes: Optional[list["_models.ScgRoute"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.component_type = JavaComponentType.SPRING_CLOUD_GATEWAY # type: ignore + + +class SystemData(_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.appcontainers.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.appcontainers.models.CreatedByType + :ivar last_modified_at: The timestamp of resource last modification (UTC). + :vartype last_modified_at: ~datetime.datetime + """ + + created_by: Optional[str] = rest_field(name="createdBy", visibility=["read", "create", "update", "delete", "query"]) + """The identity that created the resource.""" + created_by_type: Optional[Union[str, "_models.CreatedByType"]] = rest_field( + name="createdByType", visibility=["read", "create", "update", "delete", "query"] + ) + """The type of identity that created the resource. Known values are: \"User\", \"Application\", + \"ManagedIdentity\", and \"Key\".""" + created_at: Optional[datetime.datetime] = rest_field( + name="createdAt", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """The timestamp of resource creation (UTC).""" + last_modified_by: Optional[str] = rest_field( + name="lastModifiedBy", visibility=["read", "create", "update", "delete", "query"] + ) + """The identity that last modified the resource.""" + last_modified_by_type: Optional[Union[str, "_models.CreatedByType"]] = rest_field( + name="lastModifiedByType", visibility=["read", "create", "update", "delete", "query"] + ) + """The type of identity that last modified the resource. Known values are: \"User\", + \"Application\", \"ManagedIdentity\", and \"Key\".""" + last_modified_at: Optional[datetime.datetime] = rest_field( + name="lastModifiedAt", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """The timestamp of resource last modification (UTC).""" + + @overload + 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, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class TcpConnectionPool(_Model): + """Defines parameters for tcp connection pooling. + + :ivar max_connections: Maximum number of tcp connections allowed. + :vartype max_connections: int + """ + + max_connections: Optional[int] = rest_field( + name="maxConnections", visibility=["read", "create", "update", "delete", "query"] + ) + """Maximum number of tcp connections allowed.""" + + @overload + def __init__( + self, + *, + max_connections: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class TcpRetryPolicy(_Model): + """Policy that defines tcp request retry conditions. + + :ivar max_connect_attempts: Maximum number of attempts to connect to the tcp service. + :vartype max_connect_attempts: int + """ + + max_connect_attempts: Optional[int] = rest_field( + name="maxConnectAttempts", visibility=["read", "create", "update", "delete", "query"] + ) + """Maximum number of attempts to connect to the tcp service.""" + + @overload + def __init__( + self, + *, + max_connect_attempts: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class TcpScaleRule(_Model): + """Container App container 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.appcontainers.models.ScaleRuleAuth] + :ivar identity: The resource ID of a user-assigned managed identity that is assigned to the + Container App, or 'system' for system-assigned identity. + :vartype identity: str + """ + + metadata: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Metadata properties to describe tcp scale rule.""" + auth: Optional[list["_models.ScaleRuleAuth"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Authentication secrets for the tcp scale rule.""" + identity: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The resource ID of a user-assigned managed identity that is assigned to the Container App, or + 'system' for system-assigned identity.""" + + @overload + def __init__( + self, + *, + metadata: Optional[dict[str, str]] = None, + auth: Optional[list["_models.ScaleRuleAuth"]] = None, + identity: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Template(_Model): + """Container App versioned application definition. Defines the desired state of an immutable + revision. Any changes to this section Will result in a new revision being created. + + :ivar revision_suffix: User friendly suffix that is appended to the revision name. + :vartype revision_suffix: str + :ivar termination_grace_period_seconds: Optional duration in seconds the Container App Instance + needs to terminate gracefully. 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. Set this value longer than the expected cleanup time + for your process. Defaults to 30 seconds. + :vartype termination_grace_period_seconds: int + :ivar init_containers: List of specialized containers that run before app containers. + :vartype init_containers: list[~azure.mgmt.appcontainers.models.InitContainer] + :ivar containers: List of container definitions for the Container App. + :vartype containers: list[~azure.mgmt.appcontainers.models.Container] + :ivar scale: Scaling properties for the Container App. + :vartype scale: ~azure.mgmt.appcontainers.models.Scale + :ivar volumes: List of volume definitions for the Container App. + :vartype volumes: list[~azure.mgmt.appcontainers.models.Volume] + :ivar service_binds: List of container app services bound to the app. + :vartype service_binds: list[~azure.mgmt.appcontainers.models.ServiceBind] + """ + + revision_suffix: Optional[str] = rest_field( + name="revisionSuffix", visibility=["read", "create", "update", "delete", "query"] + ) + """User friendly suffix that is appended to the revision name.""" + termination_grace_period_seconds: Optional[int] = rest_field( + name="terminationGracePeriodSeconds", visibility=["read", "create", "update", "delete", "query"] + ) + """Optional duration in seconds the Container App Instance needs to terminate gracefully. 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. + Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.""" + init_containers: Optional[list["_models.InitContainer"]] = rest_field( + name="initContainers", visibility=["read", "create", "update", "delete", "query"] + ) + """List of specialized containers that run before app containers.""" + containers: Optional[list["_models.Container"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of container definitions for the Container App.""" + scale: Optional["_models.Scale"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Scaling properties for the Container App.""" + volumes: Optional[list["_models.Volume"]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """List of volume definitions for the Container App.""" + service_binds: Optional[list["_models.ServiceBind"]] = rest_field( + name="serviceBinds", visibility=["read", "create", "update", "delete", "query"] + ) + """List of container app services bound to the app.""" + + @overload + def __init__( + self, + *, + revision_suffix: Optional[str] = None, + termination_grace_period_seconds: Optional[int] = None, + init_containers: Optional[list["_models.InitContainer"]] = None, + containers: Optional[list["_models.Container"]] = None, + scale: Optional["_models.Scale"] = None, + volumes: Optional[list["_models.Volume"]] = None, + service_binds: Optional[list["_models.ServiceBind"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class TemplatePoolStatus(_Model): + """The status of pods in the pool of this template. + + :ivar expected_count: The expected count of pods in this pool. + :vartype expected_count: int + :ivar ready_count: The ready count of pods in this pool. + :vartype ready_count: int + :ivar pending_count: The pending count of pods in this pool. + :vartype pending_count: int + :ivar image_pull_fail_count: The image pull fail count of pods in this pool. + :vartype image_pull_fail_count: int + :ivar crash_count: The crash count of pods in this pool. + :vartype crash_count: int + :ivar allocated_count: The allocated count of pods in this pool. + :vartype allocated_count: int + """ + + expected_count: Optional[int] = rest_field( + name="expectedCount", visibility=["read", "create", "update", "delete", "query"] + ) + """The expected count of pods in this pool.""" + ready_count: Optional[int] = rest_field( + name="readyCount", visibility=["read", "create", "update", "delete", "query"] + ) + """The ready count of pods in this pool.""" + pending_count: Optional[int] = rest_field( + name="pendingCount", visibility=["read", "create", "update", "delete", "query"] + ) + """The pending count of pods in this pool.""" + image_pull_fail_count: Optional[int] = rest_field( + name="imagePullFailCount", visibility=["read", "create", "update", "delete", "query"] + ) + """The image pull fail count of pods in this pool.""" + crash_count: Optional[int] = rest_field( + name="crashCount", visibility=["read", "create", "update", "delete", "query"] + ) + """The crash count of pods in this pool.""" + allocated_count: Optional[int] = rest_field( + name="allocatedCount", visibility=["read", "create", "update", "delete", "query"] + ) + """The allocated count of pods in this pool.""" + + @overload + def __init__( + self, + *, + expected_count: Optional[int] = None, + ready_count: Optional[int] = None, + pending_count: Optional[int] = None, + image_pull_fail_count: Optional[int] = None, + crash_count: Optional[int] = None, + allocated_count: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class TemplateStatus(_Model): + """The status of the session pool template. + + :ivar details: The detailed status of this template. + :vartype details: str + :ivar created_time: The creation time of this template. + :vartype created_time: ~datetime.datetime + :ivar status: The status of this template. + :vartype status: ~azure.mgmt.appcontainers.models.TemplatePoolStatus + :ivar containers: List of container definitions for the sessions of this template. + :vartype containers: list[~azure.mgmt.appcontainers.models.SessionContainer] + :ivar ingress: Session pool ingress configuration of this template. + :vartype ingress: ~azure.mgmt.appcontainers.models.SessionIngress + """ + + details: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The detailed status of this template.""" + created_time: Optional[datetime.datetime] = rest_field( + name="createdTime", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """The creation time of this template.""" + status: Optional["_models.TemplatePoolStatus"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The status of this template.""" + containers: Optional[list["_models.SessionContainer"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of container definitions for the sessions of this template.""" + ingress: Optional["_models.SessionIngress"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Session pool ingress configuration of this template.""" + + @overload + def __init__( + self, + *, + details: Optional[str] = None, + created_time: Optional[datetime.datetime] = None, + status: Optional["_models.TemplatePoolStatus"] = None, + containers: Optional[list["_models.SessionContainer"]] = None, + ingress: Optional["_models.SessionIngress"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class TemplateUpdateStatus(_Model): + """TemplateUpdateStatus. + + :ivar active_template: The status of the current active template. + :vartype active_template: ~azure.mgmt.appcontainers.models.TemplateStatus + :ivar desired_template: The status of the desired template during session pool update. + :vartype desired_template: ~azure.mgmt.appcontainers.models.TemplateStatus + """ + + active_template: Optional["_models.TemplateStatus"] = rest_field( + name="activeTemplate", visibility=["read", "create", "update", "delete", "query"] + ) + """The status of the current active template.""" + desired_template: Optional["_models.TemplateStatus"] = rest_field( + name="desiredTemplate", visibility=["read", "create", "update", "delete", "query"] + ) + """The status of the desired template during session pool update.""" + + @overload + def __init__( + self, + *, + active_template: Optional["_models.TemplateStatus"] = None, + desired_template: Optional["_models.TemplateStatus"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class TimeoutPolicy(_Model): + """Policy to set request timeouts. + + :ivar response_timeout_in_seconds: Timeout, in seconds, for a request to respond. + :vartype response_timeout_in_seconds: int + :ivar connection_timeout_in_seconds: Timeout, in seconds, for a request to initiate a + connection. + :vartype connection_timeout_in_seconds: int + """ + + response_timeout_in_seconds: Optional[int] = rest_field( + name="responseTimeoutInSeconds", visibility=["read", "create", "update", "delete", "query"] + ) + """Timeout, in seconds, for a request to respond.""" + connection_timeout_in_seconds: Optional[int] = rest_field( + name="connectionTimeoutInSeconds", visibility=["read", "create", "update", "delete", "query"] + ) + """Timeout, in seconds, for a request to initiate a connection.""" + + @overload + def __init__( + self, + *, + response_timeout_in_seconds: Optional[int] = None, + connection_timeout_in_seconds: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class TokenStore(_Model): + """The configuration settings of the token store. + + :ivar enabled: true to durably store platform-specific security tokens that are + obtained during login flows; otherwise, false. The default is false. + :vartype enabled: bool + :ivar token_refresh_extension_hours: The number of hours after session token expiration that a + session token can be used to call the token refresh API. The default is 72 hours. + :vartype token_refresh_extension_hours: float + :ivar azure_blob_storage: The configuration settings of the storage of the tokens if blob + storage is used. + :vartype azure_blob_storage: ~azure.mgmt.appcontainers.models.BlobStorageTokenStore + """ + + enabled: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """true to durably store platform-specific security tokens that are obtained during + login flows; otherwise, false. The default is false.""" + token_refresh_extension_hours: Optional[float] = rest_field( + name="tokenRefreshExtensionHours", visibility=["read", "create", "update", "delete", "query"] + ) + """The number of hours after session token expiration that a session token can be used to call the + token refresh API. The default is 72 hours.""" + azure_blob_storage: Optional["_models.BlobStorageTokenStore"] = rest_field( + name="azureBlobStorage", visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration settings of the storage of the tokens if blob storage is used.""" + + @overload + def __init__( + self, + *, + enabled: Optional[bool] = None, + token_refresh_extension_hours: Optional[float] = None, + azure_blob_storage: Optional["_models.BlobStorageTokenStore"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class TracesConfiguration(_Model): + """Configuration of Open Telemetry traces. + + :ivar include_dapr: Boolean indicating if including dapr traces. + :vartype include_dapr: bool + :ivar destinations: Open telemetry traces destinations. + :vartype destinations: list[str] + """ + + include_dapr: Optional[bool] = rest_field( + name="includeDapr", visibility=["read", "create", "update", "delete", "query"] + ) + """Boolean indicating if including dapr traces.""" + destinations: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Open telemetry traces destinations.""" + + @overload + def __init__( + self, + *, + include_dapr: Optional[bool] = None, + destinations: Optional[list[str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class TrafficWeight(_Model): + """Traffic weight assigned to a revision. + + :ivar revision_name: Name of a revision. + :vartype revision_name: str + :ivar weight: Traffic weight assigned to a revision. + :vartype weight: int + :ivar latest_revision: Indicates that the traffic weight belongs to a latest stable revision. + :vartype latest_revision: bool + :ivar label: Associates a traffic label with a revision. + :vartype label: str + """ + + revision_name: Optional[str] = rest_field( + name="revisionName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of a revision.""" + weight: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Traffic weight assigned to a revision.""" + latest_revision: Optional[bool] = rest_field( + name="latestRevision", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates that the traffic weight belongs to a latest stable revision.""" + label: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Associates a traffic label with a revision.""" + + @overload + def __init__( + self, + *, + revision_name: Optional[str] = None, + weight: Optional[int] = None, + latest_revision: Optional[bool] = None, + label: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Twitter(_Model): + """The configuration settings of the Twitter provider. + + :ivar enabled: false if the Twitter provider should not be enabled despite the set + registration; otherwise, true. + :vartype enabled: bool + :ivar registration: The configuration settings of the app registration for the Twitter + provider. + :vartype registration: ~azure.mgmt.appcontainers.models.TwitterRegistration + """ + + enabled: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """false if the Twitter provider should not be enabled despite the set registration; + otherwise, true.""" + registration: Optional["_models.TwitterRegistration"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration settings of the app registration for the Twitter provider.""" + + @overload + def __init__( + self, + *, + enabled: Optional[bool] = None, + registration: Optional["_models.TwitterRegistration"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class TwitterRegistration(_Model): + """The configuration settings of the app registration for the Twitter provider. + + :ivar consumer_key: The OAuth 1.0a consumer key of the Twitter application used for sign-in. + This setting is required for enabling Twitter Sign-In. Twitter Sign-In documentation: + `https://dev.twitter.com/web/sign-in `_. + :vartype consumer_key: str + :ivar consumer_secret_setting_name: The app setting name that contains the OAuth 1.0a consumer + secret of the Twitter application used for sign-in. + :vartype consumer_secret_setting_name: str + """ + + consumer_key: Optional[str] = rest_field( + name="consumerKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The OAuth 1.0a consumer key of the Twitter application used for sign-in. This setting is + required for enabling Twitter Sign-In. Twitter Sign-In documentation: + `https://dev.twitter.com/web/sign-in `_.""" + consumer_secret_setting_name: Optional[str] = rest_field( + name="consumerSecretSettingName", visibility=["read", "create", "update", "delete", "query"] + ) + """The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application + used for sign-in.""" + + @overload + def __init__( + self, + *, + consumer_key: Optional[str] = None, + consumer_secret_setting_name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Usage(_Model): + """Describes Compute Resource Usage. + + :ivar unit: An enum describing the unit of usage measurement. Required. Default value is + "Count". + :vartype unit: str + :ivar current_value: The current usage of the resource. Required. + :vartype current_value: float + :ivar limit: The maximum permitted usage of the resource. Required. + :vartype limit: float + :ivar name: The name of the type of usage. Required. + :vartype name: ~azure.mgmt.appcontainers.models.UsageName + """ + + unit: Literal["Count"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """An enum describing the unit of usage measurement. Required. Default value is \"Count\".""" + current_value: float = rest_field(name="currentValue", visibility=["read", "create", "update", "delete", "query"]) + """The current usage of the resource. Required.""" + limit: float = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The maximum permitted usage of the resource. Required.""" + name: "_models.UsageName" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the type of usage. Required.""" + + @overload + def __init__( + self, + *, + current_value: float, + limit: float, + name: "_models.UsageName", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.unit: Literal["Count"] = "Count" + + +class UsageName(_Model): + """The Usage Names. + + :ivar value: The name of the resource. + :vartype value: str + :ivar localized_value: The localized name of the resource. + :vartype localized_value: str + """ + + value: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the resource.""" + localized_value: Optional[str] = rest_field( + name="localizedValue", visibility=["read", "create", "update", "delete", "query"] + ) + """The localized name of the resource.""" + + @overload + def __init__( + self, + *, + value: Optional[str] = None, + localized_value: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class UserAssignedIdentity(_Model): + """User assigned identity properties. + + :ivar principal_id: The principal ID of the assigned identity. + :vartype principal_id: str + :ivar client_id: The client ID of the assigned identity. + :vartype client_id: str + """ + + principal_id: Optional[str] = rest_field(name="principalId", visibility=["read"]) + """The principal ID of the assigned identity.""" + client_id: Optional[str] = rest_field(name="clientId", visibility=["read"]) + """The client ID of the assigned identity.""" + + +class VnetConfiguration(_Model): + """Configuration properties for apps environment to join a Virtual Network. + + :ivar internal: Boolean indicating the environment only has an internal load balancer. These + environments do not have a public static IP resource. They must provide infrastructureSubnetId + if enabling this property. + :vartype internal: bool + :ivar infrastructure_subnet_id: Resource ID of a subnet for infrastructure components. Must not + overlap with any other provided IP ranges. + :vartype infrastructure_subnet_id: str + :ivar docker_bridge_cidr: CIDR notation IP range assigned to the Docker bridge, network. Must + not overlap with any other provided IP ranges. + :vartype docker_bridge_cidr: str + :ivar platform_reserved_cidr: IP range in CIDR notation that can be reserved for environment + infrastructure IP addresses. Must not overlap with any other provided IP ranges. + :vartype platform_reserved_cidr: str + :ivar platform_reserved_dns_ip: An IP address from the IP range defined by platformReservedCidr + that will be reserved for the internal DNS server. + :vartype platform_reserved_dns_ip: str + """ + + internal: Optional[bool] = rest_field(visibility=["read", "create"]) + """Boolean indicating the environment only has an internal load balancer. These environments do + not have a public static IP resource. They must provide infrastructureSubnetId if enabling this + property.""" + infrastructure_subnet_id: Optional[str] = rest_field(name="infrastructureSubnetId", visibility=["read", "create"]) + """Resource ID of a subnet for infrastructure components. Must not overlap with any other provided + IP ranges.""" + docker_bridge_cidr: Optional[str] = rest_field(name="dockerBridgeCidr", visibility=["read", "create"]) + """CIDR notation IP range assigned to the Docker bridge, network. Must not overlap with any other + provided IP ranges.""" + platform_reserved_cidr: Optional[str] = rest_field(name="platformReservedCidr", visibility=["read", "create"]) + """IP range in CIDR notation that can be reserved for environment infrastructure IP addresses. + Must not overlap with any other provided IP ranges.""" + platform_reserved_dns_ip: Optional[str] = rest_field(name="platformReservedDnsIP", visibility=["read", "create"]) + """An IP address from the IP range defined by platformReservedCidr that will be reserved for the + internal DNS server.""" + + @overload + def __init__( + self, + *, + internal: Optional[bool] = None, + infrastructure_subnet_id: Optional[str] = None, + docker_bridge_cidr: Optional[str] = None, + platform_reserved_cidr: Optional[str] = None, + platform_reserved_dns_ip: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Volume(_Model): + """Volume definitions for the Container App. + + :ivar name: Volume name. + :vartype name: str + :ivar storage_type: Storage type for the volume. If not provided, use EmptyDir. Known values + are: "AzureFile", "EmptyDir", "Secret", "NfsAzureFile", and "Smb". + :vartype storage_type: str or ~azure.mgmt.appcontainers.models.StorageType + :ivar storage_name: Name of storage resource. No need to provide for EmptyDir and Secret. + :vartype storage_name: str + :ivar secrets: List of secrets to be added in volume. If no secrets are provided, all secrets + in collection will be added to volume. + :vartype secrets: list[~azure.mgmt.appcontainers.models.SecretVolumeItem] + :ivar mount_options: Mount options used while mounting the Azure file share or NFS Azure file + share. Must be a comma-separated string. + :vartype mount_options: str + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Volume name.""" + storage_type: Optional[Union[str, "_models.StorageType"]] = rest_field( + name="storageType", visibility=["read", "create", "update", "delete", "query"] + ) + """Storage type for the volume. If not provided, use EmptyDir. Known values are: \"AzureFile\", + \"EmptyDir\", \"Secret\", \"NfsAzureFile\", and \"Smb\".""" + storage_name: Optional[str] = rest_field( + name="storageName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of storage resource. No need to provide for EmptyDir and Secret.""" + secrets: Optional[list["_models.SecretVolumeItem"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of secrets to be added in volume. If no secrets are provided, all secrets in collection + will be added to volume.""" + mount_options: Optional[str] = rest_field( + name="mountOptions", visibility=["read", "create", "update", "delete", "query"] + ) + """Mount options used while mounting the Azure file share or NFS Azure file share. Must be a + comma-separated string.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + storage_type: Optional[Union[str, "_models.StorageType"]] = None, + storage_name: Optional[str] = None, + secrets: Optional[list["_models.SecretVolumeItem"]] = None, + mount_options: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class VolumeMount(_Model): + """Volume mount for the Container App. + + :ivar volume_name: This must match the Name of a Volume. + :vartype volume_name: str + :ivar mount_path: Path within the container at which the volume should be mounted.Must not + contain ':'. + :vartype mount_path: str + :ivar sub_path: Path within the volume from which the container's volume should be mounted. + Defaults to "" (volume's root). + :vartype sub_path: str + """ + + volume_name: Optional[str] = rest_field( + name="volumeName", visibility=["read", "create", "update", "delete", "query"] + ) + """This must match the Name of a Volume.""" + mount_path: Optional[str] = rest_field(name="mountPath", visibility=["read", "create", "update", "delete", "query"]) + """Path within the container at which the volume should be mounted.Must not contain ':'.""" + sub_path: Optional[str] = rest_field(name="subPath", visibility=["read", "create", "update", "delete", "query"]) + """Path within the volume from which the container's volume should be mounted. Defaults to \"\" + (volume's root).""" + + @overload + def __init__( + self, + *, + volume_name: Optional[str] = None, + mount_path: Optional[str] = None, + sub_path: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class WorkflowArtifacts(_Model): + """The workflow filter. + + :ivar app_settings: Application settings of the workflow. + :vartype app_settings: any + :ivar files: Files of the app. + :vartype files: any + :ivar files_to_delete: Files of the app to delete. + :vartype files_to_delete: list[str] + """ + + app_settings: Optional[Any] = rest_field( + name="appSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Application settings of the workflow.""" + files: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Files of the app.""" + files_to_delete: Optional[list[str]] = rest_field( + name="filesToDelete", visibility=["read", "create", "update", "delete", "query"] + ) + """Files of the app to delete.""" + + @overload + def __init__( + self, + *, + app_settings: Optional[Any] = None, + files: Optional[Any] = None, + files_to_delete: Optional[list[str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class WorkflowEnvelope(ProxyResource): + """Schema for the workflow object. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar properties: Additional workflow properties. + :vartype properties: ~azure.mgmt.appcontainers.models.WorkflowEnvelopeProperties + :ivar kind: Gets the logic app hybrid workflow kind. Known values are: "Stateful", "Stateless", + and "Agentic". + :vartype kind: str or ~azure.mgmt.appcontainers.models.WorkflowKind + """ + + properties: Optional["_models.WorkflowEnvelopeProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Additional workflow properties.""" + kind: Optional[Union[str, "_models.WorkflowKind"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Gets the logic app hybrid workflow kind. Known values are: \"Stateful\", \"Stateless\", and + \"Agentic\".""" + + @overload + def __init__( + self, + *, + properties: Optional["_models.WorkflowEnvelopeProperties"] = None, + kind: Optional[Union[str, "_models.WorkflowKind"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class WorkflowEnvelopeProperties(_Model): + """Additional workflow properties. + + :ivar files: Gets or sets the files. + :vartype files: any + :ivar flow_state: Gets or sets the state of the workflow. Known values are: "NotSpecified", + "Completed", "Enabled", "Disabled", "Deleted", and "Suspended". + :vartype flow_state: str or ~azure.mgmt.appcontainers.models.WorkflowState + :ivar health: Gets or sets workflow health. + :vartype health: ~azure.mgmt.appcontainers.models.WorkflowHealth + """ + + files: Optional[Any] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Gets or sets the files.""" + flow_state: Optional[Union[str, "_models.WorkflowState"]] = rest_field( + name="flowState", visibility=["read", "create", "update", "delete", "query"] + ) + """Gets or sets the state of the workflow. Known values are: \"NotSpecified\", \"Completed\", + \"Enabled\", \"Disabled\", \"Deleted\", and \"Suspended\".""" + health: Optional["_models.WorkflowHealth"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Gets or sets workflow health.""" + + @overload + def __init__( + self, + *, + files: Optional[Any] = None, + flow_state: Optional[Union[str, "_models.WorkflowState"]] = None, + health: Optional["_models.WorkflowHealth"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class WorkflowHealth(_Model): + """Represents the workflow health. + + :ivar state: Gets or sets the workflow health state. Required. Known values are: + "NotSpecified", "Healthy", "Unhealthy", and "Unknown". + :vartype state: str or ~azure.mgmt.appcontainers.models.WorkflowHealthState + :ivar error: Gets or sets the workflow error. + :vartype error: ~azure.mgmt.appcontainers.models.ErrorEntity + """ + + state: Union[str, "_models.WorkflowHealthState"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Gets or sets the workflow health state. Required. Known values are: \"NotSpecified\", + \"Healthy\", \"Unhealthy\", and \"Unknown\".""" + error: Optional["_models.ErrorEntity"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Gets or sets the workflow error.""" + + @overload + def __init__( + self, + *, + state: Union[str, "_models.WorkflowHealthState"], + error: Optional["_models.ErrorEntity"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class WorkloadProfile(_Model): + """Workload profile to scope container app execution. + + :ivar name: Workload profile type for the workloads to run on. Required. + :vartype name: str + :ivar enable_fips: Whether to use a FIPS-enabled OS. Supported only for dedicated workload + profiles. + :vartype enable_fips: bool + :ivar workload_profile_type: Workload profile type for the workloads to run on. Required. + :vartype workload_profile_type: str + :ivar minimum_count: The minimum capacity. + :vartype minimum_count: int + :ivar maximum_count: The maximum capacity. + :vartype maximum_count: int + """ + + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Workload profile type for the workloads to run on. Required.""" + enable_fips: Optional[bool] = rest_field( + name="enableFips", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether to use a FIPS-enabled OS. Supported only for dedicated workload profiles.""" + workload_profile_type: str = rest_field( + name="workloadProfileType", visibility=["read", "create", "update", "delete", "query"] + ) + """Workload profile type for the workloads to run on. Required.""" + minimum_count: Optional[int] = rest_field( + name="minimumCount", visibility=["read", "create", "update", "delete", "query"] + ) + """The minimum capacity.""" + maximum_count: Optional[int] = rest_field( + name="maximumCount", visibility=["read", "create", "update", "delete", "query"] + ) + """The maximum capacity.""" + + @overload + def __init__( + self, + *, + name: str, + workload_profile_type: str, + enable_fips: Optional[bool] = None, + minimum_count: Optional[int] = None, + maximum_count: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class WorkloadProfileStates(ProxyResource): + """Collection of all the workload Profile States for a Managed Environment.. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData + :ivar properties: Workload Profile resource specific properties. + :vartype properties: ~azure.mgmt.appcontainers.models.WorkloadProfileStatesProperties + """ + + properties: Optional["_models.WorkloadProfileStatesProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Workload Profile resource specific properties.""" + + @overload + def __init__( + self, + *, + properties: Optional["_models.WorkloadProfileStatesProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class WorkloadProfileStatesProperties(_Model): + """Workload Profile resource specific properties. + + :ivar minimum_count: Minimum count of instances. + :vartype minimum_count: int + :ivar maximum_count: Maximum count of nodes. + :vartype maximum_count: int + :ivar current_count: Current count of nodes. + :vartype current_count: int + """ + + minimum_count: Optional[int] = rest_field( + name="minimumCount", visibility=["read", "create", "update", "delete", "query"] + ) + """Minimum count of instances.""" + maximum_count: Optional[int] = rest_field( + name="maximumCount", visibility=["read", "create", "update", "delete", "query"] + ) + """Maximum count of nodes.""" + current_count: Optional[int] = rest_field( + name="currentCount", visibility=["read", "create", "update", "delete", "query"] + ) + """Current count of nodes.""" + + @overload + def __init__( + self, + *, + minimum_count: Optional[int] = None, + maximum_count: Optional[int] = None, + current_count: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_models_py3.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_models_py3.py deleted file mode 100644 index 6091c1f3fb11..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_models_py3.py +++ /dev/null @@ -1,11280 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression,too-many-lines -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from collections.abc import MutableMapping -import datetime -from typing import Any, Literal, Optional, TYPE_CHECKING, Union - -from .._utils import serialization as _serialization - -if TYPE_CHECKING: - from .. import models as _models -JSON = MutableMapping[str, Any] - - -class AllowedAudiencesValidation(_serialization.Model): - """The configuration settings of the Allowed Audiences validation flow. - - :ivar allowed_audiences: The configuration settings of the allowed list of audiences from which - to validate the JWT token. - :vartype allowed_audiences: list[str] - """ - - _attribute_map = { - "allowed_audiences": {"key": "allowedAudiences", "type": "[str]"}, - } - - def __init__(self, *, allowed_audiences: Optional[list[str]] = None, **kwargs: Any) -> None: - """ - :keyword allowed_audiences: The configuration settings of the allowed list of audiences from - which to validate the JWT token. - :paramtype allowed_audiences: list[str] - """ - super().__init__(**kwargs) - self.allowed_audiences = allowed_audiences - - -class AllowedPrincipals(_serialization.Model): - """The configuration settings of the Azure Active Directory allowed principals. - - :ivar groups: The list of the allowed groups. - :vartype groups: list[str] - :ivar identities: The list of the allowed identities. - :vartype identities: list[str] - """ - - _attribute_map = { - "groups": {"key": "groups", "type": "[str]"}, - "identities": {"key": "identities", "type": "[str]"}, - } - - def __init__( - self, *, groups: Optional[list[str]] = None, identities: Optional[list[str]] = None, **kwargs: Any - ) -> None: - """ - :keyword groups: The list of the allowed groups. - :paramtype groups: list[str] - :keyword identities: The list of the allowed identities. - :paramtype identities: list[str] - """ - super().__init__(**kwargs) - self.groups = groups - self.identities = identities - - -class Apple(_serialization.Model): - """The configuration settings of the Apple provider. - - :ivar enabled: :code:`false` if the Apple provider should not be enabled despite - the set registration; otherwise, :code:`true`. - :vartype enabled: bool - :ivar registration: The configuration settings of the Apple registration. - :vartype registration: ~azure.mgmt.appcontainers.models.AppleRegistration - :ivar login: The configuration settings of the login flow. - :vartype login: ~azure.mgmt.appcontainers.models.LoginScopes - """ - - _attribute_map = { - "enabled": {"key": "enabled", "type": "bool"}, - "registration": {"key": "registration", "type": "AppleRegistration"}, - "login": {"key": "login", "type": "LoginScopes"}, - } - - def __init__( - self, - *, - enabled: Optional[bool] = None, - registration: Optional["_models.AppleRegistration"] = None, - login: Optional["_models.LoginScopes"] = None, - **kwargs: Any - ) -> None: - """ - :keyword enabled: :code:`false` if the Apple provider should not be enabled - despite the set registration; otherwise, :code:`true`. - :paramtype enabled: bool - :keyword registration: The configuration settings of the Apple registration. - :paramtype registration: ~azure.mgmt.appcontainers.models.AppleRegistration - :keyword login: The configuration settings of the login flow. - :paramtype login: ~azure.mgmt.appcontainers.models.LoginScopes - """ - super().__init__(**kwargs) - self.enabled = enabled - self.registration = registration - self.login = login - - -class AppleRegistration(_serialization.Model): - """The configuration settings of the registration for the Apple provider. - - :ivar client_id: The Client ID of the app used for login. - :vartype client_id: str - :ivar client_secret_setting_name: The app setting name that contains the client secret. - :vartype client_secret_setting_name: str - """ - - _attribute_map = { - "client_id": {"key": "clientId", "type": "str"}, - "client_secret_setting_name": {"key": "clientSecretSettingName", "type": "str"}, - } - - def __init__( - self, *, client_id: Optional[str] = None, client_secret_setting_name: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword client_id: The Client ID of the app used for login. - :paramtype client_id: str - :keyword client_secret_setting_name: The app setting name that contains the client secret. - :paramtype client_secret_setting_name: str - """ - super().__init__(**kwargs) - self.client_id = client_id - self.client_secret_setting_name = client_secret_setting_name - - -class AppLogsConfiguration(_serialization.Model): - """Configuration of application logs. - - :ivar destination: Logs destination, can be 'log-analytics', 'azure-monitor' or 'none'. - :vartype destination: str - :ivar log_analytics_configuration: Log Analytics configuration, must only be provided when - destination is configured as 'log-analytics'. - :vartype log_analytics_configuration: - ~azure.mgmt.appcontainers.models.LogAnalyticsConfiguration - """ - - _attribute_map = { - "destination": {"key": "destination", "type": "str"}, - "log_analytics_configuration": {"key": "logAnalyticsConfiguration", "type": "LogAnalyticsConfiguration"}, - } - - def __init__( - self, - *, - destination: Optional[str] = None, - log_analytics_configuration: Optional["_models.LogAnalyticsConfiguration"] = None, - **kwargs: Any - ) -> None: - """ - :keyword destination: Logs destination, can be 'log-analytics', 'azure-monitor' or 'none'. - :paramtype destination: str - :keyword log_analytics_configuration: Log Analytics configuration, must only be provided when - destination is configured as 'log-analytics'. - :paramtype log_analytics_configuration: - ~azure.mgmt.appcontainers.models.LogAnalyticsConfiguration - """ - super().__init__(**kwargs) - self.destination = destination - self.log_analytics_configuration = log_analytics_configuration - - -class AppRegistration(_serialization.Model): - """The configuration settings of the app registration for providers that have app ids and app - secrets. - - :ivar app_id: The App ID of the app used for login. - :vartype app_id: str - :ivar app_secret_setting_name: The app setting name that contains the app secret. - :vartype app_secret_setting_name: str - """ - - _attribute_map = { - "app_id": {"key": "appId", "type": "str"}, - "app_secret_setting_name": {"key": "appSecretSettingName", "type": "str"}, - } - - def __init__( - self, *, app_id: Optional[str] = None, app_secret_setting_name: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword app_id: The App ID of the app used for login. - :paramtype app_id: str - :keyword app_secret_setting_name: The app setting name that contains the app secret. - :paramtype app_secret_setting_name: str - """ - super().__init__(**kwargs) - self.app_id = app_id - self.app_secret_setting_name = app_secret_setting_name - - -class Resource(_serialization.Model): - """Common fields that are returned in the response for all Azure Resource Manager 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. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.appcontainers.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: Optional[str] = None - self.name: Optional[str] = None - self.type: Optional[str] = None - self.system_data: Optional["_models.SystemData"] = None - - -class ProxyResource(Resource): - """The resource model definition for a Azure Resource Manager proxy resource. It will not have - tags and a location. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData - """ - - -class AuthConfig(ProxyResource): - """Configuration settings for the Azure ContainerApp Service Authentication / Authorization - feature. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData - :ivar platform: The configuration settings of the platform of ContainerApp Service - Authentication/Authorization. - :vartype platform: ~azure.mgmt.appcontainers.models.AuthPlatform - :ivar global_validation: The configuration settings that determines the validation flow of - users using Service Authentication/Authorization. - :vartype global_validation: ~azure.mgmt.appcontainers.models.GlobalValidation - :ivar identity_providers: The configuration settings of each of the identity providers used to - configure ContainerApp Service Authentication/Authorization. - :vartype identity_providers: ~azure.mgmt.appcontainers.models.IdentityProviders - :ivar login: The configuration settings of the login flow of users using ContainerApp Service - Authentication/Authorization. - :vartype login: ~azure.mgmt.appcontainers.models.Login - :ivar http_settings: The configuration settings of the HTTP requests for authentication and - authorization requests made against ContainerApp Service Authentication/Authorization. - :vartype http_settings: ~azure.mgmt.appcontainers.models.HttpSettings - :ivar encryption_settings: The configuration settings of the secrets references of encryption - key and signing key for ContainerApp Service Authentication/Authorization. - :vartype encryption_settings: ~azure.mgmt.appcontainers.models.EncryptionSettings - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "platform": {"key": "properties.platform", "type": "AuthPlatform"}, - "global_validation": {"key": "properties.globalValidation", "type": "GlobalValidation"}, - "identity_providers": {"key": "properties.identityProviders", "type": "IdentityProviders"}, - "login": {"key": "properties.login", "type": "Login"}, - "http_settings": {"key": "properties.httpSettings", "type": "HttpSettings"}, - "encryption_settings": {"key": "properties.encryptionSettings", "type": "EncryptionSettings"}, - } - - def __init__( - self, - *, - platform: Optional["_models.AuthPlatform"] = None, - global_validation: Optional["_models.GlobalValidation"] = None, - identity_providers: Optional["_models.IdentityProviders"] = None, - login: Optional["_models.Login"] = None, - http_settings: Optional["_models.HttpSettings"] = None, - encryption_settings: Optional["_models.EncryptionSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword platform: The configuration settings of the platform of ContainerApp Service - Authentication/Authorization. - :paramtype platform: ~azure.mgmt.appcontainers.models.AuthPlatform - :keyword global_validation: The configuration settings that determines the validation flow of - users using Service Authentication/Authorization. - :paramtype global_validation: ~azure.mgmt.appcontainers.models.GlobalValidation - :keyword identity_providers: The configuration settings of each of the identity providers used - to configure ContainerApp Service Authentication/Authorization. - :paramtype identity_providers: ~azure.mgmt.appcontainers.models.IdentityProviders - :keyword login: The configuration settings of the login flow of users using ContainerApp - Service Authentication/Authorization. - :paramtype login: ~azure.mgmt.appcontainers.models.Login - :keyword http_settings: The configuration settings of the HTTP requests for authentication and - authorization requests made against ContainerApp Service Authentication/Authorization. - :paramtype http_settings: ~azure.mgmt.appcontainers.models.HttpSettings - :keyword encryption_settings: The configuration settings of the secrets references of - encryption key and signing key for ContainerApp Service Authentication/Authorization. - :paramtype encryption_settings: ~azure.mgmt.appcontainers.models.EncryptionSettings - """ - super().__init__(**kwargs) - self.platform = platform - self.global_validation = global_validation - self.identity_providers = identity_providers - self.login = login - self.http_settings = http_settings - self.encryption_settings = encryption_settings - - -class AuthConfigCollection(_serialization.Model): - """AuthConfig collection ARM resource. - - 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 value: Collection of resources. Required. - :vartype value: list[~azure.mgmt.appcontainers.models.AuthConfig] - :ivar next_link: Link to next page of resources. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[AuthConfig]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: list["_models.AuthConfig"], **kwargs: Any) -> None: - """ - :keyword value: Collection of resources. Required. - :paramtype value: list[~azure.mgmt.appcontainers.models.AuthConfig] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None - - -class AuthPlatform(_serialization.Model): - """The configuration settings of the platform of ContainerApp Service - Authentication/Authorization. - - :ivar enabled: :code:`true` if the Authentication / Authorization feature is - enabled for the current app; otherwise, :code:`false`. - :vartype enabled: bool - :ivar runtime_version: The RuntimeVersion of the Authentication / Authorization feature in use - for the current app. The setting in this value can control the behavior of certain features in - the Authentication / Authorization module. - :vartype runtime_version: str - """ - - _attribute_map = { - "enabled": {"key": "enabled", "type": "bool"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - } - - def __init__(self, *, enabled: Optional[bool] = None, runtime_version: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword enabled: :code:`true` if the Authentication / Authorization feature is - enabled for the current app; otherwise, :code:`false`. - :paramtype enabled: bool - :keyword runtime_version: The RuntimeVersion of the Authentication / Authorization feature in - use for the current app. The setting in this value can control the behavior of certain features - in the Authentication / Authorization module. - :paramtype runtime_version: str - """ - super().__init__(**kwargs) - self.enabled = enabled - self.runtime_version = runtime_version - - -class AvailableOperations(_serialization.Model): - """Available operations of the service. - - :ivar value: Collection of available operation details. - :vartype value: list[~azure.mgmt.appcontainers.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.appcontainers.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 AvailableWorkloadProfile(ProxyResource): - """A workload profile with specific hardware configure to run container apps. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData - :ivar location: Region of the workload profile. - :vartype location: str - :ivar properties: Revision resource specific properties. - :vartype properties: ~azure.mgmt.appcontainers.models.AvailableWorkloadProfileProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": 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"}, - "properties": {"key": "properties", "type": "AvailableWorkloadProfileProperties"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - properties: Optional["_models.AvailableWorkloadProfileProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: Region of the workload profile. - :paramtype location: str - :keyword properties: Revision resource specific properties. - :paramtype properties: ~azure.mgmt.appcontainers.models.AvailableWorkloadProfileProperties - """ - super().__init__(**kwargs) - self.location = location - self.properties = properties - - -class AvailableWorkloadProfileProperties(_serialization.Model): - """Revision resource specific properties. - - :ivar category: Used to categorize workload profiles. - :vartype category: str - :ivar applicability: indicates whether the profile is default for the location. Known values - are: "LocationDefault" and "Custom". - :vartype applicability: str or ~azure.mgmt.appcontainers.models.Applicability - :ivar cores: Number of cores in CPU. - :vartype cores: int - :ivar memory_gi_b: Memory in GiB. - :vartype memory_gi_b: int - :ivar gpus: Number of GPUs. - :vartype gpus: int - :ivar display_name: The everyday name of the workload profile. - :vartype display_name: str - """ - - _attribute_map = { - "category": {"key": "category", "type": "str"}, - "applicability": {"key": "applicability", "type": "str"}, - "cores": {"key": "cores", "type": "int"}, - "memory_gi_b": {"key": "memoryGiB", "type": "int"}, - "gpus": {"key": "gpus", "type": "int"}, - "display_name": {"key": "displayName", "type": "str"}, - } - - def __init__( - self, - *, - category: Optional[str] = None, - applicability: Optional[Union[str, "_models.Applicability"]] = None, - cores: Optional[int] = None, - memory_gi_b: Optional[int] = None, - gpus: Optional[int] = None, - display_name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword category: Used to categorize workload profiles. - :paramtype category: str - :keyword applicability: indicates whether the profile is default for the location. Known values - are: "LocationDefault" and "Custom". - :paramtype applicability: str or ~azure.mgmt.appcontainers.models.Applicability - :keyword cores: Number of cores in CPU. - :paramtype cores: int - :keyword memory_gi_b: Memory in GiB. - :paramtype memory_gi_b: int - :keyword gpus: Number of GPUs. - :paramtype gpus: int - :keyword display_name: The everyday name of the workload profile. - :paramtype display_name: str - """ - super().__init__(**kwargs) - self.category = category - self.applicability = applicability - self.cores = cores - self.memory_gi_b = memory_gi_b - self.gpus = gpus - self.display_name = display_name - - -class AvailableWorkloadProfilesCollection(_serialization.Model): - """Collection of available workload profiles in the location. - - 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 value: Collection of workload profiles. Required. - :vartype value: list[~azure.mgmt.appcontainers.models.AvailableWorkloadProfile] - :ivar next_link: Link to next page of resources. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[AvailableWorkloadProfile]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: list["_models.AvailableWorkloadProfile"], **kwargs: Any) -> None: - """ - :keyword value: Collection of workload profiles. Required. - :paramtype value: list[~azure.mgmt.appcontainers.models.AvailableWorkloadProfile] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None - - -class AzureActiveDirectory(_serialization.Model): - """The configuration settings of the Azure Active directory provider. - - :ivar enabled: :code:`false` if the Azure Active Directory provider should not be - enabled despite the set registration; otherwise, :code:`true`. - :vartype enabled: bool - :ivar registration: The configuration settings of the Azure Active Directory app registration. - :vartype registration: ~azure.mgmt.appcontainers.models.AzureActiveDirectoryRegistration - :ivar login: The configuration settings of the Azure Active Directory login flow. - :vartype login: ~azure.mgmt.appcontainers.models.AzureActiveDirectoryLogin - :ivar validation: The configuration settings of the Azure Active Directory token validation - flow. - :vartype validation: ~azure.mgmt.appcontainers.models.AzureActiveDirectoryValidation - :ivar is_auto_provisioned: Gets a value indicating whether the Azure AD configuration was - auto-provisioned using 1st party tooling. This is an internal flag primarily intended to - support the Azure Management Portal. Users should not read or write to this property. - :vartype is_auto_provisioned: bool - """ - - _attribute_map = { - "enabled": {"key": "enabled", "type": "bool"}, - "registration": {"key": "registration", "type": "AzureActiveDirectoryRegistration"}, - "login": {"key": "login", "type": "AzureActiveDirectoryLogin"}, - "validation": {"key": "validation", "type": "AzureActiveDirectoryValidation"}, - "is_auto_provisioned": {"key": "isAutoProvisioned", "type": "bool"}, - } - - def __init__( - self, - *, - enabled: Optional[bool] = None, - registration: Optional["_models.AzureActiveDirectoryRegistration"] = None, - login: Optional["_models.AzureActiveDirectoryLogin"] = None, - validation: Optional["_models.AzureActiveDirectoryValidation"] = None, - is_auto_provisioned: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword enabled: :code:`false` if the Azure Active Directory provider should not - be enabled despite the set registration; otherwise, :code:`true`. - :paramtype enabled: bool - :keyword registration: The configuration settings of the Azure Active Directory app - registration. - :paramtype registration: ~azure.mgmt.appcontainers.models.AzureActiveDirectoryRegistration - :keyword login: The configuration settings of the Azure Active Directory login flow. - :paramtype login: ~azure.mgmt.appcontainers.models.AzureActiveDirectoryLogin - :keyword validation: The configuration settings of the Azure Active Directory token validation - flow. - :paramtype validation: ~azure.mgmt.appcontainers.models.AzureActiveDirectoryValidation - :keyword is_auto_provisioned: Gets a value indicating whether the Azure AD configuration was - auto-provisioned using 1st party tooling. This is an internal flag primarily intended to - support the Azure Management Portal. Users should not read or write to this property. - :paramtype is_auto_provisioned: bool - """ - super().__init__(**kwargs) - self.enabled = enabled - self.registration = registration - self.login = login - self.validation = validation - self.is_auto_provisioned = is_auto_provisioned - - -class AzureActiveDirectoryLogin(_serialization.Model): - """The configuration settings of the Azure Active Directory login flow. - - :ivar login_parameters: Login parameters to send to the OpenID Connect authorization endpoint - when a user logs in. Each parameter must be in the form "key=value". - :vartype login_parameters: list[str] - :ivar disable_www_authenticate: :code:`true` if the www-authenticate provider - should be omitted from the request; otherwise, :code:`false`. - :vartype disable_www_authenticate: bool - """ - - _attribute_map = { - "login_parameters": {"key": "loginParameters", "type": "[str]"}, - "disable_www_authenticate": {"key": "disableWWWAuthenticate", "type": "bool"}, - } - - def __init__( - self, - *, - login_parameters: Optional[list[str]] = None, - disable_www_authenticate: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword login_parameters: Login parameters to send to the OpenID Connect authorization - endpoint when a user logs in. Each parameter must be in the form "key=value". - :paramtype login_parameters: list[str] - :keyword disable_www_authenticate: :code:`true` if the www-authenticate provider - should be omitted from the request; otherwise, :code:`false`. - :paramtype disable_www_authenticate: bool - """ - super().__init__(**kwargs) - self.login_parameters = login_parameters - self.disable_www_authenticate = disable_www_authenticate - - -class AzureActiveDirectoryRegistration(_serialization.Model): - """The configuration settings of the Azure Active Directory app registration. - - :ivar open_id_issuer: The OpenID Connect Issuer URI that represents the entity which issues - access tokens for this application. When using Azure Active Directory, this value is the URI of - the directory tenant, e.g. https://login.microsoftonline.com/v2.0/{tenant-guid}/. This URI is a - case-sensitive identifier for the token issuer. More information on OpenID Connect Discovery: - http://openid.net/specs/openid-connect-discovery-1_0.html. - :vartype open_id_issuer: str - :ivar client_id: The Client ID of this relying party application, known as the client_id. This - setting is required for enabling OpenID Connection authentication with Azure Active Directory - or other 3rd party OpenID Connect providers. More information on OpenID Connect: - http://openid.net/specs/openid-connect-core-1_0.html. - :vartype client_id: str - :ivar client_secret_setting_name: The app setting name that contains the client secret of the - relying party application. - :vartype client_secret_setting_name: str - :ivar client_secret_certificate_thumbprint: An alternative to the client secret, that is the - thumbprint of a certificate used for signing purposes. This property acts as a replacement for - the Client Secret. It is also optional. - :vartype client_secret_certificate_thumbprint: str - :ivar client_secret_certificate_subject_alternative_name: An alternative to the client secret - thumbprint, that is the subject alternative name of a certificate used for signing purposes. - This property acts as a replacement for the Client Secret Certificate Thumbprint. It is also - optional. - :vartype client_secret_certificate_subject_alternative_name: str - :ivar client_secret_certificate_issuer: An alternative to the client secret thumbprint, that is - the issuer of a certificate used for signing purposes. This property acts as a replacement for - the Client Secret Certificate Thumbprint. It is also optional. - :vartype client_secret_certificate_issuer: str - """ - - _attribute_map = { - "open_id_issuer": {"key": "openIdIssuer", "type": "str"}, - "client_id": {"key": "clientId", "type": "str"}, - "client_secret_setting_name": {"key": "clientSecretSettingName", "type": "str"}, - "client_secret_certificate_thumbprint": {"key": "clientSecretCertificateThumbprint", "type": "str"}, - "client_secret_certificate_subject_alternative_name": { - "key": "clientSecretCertificateSubjectAlternativeName", - "type": "str", - }, - "client_secret_certificate_issuer": {"key": "clientSecretCertificateIssuer", "type": "str"}, - } - - def __init__( - self, - *, - open_id_issuer: Optional[str] = None, - client_id: Optional[str] = None, - client_secret_setting_name: Optional[str] = None, - client_secret_certificate_thumbprint: Optional[str] = None, - client_secret_certificate_subject_alternative_name: Optional[str] = None, - client_secret_certificate_issuer: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword open_id_issuer: The OpenID Connect Issuer URI that represents the entity which issues - access tokens for this application. When using Azure Active Directory, this value is the URI of - the directory tenant, e.g. https://login.microsoftonline.com/v2.0/{tenant-guid}/. This URI is a - case-sensitive identifier for the token issuer. More information on OpenID Connect Discovery: - http://openid.net/specs/openid-connect-discovery-1_0.html. - :paramtype open_id_issuer: str - :keyword client_id: The Client ID of this relying party application, known as the client_id. - This setting is required for enabling OpenID Connection authentication with Azure Active - Directory or other 3rd party OpenID Connect providers. More information on OpenID Connect: - http://openid.net/specs/openid-connect-core-1_0.html. - :paramtype client_id: str - :keyword client_secret_setting_name: The app setting name that contains the client secret of - the relying party application. - :paramtype client_secret_setting_name: str - :keyword client_secret_certificate_thumbprint: An alternative to the client secret, that is the - thumbprint of a certificate used for signing purposes. This property acts as a replacement for - the Client Secret. It is also optional. - :paramtype client_secret_certificate_thumbprint: str - :keyword client_secret_certificate_subject_alternative_name: An alternative to the client - secret thumbprint, that is the subject alternative name of a certificate used for signing - purposes. This property acts as a replacement for the Client Secret Certificate Thumbprint. It - is also optional. - :paramtype client_secret_certificate_subject_alternative_name: str - :keyword client_secret_certificate_issuer: An alternative to the client secret thumbprint, that - is the issuer of a certificate used for signing purposes. This property acts as a replacement - for the Client Secret Certificate Thumbprint. It is also optional. - :paramtype client_secret_certificate_issuer: str - """ - super().__init__(**kwargs) - self.open_id_issuer = open_id_issuer - self.client_id = client_id - self.client_secret_setting_name = client_secret_setting_name - self.client_secret_certificate_thumbprint = client_secret_certificate_thumbprint - self.client_secret_certificate_subject_alternative_name = client_secret_certificate_subject_alternative_name - self.client_secret_certificate_issuer = client_secret_certificate_issuer - - -class AzureActiveDirectoryValidation(_serialization.Model): - """The configuration settings of the Azure Active Directory token validation flow. - - :ivar jwt_claim_checks: The configuration settings of the checks that should be made while - validating the JWT Claims. - :vartype jwt_claim_checks: ~azure.mgmt.appcontainers.models.JwtClaimChecks - :ivar allowed_audiences: The list of audiences that can make successful - authentication/authorization requests. - :vartype allowed_audiences: list[str] - :ivar default_authorization_policy: The configuration settings of the default authorization - policy. - :vartype default_authorization_policy: - ~azure.mgmt.appcontainers.models.DefaultAuthorizationPolicy - """ - - _attribute_map = { - "jwt_claim_checks": {"key": "jwtClaimChecks", "type": "JwtClaimChecks"}, - "allowed_audiences": {"key": "allowedAudiences", "type": "[str]"}, - "default_authorization_policy": {"key": "defaultAuthorizationPolicy", "type": "DefaultAuthorizationPolicy"}, - } - - def __init__( - self, - *, - jwt_claim_checks: Optional["_models.JwtClaimChecks"] = None, - allowed_audiences: Optional[list[str]] = None, - default_authorization_policy: Optional["_models.DefaultAuthorizationPolicy"] = None, - **kwargs: Any - ) -> None: - """ - :keyword jwt_claim_checks: The configuration settings of the checks that should be made while - validating the JWT Claims. - :paramtype jwt_claim_checks: ~azure.mgmt.appcontainers.models.JwtClaimChecks - :keyword allowed_audiences: The list of audiences that can make successful - authentication/authorization requests. - :paramtype allowed_audiences: list[str] - :keyword default_authorization_policy: The configuration settings of the default authorization - policy. - :paramtype default_authorization_policy: - ~azure.mgmt.appcontainers.models.DefaultAuthorizationPolicy - """ - super().__init__(**kwargs) - self.jwt_claim_checks = jwt_claim_checks - self.allowed_audiences = allowed_audiences - self.default_authorization_policy = default_authorization_policy - - -class AzureCredentials(_serialization.Model): - """Container App credentials. - - :ivar client_id: Client Id. - :vartype client_id: str - :ivar client_secret: Client Secret. - :vartype client_secret: str - :ivar tenant_id: Tenant Id. - :vartype tenant_id: str - :ivar kind: Kind of auth github does for deploying the template. - :vartype kind: str - :ivar subscription_id: Subscription Id. - :vartype subscription_id: str - """ - - _attribute_map = { - "client_id": {"key": "clientId", "type": "str"}, - "client_secret": {"key": "clientSecret", "type": "str"}, - "tenant_id": {"key": "tenantId", "type": "str"}, - "kind": {"key": "kind", "type": "str"}, - "subscription_id": {"key": "subscriptionId", "type": "str"}, - } - - def __init__( - self, - *, - client_id: Optional[str] = None, - client_secret: Optional[str] = None, - tenant_id: Optional[str] = None, - kind: Optional[str] = None, - subscription_id: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword client_id: Client Id. - :paramtype client_id: str - :keyword client_secret: Client Secret. - :paramtype client_secret: str - :keyword tenant_id: Tenant Id. - :paramtype tenant_id: str - :keyword kind: Kind of auth github does for deploying the template. - :paramtype kind: str - :keyword subscription_id: Subscription Id. - :paramtype subscription_id: str - """ - super().__init__(**kwargs) - self.client_id = client_id - self.client_secret = client_secret - self.tenant_id = tenant_id - self.kind = kind - self.subscription_id = subscription_id - - -class AzureFileProperties(_serialization.Model): - """Azure File Properties. - - :ivar account_name: Storage account name for azure file. - :vartype account_name: str - :ivar account_key: Storage account key for azure file. - :vartype account_key: str - :ivar account_key_vault_properties: Storage account key stored as an Azure Key Vault secret. - :vartype account_key_vault_properties: - ~azure.mgmt.appcontainers.models.SecretKeyVaultProperties - :ivar access_mode: Access mode for storage. Known values are: "ReadOnly" and "ReadWrite". - :vartype access_mode: str or ~azure.mgmt.appcontainers.models.AccessMode - :ivar share_name: Azure file share name. - :vartype share_name: str - """ - - _attribute_map = { - "account_name": {"key": "accountName", "type": "str"}, - "account_key": {"key": "accountKey", "type": "str"}, - "account_key_vault_properties": {"key": "accountKeyVaultProperties", "type": "SecretKeyVaultProperties"}, - "access_mode": {"key": "accessMode", "type": "str"}, - "share_name": {"key": "shareName", "type": "str"}, - } - - def __init__( - self, - *, - account_name: Optional[str] = None, - account_key: Optional[str] = None, - account_key_vault_properties: Optional["_models.SecretKeyVaultProperties"] = None, - access_mode: Optional[Union[str, "_models.AccessMode"]] = None, - share_name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword account_name: Storage account name for azure file. - :paramtype account_name: str - :keyword account_key: Storage account key for azure file. - :paramtype account_key: str - :keyword account_key_vault_properties: Storage account key stored as an Azure Key Vault secret. - :paramtype account_key_vault_properties: - ~azure.mgmt.appcontainers.models.SecretKeyVaultProperties - :keyword access_mode: Access mode for storage. Known values are: "ReadOnly" and "ReadWrite". - :paramtype access_mode: str or ~azure.mgmt.appcontainers.models.AccessMode - :keyword share_name: Azure file share name. - :paramtype share_name: str - """ - super().__init__(**kwargs) - self.account_name = account_name - self.account_key = account_key - self.account_key_vault_properties = account_key_vault_properties - self.access_mode = access_mode - self.share_name = share_name - - -class AzureStaticWebApps(_serialization.Model): - """The configuration settings of the Azure Static Web Apps provider. - - :ivar enabled: :code:`false` if the Azure Static Web Apps provider should not be - enabled despite the set registration; otherwise, :code:`true`. - :vartype enabled: bool - :ivar registration: The configuration settings of the Azure Static Web Apps registration. - :vartype registration: ~azure.mgmt.appcontainers.models.AzureStaticWebAppsRegistration - """ - - _attribute_map = { - "enabled": {"key": "enabled", "type": "bool"}, - "registration": {"key": "registration", "type": "AzureStaticWebAppsRegistration"}, - } - - def __init__( - self, - *, - enabled: Optional[bool] = None, - registration: Optional["_models.AzureStaticWebAppsRegistration"] = None, - **kwargs: Any - ) -> None: - """ - :keyword enabled: :code:`false` if the Azure Static Web Apps provider should not - be enabled despite the set registration; otherwise, :code:`true`. - :paramtype enabled: bool - :keyword registration: The configuration settings of the Azure Static Web Apps registration. - :paramtype registration: ~azure.mgmt.appcontainers.models.AzureStaticWebAppsRegistration - """ - super().__init__(**kwargs) - self.enabled = enabled - self.registration = registration - - -class AzureStaticWebAppsRegistration(_serialization.Model): - """The configuration settings of the registration for the Azure Static Web Apps provider. - - :ivar client_id: The Client ID of the app used for login. - :vartype client_id: str - """ - - _attribute_map = { - "client_id": {"key": "clientId", "type": "str"}, - } - - def __init__(self, *, client_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword client_id: The Client ID of the app used for login. - :paramtype client_id: str - """ - super().__init__(**kwargs) - self.client_id = client_id - - -class BaseContainer(_serialization.Model): - """Container App base container definition. - - :ivar image: Container image tag. - :vartype image: str - :ivar name: Custom container name. - :vartype name: str - :ivar command: Container start command. - :vartype command: list[str] - :ivar args: Container start command arguments. - :vartype args: list[str] - :ivar env: Container environment variables. - :vartype env: list[~azure.mgmt.appcontainers.models.EnvironmentVar] - :ivar resources: Container resource requirements. - :vartype resources: ~azure.mgmt.appcontainers.models.ContainerResources - :ivar volume_mounts: Container volume mounts. - :vartype volume_mounts: list[~azure.mgmt.appcontainers.models.VolumeMount] - """ - - _attribute_map = { - "image": {"key": "image", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "command": {"key": "command", "type": "[str]"}, - "args": {"key": "args", "type": "[str]"}, - "env": {"key": "env", "type": "[EnvironmentVar]"}, - "resources": {"key": "resources", "type": "ContainerResources"}, - "volume_mounts": {"key": "volumeMounts", "type": "[VolumeMount]"}, - } - - def __init__( - self, - *, - image: Optional[str] = None, - name: Optional[str] = None, - command: Optional[list[str]] = None, - args: Optional[list[str]] = None, - env: Optional[list["_models.EnvironmentVar"]] = None, - resources: Optional["_models.ContainerResources"] = None, - volume_mounts: Optional[list["_models.VolumeMount"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword image: Container image tag. - :paramtype image: str - :keyword name: Custom container name. - :paramtype name: str - :keyword command: Container start command. - :paramtype command: list[str] - :keyword args: Container start command arguments. - :paramtype args: list[str] - :keyword env: Container environment variables. - :paramtype env: list[~azure.mgmt.appcontainers.models.EnvironmentVar] - :keyword resources: Container resource requirements. - :paramtype resources: ~azure.mgmt.appcontainers.models.ContainerResources - :keyword volume_mounts: Container volume mounts. - :paramtype volume_mounts: list[~azure.mgmt.appcontainers.models.VolumeMount] - """ - super().__init__(**kwargs) - self.image = image - self.name = name - self.command = command - self.args = args - self.env = env - self.resources = resources - self.volume_mounts = volume_mounts - - -class BillingMeter(ProxyResource): - """Billing meter. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData - :ivar location: Region for the billing meter. - :vartype location: str - :ivar properties: Revision resource specific properties. - :vartype properties: ~azure.mgmt.appcontainers.models.BillingMeterProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": 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"}, - "properties": {"key": "properties", "type": "BillingMeterProperties"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - properties: Optional["_models.BillingMeterProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: Region for the billing meter. - :paramtype location: str - :keyword properties: Revision resource specific properties. - :paramtype properties: ~azure.mgmt.appcontainers.models.BillingMeterProperties - """ - super().__init__(**kwargs) - self.location = location - self.properties = properties - - -class BillingMeterCollection(_serialization.Model): - """Collection of billing meters. - - All required parameters must be populated in order to send to server. - - :ivar value: Collection of billing meters. Required. - :vartype value: list[~azure.mgmt.appcontainers.models.BillingMeter] - """ - - _validation = { - "value": {"required": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[BillingMeter]"}, - } - - def __init__(self, *, value: list["_models.BillingMeter"], **kwargs: Any) -> None: - """ - :keyword value: Collection of billing meters. Required. - :paramtype value: list[~azure.mgmt.appcontainers.models.BillingMeter] - """ - super().__init__(**kwargs) - self.value = value - - -class BillingMeterProperties(_serialization.Model): - """Revision resource specific properties. - - :ivar category: Used to categorize billing meters. - :vartype category: str - :ivar meter_type: Billing meter type. - :vartype meter_type: str - :ivar display_name: The everyday name of the billing meter. - :vartype display_name: str - """ - - _attribute_map = { - "category": {"key": "category", "type": "str"}, - "meter_type": {"key": "meterType", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - } - - def __init__( - self, - *, - category: Optional[str] = None, - meter_type: Optional[str] = None, - display_name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword category: Used to categorize billing meters. - :paramtype category: str - :keyword meter_type: Billing meter type. - :paramtype meter_type: str - :keyword display_name: The everyday name of the billing meter. - :paramtype display_name: str - """ - super().__init__(**kwargs) - self.category = category - self.meter_type = meter_type - self.display_name = display_name - - -class BlobStorageTokenStore(_serialization.Model): - """The configuration settings of the storage of the tokens if blob storage is used. - - All required parameters must be populated in order to send to server. - - :ivar sas_url_setting_name: The name of the app secrets containing the SAS URL of the blob - storage containing the tokens. Required. - :vartype sas_url_setting_name: str - """ - - _validation = { - "sas_url_setting_name": {"required": True}, - } - - _attribute_map = { - "sas_url_setting_name": {"key": "sasUrlSettingName", "type": "str"}, - } - - def __init__(self, *, sas_url_setting_name: str, **kwargs: Any) -> None: - """ - :keyword sas_url_setting_name: The name of the app secrets containing the SAS URL of the blob - storage containing the tokens. Required. - :paramtype sas_url_setting_name: str - """ - super().__init__(**kwargs) - self.sas_url_setting_name = sas_url_setting_name - - -class TrackedResource(Resource): - """The resource model definition for an Azure Resource Manager tracked top level resource which - has 'tags' and a 'location'. - - 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 id: Fully qualified resource ID for the resource. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData - :ivar tags: Resource tags. - :vartype tags: dict[str, str] - :ivar location: The geo-location where the resource lives. Required. - :vartype location: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - "location": {"required": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "tags": {"key": "tags", "type": "{str}"}, - "location": {"key": "location", "type": "str"}, - } - - def __init__(self, *, location: str, tags: Optional[dict[str, str]] = None, **kwargs: Any) -> None: - """ - :keyword tags: Resource tags. - :paramtype tags: dict[str, str] - :keyword location: The geo-location where the resource lives. Required. - :paramtype location: str - """ - super().__init__(**kwargs) - self.tags = tags - self.location = location - - -class Certificate(TrackedResource): - """Certificate used for Custom Domain bindings of Container Apps in a Managed Environment. - - 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 id: Fully qualified resource ID for the resource. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData - :ivar tags: Resource tags. - :vartype tags: dict[str, str] - :ivar location: The geo-location where the resource lives. Required. - :vartype location: str - :ivar properties: Certificate resource specific properties. - :vartype properties: ~azure.mgmt.appcontainers.models.CertificateProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - "location": {"required": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "tags": {"key": "tags", "type": "{str}"}, - "location": {"key": "location", "type": "str"}, - "properties": {"key": "properties", "type": "CertificateProperties"}, - } - - def __init__( - self, - *, - location: str, - tags: Optional[dict[str, str]] = None, - properties: Optional["_models.CertificateProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword tags: Resource tags. - :paramtype tags: dict[str, str] - :keyword location: The geo-location where the resource lives. Required. - :paramtype location: str - :keyword properties: Certificate resource specific properties. - :paramtype properties: ~azure.mgmt.appcontainers.models.CertificateProperties - """ - super().__init__(tags=tags, location=location, **kwargs) - self.properties = properties - - -class CertificateCollection(_serialization.Model): - """Collection of Certificates. - - 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 value: Collection of resources. Required. - :vartype value: list[~azure.mgmt.appcontainers.models.Certificate] - :ivar next_link: Link to next page of resources. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[Certificate]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: list["_models.Certificate"], **kwargs: Any) -> None: - """ - :keyword value: Collection of resources. Required. - :paramtype value: list[~azure.mgmt.appcontainers.models.Certificate] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None - - -class CertificateKeyVaultProperties(_serialization.Model): - """Properties for a certificate stored in a Key Vault. - - :ivar identity: Resource ID of a managed identity to authenticate with Azure Key Vault, or - System to use a system-assigned identity. - :vartype identity: str - :ivar key_vault_url: URL pointing to the Azure Key Vault secret that holds the certificate. - :vartype key_vault_url: str - """ - - _attribute_map = { - "identity": {"key": "identity", "type": "str"}, - "key_vault_url": {"key": "keyVaultUrl", "type": "str"}, - } - - def __init__(self, *, identity: Optional[str] = None, key_vault_url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword identity: Resource ID of a managed identity to authenticate with Azure Key Vault, or - System to use a system-assigned identity. - :paramtype identity: str - :keyword key_vault_url: URL pointing to the Azure Key Vault secret that holds the certificate. - :paramtype key_vault_url: str - """ - super().__init__(**kwargs) - self.identity = identity - self.key_vault_url = key_vault_url - - -class CertificatePatch(_serialization.Model): - """A certificate to update. - - :ivar tags: Application-specific metadata in the form of key-value pairs. - :vartype tags: dict[str, str] - """ - - _attribute_map = { - "tags": {"key": "tags", "type": "{str}"}, - } - - def __init__(self, *, tags: Optional[dict[str, str]] = None, **kwargs: Any) -> None: - """ - :keyword tags: Application-specific metadata in the form of key-value pairs. - :paramtype tags: dict[str, str] - """ - super().__init__(**kwargs) - self.tags = tags - - -class CertificateProperties(_serialization.Model): - """Certificate resource specific properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the certificate. Known values are: "Succeeded", - "Failed", "Canceled", "DeleteFailed", "Pending", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appcontainers.models.CertificateProvisioningState - :ivar deployment_errors: Any errors that occurred during deployment or deployment validation. - :vartype deployment_errors: str - :ivar certificate_key_vault_properties: Properties for a certificate stored in a Key Vault. - :vartype certificate_key_vault_properties: - ~azure.mgmt.appcontainers.models.CertificateKeyVaultProperties - :ivar password: Certificate password. - :vartype password: str - :ivar subject_name: Subject name of the certificate. - :vartype subject_name: str - :ivar subject_alternative_names: Subject alternative names the certificate applies to. - :vartype subject_alternative_names: list[str] - :ivar value: PFX or PEM blob. - :vartype value: bytes - :ivar issuer: Certificate issuer. - :vartype issuer: str - :ivar issue_date: Certificate issue Date. - :vartype issue_date: ~datetime.datetime - :ivar expiration_date: Certificate expiration date. - :vartype expiration_date: ~datetime.datetime - :ivar thumbprint: Certificate thumbprint. - :vartype thumbprint: str - :ivar valid: Is the certificate valid?. - :vartype valid: bool - :ivar public_key_hash: Public key hash. - :vartype public_key_hash: str - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "deployment_errors": {"readonly": True}, - "subject_name": {"readonly": True}, - "subject_alternative_names": {"readonly": True}, - "issuer": {"readonly": True}, - "issue_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "thumbprint": {"readonly": True}, - "valid": {"readonly": True}, - "public_key_hash": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "deployment_errors": {"key": "deploymentErrors", "type": "str"}, - "certificate_key_vault_properties": { - "key": "certificateKeyVaultProperties", - "type": "CertificateKeyVaultProperties", - }, - "password": {"key": "password", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "subject_alternative_names": {"key": "subjectAlternativeNames", "type": "[str]"}, - "value": {"key": "value", "type": "bytearray"}, - "issuer": {"key": "issuer", "type": "str"}, - "issue_date": {"key": "issueDate", "type": "iso-8601"}, - "expiration_date": {"key": "expirationDate", "type": "iso-8601"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "valid": {"key": "valid", "type": "bool"}, - "public_key_hash": {"key": "publicKeyHash", "type": "str"}, - } - - def __init__( - self, - *, - certificate_key_vault_properties: Optional["_models.CertificateKeyVaultProperties"] = None, - password: Optional[str] = None, - value: Optional[bytes] = None, - **kwargs: Any - ) -> None: - """ - :keyword certificate_key_vault_properties: Properties for a certificate stored in a Key Vault. - :paramtype certificate_key_vault_properties: - ~azure.mgmt.appcontainers.models.CertificateKeyVaultProperties - :keyword password: Certificate password. - :paramtype password: str - :keyword value: PFX or PEM blob. - :paramtype value: bytes - """ - super().__init__(**kwargs) - self.provisioning_state: Optional[Union[str, "_models.CertificateProvisioningState"]] = None - self.deployment_errors: Optional[str] = None - self.certificate_key_vault_properties = certificate_key_vault_properties - self.password = password - self.subject_name: Optional[str] = None - self.subject_alternative_names: Optional[list[str]] = None - self.value = value - self.issuer: Optional[str] = None - self.issue_date: Optional[datetime.datetime] = None - self.expiration_date: Optional[datetime.datetime] = None - self.thumbprint: Optional[str] = None - self.valid: Optional[bool] = None - self.public_key_hash: Optional[str] = None - - -class CheckNameAvailabilityRequest(_serialization.Model): - """The check availability request body. - - :ivar name: The name of the resource for which availability needs to be checked. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, type: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of the resource for which availability needs to be checked. - :paramtype name: str - :keyword type: The resource type. - :paramtype type: str - """ - super().__init__(**kwargs) - self.name = name - self.type = type - - -class CheckNameAvailabilityResponse(_serialization.Model): - """The check availability result. - - :ivar name_available: Indicates if the resource name is available. - :vartype name_available: bool - :ivar reason: The reason why the given name is not available. Known values are: "Invalid" and - "AlreadyExists". - :vartype reason: str or ~azure.mgmt.appcontainers.models.CheckNameAvailabilityReason - :ivar message: Detailed reason why the given name is 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[Union[str, "_models.CheckNameAvailabilityReason"]] = None, - message: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name_available: Indicates if the resource name is available. - :paramtype name_available: bool - :keyword reason: The reason why the given name is not available. Known values are: "Invalid" - and "AlreadyExists". - :paramtype reason: str or ~azure.mgmt.appcontainers.models.CheckNameAvailabilityReason - :keyword message: Detailed reason why the given name is available. - :paramtype message: str - """ - super().__init__(**kwargs) - self.name_available = name_available - self.reason = reason - self.message = message - - -class ClientRegistration(_serialization.Model): - """The configuration settings of the app registration for providers that have client ids and - client secrets. - - :ivar client_id: The Client ID of the app used for login. - :vartype client_id: str - :ivar client_secret_setting_name: The app setting name that contains the client secret. - :vartype client_secret_setting_name: str - """ - - _attribute_map = { - "client_id": {"key": "clientId", "type": "str"}, - "client_secret_setting_name": {"key": "clientSecretSettingName", "type": "str"}, - } - - def __init__( - self, *, client_id: Optional[str] = None, client_secret_setting_name: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword client_id: The Client ID of the app used for login. - :paramtype client_id: str - :keyword client_secret_setting_name: The app setting name that contains the client secret. - :paramtype client_secret_setting_name: str - """ - super().__init__(**kwargs) - self.client_id = client_id - self.client_secret_setting_name = client_secret_setting_name - - -class Configuration(_serialization.Model): - """Non versioned Container App configuration properties that define the mutable settings of a - Container app. - - :ivar secrets: Collection of secrets used by a Container app. - :vartype secrets: list[~azure.mgmt.appcontainers.models.Secret] - :ivar active_revisions_mode: ActiveRevisionsMode controls how active revisions are handled for - the Container app: - - - .. raw:: html - - Multiple: multiple revisions can be active.Single: Only one - revision can be active at a time. Revision weights can not be used in this mode. If no value if - provided, this is the default.. Known values are: "Multiple" and "Single". - :vartype active_revisions_mode: str or ~azure.mgmt.appcontainers.models.ActiveRevisionsMode - :ivar ingress: Ingress configurations. - :vartype ingress: ~azure.mgmt.appcontainers.models.Ingress - :ivar registries: Collection of private container registry credentials for containers used by - the Container app. - :vartype registries: list[~azure.mgmt.appcontainers.models.RegistryCredentials] - :ivar dapr: Dapr configuration for the Container App. - :vartype dapr: ~azure.mgmt.appcontainers.models.Dapr - :ivar runtime: App runtime configuration for the Container App. - :vartype runtime: ~azure.mgmt.appcontainers.models.Runtime - :ivar max_inactive_revisions: Optional. Max inactive revisions a Container App can have. - :vartype max_inactive_revisions: int - :ivar service: Container App to be a dev Container App Service. - :vartype service: ~azure.mgmt.appcontainers.models.Service - :ivar identity_settings: Optional settings for Managed Identities that are assigned to the - Container App. If a Managed Identity is not specified here, default settings will be used. - :vartype identity_settings: list[~azure.mgmt.appcontainers.models.IdentitySettings] - """ - - _attribute_map = { - "secrets": {"key": "secrets", "type": "[Secret]"}, - "active_revisions_mode": {"key": "activeRevisionsMode", "type": "str"}, - "ingress": {"key": "ingress", "type": "Ingress"}, - "registries": {"key": "registries", "type": "[RegistryCredentials]"}, - "dapr": {"key": "dapr", "type": "Dapr"}, - "runtime": {"key": "runtime", "type": "Runtime"}, - "max_inactive_revisions": {"key": "maxInactiveRevisions", "type": "int"}, - "service": {"key": "service", "type": "Service"}, - "identity_settings": {"key": "identitySettings", "type": "[IdentitySettings]"}, - } - - def __init__( - self, - *, - secrets: Optional[list["_models.Secret"]] = None, - active_revisions_mode: Union[str, "_models.ActiveRevisionsMode"] = "Single", - ingress: Optional["_models.Ingress"] = None, - registries: Optional[list["_models.RegistryCredentials"]] = None, - dapr: Optional["_models.Dapr"] = None, - runtime: Optional["_models.Runtime"] = None, - max_inactive_revisions: Optional[int] = None, - service: Optional["_models.Service"] = None, - identity_settings: Optional[list["_models.IdentitySettings"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword secrets: Collection of secrets used by a Container app. - :paramtype secrets: list[~azure.mgmt.appcontainers.models.Secret] - :keyword active_revisions_mode: ActiveRevisionsMode controls how active revisions are handled - for the Container app: - - - .. raw:: html - - Multiple: multiple revisions can be active.Single: Only one - revision can be active at a time. Revision weights can not be used in this mode. If no value if - provided, this is the default.. Known values are: "Multiple" and "Single". - :paramtype active_revisions_mode: str or ~azure.mgmt.appcontainers.models.ActiveRevisionsMode - :keyword ingress: Ingress configurations. - :paramtype ingress: ~azure.mgmt.appcontainers.models.Ingress - :keyword registries: Collection of private container registry credentials for containers used - by the Container app. - :paramtype registries: list[~azure.mgmt.appcontainers.models.RegistryCredentials] - :keyword dapr: Dapr configuration for the Container App. - :paramtype dapr: ~azure.mgmt.appcontainers.models.Dapr - :keyword runtime: App runtime configuration for the Container App. - :paramtype runtime: ~azure.mgmt.appcontainers.models.Runtime - :keyword max_inactive_revisions: Optional. Max inactive revisions a Container App can have. - :paramtype max_inactive_revisions: int - :keyword service: Container App to be a dev Container App Service. - :paramtype service: ~azure.mgmt.appcontainers.models.Service - :keyword identity_settings: Optional settings for Managed Identities that are assigned to the - Container App. If a Managed Identity is not specified here, default settings will be used. - :paramtype identity_settings: list[~azure.mgmt.appcontainers.models.IdentitySettings] - """ - super().__init__(**kwargs) - self.secrets = secrets - self.active_revisions_mode = active_revisions_mode - self.ingress = ingress - self.registries = registries - self.dapr = dapr - self.runtime = runtime - self.max_inactive_revisions = max_inactive_revisions - self.service = service - self.identity_settings = identity_settings - - -class ConnectedEnvironment(TrackedResource): - """An environment for Kubernetes cluster specialized for web workloads by Azure App Service. - - 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 id: Fully qualified resource ID for the resource. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData - :ivar tags: Resource tags. - :vartype tags: dict[str, str] - :ivar location: The geo-location where the resource lives. Required. - :vartype location: str - :ivar extended_location: The complex type of the extended location. - :vartype extended_location: ~azure.mgmt.appcontainers.models.ExtendedLocation - :ivar provisioning_state: Provisioning state of the Kubernetes Environment. Known values are: - "Succeeded", "Failed", "Canceled", "Waiting", "InitializationInProgress", - "InfrastructureSetupInProgress", "InfrastructureSetupComplete", and "ScheduledForDelete". - :vartype provisioning_state: str or - ~azure.mgmt.appcontainers.models.ConnectedEnvironmentProvisioningState - :ivar deployment_errors: Any errors that occurred during deployment or deployment validation. - :vartype deployment_errors: str - :ivar default_domain: Default Domain Name for the cluster. - :vartype default_domain: str - :ivar static_ip: Static IP of the connectedEnvironment. - :vartype static_ip: str - :ivar dapr_ai_connection_string: Application Insights connection string used by Dapr to export - Service to Service communication telemetry. - :vartype dapr_ai_connection_string: str - :ivar custom_domain_configuration: Custom domain configuration for the environment. - :vartype custom_domain_configuration: - ~azure.mgmt.appcontainers.models.CustomDomainConfiguration - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - "location": {"required": True}, - "provisioning_state": {"readonly": True}, - "deployment_errors": {"readonly": True}, - "default_domain": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "tags": {"key": "tags", "type": "{str}"}, - "location": {"key": "location", "type": "str"}, - "extended_location": {"key": "extendedLocation", "type": "ExtendedLocation"}, - "provisioning_state": {"key": "properties.provisioningState", "type": "str"}, - "deployment_errors": {"key": "properties.deploymentErrors", "type": "str"}, - "default_domain": {"key": "properties.defaultDomain", "type": "str"}, - "static_ip": {"key": "properties.staticIp", "type": "str"}, - "dapr_ai_connection_string": {"key": "properties.daprAIConnectionString", "type": "str"}, - "custom_domain_configuration": { - "key": "properties.customDomainConfiguration", - "type": "CustomDomainConfiguration", - }, - } - - def __init__( - self, - *, - location: str, - tags: Optional[dict[str, str]] = None, - extended_location: Optional["_models.ExtendedLocation"] = None, - static_ip: Optional[str] = None, - dapr_ai_connection_string: Optional[str] = None, - custom_domain_configuration: Optional["_models.CustomDomainConfiguration"] = None, - **kwargs: Any - ) -> None: - """ - :keyword tags: Resource tags. - :paramtype tags: dict[str, str] - :keyword location: The geo-location where the resource lives. Required. - :paramtype location: str - :keyword extended_location: The complex type of the extended location. - :paramtype extended_location: ~azure.mgmt.appcontainers.models.ExtendedLocation - :keyword static_ip: Static IP of the connectedEnvironment. - :paramtype static_ip: str - :keyword dapr_ai_connection_string: Application Insights connection string used by Dapr to - export Service to Service communication telemetry. - :paramtype dapr_ai_connection_string: str - :keyword custom_domain_configuration: Custom domain configuration for the environment. - :paramtype custom_domain_configuration: - ~azure.mgmt.appcontainers.models.CustomDomainConfiguration - """ - super().__init__(tags=tags, location=location, **kwargs) - self.extended_location = extended_location - self.provisioning_state: Optional[Union[str, "_models.ConnectedEnvironmentProvisioningState"]] = None - self.deployment_errors: Optional[str] = None - self.default_domain: Optional[str] = None - self.static_ip = static_ip - self.dapr_ai_connection_string = dapr_ai_connection_string - self.custom_domain_configuration = custom_domain_configuration - - -class ConnectedEnvironmentCollection(_serialization.Model): - """Collection of connectedEnvironments. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: Collection of resources. - :vartype value: list[~azure.mgmt.appcontainers.models.ConnectedEnvironment] - :ivar next_link: Link to next page of resources. - :vartype next_link: str - """ - - _validation = { - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[ConnectedEnvironment]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: Optional[list["_models.ConnectedEnvironment"]] = None, **kwargs: Any) -> None: - """ - :keyword value: Collection of resources. - :paramtype value: list[~azure.mgmt.appcontainers.models.ConnectedEnvironment] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None - - -class ResourceTags(_serialization.Model): - """List of key value pairs that describe the resource. This will overwrite the existing tags. - - :ivar tags: Resource tags. - :vartype tags: dict[str, str] - """ - - _attribute_map = { - "tags": {"key": "tags", "type": "{str}"}, - } - - def __init__(self, *, tags: Optional[dict[str, str]] = None, **kwargs: Any) -> None: - """ - :keyword tags: Resource tags. - :paramtype tags: dict[str, str] - """ - super().__init__(**kwargs) - self.tags = tags - - -class ConnectedEnvironmentPatchResource(ResourceTags): - """Connected environment patch properties. - - :ivar tags: Resource tags. - :vartype tags: dict[str, str] - """ - - -class ConnectedEnvironmentStorage(ProxyResource): - """Storage resource for connectedEnvironment. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData - :ivar properties: Storage properties. - :vartype properties: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorageProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ConnectedEnvironmentStorageProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.ConnectedEnvironmentStorageProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Storage properties. - :paramtype properties: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorageProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ConnectedEnvironmentStorageProperties(_serialization.Model): - """Storage properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar azure_file: Azure file properties. - :vartype azure_file: ~azure.mgmt.appcontainers.models.AzureFileProperties - :ivar provisioning_state: Provisioning state of the storage. Known values are: "Succeeded", - "Failed", "Canceled", "InProgress", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorageProvisioningState - :ivar deployment_errors: Any errors that occurred during deployment or deployment validation. - :vartype deployment_errors: str - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "deployment_errors": {"readonly": True}, - } - - _attribute_map = { - "azure_file": {"key": "azureFile", "type": "AzureFileProperties"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "deployment_errors": {"key": "deploymentErrors", "type": "str"}, - } - - def __init__(self, *, azure_file: Optional["_models.AzureFileProperties"] = None, **kwargs: Any) -> None: - """ - :keyword azure_file: Azure file properties. - :paramtype azure_file: ~azure.mgmt.appcontainers.models.AzureFileProperties - """ - super().__init__(**kwargs) - self.azure_file = azure_file - self.provisioning_state: Optional[Union[str, "_models.ConnectedEnvironmentStorageProvisioningState"]] = None - self.deployment_errors: Optional[str] = None - - -class ConnectedEnvironmentStoragesCollection(_serialization.Model): - """Collection of Storage for Environments. - - All required parameters must be populated in order to send to server. - - :ivar value: Collection of storage resources. Required. - :vartype value: list[~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage] - """ - - _validation = { - "value": {"required": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[ConnectedEnvironmentStorage]"}, - } - - def __init__(self, *, value: list["_models.ConnectedEnvironmentStorage"], **kwargs: Any) -> None: - """ - :keyword value: Collection of storage resources. Required. - :paramtype value: list[~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage] - """ - super().__init__(**kwargs) - self.value = value - - -class Container(BaseContainer): - """Container App container definition. - - :ivar image: Container image tag. - :vartype image: str - :ivar name: Custom container name. - :vartype name: str - :ivar command: Container start command. - :vartype command: list[str] - :ivar args: Container start command arguments. - :vartype args: list[str] - :ivar env: Container environment variables. - :vartype env: list[~azure.mgmt.appcontainers.models.EnvironmentVar] - :ivar resources: Container resource requirements. - :vartype resources: ~azure.mgmt.appcontainers.models.ContainerResources - :ivar volume_mounts: Container volume mounts. - :vartype volume_mounts: list[~azure.mgmt.appcontainers.models.VolumeMount] - :ivar probes: List of probes for the container. - :vartype probes: list[~azure.mgmt.appcontainers.models.ContainerAppProbe] - """ - - _attribute_map = { - "image": {"key": "image", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "command": {"key": "command", "type": "[str]"}, - "args": {"key": "args", "type": "[str]"}, - "env": {"key": "env", "type": "[EnvironmentVar]"}, - "resources": {"key": "resources", "type": "ContainerResources"}, - "volume_mounts": {"key": "volumeMounts", "type": "[VolumeMount]"}, - "probes": {"key": "probes", "type": "[ContainerAppProbe]"}, - } - - def __init__( - self, - *, - image: Optional[str] = None, - name: Optional[str] = None, - command: Optional[list[str]] = None, - args: Optional[list[str]] = None, - env: Optional[list["_models.EnvironmentVar"]] = None, - resources: Optional["_models.ContainerResources"] = None, - volume_mounts: Optional[list["_models.VolumeMount"]] = None, - probes: Optional[list["_models.ContainerAppProbe"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword image: Container image tag. - :paramtype image: str - :keyword name: Custom container name. - :paramtype name: str - :keyword command: Container start command. - :paramtype command: list[str] - :keyword args: Container start command arguments. - :paramtype args: list[str] - :keyword env: Container environment variables. - :paramtype env: list[~azure.mgmt.appcontainers.models.EnvironmentVar] - :keyword resources: Container resource requirements. - :paramtype resources: ~azure.mgmt.appcontainers.models.ContainerResources - :keyword volume_mounts: Container volume mounts. - :paramtype volume_mounts: list[~azure.mgmt.appcontainers.models.VolumeMount] - :keyword probes: List of probes for the container. - :paramtype probes: list[~azure.mgmt.appcontainers.models.ContainerAppProbe] - """ - super().__init__( - image=image, - name=name, - command=command, - args=args, - env=env, - resources=resources, - volume_mounts=volume_mounts, - **kwargs - ) - self.probes = probes - - -class ContainerApp(TrackedResource): - """Container App. - - 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 id: Fully qualified resource ID for the resource. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData - :ivar tags: Resource tags. - :vartype tags: dict[str, str] - :ivar location: The geo-location where the resource lives. Required. - :vartype location: str - :ivar extended_location: The complex type of the extended location. - :vartype extended_location: ~azure.mgmt.appcontainers.models.ExtendedLocation - :ivar identity: managed identities for the Container App to interact with other Azure services - without maintaining any secrets or credentials in code. - :vartype identity: ~azure.mgmt.appcontainers.models.ManagedServiceIdentity - :ivar managed_by: The fully qualified resource ID of the resource that manages this resource. - Indicates if this resource is managed by another Azure resource. If this is present, complete - mode deployment will not delete the resource if it is removed from the template since it is - managed by another resource. - :vartype managed_by: str - :ivar kind: Metadata to represent the container app kind, representing if a container app is - workflowapp or functionapp. Known values are: "workflowapp" and "functionapp". - :vartype kind: str or ~azure.mgmt.appcontainers.models.Kind - :ivar provisioning_state: Provisioning state of the Container App. Known values are: - "InProgress", "Succeeded", "Failed", "Canceled", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appcontainers.models.ContainerAppProvisioningState - :ivar running_status: Running status of the Container App. Known values are: "Progressing", - "Running", "Stopped", "Suspended", and "Ready". - :vartype running_status: str or ~azure.mgmt.appcontainers.models.ContainerAppRunningStatus - :ivar managed_environment_id: Deprecated. Resource ID of the Container App's environment. - :vartype managed_environment_id: str - :ivar environment_id: Resource ID of environment. - :vartype environment_id: str - :ivar workload_profile_name: Workload profile name to pin for container app execution. - :vartype workload_profile_name: str - :ivar latest_revision_name: Name of the latest revision of the Container App. - :vartype latest_revision_name: str - :ivar latest_ready_revision_name: Name of the latest ready revision of the Container App. - :vartype latest_ready_revision_name: str - :ivar latest_revision_fqdn: Fully Qualified Domain Name of the latest revision of the Container - App. - :vartype latest_revision_fqdn: str - :ivar custom_domain_verification_id: Id used to verify domain name ownership. - :vartype custom_domain_verification_id: str - :ivar configuration: Non versioned Container App configuration properties. - :vartype configuration: ~azure.mgmt.appcontainers.models.Configuration - :ivar template: Container App versioned application definition. - :vartype template: ~azure.mgmt.appcontainers.models.Template - :ivar outbound_ip_addresses: Outbound IP Addresses for container app. - :vartype outbound_ip_addresses: list[str] - :ivar event_stream_endpoint: The endpoint of the eventstream of the container app. - :vartype event_stream_endpoint: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - "location": {"required": True}, - "provisioning_state": {"readonly": True}, - "running_status": {"readonly": True}, - "latest_revision_name": {"readonly": True}, - "latest_ready_revision_name": {"readonly": True}, - "latest_revision_fqdn": {"readonly": True}, - "custom_domain_verification_id": {"readonly": True}, - "outbound_ip_addresses": {"readonly": True}, - "event_stream_endpoint": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "tags": {"key": "tags", "type": "{str}"}, - "location": {"key": "location", "type": "str"}, - "extended_location": {"key": "extendedLocation", "type": "ExtendedLocation"}, - "identity": {"key": "identity", "type": "ManagedServiceIdentity"}, - "managed_by": {"key": "managedBy", "type": "str"}, - "kind": {"key": "kind", "type": "str"}, - "provisioning_state": {"key": "properties.provisioningState", "type": "str"}, - "running_status": {"key": "properties.runningStatus", "type": "str"}, - "managed_environment_id": {"key": "properties.managedEnvironmentId", "type": "str"}, - "environment_id": {"key": "properties.environmentId", "type": "str"}, - "workload_profile_name": {"key": "properties.workloadProfileName", "type": "str"}, - "latest_revision_name": {"key": "properties.latestRevisionName", "type": "str"}, - "latest_ready_revision_name": {"key": "properties.latestReadyRevisionName", "type": "str"}, - "latest_revision_fqdn": {"key": "properties.latestRevisionFqdn", "type": "str"}, - "custom_domain_verification_id": {"key": "properties.customDomainVerificationId", "type": "str"}, - "configuration": {"key": "properties.configuration", "type": "Configuration"}, - "template": {"key": "properties.template", "type": "Template"}, - "outbound_ip_addresses": {"key": "properties.outboundIpAddresses", "type": "[str]"}, - "event_stream_endpoint": {"key": "properties.eventStreamEndpoint", "type": "str"}, - } - - def __init__( - self, - *, - location: str, - tags: Optional[dict[str, str]] = None, - extended_location: Optional["_models.ExtendedLocation"] = None, - identity: Optional["_models.ManagedServiceIdentity"] = None, - managed_by: Optional[str] = None, - kind: Optional[Union[str, "_models.Kind"]] = None, - managed_environment_id: Optional[str] = None, - environment_id: Optional[str] = None, - workload_profile_name: Optional[str] = None, - configuration: Optional["_models.Configuration"] = None, - template: Optional["_models.Template"] = None, - **kwargs: Any - ) -> None: - """ - :keyword tags: Resource tags. - :paramtype tags: dict[str, str] - :keyword location: The geo-location where the resource lives. Required. - :paramtype location: str - :keyword extended_location: The complex type of the extended location. - :paramtype extended_location: ~azure.mgmt.appcontainers.models.ExtendedLocation - :keyword identity: managed identities for the Container App to interact with other Azure - services without maintaining any secrets or credentials in code. - :paramtype identity: ~azure.mgmt.appcontainers.models.ManagedServiceIdentity - :keyword managed_by: The fully qualified resource ID of the resource that manages this - resource. Indicates if this resource is managed by another Azure resource. If this is present, - complete mode deployment will not delete the resource if it is removed from the template since - it is managed by another resource. - :paramtype managed_by: str - :keyword kind: Metadata to represent the container app kind, representing if a container app is - workflowapp or functionapp. Known values are: "workflowapp" and "functionapp". - :paramtype kind: str or ~azure.mgmt.appcontainers.models.Kind - :keyword managed_environment_id: Deprecated. Resource ID of the Container App's environment. - :paramtype managed_environment_id: str - :keyword environment_id: Resource ID of environment. - :paramtype environment_id: str - :keyword workload_profile_name: Workload profile name to pin for container app execution. - :paramtype workload_profile_name: str - :keyword configuration: Non versioned Container App configuration properties. - :paramtype configuration: ~azure.mgmt.appcontainers.models.Configuration - :keyword template: Container App versioned application definition. - :paramtype template: ~azure.mgmt.appcontainers.models.Template - """ - super().__init__(tags=tags, location=location, **kwargs) - self.extended_location = extended_location - self.identity = identity - self.managed_by = managed_by - self.kind = kind - self.provisioning_state: Optional[Union[str, "_models.ContainerAppProvisioningState"]] = None - self.running_status: Optional[Union[str, "_models.ContainerAppRunningStatus"]] = None - self.managed_environment_id = managed_environment_id - self.environment_id = environment_id - self.workload_profile_name = workload_profile_name - self.latest_revision_name: Optional[str] = None - self.latest_ready_revision_name: Optional[str] = None - self.latest_revision_fqdn: Optional[str] = None - self.custom_domain_verification_id: Optional[str] = None - self.configuration = configuration - self.template = template - self.outbound_ip_addresses: Optional[list[str]] = None - self.event_stream_endpoint: Optional[str] = None - - -class ContainerAppAuthToken(TrackedResource): - """Container App Auth Token. - - 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 id: Fully qualified resource ID for the resource. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData - :ivar tags: Resource tags. - :vartype tags: dict[str, str] - :ivar location: The geo-location where the resource lives. Required. - :vartype location: str - :ivar token: Auth token value. - :vartype token: str - :ivar expires: Token expiration date. - :vartype expires: ~datetime.datetime - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - "location": {"required": True}, - "token": {"readonly": True}, - "expires": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "tags": {"key": "tags", "type": "{str}"}, - "location": {"key": "location", "type": "str"}, - "token": {"key": "properties.token", "type": "str"}, - "expires": {"key": "properties.expires", "type": "iso-8601"}, - } - - def __init__(self, *, location: str, tags: Optional[dict[str, str]] = None, **kwargs: Any) -> None: - """ - :keyword tags: Resource tags. - :paramtype tags: dict[str, str] - :keyword location: The geo-location where the resource lives. Required. - :paramtype location: str - """ - super().__init__(tags=tags, location=location, **kwargs) - self.token: Optional[str] = None - self.expires: Optional[datetime.datetime] = None - - -class ContainerAppCollection(_serialization.Model): - """Container App collection ARM resource. - - 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 value: Collection of resources. Required. - :vartype value: list[~azure.mgmt.appcontainers.models.ContainerApp] - :ivar next_link: Link to next page of resources. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[ContainerApp]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: list["_models.ContainerApp"], **kwargs: Any) -> None: - """ - :keyword value: Collection of resources. Required. - :paramtype value: list[~azure.mgmt.appcontainers.models.ContainerApp] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None - - -class ContainerAppJobExecutions(_serialization.Model): - """Container App executions collection ARM resource. - - 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 value: Collection of resources. Required. - :vartype value: list[~azure.mgmt.appcontainers.models.JobExecution] - :ivar next_link: Link to next page of resources. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[JobExecution]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: list["_models.JobExecution"], **kwargs: Any) -> None: - """ - :keyword value: Collection of resources. Required. - :paramtype value: list[~azure.mgmt.appcontainers.models.JobExecution] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None - - -class ContainerAppProbe(_serialization.Model): - """Probe describes a health check to be performed against a container to determine whether it is - alive or ready to receive traffic. - - :ivar failure_threshold: Minimum consecutive failures for the probe to be considered failed - after having succeeded. Defaults to 3. Minimum value is 1. Maximum value is 10. - :vartype failure_threshold: int - :ivar http_get: HTTPGet specifies the http request to perform. - :vartype http_get: ~azure.mgmt.appcontainers.models.ContainerAppProbeHttpGet - :ivar initial_delay_seconds: Number of seconds after the container has started before liveness - probes are initiated. Minimum value is 1. Maximum value is 60. - :vartype initial_delay_seconds: int - :ivar period_seconds: How often (in seconds) to perform the probe. Default to 10 seconds. - Minimum value is 1. Maximum value is 240. - :vartype period_seconds: int - :ivar success_threshold: Minimum consecutive successes for the probe to be considered - successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum - value is 1. Maximum value is 10. - :vartype success_threshold: int - :ivar tcp_socket: TCPSocket specifies an action involving a TCP port. TCP hooks not yet - supported. - :vartype tcp_socket: ~azure.mgmt.appcontainers.models.ContainerAppProbeTcpSocket - :ivar termination_grace_period_seconds: Optional duration in seconds the pod needs to terminate - gracefully upon probe failure. The grace period is the duration in seconds after the processes - running in the pod 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. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, - this value overrides the value provided by the pod spec. Value must be non-negative integer. - The value zero indicates stop immediately via the kill signal (no opportunity to shut down). - This is an alpha field and requires enabling ProbeTerminationGracePeriod feature gate. Maximum - value is 3600 seconds (1 hour). - :vartype termination_grace_period_seconds: int - :ivar timeout_seconds: Number of seconds after which the probe times out. Defaults to 1 second. - Minimum value is 1. Maximum value is 240. - :vartype timeout_seconds: int - :ivar type: The type of probe. Known values are: "Liveness", "Readiness", and "Startup". - :vartype type: str or ~azure.mgmt.appcontainers.models.Type - """ - - _attribute_map = { - "failure_threshold": {"key": "failureThreshold", "type": "int"}, - "http_get": {"key": "httpGet", "type": "ContainerAppProbeHttpGet"}, - "initial_delay_seconds": {"key": "initialDelaySeconds", "type": "int"}, - "period_seconds": {"key": "periodSeconds", "type": "int"}, - "success_threshold": {"key": "successThreshold", "type": "int"}, - "tcp_socket": {"key": "tcpSocket", "type": "ContainerAppProbeTcpSocket"}, - "termination_grace_period_seconds": {"key": "terminationGracePeriodSeconds", "type": "int"}, - "timeout_seconds": {"key": "timeoutSeconds", "type": "int"}, - "type": {"key": "type", "type": "str"}, - } - - def __init__( - self, - *, - failure_threshold: Optional[int] = None, - http_get: Optional["_models.ContainerAppProbeHttpGet"] = None, - initial_delay_seconds: Optional[int] = None, - period_seconds: Optional[int] = None, - success_threshold: Optional[int] = None, - tcp_socket: Optional["_models.ContainerAppProbeTcpSocket"] = None, - termination_grace_period_seconds: Optional[int] = None, - timeout_seconds: Optional[int] = None, - type: Optional[Union[str, "_models.Type"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword failure_threshold: Minimum consecutive failures for the probe to be considered failed - after having succeeded. Defaults to 3. Minimum value is 1. Maximum value is 10. - :paramtype failure_threshold: int - :keyword http_get: HTTPGet specifies the http request to perform. - :paramtype http_get: ~azure.mgmt.appcontainers.models.ContainerAppProbeHttpGet - :keyword initial_delay_seconds: Number of seconds after the container has started before - liveness probes are initiated. Minimum value is 1. Maximum value is 60. - :paramtype initial_delay_seconds: int - :keyword period_seconds: How often (in seconds) to perform the probe. Default to 10 seconds. - Minimum value is 1. Maximum value is 240. - :paramtype period_seconds: int - :keyword success_threshold: Minimum consecutive successes for the probe to be considered - successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum - value is 1. Maximum value is 10. - :paramtype success_threshold: int - :keyword tcp_socket: TCPSocket specifies an action involving a TCP port. TCP hooks not yet - supported. - :paramtype tcp_socket: ~azure.mgmt.appcontainers.models.ContainerAppProbeTcpSocket - :keyword termination_grace_period_seconds: Optional duration in seconds the pod needs to - terminate gracefully upon probe failure. The grace period is the duration in seconds after the - processes running in the pod 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. If this value is nil, the pod's terminationGracePeriodSeconds will be used. - Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative - integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut - down). This is an alpha field and requires enabling ProbeTerminationGracePeriod feature gate. - Maximum value is 3600 seconds (1 hour). - :paramtype termination_grace_period_seconds: int - :keyword timeout_seconds: Number of seconds after which the probe times out. Defaults to 1 - second. Minimum value is 1. Maximum value is 240. - :paramtype timeout_seconds: int - :keyword type: The type of probe. Known values are: "Liveness", "Readiness", and "Startup". - :paramtype type: str or ~azure.mgmt.appcontainers.models.Type - """ - super().__init__(**kwargs) - self.failure_threshold = failure_threshold - self.http_get = http_get - self.initial_delay_seconds = initial_delay_seconds - self.period_seconds = period_seconds - self.success_threshold = success_threshold - self.tcp_socket = tcp_socket - self.termination_grace_period_seconds = termination_grace_period_seconds - self.timeout_seconds = timeout_seconds - self.type = type - - -class ContainerAppProbeHttpGet(_serialization.Model): - """HTTPGet specifies the http request to perform. - - All required parameters must be populated in order to send to server. - - :ivar host: Host name to connect to, defaults to the pod IP. You probably want to set "Host" in - httpHeaders instead. - :vartype host: str - :ivar http_headers: Custom headers to set in the request. HTTP allows repeated headers. - :vartype http_headers: - list[~azure.mgmt.appcontainers.models.ContainerAppProbeHttpGetHttpHeadersItem] - :ivar path: Path to access on the HTTP server. - :vartype path: str - :ivar port: Name or number of the port to access on the container. Number must be in the range - 1 to 65535. Name must be an IANA_SVC_NAME. Required. - :vartype port: int - :ivar scheme: Scheme to use for connecting to the host. Defaults to HTTP. Known values are: - "HTTP" and "HTTPS". - :vartype scheme: str or ~azure.mgmt.appcontainers.models.Scheme - """ - - _validation = { - "port": {"required": True}, - } - - _attribute_map = { - "host": {"key": "host", "type": "str"}, - "http_headers": {"key": "httpHeaders", "type": "[ContainerAppProbeHttpGetHttpHeadersItem]"}, - "path": {"key": "path", "type": "str"}, - "port": {"key": "port", "type": "int"}, - "scheme": {"key": "scheme", "type": "str"}, - } - - def __init__( - self, - *, - port: int, - host: Optional[str] = None, - http_headers: Optional[list["_models.ContainerAppProbeHttpGetHttpHeadersItem"]] = None, - path: Optional[str] = None, - scheme: Optional[Union[str, "_models.Scheme"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword host: Host name to connect to, defaults to the pod IP. You probably want to set "Host" - in httpHeaders instead. - :paramtype host: str - :keyword http_headers: Custom headers to set in the request. HTTP allows repeated headers. - :paramtype http_headers: - list[~azure.mgmt.appcontainers.models.ContainerAppProbeHttpGetHttpHeadersItem] - :keyword path: Path to access on the HTTP server. - :paramtype path: str - :keyword port: Name or number of the port to access on the container. Number must be in the - range 1 to 65535. Name must be an IANA_SVC_NAME. Required. - :paramtype port: int - :keyword scheme: Scheme to use for connecting to the host. Defaults to HTTP. Known values are: - "HTTP" and "HTTPS". - :paramtype scheme: str or ~azure.mgmt.appcontainers.models.Scheme - """ - super().__init__(**kwargs) - self.host = host - self.http_headers = http_headers - self.path = path - self.port = port - self.scheme = scheme - - -class ContainerAppProbeHttpGetHttpHeadersItem(_serialization.Model): - """HTTPHeader describes a custom header to be used in HTTP probes. - - All required parameters must be populated in order to send to server. - - :ivar name: The header field name. Required. - :vartype name: str - :ivar value: The header field value. Required. - :vartype value: str - """ - - _validation = { - "name": {"required": True}, - "value": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, *, name: str, value: str, **kwargs: Any) -> None: - """ - :keyword name: The header field name. Required. - :paramtype name: str - :keyword value: The header field value. Required. - :paramtype value: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - - -class ContainerAppProbeTcpSocket(_serialization.Model): - """TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported. - - All required parameters must be populated in order to send to server. - - :ivar host: Optional: Host name to connect to, defaults to the pod IP. - :vartype host: str - :ivar port: Number or name of the port to access on the container. Number must be in the range - 1 to 65535. Name must be an IANA_SVC_NAME. Required. - :vartype port: int - """ - - _validation = { - "port": {"required": True}, - } - - _attribute_map = { - "host": {"key": "host", "type": "str"}, - "port": {"key": "port", "type": "int"}, - } - - def __init__(self, *, port: int, host: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword host: Optional: Host name to connect to, defaults to the pod IP. - :paramtype host: str - :keyword port: Number or name of the port to access on the container. Number must be in the - range 1 to 65535. Name must be an IANA_SVC_NAME. Required. - :paramtype port: int - """ - super().__init__(**kwargs) - self.host = host - self.port = port - - -class ContainerAppSecret(_serialization.Model): - """Container App Secret. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Secret Name. - :vartype name: str - :ivar value: Secret Value. - :vartype value: str - :ivar identity: Resource ID of a managed identity to authenticate with Azure Key Vault, or - System to use a system-assigned identity. - :vartype identity: str - :ivar key_vault_url: Azure Key Vault URL pointing to the secret referenced by the container - app. - :vartype key_vault_url: str - """ - - _validation = { - "name": {"readonly": True}, - "value": {"readonly": True}, - "identity": {"readonly": True}, - "key_vault_url": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - "identity": {"key": "identity", "type": "str"}, - "key_vault_url": {"key": "keyVaultUrl", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name: Optional[str] = None - self.value: Optional[str] = None - self.identity: Optional[str] = None - self.key_vault_url: Optional[str] = None - - -class ContainerResources(_serialization.Model): - """Container App container resource requirements. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Required CPU in cores, e.g. 0.5. - :vartype cpu: float - :ivar memory: Required memory, e.g. "250Mb". - :vartype memory: str - :ivar ephemeral_storage: Ephemeral Storage, e.g. "1Gi". - :vartype ephemeral_storage: str - """ - - _validation = { - "ephemeral_storage": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "float"}, - "memory": {"key": "memory", "type": "str"}, - "ephemeral_storage": {"key": "ephemeralStorage", "type": "str"}, - } - - def __init__(self, *, cpu: Optional[float] = None, memory: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword cpu: Required CPU in cores, e.g. 0.5. - :paramtype cpu: float - :keyword memory: Required memory, e.g. "250Mb". - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - self.ephemeral_storage: Optional[str] = None - - -class CookieExpiration(_serialization.Model): - """The configuration settings of the session cookie's expiration. - - :ivar convention: The convention used when determining the session cookie's expiration. Known - values are: "FixedTime" and "IdentityProviderDerived". - :vartype convention: str or ~azure.mgmt.appcontainers.models.CookieExpirationConvention - :ivar time_to_expiration: The time after the request is made when the session cookie should - expire. - :vartype time_to_expiration: str - """ - - _attribute_map = { - "convention": {"key": "convention", "type": "str"}, - "time_to_expiration": {"key": "timeToExpiration", "type": "str"}, - } - - def __init__( - self, - *, - convention: Optional[Union[str, "_models.CookieExpirationConvention"]] = None, - time_to_expiration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword convention: The convention used when determining the session cookie's expiration. - Known values are: "FixedTime" and "IdentityProviderDerived". - :paramtype convention: str or ~azure.mgmt.appcontainers.models.CookieExpirationConvention - :keyword time_to_expiration: The time after the request is made when the session cookie should - expire. - :paramtype time_to_expiration: str - """ - super().__init__(**kwargs) - self.convention = convention - self.time_to_expiration = time_to_expiration - - -class CorsPolicy(_serialization.Model): - """Cross-Origin-Resource-Sharing policy. - - All required parameters must be populated in order to send to server. - - :ivar allowed_origins: Specifies the content for the access-control-allow-origins header. - Required. - :vartype allowed_origins: list[str] - :ivar allowed_methods: Specifies the content for the access-control-allow-methods header. - :vartype allowed_methods: list[str] - :ivar allowed_headers: Specifies the content for the access-control-allow-headers header. - :vartype allowed_headers: list[str] - :ivar expose_headers: Specifies the content for the access-control-expose-headers header. - :vartype expose_headers: list[str] - :ivar max_age: Specifies the content for the access-control-max-age header. - :vartype max_age: int - :ivar allow_credentials: Specifies whether the resource allows credentials. - :vartype allow_credentials: bool - """ - - _validation = { - "allowed_origins": {"required": True}, - } - - _attribute_map = { - "allowed_origins": {"key": "allowedOrigins", "type": "[str]"}, - "allowed_methods": {"key": "allowedMethods", "type": "[str]"}, - "allowed_headers": {"key": "allowedHeaders", "type": "[str]"}, - "expose_headers": {"key": "exposeHeaders", "type": "[str]"}, - "max_age": {"key": "maxAge", "type": "int"}, - "allow_credentials": {"key": "allowCredentials", "type": "bool"}, - } - - def __init__( - self, - *, - allowed_origins: list[str], - allowed_methods: Optional[list[str]] = None, - allowed_headers: Optional[list[str]] = None, - expose_headers: Optional[list[str]] = None, - max_age: Optional[int] = None, - allow_credentials: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword allowed_origins: Specifies the content for the access-control-allow-origins header. - Required. - :paramtype allowed_origins: list[str] - :keyword allowed_methods: Specifies the content for the access-control-allow-methods header. - :paramtype allowed_methods: list[str] - :keyword allowed_headers: Specifies the content for the access-control-allow-headers header. - :paramtype allowed_headers: list[str] - :keyword expose_headers: Specifies the content for the access-control-expose-headers header. - :paramtype expose_headers: list[str] - :keyword max_age: Specifies the content for the access-control-max-age header. - :paramtype max_age: int - :keyword allow_credentials: Specifies whether the resource allows credentials. - :paramtype allow_credentials: bool - """ - super().__init__(**kwargs) - self.allowed_origins = allowed_origins - self.allowed_methods = allowed_methods - self.allowed_headers = allowed_headers - self.expose_headers = expose_headers - self.max_age = max_age - self.allow_credentials = allow_credentials - - -class CustomContainerTemplate(_serialization.Model): - """Custom container configuration. - - :ivar registry_credentials: Private container registry credentials for containers used by the - sessions of the session pool. - :vartype registry_credentials: ~azure.mgmt.appcontainers.models.SessionRegistryCredentials - :ivar containers: List of container definitions for the sessions of the session pool. - :vartype containers: list[~azure.mgmt.appcontainers.models.SessionContainer] - :ivar ingress: Session pool ingress configuration. - :vartype ingress: ~azure.mgmt.appcontainers.models.SessionIngress - """ - - _attribute_map = { - "registry_credentials": {"key": "registryCredentials", "type": "SessionRegistryCredentials"}, - "containers": {"key": "containers", "type": "[SessionContainer]"}, - "ingress": {"key": "ingress", "type": "SessionIngress"}, - } - - def __init__( - self, - *, - registry_credentials: Optional["_models.SessionRegistryCredentials"] = None, - containers: Optional[list["_models.SessionContainer"]] = None, - ingress: Optional["_models.SessionIngress"] = None, - **kwargs: Any - ) -> None: - """ - :keyword registry_credentials: Private container registry credentials for containers used by - the sessions of the session pool. - :paramtype registry_credentials: ~azure.mgmt.appcontainers.models.SessionRegistryCredentials - :keyword containers: List of container definitions for the sessions of the session pool. - :paramtype containers: list[~azure.mgmt.appcontainers.models.SessionContainer] - :keyword ingress: Session pool ingress configuration. - :paramtype ingress: ~azure.mgmt.appcontainers.models.SessionIngress - """ - super().__init__(**kwargs) - self.registry_credentials = registry_credentials - self.containers = containers - self.ingress = ingress - - -class CustomDomain(_serialization.Model): - """Custom Domain of a Container App. - - All required parameters must be populated in order to send to server. - - :ivar name: Hostname. Required. - :vartype name: str - :ivar binding_type: Custom Domain binding type. Known values are: "Disabled", "SniEnabled", and - "Auto". - :vartype binding_type: str or ~azure.mgmt.appcontainers.models.BindingType - :ivar certificate_id: Resource Id of the Certificate to be bound to this hostname. Must exist - in the Managed Environment. - :vartype certificate_id: str - """ - - _validation = { - "name": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "binding_type": {"key": "bindingType", "type": "str"}, - "certificate_id": {"key": "certificateId", "type": "str"}, - } - - def __init__( - self, - *, - name: str, - binding_type: Optional[Union[str, "_models.BindingType"]] = None, - certificate_id: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Hostname. Required. - :paramtype name: str - :keyword binding_type: Custom Domain binding type. Known values are: "Disabled", "SniEnabled", - and "Auto". - :paramtype binding_type: str or ~azure.mgmt.appcontainers.models.BindingType - :keyword certificate_id: Resource Id of the Certificate to be bound to this hostname. Must - exist in the Managed Environment. - :paramtype certificate_id: str - """ - super().__init__(**kwargs) - self.name = name - self.binding_type = binding_type - self.certificate_id = certificate_id - - -class CustomDomainConfiguration(_serialization.Model): - """Configuration properties for apps environment custom domain. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar custom_domain_verification_id: Id used to verify domain name ownership. - :vartype custom_domain_verification_id: str - :ivar dns_suffix: Dns suffix for the environment domain. - :vartype dns_suffix: str - :ivar certificate_key_vault_properties: Certificate stored in Azure Key Vault. - :vartype certificate_key_vault_properties: - ~azure.mgmt.appcontainers.models.CertificateKeyVaultProperties - :ivar certificate_value: PFX or PEM blob. - :vartype certificate_value: bytes - :ivar certificate_password: Certificate password. - :vartype certificate_password: str - :ivar expiration_date: Certificate expiration date. - :vartype expiration_date: ~datetime.datetime - :ivar thumbprint: Certificate thumbprint. - :vartype thumbprint: str - :ivar subject_name: Subject name of the certificate. - :vartype subject_name: str - """ - - _validation = { - "custom_domain_verification_id": {"readonly": True}, - "expiration_date": {"readonly": True}, - "thumbprint": {"readonly": True}, - "subject_name": {"readonly": True}, - } - - _attribute_map = { - "custom_domain_verification_id": {"key": "customDomainVerificationId", "type": "str"}, - "dns_suffix": {"key": "dnsSuffix", "type": "str"}, - "certificate_key_vault_properties": { - "key": "certificateKeyVaultProperties", - "type": "CertificateKeyVaultProperties", - }, - "certificate_value": {"key": "certificateValue", "type": "bytearray"}, - "certificate_password": {"key": "certificatePassword", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "iso-8601"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - } - - def __init__( - self, - *, - dns_suffix: Optional[str] = None, - certificate_key_vault_properties: Optional["_models.CertificateKeyVaultProperties"] = None, - certificate_value: Optional[bytes] = None, - certificate_password: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword dns_suffix: Dns suffix for the environment domain. - :paramtype dns_suffix: str - :keyword certificate_key_vault_properties: Certificate stored in Azure Key Vault. - :paramtype certificate_key_vault_properties: - ~azure.mgmt.appcontainers.models.CertificateKeyVaultProperties - :keyword certificate_value: PFX or PEM blob. - :paramtype certificate_value: bytes - :keyword certificate_password: Certificate password. - :paramtype certificate_password: str - """ - super().__init__(**kwargs) - self.custom_domain_verification_id: Optional[str] = None - self.dns_suffix = dns_suffix - self.certificate_key_vault_properties = certificate_key_vault_properties - self.certificate_value = certificate_value - self.certificate_password = certificate_password - self.expiration_date: Optional[datetime.datetime] = None - self.thumbprint: Optional[str] = None - self.subject_name: Optional[str] = None - - -class CustomHostnameAnalysisResult(_serialization.Model): - """Custom domain analysis. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar host_name: Host name that was analyzed. - :vartype host_name: str - :ivar is_hostname_already_verified: :code:`true` if hostname is already verified; - otherwise, :code:`false`. - :vartype is_hostname_already_verified: bool - :ivar custom_domain_verification_test: DNS verification test result. Known values are: - "Passed", "Failed", and "Skipped". - :vartype custom_domain_verification_test: str or - ~azure.mgmt.appcontainers.models.DnsVerificationTestResult - :ivar custom_domain_verification_failure_info: Raw failure information if DNS verification - fails. - :vartype custom_domain_verification_failure_info: - ~azure.mgmt.appcontainers.models.CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo - :ivar has_conflict_on_managed_environment: :code:`true` if there is a conflict on - the Container App's managed environment; otherwise, :code:`false`. - :vartype has_conflict_on_managed_environment: bool - :ivar conflict_with_environment_custom_domain: :code:`true` if there is a conflict - on the Container App's managed environment level custom domain; otherwise, - :code:`false`. - :vartype conflict_with_environment_custom_domain: bool - :ivar conflicting_container_app_resource_id: Name of the conflicting Container App on the - Managed Environment if it's within the same subscription. - :vartype conflicting_container_app_resource_id: str - :ivar c_name_records: CName records visible for this hostname. - :vartype c_name_records: list[str] - :ivar txt_records: TXT records visible for this hostname. - :vartype txt_records: list[str] - :ivar a_records: A records visible for this hostname. - :vartype a_records: list[str] - :ivar alternate_c_name_records: Alternate CName records visible for this hostname. - :vartype alternate_c_name_records: list[str] - :ivar alternate_txt_records: Alternate TXT records visible for this hostname. - :vartype alternate_txt_records: list[str] - """ - - _validation = { - "host_name": {"readonly": True}, - "is_hostname_already_verified": {"readonly": True}, - "custom_domain_verification_test": {"readonly": True}, - "custom_domain_verification_failure_info": {"readonly": True}, - "has_conflict_on_managed_environment": {"readonly": True}, - "conflict_with_environment_custom_domain": {"readonly": True}, - "conflicting_container_app_resource_id": {"readonly": True}, - } - - _attribute_map = { - "host_name": {"key": "hostName", "type": "str"}, - "is_hostname_already_verified": {"key": "isHostnameAlreadyVerified", "type": "bool"}, - "custom_domain_verification_test": {"key": "customDomainVerificationTest", "type": "str"}, - "custom_domain_verification_failure_info": { - "key": "customDomainVerificationFailureInfo", - "type": "CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo", - }, - "has_conflict_on_managed_environment": {"key": "hasConflictOnManagedEnvironment", "type": "bool"}, - "conflict_with_environment_custom_domain": {"key": "conflictWithEnvironmentCustomDomain", "type": "bool"}, - "conflicting_container_app_resource_id": {"key": "conflictingContainerAppResourceId", "type": "str"}, - "c_name_records": {"key": "cNameRecords", "type": "[str]"}, - "txt_records": {"key": "txtRecords", "type": "[str]"}, - "a_records": {"key": "aRecords", "type": "[str]"}, - "alternate_c_name_records": {"key": "alternateCNameRecords", "type": "[str]"}, - "alternate_txt_records": {"key": "alternateTxtRecords", "type": "[str]"}, - } - - def __init__( - self, - *, - c_name_records: Optional[list[str]] = None, - txt_records: Optional[list[str]] = None, - a_records: Optional[list[str]] = None, - alternate_c_name_records: Optional[list[str]] = None, - alternate_txt_records: Optional[list[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword c_name_records: CName records visible for this hostname. - :paramtype c_name_records: list[str] - :keyword txt_records: TXT records visible for this hostname. - :paramtype txt_records: list[str] - :keyword a_records: A records visible for this hostname. - :paramtype a_records: list[str] - :keyword alternate_c_name_records: Alternate CName records visible for this hostname. - :paramtype alternate_c_name_records: list[str] - :keyword alternate_txt_records: Alternate TXT records visible for this hostname. - :paramtype alternate_txt_records: list[str] - """ - super().__init__(**kwargs) - self.host_name: Optional[str] = None - self.is_hostname_already_verified: Optional[bool] = None - self.custom_domain_verification_test: Optional[Union[str, "_models.DnsVerificationTestResult"]] = None - self.custom_domain_verification_failure_info: Optional[ - "_models.CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo" - ] = None - self.has_conflict_on_managed_environment: Optional[bool] = None - self.conflict_with_environment_custom_domain: Optional[bool] = None - self.conflicting_container_app_resource_id: Optional[str] = None - self.c_name_records = c_name_records - self.txt_records = txt_records - self.a_records = a_records - self.alternate_c_name_records = alternate_c_name_records - self.alternate_txt_records = alternate_txt_records - - -class CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo( - _serialization.Model -): # pylint: disable=name-too-long - """Raw failure information if DNS verification fails. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar code: Standardized string to programmatically identify the error. - :vartype code: str - :ivar message: Detailed error description and debugging information. - :vartype message: str - :ivar target: Detailed error description and debugging information. - :vartype target: str - :ivar details: Details or the error. - :vartype details: - list[~azure.mgmt.appcontainers.models.CustomHostnameAnalysisResultCustomDomainVerificationFailureInfoDetailsItem] - """ - - _validation = { - "code": {"readonly": True}, - "message": {"readonly": True}, - "target": {"readonly": True}, - } - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "target": {"key": "target", "type": "str"}, - "details": { - "key": "details", - "type": "[CustomHostnameAnalysisResultCustomDomainVerificationFailureInfoDetailsItem]", - }, - } - - def __init__( - self, - *, - details: Optional[ - list["_models.CustomHostnameAnalysisResultCustomDomainVerificationFailureInfoDetailsItem"] - ] = None, - **kwargs: Any - ) -> None: - """ - :keyword details: Details or the error. - :paramtype details: - list[~azure.mgmt.appcontainers.models.CustomHostnameAnalysisResultCustomDomainVerificationFailureInfoDetailsItem] - """ - super().__init__(**kwargs) - self.code: Optional[str] = None - self.message: Optional[str] = None - self.target: Optional[str] = None - self.details = details - - -class CustomHostnameAnalysisResultCustomDomainVerificationFailureInfoDetailsItem( - _serialization.Model -): # pylint: disable=name-too-long - """Detailed errors. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar code: Standardized string to programmatically identify the error. - :vartype code: str - :ivar message: Detailed error description and debugging information. - :vartype message: str - :ivar target: Detailed error description and debugging information. - :vartype target: str - """ - - _validation = { - "code": {"readonly": True}, - "message": {"readonly": True}, - "target": {"readonly": True}, - } - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "target": {"key": "target", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.code: Optional[str] = None - self.message: Optional[str] = None - self.target: Optional[str] = None - - -class CustomOpenIdConnectProvider(_serialization.Model): - """The configuration settings of the custom Open ID Connect provider. - - :ivar enabled: :code:`false` if the custom Open ID provider provider should not be - enabled; otherwise, :code:`true`. - :vartype enabled: bool - :ivar registration: The configuration settings of the app registration for the custom Open ID - Connect provider. - :vartype registration: ~azure.mgmt.appcontainers.models.OpenIdConnectRegistration - :ivar login: The configuration settings of the login flow of the custom Open ID Connect - provider. - :vartype login: ~azure.mgmt.appcontainers.models.OpenIdConnectLogin - """ - - _attribute_map = { - "enabled": {"key": "enabled", "type": "bool"}, - "registration": {"key": "registration", "type": "OpenIdConnectRegistration"}, - "login": {"key": "login", "type": "OpenIdConnectLogin"}, - } - - def __init__( - self, - *, - enabled: Optional[bool] = None, - registration: Optional["_models.OpenIdConnectRegistration"] = None, - login: Optional["_models.OpenIdConnectLogin"] = None, - **kwargs: Any - ) -> None: - """ - :keyword enabled: :code:`false` if the custom Open ID provider provider should not - be enabled; otherwise, :code:`true`. - :paramtype enabled: bool - :keyword registration: The configuration settings of the app registration for the custom Open - ID Connect provider. - :paramtype registration: ~azure.mgmt.appcontainers.models.OpenIdConnectRegistration - :keyword login: The configuration settings of the login flow of the custom Open ID Connect - provider. - :paramtype login: ~azure.mgmt.appcontainers.models.OpenIdConnectLogin - """ - super().__init__(**kwargs) - self.enabled = enabled - self.registration = registration - self.login = login - - -class CustomScaleRule(_serialization.Model): - """Container App container 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.appcontainers.models.ScaleRuleAuth] - :ivar identity: The resource ID of a user-assigned managed identity that is assigned to the - Container App, or 'system' for system-assigned identity. - :vartype identity: str - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "metadata": {"key": "metadata", "type": "{str}"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - "identity": {"key": "identity", "type": "str"}, - } - - def __init__( - self, - *, - type: Optional[str] = None, - metadata: Optional[dict[str, str]] = None, - auth: Optional[list["_models.ScaleRuleAuth"]] = None, - identity: Optional[str] = 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.appcontainers.models.ScaleRuleAuth] - :keyword identity: The resource ID of a user-assigned managed identity that is assigned to the - Container App, or 'system' for system-assigned identity. - :paramtype identity: str - """ - super().__init__(**kwargs) - self.type = type - self.metadata = metadata - self.auth = auth - self.identity = identity - - -class Dapr(_serialization.Model): - """Container App Dapr configuration. - - :ivar enabled: Boolean indicating if the Dapr side car is enabled. - :vartype enabled: bool - :ivar app_id: Dapr application identifier. - :vartype app_id: str - :ivar app_protocol: Tells Dapr which protocol your application is using. Valid options are http - and grpc. Default is http. Known values are: "http" and "grpc". - :vartype app_protocol: str or ~azure.mgmt.appcontainers.models.AppProtocol - :ivar app_port: Tells Dapr which port your application is listening on. - :vartype app_port: int - :ivar http_read_buffer_size: Dapr max size of http header read buffer in KB to handle when - sending multi-KB headers. Default is 65KB. - :vartype http_read_buffer_size: int - :ivar http_max_request_size: Increasing max size of request body http and grpc servers - parameter in MB to handle uploading of big files. Default is 4 MB. - :vartype http_max_request_size: int - :ivar log_level: Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, - error. Default is info. Known values are: "info", "debug", "warn", and "error". - :vartype log_level: str or ~azure.mgmt.appcontainers.models.LogLevel - :ivar enable_api_logging: Enables API logging for the Dapr sidecar. - :vartype enable_api_logging: bool - :ivar app_health: Dapr application health check configuration. - :vartype app_health: ~azure.mgmt.appcontainers.models.DaprAppHealth - :ivar max_concurrency: Maximum number of concurrent requests, events handled by the Dapr - sidecar. - :vartype max_concurrency: int - """ - - _attribute_map = { - "enabled": {"key": "enabled", "type": "bool"}, - "app_id": {"key": "appId", "type": "str"}, - "app_protocol": {"key": "appProtocol", "type": "str"}, - "app_port": {"key": "appPort", "type": "int"}, - "http_read_buffer_size": {"key": "httpReadBufferSize", "type": "int"}, - "http_max_request_size": {"key": "httpMaxRequestSize", "type": "int"}, - "log_level": {"key": "logLevel", "type": "str"}, - "enable_api_logging": {"key": "enableApiLogging", "type": "bool"}, - "app_health": {"key": "appHealth", "type": "DaprAppHealth"}, - "max_concurrency": {"key": "maxConcurrency", "type": "int"}, - } - - def __init__( - self, - *, - enabled: bool = False, - app_id: Optional[str] = None, - app_protocol: Union[str, "_models.AppProtocol"] = "http", - app_port: Optional[int] = None, - http_read_buffer_size: Optional[int] = None, - http_max_request_size: Optional[int] = None, - log_level: Optional[Union[str, "_models.LogLevel"]] = None, - enable_api_logging: Optional[bool] = None, - app_health: Optional["_models.DaprAppHealth"] = None, - max_concurrency: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword enabled: Boolean indicating if the Dapr side car is enabled. - :paramtype enabled: bool - :keyword app_id: Dapr application identifier. - :paramtype app_id: str - :keyword app_protocol: Tells Dapr which protocol your application is using. Valid options are - http and grpc. Default is http. Known values are: "http" and "grpc". - :paramtype app_protocol: str or ~azure.mgmt.appcontainers.models.AppProtocol - :keyword app_port: Tells Dapr which port your application is listening on. - :paramtype app_port: int - :keyword http_read_buffer_size: Dapr max size of http header read buffer in KB to handle when - sending multi-KB headers. Default is 65KB. - :paramtype http_read_buffer_size: int - :keyword http_max_request_size: Increasing max size of request body http and grpc servers - parameter in MB to handle uploading of big files. Default is 4 MB. - :paramtype http_max_request_size: int - :keyword log_level: Sets the log level for the Dapr sidecar. Allowed values are debug, info, - warn, error. Default is info. Known values are: "info", "debug", "warn", and "error". - :paramtype log_level: str or ~azure.mgmt.appcontainers.models.LogLevel - :keyword enable_api_logging: Enables API logging for the Dapr sidecar. - :paramtype enable_api_logging: bool - :keyword app_health: Dapr application health check configuration. - :paramtype app_health: ~azure.mgmt.appcontainers.models.DaprAppHealth - :keyword max_concurrency: Maximum number of concurrent requests, events handled by the Dapr - sidecar. - :paramtype max_concurrency: int - """ - super().__init__(**kwargs) - self.enabled = enabled - self.app_id = app_id - self.app_protocol = app_protocol - self.app_port = app_port - self.http_read_buffer_size = http_read_buffer_size - self.http_max_request_size = http_max_request_size - self.log_level = log_level - self.enable_api_logging = enable_api_logging - self.app_health = app_health - self.max_concurrency = max_concurrency - - -class DaprAppHealth(_serialization.Model): - """Dapr application health check configuration. - - :ivar enabled: Boolean indicating if the health probe is enabled. - :vartype enabled: bool - :ivar path: Path for the health probe. - :vartype path: str - :ivar probe_interval_seconds: Interval for the health probe in seconds. - :vartype probe_interval_seconds: int - :ivar probe_timeout_milliseconds: Timeout for the health probe in milliseconds. - :vartype probe_timeout_milliseconds: int - :ivar threshold: Threshold for the health probe. - :vartype threshold: int - """ - - _validation = { - "probe_interval_seconds": {"minimum": 1}, - "probe_timeout_milliseconds": {"minimum": 1}, - "threshold": {"minimum": 1}, - } - - _attribute_map = { - "enabled": {"key": "enabled", "type": "bool"}, - "path": {"key": "path", "type": "str"}, - "probe_interval_seconds": {"key": "probeIntervalSeconds", "type": "int"}, - "probe_timeout_milliseconds": {"key": "probeTimeoutMilliseconds", "type": "int"}, - "threshold": {"key": "threshold", "type": "int"}, - } - - def __init__( - self, - *, - enabled: Optional[bool] = None, - path: Optional[str] = None, - probe_interval_seconds: Optional[int] = None, - probe_timeout_milliseconds: Optional[int] = None, - threshold: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword enabled: Boolean indicating if the health probe is enabled. - :paramtype enabled: bool - :keyword path: Path for the health probe. - :paramtype path: str - :keyword probe_interval_seconds: Interval for the health probe in seconds. - :paramtype probe_interval_seconds: int - :keyword probe_timeout_milliseconds: Timeout for the health probe in milliseconds. - :paramtype probe_timeout_milliseconds: int - :keyword threshold: Threshold for the health probe. - :paramtype threshold: int - """ - super().__init__(**kwargs) - self.enabled = enabled - self.path = path - self.probe_interval_seconds = probe_interval_seconds - self.probe_timeout_milliseconds = probe_timeout_milliseconds - self.threshold = threshold - - -class DaprComponent(ProxyResource): - """Dapr Component. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData - :ivar component_type: Component type. - :vartype component_type: str - :ivar version: Component version. - :vartype version: str - :ivar ignore_errors: Boolean describing if the component errors are ignores. - :vartype ignore_errors: bool - :ivar init_timeout: Initialization timeout. - :vartype init_timeout: str - :ivar secrets: Collection of secrets used by a Dapr component. - :vartype secrets: list[~azure.mgmt.appcontainers.models.Secret] - :ivar secret_store_component: Name of a Dapr component to retrieve component secrets from. - :vartype secret_store_component: str - :ivar metadata: Component metadata. - :vartype metadata: list[~azure.mgmt.appcontainers.models.DaprMetadata] - :ivar scopes: Names of container apps that can use this Dapr component. - :vartype scopes: list[str] - :ivar provisioning_state: Provisioning state of the Dapr Component. Known values are: - "Succeeded", "Failed", "Canceled", "InProgress", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appcontainers.models.DaprComponentProvisioningState - :ivar deployment_errors: Any errors that occurred during deployment or deployment validation. - :vartype deployment_errors: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "deployment_errors": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "component_type": {"key": "properties.componentType", "type": "str"}, - "version": {"key": "properties.version", "type": "str"}, - "ignore_errors": {"key": "properties.ignoreErrors", "type": "bool"}, - "init_timeout": {"key": "properties.initTimeout", "type": "str"}, - "secrets": {"key": "properties.secrets", "type": "[Secret]"}, - "secret_store_component": {"key": "properties.secretStoreComponent", "type": "str"}, - "metadata": {"key": "properties.metadata", "type": "[DaprMetadata]"}, - "scopes": {"key": "properties.scopes", "type": "[str]"}, - "provisioning_state": {"key": "properties.provisioningState", "type": "str"}, - "deployment_errors": {"key": "properties.deploymentErrors", "type": "str"}, - } - - def __init__( - self, - *, - component_type: Optional[str] = None, - version: Optional[str] = None, - ignore_errors: bool = False, - init_timeout: Optional[str] = None, - secrets: Optional[list["_models.Secret"]] = None, - secret_store_component: Optional[str] = None, - metadata: Optional[list["_models.DaprMetadata"]] = None, - scopes: Optional[list[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword component_type: Component type. - :paramtype component_type: str - :keyword version: Component version. - :paramtype version: str - :keyword ignore_errors: Boolean describing if the component errors are ignores. - :paramtype ignore_errors: bool - :keyword init_timeout: Initialization timeout. - :paramtype init_timeout: str - :keyword secrets: Collection of secrets used by a Dapr component. - :paramtype secrets: list[~azure.mgmt.appcontainers.models.Secret] - :keyword secret_store_component: Name of a Dapr component to retrieve component secrets from. - :paramtype secret_store_component: str - :keyword metadata: Component metadata. - :paramtype metadata: list[~azure.mgmt.appcontainers.models.DaprMetadata] - :keyword scopes: Names of container apps that can use this Dapr component. - :paramtype scopes: list[str] - """ - super().__init__(**kwargs) - self.component_type = component_type - self.version = version - self.ignore_errors = ignore_errors - self.init_timeout = init_timeout - self.secrets = secrets - self.secret_store_component = secret_store_component - self.metadata = metadata - self.scopes = scopes - self.provisioning_state: Optional[Union[str, "_models.DaprComponentProvisioningState"]] = None - self.deployment_errors: Optional[str] = None - - -class DaprComponentsCollection(_serialization.Model): - """Dapr Components ARM resource. - - 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 value: Collection of resources. Required. - :vartype value: list[~azure.mgmt.appcontainers.models.DaprComponent] - :ivar next_link: Link to next page of resources. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[DaprComponent]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: list["_models.DaprComponent"], **kwargs: Any) -> None: - """ - :keyword value: Collection of resources. Required. - :paramtype value: list[~azure.mgmt.appcontainers.models.DaprComponent] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None - - -class DaprConfiguration(_serialization.Model): - """Configuration properties Dapr component. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar version: The version of Dapr. - :vartype version: str - """ - - _validation = { - "version": {"readonly": True}, - } - - _attribute_map = { - "version": {"key": "version", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.version: Optional[str] = None - - -class DaprMetadata(_serialization.Model): - """Dapr component metadata. - - :ivar name: Metadata property name. - :vartype name: str - :ivar value: Metadata property value. - :vartype value: str - :ivar secret_ref: Name of the Dapr Component secret from which to pull the metadata property - value. - :vartype secret_ref: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - "secret_ref": {"key": "secretRef", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - value: Optional[str] = None, - secret_ref: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Metadata property name. - :paramtype name: str - :keyword value: Metadata property value. - :paramtype value: str - :keyword secret_ref: Name of the Dapr Component secret from which to pull the metadata property - value. - :paramtype secret_ref: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - self.secret_ref = secret_ref - - -class DaprSecret(_serialization.Model): - """Dapr component Secret for ListSecrets Action. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Secret Name. - :vartype name: str - :ivar value: Secret Value. - :vartype value: str - """ - - _validation = { - "name": {"readonly": True}, - "value": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name: Optional[str] = None - self.value: Optional[str] = None - - -class DaprSecretsCollection(_serialization.Model): - """Dapr component Secrets Collection for ListSecrets Action. - - All required parameters must be populated in order to send to server. - - :ivar value: Collection of secrets used by a Dapr component. Required. - :vartype value: list[~azure.mgmt.appcontainers.models.DaprSecret] - """ - - _validation = { - "value": {"required": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[DaprSecret]"}, - } - - def __init__(self, *, value: list["_models.DaprSecret"], **kwargs: Any) -> None: - """ - :keyword value: Collection of secrets used by a Dapr component. Required. - :paramtype value: list[~azure.mgmt.appcontainers.models.DaprSecret] - """ - super().__init__(**kwargs) - self.value = value - - -class DefaultAuthorizationPolicy(_serialization.Model): - """The configuration settings of the Azure Active Directory default authorization policy. - - :ivar allowed_principals: The configuration settings of the Azure Active Directory allowed - principals. - :vartype allowed_principals: ~azure.mgmt.appcontainers.models.AllowedPrincipals - :ivar allowed_applications: The configuration settings of the Azure Active Directory allowed - applications. - :vartype allowed_applications: list[str] - """ - - _attribute_map = { - "allowed_principals": {"key": "allowedPrincipals", "type": "AllowedPrincipals"}, - "allowed_applications": {"key": "allowedApplications", "type": "[str]"}, - } - - def __init__( - self, - *, - allowed_principals: Optional["_models.AllowedPrincipals"] = None, - allowed_applications: Optional[list[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword allowed_principals: The configuration settings of the Azure Active Directory allowed - principals. - :paramtype allowed_principals: ~azure.mgmt.appcontainers.models.AllowedPrincipals - :keyword allowed_applications: The configuration settings of the Azure Active Directory allowed - applications. - :paramtype allowed_applications: list[str] - """ - super().__init__(**kwargs) - self.allowed_principals = allowed_principals - self.allowed_applications = allowed_applications - - -class DefaultErrorResponse(_serialization.Model): - """App Service error response. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar error: Error model. - :vartype error: ~azure.mgmt.appcontainers.models.DefaultErrorResponseError - """ - - _validation = { - "error": {"readonly": True}, - } - - _attribute_map = { - "error": {"key": "error", "type": "DefaultErrorResponseError"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.error: Optional["_models.DefaultErrorResponseError"] = None - - -class DefaultErrorResponseError(_serialization.Model): - """Error model. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar code: Standardized string to programmatically identify the error. - :vartype code: str - :ivar message: Detailed error description and debugging information. - :vartype message: str - :ivar target: Detailed error description and debugging information. - :vartype target: str - :ivar details: Details or the error. - :vartype details: list[~azure.mgmt.appcontainers.models.DefaultErrorResponseErrorDetailsItem] - :ivar innererror: More information to debug error. - :vartype innererror: str - """ - - _validation = { - "code": {"readonly": True}, - "message": {"readonly": True}, - "target": {"readonly": True}, - "innererror": {"readonly": True}, - } - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "target": {"key": "target", "type": "str"}, - "details": {"key": "details", "type": "[DefaultErrorResponseErrorDetailsItem]"}, - "innererror": {"key": "innererror", "type": "str"}, - } - - def __init__( - self, *, details: Optional[list["_models.DefaultErrorResponseErrorDetailsItem"]] = None, **kwargs: Any - ) -> None: - """ - :keyword details: Details or the error. - :paramtype details: list[~azure.mgmt.appcontainers.models.DefaultErrorResponseErrorDetailsItem] - """ - super().__init__(**kwargs) - self.code: Optional[str] = None - self.message: Optional[str] = None - self.target: Optional[str] = None - self.details = details - self.innererror: Optional[str] = None - - -class DefaultErrorResponseErrorDetailsItem(_serialization.Model): - """Detailed errors. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar code: Standardized string to programmatically identify the error. - :vartype code: str - :ivar message: Detailed error description and debugging information. - :vartype message: str - :ivar target: Detailed error description and debugging information. - :vartype target: str - """ - - _validation = { - "code": {"readonly": True}, - "message": {"readonly": True}, - "target": {"readonly": True}, - } - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "target": {"key": "target", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.code: Optional[str] = None - self.message: Optional[str] = None - self.target: Optional[str] = None - - -class DiagnosticDataProviderMetadata(_serialization.Model): - """Details of a diagnostics data provider. - - :ivar provider_name: Name of data provider. - :vartype provider_name: str - :ivar property_bag: Collection of properties. - :vartype property_bag: - list[~azure.mgmt.appcontainers.models.DiagnosticDataProviderMetadataPropertyBagItem] - """ - - _attribute_map = { - "provider_name": {"key": "providerName", "type": "str"}, - "property_bag": {"key": "propertyBag", "type": "[DiagnosticDataProviderMetadataPropertyBagItem]"}, - } - - def __init__( - self, - *, - provider_name: Optional[str] = None, - property_bag: Optional[list["_models.DiagnosticDataProviderMetadataPropertyBagItem"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword provider_name: Name of data provider. - :paramtype provider_name: str - :keyword property_bag: Collection of properties. - :paramtype property_bag: - list[~azure.mgmt.appcontainers.models.DiagnosticDataProviderMetadataPropertyBagItem] - """ - super().__init__(**kwargs) - self.provider_name = provider_name - self.property_bag = property_bag - - -class DiagnosticDataProviderMetadataPropertyBagItem(_serialization.Model): # pylint: disable=name-too-long - """Property details. - - :ivar name: Property name. - :vartype name: str - :ivar value: Property 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: Property name. - :paramtype name: str - :keyword value: Property value. - :paramtype value: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - - -class DiagnosticDataTableResponseColumn(_serialization.Model): - """Diagnostics data column. - - :ivar column_name: Column name. - :vartype column_name: str - :ivar data_type: Data type of the column. - :vartype data_type: str - :ivar column_type: Column type. - :vartype column_type: str - """ - - _attribute_map = { - "column_name": {"key": "columnName", "type": "str"}, - "data_type": {"key": "dataType", "type": "str"}, - "column_type": {"key": "columnType", "type": "str"}, - } - - def __init__( - self, - *, - column_name: Optional[str] = None, - data_type: Optional[str] = None, - column_type: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword column_name: Column name. - :paramtype column_name: str - :keyword data_type: Data type of the column. - :paramtype data_type: str - :keyword column_type: Column type. - :paramtype column_type: str - """ - super().__init__(**kwargs) - self.column_name = column_name - self.data_type = data_type - self.column_type = column_type - - -class DiagnosticDataTableResponseObject(_serialization.Model): - """Diagnostics data table. - - :ivar table_name: Table name. - :vartype table_name: str - :ivar columns: Columns in the table. - :vartype columns: list[~azure.mgmt.appcontainers.models.DiagnosticDataTableResponseColumn] - :ivar rows: Rows in the table. - :vartype rows: list[JSON] - """ - - _attribute_map = { - "table_name": {"key": "tableName", "type": "str"}, - "columns": {"key": "columns", "type": "[DiagnosticDataTableResponseColumn]"}, - "rows": {"key": "rows", "type": "[object]"}, - } - - def __init__( - self, - *, - table_name: Optional[str] = None, - columns: Optional[list["_models.DiagnosticDataTableResponseColumn"]] = None, - rows: Optional[list[JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword table_name: Table name. - :paramtype table_name: str - :keyword columns: Columns in the table. - :paramtype columns: list[~azure.mgmt.appcontainers.models.DiagnosticDataTableResponseColumn] - :keyword rows: Rows in the table. - :paramtype rows: list[JSON] - """ - super().__init__(**kwargs) - self.table_name = table_name - self.columns = columns - self.rows = rows - - -class DiagnosticRendering(_serialization.Model): - """Rendering details of a diagnostics table. - - :ivar type: Rendering type. - :vartype type: int - :ivar title: Title of the table. - :vartype title: str - :ivar description: Description of the table. - :vartype description: str - :ivar is_visible: Flag if the table should be rendered. - :vartype is_visible: bool - """ - - _attribute_map = { - "type": {"key": "type", "type": "int"}, - "title": {"key": "title", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "is_visible": {"key": "isVisible", "type": "bool"}, - } - - def __init__( - self, - *, - type: Optional[int] = None, - title: Optional[str] = None, - description: Optional[str] = None, - is_visible: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Rendering type. - :paramtype type: int - :keyword title: Title of the table. - :paramtype title: str - :keyword description: Description of the table. - :paramtype description: str - :keyword is_visible: Flag if the table should be rendered. - :paramtype is_visible: bool - """ - super().__init__(**kwargs) - self.type = type - self.title = title - self.description = description - self.is_visible = is_visible - - -class Diagnostics(ProxyResource): - """Diagnostics data for a 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. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData - :ivar properties: Diagnostics resource specific properties. - :vartype properties: ~azure.mgmt.appcontainers.models.DiagnosticsProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "DiagnosticsProperties"}, - } - - def __init__(self, *, properties: Optional["_models.DiagnosticsProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Diagnostics resource specific properties. - :paramtype properties: ~azure.mgmt.appcontainers.models.DiagnosticsProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class DiagnosticsCollection(_serialization.Model): - """Diagnostics data collection for a resource. - - 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 value: Collection of diagnostic data. Required. - :vartype value: list[~azure.mgmt.appcontainers.models.Diagnostics] - :ivar next_link: Link to next page of resources. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[Diagnostics]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: list["_models.Diagnostics"], **kwargs: Any) -> None: - """ - :keyword value: Collection of diagnostic data. Required. - :paramtype value: list[~azure.mgmt.appcontainers.models.Diagnostics] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None - - -class DiagnosticsDataApiResponse(_serialization.Model): - """Diagnostics data returned from a detector. - - :ivar table: Table response. - :vartype table: ~azure.mgmt.appcontainers.models.DiagnosticDataTableResponseObject - :ivar rendering_properties: Details of the table response. - :vartype rendering_properties: ~azure.mgmt.appcontainers.models.DiagnosticRendering - """ - - _attribute_map = { - "table": {"key": "table", "type": "DiagnosticDataTableResponseObject"}, - "rendering_properties": {"key": "renderingProperties", "type": "DiagnosticRendering"}, - } - - def __init__( - self, - *, - table: Optional["_models.DiagnosticDataTableResponseObject"] = None, - rendering_properties: Optional["_models.DiagnosticRendering"] = None, - **kwargs: Any - ) -> None: - """ - :keyword table: Table response. - :paramtype table: ~azure.mgmt.appcontainers.models.DiagnosticDataTableResponseObject - :keyword rendering_properties: Details of the table response. - :paramtype rendering_properties: ~azure.mgmt.appcontainers.models.DiagnosticRendering - """ - super().__init__(**kwargs) - self.table = table - self.rendering_properties = rendering_properties - - -class DiagnosticsDefinition(_serialization.Model): - """Metadata of the diagnostics response. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Unique detector name. - :vartype id: str - :ivar name: Display Name of the detector. - :vartype name: str - :ivar description: Details of the diagnostics info. - :vartype description: str - :ivar author: Authors' names of the detector. - :vartype author: str - :ivar category: Category of the detector. - :vartype category: str - :ivar support_topic_list: List of support topics. - :vartype support_topic_list: list[~azure.mgmt.appcontainers.models.DiagnosticSupportTopic] - :ivar analysis_types: List of analysis types. - :vartype analysis_types: list[str] - :ivar type: Authors' names of the detector. - :vartype type: str - :ivar score: Authors' names of the detector. - :vartype score: float - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "description": {"readonly": True}, - "author": {"readonly": True}, - "category": {"readonly": True}, - "type": {"readonly": True}, - "score": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "author": {"key": "author", "type": "str"}, - "category": {"key": "category", "type": "str"}, - "support_topic_list": {"key": "supportTopicList", "type": "[DiagnosticSupportTopic]"}, - "analysis_types": {"key": "analysisTypes", "type": "[str]"}, - "type": {"key": "type", "type": "str"}, - "score": {"key": "score", "type": "float"}, - } - - def __init__( - self, - *, - support_topic_list: Optional[list["_models.DiagnosticSupportTopic"]] = None, - analysis_types: Optional[list[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword support_topic_list: List of support topics. - :paramtype support_topic_list: list[~azure.mgmt.appcontainers.models.DiagnosticSupportTopic] - :keyword analysis_types: List of analysis types. - :paramtype analysis_types: list[str] - """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.name: Optional[str] = None - self.description: Optional[str] = None - self.author: Optional[str] = None - self.category: Optional[str] = None - self.support_topic_list = support_topic_list - self.analysis_types = analysis_types - self.type: Optional[str] = None - self.score: Optional[float] = None - - -class DiagnosticsProperties(_serialization.Model): - """Diagnostics resource specific properties. - - :ivar metadata: Metadata of the diagnostics response. - :vartype metadata: ~azure.mgmt.appcontainers.models.DiagnosticsDefinition - :ivar dataset: Set of data collections associated with the response. - :vartype dataset: list[~azure.mgmt.appcontainers.models.DiagnosticsDataApiResponse] - :ivar status: Status of the diagnostics response. - :vartype status: ~azure.mgmt.appcontainers.models.DiagnosticsStatus - :ivar data_provider_metadata: List of data providers' metadata. - :vartype data_provider_metadata: - ~azure.mgmt.appcontainers.models.DiagnosticDataProviderMetadata - """ - - _attribute_map = { - "metadata": {"key": "metadata", "type": "DiagnosticsDefinition"}, - "dataset": {"key": "dataset", "type": "[DiagnosticsDataApiResponse]"}, - "status": {"key": "status", "type": "DiagnosticsStatus"}, - "data_provider_metadata": {"key": "dataProviderMetadata", "type": "DiagnosticDataProviderMetadata"}, - } - - def __init__( - self, - *, - metadata: Optional["_models.DiagnosticsDefinition"] = None, - dataset: Optional[list["_models.DiagnosticsDataApiResponse"]] = None, - status: Optional["_models.DiagnosticsStatus"] = None, - data_provider_metadata: Optional["_models.DiagnosticDataProviderMetadata"] = None, - **kwargs: Any - ) -> None: - """ - :keyword metadata: Metadata of the diagnostics response. - :paramtype metadata: ~azure.mgmt.appcontainers.models.DiagnosticsDefinition - :keyword dataset: Set of data collections associated with the response. - :paramtype dataset: list[~azure.mgmt.appcontainers.models.DiagnosticsDataApiResponse] - :keyword status: Status of the diagnostics response. - :paramtype status: ~azure.mgmt.appcontainers.models.DiagnosticsStatus - :keyword data_provider_metadata: List of data providers' metadata. - :paramtype data_provider_metadata: - ~azure.mgmt.appcontainers.models.DiagnosticDataProviderMetadata - """ - super().__init__(**kwargs) - self.metadata = metadata - self.dataset = dataset - self.status = status - self.data_provider_metadata = data_provider_metadata - - -class DiagnosticsStatus(_serialization.Model): - """Rendering details of a diagnostics table. - - :ivar message: Diagnostic message. - :vartype message: str - :ivar status_id: Status. - :vartype status_id: int - """ - - _attribute_map = { - "message": {"key": "message", "type": "str"}, - "status_id": {"key": "statusId", "type": "int"}, - } - - def __init__(self, *, message: Optional[str] = None, status_id: Optional[int] = None, **kwargs: Any) -> None: - """ - :keyword message: Diagnostic message. - :paramtype message: str - :keyword status_id: Status. - :paramtype status_id: int - """ - super().__init__(**kwargs) - self.message = message - self.status_id = status_id - - -class DiagnosticSupportTopic(_serialization.Model): - """Support topic information. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Unique topic identifier. - :vartype id: str - :ivar pes_id: PES identifier. - :vartype pes_id: str - """ - - _validation = { - "id": {"readonly": True}, - "pes_id": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "pes_id": {"key": "pesId", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.pes_id: Optional[str] = None - - -class DynamicPoolConfiguration(_serialization.Model): - """Dynamic pool configuration. - - :ivar lifecycle_configuration: The lifecycle configuration of a session in the dynamic session - pool. - :vartype lifecycle_configuration: ~azure.mgmt.appcontainers.models.LifecycleConfiguration - """ - - _attribute_map = { - "lifecycle_configuration": {"key": "lifecycleConfiguration", "type": "LifecycleConfiguration"}, - } - - def __init__( - self, *, lifecycle_configuration: Optional["_models.LifecycleConfiguration"] = None, **kwargs: Any - ) -> None: - """ - :keyword lifecycle_configuration: The lifecycle configuration of a session in the dynamic - session pool. - :paramtype lifecycle_configuration: ~azure.mgmt.appcontainers.models.LifecycleConfiguration - """ - super().__init__(**kwargs) - self.lifecycle_configuration = lifecycle_configuration - - -class EncryptionSettings(_serialization.Model): - """The configuration settings of the secrets references of encryption key and signing key for - ContainerApp Service Authentication/Authorization. - - :ivar container_app_auth_encryption_secret_name: The secret name which is referenced for - EncryptionKey. - :vartype container_app_auth_encryption_secret_name: str - :ivar container_app_auth_signing_secret_name: The secret name which is referenced for - SigningKey. - :vartype container_app_auth_signing_secret_name: str - """ - - _attribute_map = { - "container_app_auth_encryption_secret_name": {"key": "containerAppAuthEncryptionSecretName", "type": "str"}, - "container_app_auth_signing_secret_name": {"key": "containerAppAuthSigningSecretName", "type": "str"}, - } - - def __init__( - self, - *, - container_app_auth_encryption_secret_name: Optional[str] = None, - container_app_auth_signing_secret_name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword container_app_auth_encryption_secret_name: The secret name which is referenced for - EncryptionKey. - :paramtype container_app_auth_encryption_secret_name: str - :keyword container_app_auth_signing_secret_name: The secret name which is referenced for - SigningKey. - :paramtype container_app_auth_signing_secret_name: str - """ - super().__init__(**kwargs) - self.container_app_auth_encryption_secret_name = container_app_auth_encryption_secret_name - self.container_app_auth_signing_secret_name = container_app_auth_signing_secret_name - - -class EnvironmentAuthToken(TrackedResource): - """Environment Auth Token. - - 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 id: Fully qualified resource ID for the resource. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData - :ivar tags: Resource tags. - :vartype tags: dict[str, str] - :ivar location: The geo-location where the resource lives. Required. - :vartype location: str - :ivar token: Auth token value. - :vartype token: str - :ivar expires: Token expiration date. - :vartype expires: ~datetime.datetime - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - "location": {"required": True}, - "token": {"readonly": True}, - "expires": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "tags": {"key": "tags", "type": "{str}"}, - "location": {"key": "location", "type": "str"}, - "token": {"key": "properties.token", "type": "str"}, - "expires": {"key": "properties.expires", "type": "iso-8601"}, - } - - def __init__(self, *, location: str, tags: Optional[dict[str, str]] = None, **kwargs: Any) -> None: - """ - :keyword tags: Resource tags. - :paramtype tags: dict[str, str] - :keyword location: The geo-location where the resource lives. Required. - :paramtype location: str - """ - super().__init__(tags=tags, location=location, **kwargs) - self.token: Optional[str] = None - self.expires: Optional[datetime.datetime] = None - - -class EnvironmentVar(_serialization.Model): - """Container App container environment variable. - - :ivar name: Environment variable name. - :vartype name: str - :ivar value: Non-secret environment variable value. - :vartype value: str - :ivar secret_ref: Name of the Container App secret from which to pull the environment variable - value. - :vartype secret_ref: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - "secret_ref": {"key": "secretRef", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - value: Optional[str] = None, - secret_ref: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Environment variable name. - :paramtype name: str - :keyword value: Non-secret environment variable value. - :paramtype value: str - :keyword secret_ref: Name of the Container App secret from which to pull the environment - variable value. - :paramtype secret_ref: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - self.secret_ref = secret_ref - - -class ErrorAdditionalInfo(_serialization.Model): - """The resource management error additional info. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar type: The additional info type. - :vartype type: str - :ivar info: The additional info. - :vartype info: JSON - """ - - _validation = { - "type": {"readonly": True}, - "info": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "info": {"key": "info", "type": "object"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.info: Optional[JSON] = None - - -class ErrorDetail(_serialization.Model): - """The error detail. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar code: The error code. - :vartype code: str - :ivar message: The error message. - :vartype message: str - :ivar target: The error target. - :vartype target: str - :ivar details: The error details. - :vartype details: list[~azure.mgmt.appcontainers.models.ErrorDetail] - :ivar additional_info: The error additional info. - :vartype additional_info: list[~azure.mgmt.appcontainers.models.ErrorAdditionalInfo] - """ - - _validation = { - "code": {"readonly": True}, - "message": {"readonly": True}, - "target": {"readonly": True}, - "details": {"readonly": True}, - "additional_info": {"readonly": True}, - } - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "target": {"key": "target", "type": "str"}, - "details": {"key": "details", "type": "[ErrorDetail]"}, - "additional_info": {"key": "additionalInfo", "type": "[ErrorAdditionalInfo]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.code: Optional[str] = None - self.message: Optional[str] = None - self.target: Optional[str] = None - self.details: Optional[list["_models.ErrorDetail"]] = None - self.additional_info: Optional[list["_models.ErrorAdditionalInfo"]] = None - - -class ErrorEntity(_serialization.Model): - """Body of the error response returned from the API. - - :ivar extended_code: Type of error. - :vartype extended_code: str - :ivar message_template: Message template. - :vartype message_template: str - :ivar parameters: Parameters for the template. - :vartype parameters: list[str] - :ivar inner_errors: Inner errors. - :vartype inner_errors: list[~azure.mgmt.appcontainers.models.ErrorEntity] - :ivar details: Error Details. - :vartype details: list[~azure.mgmt.appcontainers.models.ErrorEntity] - :ivar target: The error target. - :vartype target: str - :ivar code: Basic error code. - :vartype code: str - :ivar message: Any details of the error. - :vartype message: str - """ - - _attribute_map = { - "extended_code": {"key": "extendedCode", "type": "str"}, - "message_template": {"key": "messageTemplate", "type": "str"}, - "parameters": {"key": "parameters", "type": "[str]"}, - "inner_errors": {"key": "innerErrors", "type": "[ErrorEntity]"}, - "details": {"key": "details", "type": "[ErrorEntity]"}, - "target": {"key": "target", "type": "str"}, - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__( - self, - *, - extended_code: Optional[str] = None, - message_template: Optional[str] = None, - parameters: Optional[list[str]] = None, - inner_errors: Optional[list["_models.ErrorEntity"]] = None, - details: Optional[list["_models.ErrorEntity"]] = None, - target: Optional[str] = None, - code: Optional[str] = None, - message: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword extended_code: Type of error. - :paramtype extended_code: str - :keyword message_template: Message template. - :paramtype message_template: str - :keyword parameters: Parameters for the template. - :paramtype parameters: list[str] - :keyword inner_errors: Inner errors. - :paramtype inner_errors: list[~azure.mgmt.appcontainers.models.ErrorEntity] - :keyword details: Error Details. - :paramtype details: list[~azure.mgmt.appcontainers.models.ErrorEntity] - :keyword target: The error target. - :paramtype target: str - :keyword code: Basic error code. - :paramtype code: str - :keyword message: Any details of the error. - :paramtype message: str - """ - super().__init__(**kwargs) - self.extended_code = extended_code - self.message_template = message_template - self.parameters = parameters - self.inner_errors = inner_errors - self.details = details - self.target = target - self.code = code - self.message = message - - -class ErrorResponse(_serialization.Model): - """Common error response for all Azure Resource Manager APIs to return error details for failed - operations. (This also follows the OData error response format.). - - :ivar error: The error object. - :vartype error: ~azure.mgmt.appcontainers.models.ErrorDetail - """ - - _attribute_map = { - "error": {"key": "error", "type": "ErrorDetail"}, - } - - def __init__(self, *, error: Optional["_models.ErrorDetail"] = None, **kwargs: Any) -> None: - """ - :keyword error: The error object. - :paramtype error: ~azure.mgmt.appcontainers.models.ErrorDetail - """ - super().__init__(**kwargs) - self.error = error - - -class ExtendedLocation(_serialization.Model): - """The complex type of the extended location. - - :ivar name: The name of the extended location. - :vartype name: str - :ivar type: The type of the extended location. "CustomLocation" - :vartype type: str or ~azure.mgmt.appcontainers.models.ExtendedLocationTypes - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - type: Optional[Union[str, "_models.ExtendedLocationTypes"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of the extended location. - :paramtype name: str - :keyword type: The type of the extended location. "CustomLocation" - :paramtype type: str or ~azure.mgmt.appcontainers.models.ExtendedLocationTypes - """ - super().__init__(**kwargs) - self.name = name - self.type = type - - -class Facebook(_serialization.Model): - """The configuration settings of the Facebook provider. - - :ivar enabled: :code:`false` if the Facebook provider should not be enabled - despite the set registration; otherwise, :code:`true`. - :vartype enabled: bool - :ivar registration: The configuration settings of the app registration for the Facebook - provider. - :vartype registration: ~azure.mgmt.appcontainers.models.AppRegistration - :ivar graph_api_version: The version of the Facebook api to be used while logging in. - :vartype graph_api_version: str - :ivar login: The configuration settings of the login flow. - :vartype login: ~azure.mgmt.appcontainers.models.LoginScopes - """ - - _attribute_map = { - "enabled": {"key": "enabled", "type": "bool"}, - "registration": {"key": "registration", "type": "AppRegistration"}, - "graph_api_version": {"key": "graphApiVersion", "type": "str"}, - "login": {"key": "login", "type": "LoginScopes"}, - } - - def __init__( - self, - *, - enabled: Optional[bool] = None, - registration: Optional["_models.AppRegistration"] = None, - graph_api_version: Optional[str] = None, - login: Optional["_models.LoginScopes"] = None, - **kwargs: Any - ) -> None: - """ - :keyword enabled: :code:`false` if the Facebook provider should not be enabled - despite the set registration; otherwise, :code:`true`. - :paramtype enabled: bool - :keyword registration: The configuration settings of the app registration for the Facebook - provider. - :paramtype registration: ~azure.mgmt.appcontainers.models.AppRegistration - :keyword graph_api_version: The version of the Facebook api to be used while logging in. - :paramtype graph_api_version: str - :keyword login: The configuration settings of the login flow. - :paramtype login: ~azure.mgmt.appcontainers.models.LoginScopes - """ - super().__init__(**kwargs) - self.enabled = enabled - self.registration = registration - self.graph_api_version = graph_api_version - self.login = login - - -class ForwardProxy(_serialization.Model): - """The configuration settings of a forward proxy used to make the requests. - - :ivar convention: The convention used to determine the url of the request made. Known values - are: "NoProxy", "Standard", and "Custom". - :vartype convention: str or ~azure.mgmt.appcontainers.models.ForwardProxyConvention - :ivar custom_host_header_name: The name of the header containing the host of the request. - :vartype custom_host_header_name: str - :ivar custom_proto_header_name: The name of the header containing the scheme of the request. - :vartype custom_proto_header_name: str - """ - - _attribute_map = { - "convention": {"key": "convention", "type": "str"}, - "custom_host_header_name": {"key": "customHostHeaderName", "type": "str"}, - "custom_proto_header_name": {"key": "customProtoHeaderName", "type": "str"}, - } - - def __init__( - self, - *, - convention: Optional[Union[str, "_models.ForwardProxyConvention"]] = None, - custom_host_header_name: Optional[str] = None, - custom_proto_header_name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword convention: The convention used to determine the url of the request made. Known values - are: "NoProxy", "Standard", and "Custom". - :paramtype convention: str or ~azure.mgmt.appcontainers.models.ForwardProxyConvention - :keyword custom_host_header_name: The name of the header containing the host of the request. - :paramtype custom_host_header_name: str - :keyword custom_proto_header_name: The name of the header containing the scheme of the request. - :paramtype custom_proto_header_name: str - """ - super().__init__(**kwargs) - self.convention = convention - self.custom_host_header_name = custom_host_header_name - self.custom_proto_header_name = custom_proto_header_name - - -class GitHub(_serialization.Model): - """The configuration settings of the GitHub provider. - - :ivar enabled: :code:`false` if the GitHub provider should not be enabled despite - the set registration; otherwise, :code:`true`. - :vartype enabled: bool - :ivar registration: The configuration settings of the app registration for the GitHub provider. - :vartype registration: ~azure.mgmt.appcontainers.models.ClientRegistration - :ivar login: The configuration settings of the login flow. - :vartype login: ~azure.mgmt.appcontainers.models.LoginScopes - """ - - _attribute_map = { - "enabled": {"key": "enabled", "type": "bool"}, - "registration": {"key": "registration", "type": "ClientRegistration"}, - "login": {"key": "login", "type": "LoginScopes"}, - } - - def __init__( - self, - *, - enabled: Optional[bool] = None, - registration: Optional["_models.ClientRegistration"] = None, - login: Optional["_models.LoginScopes"] = None, - **kwargs: Any - ) -> None: - """ - :keyword enabled: :code:`false` if the GitHub provider should not be enabled - despite the set registration; otherwise, :code:`true`. - :paramtype enabled: bool - :keyword registration: The configuration settings of the app registration for the GitHub - provider. - :paramtype registration: ~azure.mgmt.appcontainers.models.ClientRegistration - :keyword login: The configuration settings of the login flow. - :paramtype login: ~azure.mgmt.appcontainers.models.LoginScopes - """ - super().__init__(**kwargs) - self.enabled = enabled - self.registration = registration - self.login = login - - -class GithubActionConfiguration(_serialization.Model): - """Configuration properties that define the mutable settings of a Container App SourceControl. - - :ivar registry_info: Registry configurations. - :vartype registry_info: ~azure.mgmt.appcontainers.models.RegistryInfo - :ivar azure_credentials: AzureCredentials configurations. - :vartype azure_credentials: ~azure.mgmt.appcontainers.models.AzureCredentials - :ivar context_path: Context path. - :vartype context_path: str - :ivar github_personal_access_token: One time Github PAT to configure github environment. - :vartype github_personal_access_token: str - :ivar image: Image name. - :vartype image: str - :ivar publish_type: Code or Image. - :vartype publish_type: str - :ivar os: Operation system. - :vartype os: str - :ivar runtime_stack: Runtime stack. - :vartype runtime_stack: str - :ivar runtime_version: Runtime version. - :vartype runtime_version: str - """ - - _attribute_map = { - "registry_info": {"key": "registryInfo", "type": "RegistryInfo"}, - "azure_credentials": {"key": "azureCredentials", "type": "AzureCredentials"}, - "context_path": {"key": "contextPath", "type": "str"}, - "github_personal_access_token": {"key": "githubPersonalAccessToken", "type": "str"}, - "image": {"key": "image", "type": "str"}, - "publish_type": {"key": "publishType", "type": "str"}, - "os": {"key": "os", "type": "str"}, - "runtime_stack": {"key": "runtimeStack", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - } - - def __init__( - self, - *, - registry_info: Optional["_models.RegistryInfo"] = None, - azure_credentials: Optional["_models.AzureCredentials"] = None, - context_path: Optional[str] = None, - github_personal_access_token: Optional[str] = None, - image: Optional[str] = None, - publish_type: Optional[str] = None, - os: Optional[str] = None, - runtime_stack: Optional[str] = None, - runtime_version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword registry_info: Registry configurations. - :paramtype registry_info: ~azure.mgmt.appcontainers.models.RegistryInfo - :keyword azure_credentials: AzureCredentials configurations. - :paramtype azure_credentials: ~azure.mgmt.appcontainers.models.AzureCredentials - :keyword context_path: Context path. - :paramtype context_path: str - :keyword github_personal_access_token: One time Github PAT to configure github environment. - :paramtype github_personal_access_token: str - :keyword image: Image name. - :paramtype image: str - :keyword publish_type: Code or Image. - :paramtype publish_type: str - :keyword os: Operation system. - :paramtype os: str - :keyword runtime_stack: Runtime stack. - :paramtype runtime_stack: str - :keyword runtime_version: Runtime version. - :paramtype runtime_version: str - """ - super().__init__(**kwargs) - self.registry_info = registry_info - self.azure_credentials = azure_credentials - self.context_path = context_path - self.github_personal_access_token = github_personal_access_token - self.image = image - self.publish_type = publish_type - self.os = os - self.runtime_stack = runtime_stack - self.runtime_version = runtime_version - - -class GlobalValidation(_serialization.Model): - """The configuration settings that determines the validation flow of users using ContainerApp - Service Authentication/Authorization. - - :ivar unauthenticated_client_action: The action to take when an unauthenticated client attempts - to access the app. Known values are: "RedirectToLoginPage", "AllowAnonymous", "Return401", and - "Return403". - :vartype unauthenticated_client_action: str or - ~azure.mgmt.appcontainers.models.UnauthenticatedClientActionV2 - :ivar redirect_to_provider: The default authentication provider to use when multiple providers - are configured. This setting is only needed if multiple providers are configured and the - unauthenticated client action is set to "RedirectToLoginPage". - :vartype redirect_to_provider: str - :ivar excluded_paths: The paths for which unauthenticated flow would not be redirected to the - login page. - :vartype excluded_paths: list[str] - """ - - _attribute_map = { - "unauthenticated_client_action": {"key": "unauthenticatedClientAction", "type": "str"}, - "redirect_to_provider": {"key": "redirectToProvider", "type": "str"}, - "excluded_paths": {"key": "excludedPaths", "type": "[str]"}, - } - - def __init__( - self, - *, - unauthenticated_client_action: Optional[Union[str, "_models.UnauthenticatedClientActionV2"]] = None, - redirect_to_provider: Optional[str] = None, - excluded_paths: Optional[list[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword unauthenticated_client_action: The action to take when an unauthenticated client - attempts to access the app. Known values are: "RedirectToLoginPage", "AllowAnonymous", - "Return401", and "Return403". - :paramtype unauthenticated_client_action: str or - ~azure.mgmt.appcontainers.models.UnauthenticatedClientActionV2 - :keyword redirect_to_provider: The default authentication provider to use when multiple - providers are configured. This setting is only needed if multiple providers are configured and - the unauthenticated client action is set to "RedirectToLoginPage". - :paramtype redirect_to_provider: str - :keyword excluded_paths: The paths for which unauthenticated flow would not be redirected to - the login page. - :paramtype excluded_paths: list[str] - """ - super().__init__(**kwargs) - self.unauthenticated_client_action = unauthenticated_client_action - self.redirect_to_provider = redirect_to_provider - self.excluded_paths = excluded_paths - - -class Google(_serialization.Model): - """The configuration settings of the Google provider. - - :ivar enabled: :code:`false` if the Google provider should not be enabled despite - the set registration; otherwise, :code:`true`. - :vartype enabled: bool - :ivar registration: The configuration settings of the app registration for the Google provider. - :vartype registration: ~azure.mgmt.appcontainers.models.ClientRegistration - :ivar login: The configuration settings of the login flow. - :vartype login: ~azure.mgmt.appcontainers.models.LoginScopes - :ivar validation: The configuration settings of the Azure Active Directory token validation - flow. - :vartype validation: ~azure.mgmt.appcontainers.models.AllowedAudiencesValidation - """ - - _attribute_map = { - "enabled": {"key": "enabled", "type": "bool"}, - "registration": {"key": "registration", "type": "ClientRegistration"}, - "login": {"key": "login", "type": "LoginScopes"}, - "validation": {"key": "validation", "type": "AllowedAudiencesValidation"}, - } - - def __init__( - self, - *, - enabled: Optional[bool] = None, - registration: Optional["_models.ClientRegistration"] = None, - login: Optional["_models.LoginScopes"] = None, - validation: Optional["_models.AllowedAudiencesValidation"] = None, - **kwargs: Any - ) -> None: - """ - :keyword enabled: :code:`false` if the Google provider should not be enabled - despite the set registration; otherwise, :code:`true`. - :paramtype enabled: bool - :keyword registration: The configuration settings of the app registration for the Google - provider. - :paramtype registration: ~azure.mgmt.appcontainers.models.ClientRegistration - :keyword login: The configuration settings of the login flow. - :paramtype login: ~azure.mgmt.appcontainers.models.LoginScopes - :keyword validation: The configuration settings of the Azure Active Directory token validation - flow. - :paramtype validation: ~azure.mgmt.appcontainers.models.AllowedAudiencesValidation - """ - super().__init__(**kwargs) - self.enabled = enabled - self.registration = registration - self.login = login - self.validation = validation - - -class HttpRoute(_serialization.Model): - """Http Routes, including paths to match on and whether or not rewrites are to be done. - - :ivar match: Conditions route will match on. - :vartype match: ~azure.mgmt.appcontainers.models.HttpRouteMatch - :ivar action: Once route is matched, what is the desired action. - :vartype action: ~azure.mgmt.appcontainers.models.HttpRouteAction - """ - - _attribute_map = { - "match": {"key": "match", "type": "HttpRouteMatch"}, - "action": {"key": "action", "type": "HttpRouteAction"}, - } - - def __init__( - self, - *, - match: Optional["_models.HttpRouteMatch"] = None, - action: Optional["_models.HttpRouteAction"] = None, - **kwargs: Any - ) -> None: - """ - :keyword match: Conditions route will match on. - :paramtype match: ~azure.mgmt.appcontainers.models.HttpRouteMatch - :keyword action: Once route is matched, what is the desired action. - :paramtype action: ~azure.mgmt.appcontainers.models.HttpRouteAction - """ - super().__init__(**kwargs) - self.match = match - self.action = action - - -class HttpRouteAction(_serialization.Model): - """Action to perform once matching of routes is done. - - :ivar prefix_rewrite: Rewrite prefix, default is no rewrites. - :vartype prefix_rewrite: str - """ - - _attribute_map = { - "prefix_rewrite": {"key": "prefixRewrite", "type": "str"}, - } - - def __init__(self, *, prefix_rewrite: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword prefix_rewrite: Rewrite prefix, default is no rewrites. - :paramtype prefix_rewrite: str - """ - super().__init__(**kwargs) - self.prefix_rewrite = prefix_rewrite - - -class HttpRouteConfig(ProxyResource): - """A set of host names and http request routing rules for a Container App Environment. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData - :ivar properties: Http Route Config properties. - :vartype properties: ~azure.mgmt.appcontainers.models.HttpRouteConfigProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "HttpRouteConfigProperties"}, - } - - def __init__(self, *, properties: Optional["_models.HttpRouteConfigProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Http Route Config properties. - :paramtype properties: ~azure.mgmt.appcontainers.models.HttpRouteConfigProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class HttpRouteConfigCollection(_serialization.Model): - """Collection of rule based Http Route Config resources. - - 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 value: Collection of resources. Required. - :vartype value: list[~azure.mgmt.appcontainers.models.HttpRouteConfig] - :ivar next_link: Link to next page of resources. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[HttpRouteConfig]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: list["_models.HttpRouteConfig"], **kwargs: Any) -> None: - """ - :keyword value: Collection of resources. Required. - :paramtype value: list[~azure.mgmt.appcontainers.models.HttpRouteConfig] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None - - -class HttpRouteConfigProperties(_serialization.Model): - """Http Route Config properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: The provisioning state of the Http Route Config. Known values are: - "Succeeded", "Failed", "Canceled", "Waiting", "Updating", "Deleting", and "Pending". - :vartype provisioning_state: str or ~azure.mgmt.appcontainers.models.HttpRouteProvisioningState - :ivar provisioning_errors: List of errors when trying to reconcile http routes. - :vartype provisioning_errors: - list[~azure.mgmt.appcontainers.models.HttpRouteProvisioningErrors] - :ivar fqdn: FQDN of the route resource. - :vartype fqdn: str - :ivar custom_domains: Custom domain bindings for Http Routes' hostnames. - :vartype custom_domains: list[~azure.mgmt.appcontainers.models.CustomDomain] - :ivar rules: Routing Rules for the Http Route resource. - :vartype rules: list[~azure.mgmt.appcontainers.models.HttpRouteRule] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "provisioning_errors": {"readonly": True}, - "fqdn": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "provisioning_errors": {"key": "provisioningErrors", "type": "[HttpRouteProvisioningErrors]"}, - "fqdn": {"key": "fqdn", "type": "str"}, - "custom_domains": {"key": "customDomains", "type": "[CustomDomain]"}, - "rules": {"key": "rules", "type": "[HttpRouteRule]"}, - } - - def __init__( - self, - *, - custom_domains: Optional[list["_models.CustomDomain"]] = None, - rules: Optional[list["_models.HttpRouteRule"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword custom_domains: Custom domain bindings for Http Routes' hostnames. - :paramtype custom_domains: list[~azure.mgmt.appcontainers.models.CustomDomain] - :keyword rules: Routing Rules for the Http Route resource. - :paramtype rules: list[~azure.mgmt.appcontainers.models.HttpRouteRule] - """ - super().__init__(**kwargs) - self.provisioning_state: Optional[Union[str, "_models.HttpRouteProvisioningState"]] = None - self.provisioning_errors: Optional[list["_models.HttpRouteProvisioningErrors"]] = None - self.fqdn: Optional[str] = None - self.custom_domains = custom_domains - self.rules = rules - - -class HttpRouteMatch(_serialization.Model): - """Criteria to match on. - - :ivar prefix: match on all prefix's. Not exact. - :vartype prefix: str - :ivar path: match on exact path. - :vartype path: str - :ivar path_separated_prefix: match on all prefix's. Not exact. - :vartype path_separated_prefix: str - :ivar case_sensitive: path case sensitive, default is true. - :vartype case_sensitive: bool - """ - - _attribute_map = { - "prefix": {"key": "prefix", "type": "str"}, - "path": {"key": "path", "type": "str"}, - "path_separated_prefix": {"key": "pathSeparatedPrefix", "type": "str"}, - "case_sensitive": {"key": "caseSensitive", "type": "bool"}, - } - - def __init__( - self, - *, - prefix: Optional[str] = None, - path: Optional[str] = None, - path_separated_prefix: Optional[str] = None, - case_sensitive: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword prefix: match on all prefix's. Not exact. - :paramtype prefix: str - :keyword path: match on exact path. - :paramtype path: str - :keyword path_separated_prefix: match on all prefix's. Not exact. - :paramtype path_separated_prefix: str - :keyword case_sensitive: path case sensitive, default is true. - :paramtype case_sensitive: bool - """ - super().__init__(**kwargs) - self.prefix = prefix - self.path = path - self.path_separated_prefix = path_separated_prefix - self.case_sensitive = case_sensitive - - -class HttpRouteProvisioningErrors(_serialization.Model): - """List of provisioning errors for a Http Route Config object. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar timestamp: Timestamp error occured at. - :vartype timestamp: ~datetime.datetime - :ivar message: Description or error message. - :vartype message: str - """ - - _validation = { - "timestamp": {"readonly": True}, - "message": {"readonly": True}, - } - - _attribute_map = { - "timestamp": {"key": "timestamp", "type": "iso-8601"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.timestamp: Optional[datetime.datetime] = None - self.message: Optional[str] = None - - -class HttpRouteRule(_serialization.Model): - """A set of routing conditions and targets. - - :ivar targets: Targets- container apps, revisions, labels. - :vartype targets: list[~azure.mgmt.appcontainers.models.HttpRouteTarget] - :ivar routes: Routing configuration that will allow matches on specific paths/headers. - :vartype routes: list[~azure.mgmt.appcontainers.models.HttpRoute] - :ivar description: Description of rule. Optional. - :vartype description: str - """ - - _attribute_map = { - "targets": {"key": "targets", "type": "[HttpRouteTarget]"}, - "routes": {"key": "routes", "type": "[HttpRoute]"}, - "description": {"key": "description", "type": "str"}, - } - - def __init__( - self, - *, - targets: Optional[list["_models.HttpRouteTarget"]] = None, - routes: Optional[list["_models.HttpRoute"]] = None, - description: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword targets: Targets- container apps, revisions, labels. - :paramtype targets: list[~azure.mgmt.appcontainers.models.HttpRouteTarget] - :keyword routes: Routing configuration that will allow matches on specific paths/headers. - :paramtype routes: list[~azure.mgmt.appcontainers.models.HttpRoute] - :keyword description: Description of rule. Optional. - :paramtype description: str - """ - super().__init__(**kwargs) - self.targets = targets - self.routes = routes - self.description = description - - -class HttpRouteTarget(_serialization.Model): - """Targets - Container App Names, Revision Names, Labels. - - All required parameters must be populated in order to send to server. - - :ivar container_app: Container App Name to route requests to. Required. - :vartype container_app: str - :ivar revision: Revision to route requests to. - :vartype revision: str - :ivar label: Label to route requests to. - :vartype label: str - """ - - _validation = { - "container_app": {"required": True}, - } - - _attribute_map = { - "container_app": {"key": "containerApp", "type": "str"}, - "revision": {"key": "revision", "type": "str"}, - "label": {"key": "label", "type": "str"}, - } - - def __init__( - self, *, container_app: str, revision: Optional[str] = None, label: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword container_app: Container App Name to route requests to. Required. - :paramtype container_app: str - :keyword revision: Revision to route requests to. - :paramtype revision: str - :keyword label: Label to route requests to. - :paramtype label: str - """ - super().__init__(**kwargs) - self.container_app = container_app - self.revision = revision - self.label = label - - -class HttpScaleRule(_serialization.Model): - """Container App container 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.appcontainers.models.ScaleRuleAuth] - :ivar identity: The resource ID of a user-assigned managed identity that is assigned to the - Container App, or 'system' for system-assigned identity. - :vartype identity: str - """ - - _attribute_map = { - "metadata": {"key": "metadata", "type": "{str}"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - "identity": {"key": "identity", "type": "str"}, - } - - def __init__( - self, - *, - metadata: Optional[dict[str, str]] = None, - auth: Optional[list["_models.ScaleRuleAuth"]] = None, - identity: Optional[str] = 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.appcontainers.models.ScaleRuleAuth] - :keyword identity: The resource ID of a user-assigned managed identity that is assigned to the - Container App, or 'system' for system-assigned identity. - :paramtype identity: str - """ - super().__init__(**kwargs) - self.metadata = metadata - self.auth = auth - self.identity = identity - - -class HttpSettings(_serialization.Model): - """The configuration settings of the HTTP requests for authentication and authorization requests - made against ContainerApp Service Authentication/Authorization. - - :ivar require_https: :code:`false` if the authentication/authorization responses - not having the HTTPS scheme are permissible; otherwise, :code:`true`. - :vartype require_https: bool - :ivar routes: The configuration settings of the paths HTTP requests. - :vartype routes: ~azure.mgmt.appcontainers.models.HttpSettingsRoutes - :ivar forward_proxy: The configuration settings of a forward proxy used to make the requests. - :vartype forward_proxy: ~azure.mgmt.appcontainers.models.ForwardProxy - """ - - _attribute_map = { - "require_https": {"key": "requireHttps", "type": "bool"}, - "routes": {"key": "routes", "type": "HttpSettingsRoutes"}, - "forward_proxy": {"key": "forwardProxy", "type": "ForwardProxy"}, - } - - def __init__( - self, - *, - require_https: Optional[bool] = None, - routes: Optional["_models.HttpSettingsRoutes"] = None, - forward_proxy: Optional["_models.ForwardProxy"] = None, - **kwargs: Any - ) -> None: - """ - :keyword require_https: :code:`false` if the authentication/authorization - responses not having the HTTPS scheme are permissible; otherwise, :code:`true`. - :paramtype require_https: bool - :keyword routes: The configuration settings of the paths HTTP requests. - :paramtype routes: ~azure.mgmt.appcontainers.models.HttpSettingsRoutes - :keyword forward_proxy: The configuration settings of a forward proxy used to make the - requests. - :paramtype forward_proxy: ~azure.mgmt.appcontainers.models.ForwardProxy - """ - super().__init__(**kwargs) - self.require_https = require_https - self.routes = routes - self.forward_proxy = forward_proxy - - -class HttpSettingsRoutes(_serialization.Model): - """The configuration settings of the paths HTTP requests. - - :ivar api_prefix: The prefix that should precede all the authentication/authorization paths. - :vartype api_prefix: str - """ - - _attribute_map = { - "api_prefix": {"key": "apiPrefix", "type": "str"}, - } - - def __init__(self, *, api_prefix: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword api_prefix: The prefix that should precede all the authentication/authorization paths. - :paramtype api_prefix: str - """ - super().__init__(**kwargs) - self.api_prefix = api_prefix - - -class IdentityProviders(_serialization.Model): - """The configuration settings of each of the identity providers used to configure ContainerApp - Service Authentication/Authorization. - - :ivar azure_active_directory: The configuration settings of the Azure Active directory - provider. - :vartype azure_active_directory: ~azure.mgmt.appcontainers.models.AzureActiveDirectory - :ivar facebook: The configuration settings of the Facebook provider. - :vartype facebook: ~azure.mgmt.appcontainers.models.Facebook - :ivar git_hub: The configuration settings of the GitHub provider. - :vartype git_hub: ~azure.mgmt.appcontainers.models.GitHub - :ivar google: The configuration settings of the Google provider. - :vartype google: ~azure.mgmt.appcontainers.models.Google - :ivar twitter: The configuration settings of the Twitter provider. - :vartype twitter: ~azure.mgmt.appcontainers.models.Twitter - :ivar apple: The configuration settings of the Apple provider. - :vartype apple: ~azure.mgmt.appcontainers.models.Apple - :ivar azure_static_web_apps: The configuration settings of the Azure Static Web Apps provider. - :vartype azure_static_web_apps: ~azure.mgmt.appcontainers.models.AzureStaticWebApps - :ivar custom_open_id_connect_providers: The map of the name of the alias of each custom Open ID - Connect provider to the configuration settings of the custom Open ID Connect provider. - :vartype custom_open_id_connect_providers: dict[str, - ~azure.mgmt.appcontainers.models.CustomOpenIdConnectProvider] - """ - - _attribute_map = { - "azure_active_directory": {"key": "azureActiveDirectory", "type": "AzureActiveDirectory"}, - "facebook": {"key": "facebook", "type": "Facebook"}, - "git_hub": {"key": "gitHub", "type": "GitHub"}, - "google": {"key": "google", "type": "Google"}, - "twitter": {"key": "twitter", "type": "Twitter"}, - "apple": {"key": "apple", "type": "Apple"}, - "azure_static_web_apps": {"key": "azureStaticWebApps", "type": "AzureStaticWebApps"}, - "custom_open_id_connect_providers": { - "key": "customOpenIdConnectProviders", - "type": "{CustomOpenIdConnectProvider}", - }, - } - - def __init__( - self, - *, - azure_active_directory: Optional["_models.AzureActiveDirectory"] = None, - facebook: Optional["_models.Facebook"] = None, - git_hub: Optional["_models.GitHub"] = None, - google: Optional["_models.Google"] = None, - twitter: Optional["_models.Twitter"] = None, - apple: Optional["_models.Apple"] = None, - azure_static_web_apps: Optional["_models.AzureStaticWebApps"] = None, - custom_open_id_connect_providers: Optional[dict[str, "_models.CustomOpenIdConnectProvider"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword azure_active_directory: The configuration settings of the Azure Active directory - provider. - :paramtype azure_active_directory: ~azure.mgmt.appcontainers.models.AzureActiveDirectory - :keyword facebook: The configuration settings of the Facebook provider. - :paramtype facebook: ~azure.mgmt.appcontainers.models.Facebook - :keyword git_hub: The configuration settings of the GitHub provider. - :paramtype git_hub: ~azure.mgmt.appcontainers.models.GitHub - :keyword google: The configuration settings of the Google provider. - :paramtype google: ~azure.mgmt.appcontainers.models.Google - :keyword twitter: The configuration settings of the Twitter provider. - :paramtype twitter: ~azure.mgmt.appcontainers.models.Twitter - :keyword apple: The configuration settings of the Apple provider. - :paramtype apple: ~azure.mgmt.appcontainers.models.Apple - :keyword azure_static_web_apps: The configuration settings of the Azure Static Web Apps - provider. - :paramtype azure_static_web_apps: ~azure.mgmt.appcontainers.models.AzureStaticWebApps - :keyword custom_open_id_connect_providers: The map of the name of the alias of each custom Open - ID Connect provider to the configuration settings of the custom Open ID Connect provider. - :paramtype custom_open_id_connect_providers: dict[str, - ~azure.mgmt.appcontainers.models.CustomOpenIdConnectProvider] - """ - super().__init__(**kwargs) - self.azure_active_directory = azure_active_directory - self.facebook = facebook - self.git_hub = git_hub - self.google = google - self.twitter = twitter - self.apple = apple - self.azure_static_web_apps = azure_static_web_apps - self.custom_open_id_connect_providers = custom_open_id_connect_providers - - -class IdentitySettings(_serialization.Model): - """Optional settings for a Managed Identity that is assigned to the Container App. - - All required parameters must be populated in order to send to server. - - :ivar identity: The resource ID of a user-assigned managed identity that is assigned to the - Container App, or 'system' for system-assigned identity. Required. - :vartype identity: str - :ivar lifecycle: Use to select the lifecycle stages of a Container App during which the Managed - Identity should be available. Known values are: "Init", "Main", "None", and "All". - :vartype lifecycle: str or ~azure.mgmt.appcontainers.models.IdentitySettingsLifeCycle - """ - - _validation = { - "identity": {"required": True}, - } - - _attribute_map = { - "identity": {"key": "identity", "type": "str"}, - "lifecycle": {"key": "lifecycle", "type": "str"}, - } - - def __init__( - self, - *, - identity: str, - lifecycle: Optional[Union[str, "_models.IdentitySettingsLifeCycle"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword identity: The resource ID of a user-assigned managed identity that is assigned to the - Container App, or 'system' for system-assigned identity. Required. - :paramtype identity: str - :keyword lifecycle: Use to select the lifecycle stages of a Container App during which the - Managed Identity should be available. Known values are: "Init", "Main", "None", and "All". - :paramtype lifecycle: str or ~azure.mgmt.appcontainers.models.IdentitySettingsLifeCycle - """ - super().__init__(**kwargs) - self.identity = identity - self.lifecycle = lifecycle - - -class Ingress(_serialization.Model): - """Container App Ingress configuration. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar fqdn: Hostname. - :vartype fqdn: str - :ivar external: Bool indicating if app exposes an external http endpoint. - :vartype external: bool - :ivar target_port: Target Port in containers for traffic from ingress. - :vartype target_port: int - :ivar exposed_port: Exposed Port in containers for TCP traffic from ingress. - :vartype exposed_port: int - :ivar transport: Ingress transport protocol. Known values are: "auto", "http", "http2", and - "tcp". - :vartype transport: str or ~azure.mgmt.appcontainers.models.IngressTransportMethod - :ivar traffic: Traffic weights for app's revisions. - :vartype traffic: list[~azure.mgmt.appcontainers.models.TrafficWeight] - :ivar custom_domains: custom domain bindings for Container Apps' hostnames. - :vartype custom_domains: list[~azure.mgmt.appcontainers.models.CustomDomain] - :ivar allow_insecure: Bool indicating if HTTP connections to is allowed. If set to false HTTP - connections are automatically redirected to HTTPS connections. - :vartype allow_insecure: bool - :ivar ip_security_restrictions: Rules to restrict incoming IP address. - :vartype ip_security_restrictions: - list[~azure.mgmt.appcontainers.models.IpSecurityRestrictionRule] - :ivar sticky_sessions: Sticky Sessions for Single Revision Mode. - :vartype sticky_sessions: ~azure.mgmt.appcontainers.models.IngressStickySessions - :ivar client_certificate_mode: Client certificate mode for mTLS authentication. Ignore - indicates server drops client certificate on forwarding. Accept indicates server forwards - client certificate but does not require a client certificate. Require indicates server requires - a client certificate. Known values are: "ignore", "accept", and "require". - :vartype client_certificate_mode: str or - ~azure.mgmt.appcontainers.models.IngressClientCertificateMode - :ivar cors_policy: CORS policy for container app. - :vartype cors_policy: ~azure.mgmt.appcontainers.models.CorsPolicy - :ivar additional_port_mappings: Settings to expose additional ports on container app. - :vartype additional_port_mappings: list[~azure.mgmt.appcontainers.models.IngressPortMapping] - """ - - _validation = { - "fqdn": {"readonly": True}, - } - - _attribute_map = { - "fqdn": {"key": "fqdn", "type": "str"}, - "external": {"key": "external", "type": "bool"}, - "target_port": {"key": "targetPort", "type": "int"}, - "exposed_port": {"key": "exposedPort", "type": "int"}, - "transport": {"key": "transport", "type": "str"}, - "traffic": {"key": "traffic", "type": "[TrafficWeight]"}, - "custom_domains": {"key": "customDomains", "type": "[CustomDomain]"}, - "allow_insecure": {"key": "allowInsecure", "type": "bool"}, - "ip_security_restrictions": {"key": "ipSecurityRestrictions", "type": "[IpSecurityRestrictionRule]"}, - "sticky_sessions": {"key": "stickySessions", "type": "IngressStickySessions"}, - "client_certificate_mode": {"key": "clientCertificateMode", "type": "str"}, - "cors_policy": {"key": "corsPolicy", "type": "CorsPolicy"}, - "additional_port_mappings": {"key": "additionalPortMappings", "type": "[IngressPortMapping]"}, - } - - def __init__( - self, - *, - external: bool = False, - target_port: Optional[int] = None, - exposed_port: Optional[int] = None, - transport: Union[str, "_models.IngressTransportMethod"] = "auto", - traffic: Optional[list["_models.TrafficWeight"]] = None, - custom_domains: Optional[list["_models.CustomDomain"]] = None, - allow_insecure: bool = False, - ip_security_restrictions: Optional[list["_models.IpSecurityRestrictionRule"]] = None, - sticky_sessions: Optional["_models.IngressStickySessions"] = None, - client_certificate_mode: Optional[Union[str, "_models.IngressClientCertificateMode"]] = None, - cors_policy: Optional["_models.CorsPolicy"] = None, - additional_port_mappings: Optional[list["_models.IngressPortMapping"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword external: Bool indicating if app exposes an external http endpoint. - :paramtype external: bool - :keyword target_port: Target Port in containers for traffic from ingress. - :paramtype target_port: int - :keyword exposed_port: Exposed Port in containers for TCP traffic from ingress. - :paramtype exposed_port: int - :keyword transport: Ingress transport protocol. Known values are: "auto", "http", "http2", and - "tcp". - :paramtype transport: str or ~azure.mgmt.appcontainers.models.IngressTransportMethod - :keyword traffic: Traffic weights for app's revisions. - :paramtype traffic: list[~azure.mgmt.appcontainers.models.TrafficWeight] - :keyword custom_domains: custom domain bindings for Container Apps' hostnames. - :paramtype custom_domains: list[~azure.mgmt.appcontainers.models.CustomDomain] - :keyword allow_insecure: Bool indicating if HTTP connections to is allowed. If set to false - HTTP connections are automatically redirected to HTTPS connections. - :paramtype allow_insecure: bool - :keyword ip_security_restrictions: Rules to restrict incoming IP address. - :paramtype ip_security_restrictions: - list[~azure.mgmt.appcontainers.models.IpSecurityRestrictionRule] - :keyword sticky_sessions: Sticky Sessions for Single Revision Mode. - :paramtype sticky_sessions: ~azure.mgmt.appcontainers.models.IngressStickySessions - :keyword client_certificate_mode: Client certificate mode for mTLS authentication. Ignore - indicates server drops client certificate on forwarding. Accept indicates server forwards - client certificate but does not require a client certificate. Require indicates server requires - a client certificate. Known values are: "ignore", "accept", and "require". - :paramtype client_certificate_mode: str or - ~azure.mgmt.appcontainers.models.IngressClientCertificateMode - :keyword cors_policy: CORS policy for container app. - :paramtype cors_policy: ~azure.mgmt.appcontainers.models.CorsPolicy - :keyword additional_port_mappings: Settings to expose additional ports on container app. - :paramtype additional_port_mappings: list[~azure.mgmt.appcontainers.models.IngressPortMapping] - """ - super().__init__(**kwargs) - self.fqdn: Optional[str] = None - self.external = external - self.target_port = target_port - self.exposed_port = exposed_port - self.transport = transport - self.traffic = traffic - self.custom_domains = custom_domains - self.allow_insecure = allow_insecure - self.ip_security_restrictions = ip_security_restrictions - self.sticky_sessions = sticky_sessions - self.client_certificate_mode = client_certificate_mode - self.cors_policy = cors_policy - self.additional_port_mappings = additional_port_mappings - - -class IngressConfiguration(_serialization.Model): - """Settings for the ingress component, including workload profile, scaling, and connection - handling. - - :ivar workload_profile_name: Name of the workload profile used by the ingress component. - Required. - :vartype workload_profile_name: str - :ivar termination_grace_period_seconds: Time (in seconds) to allow active connections to - complete on termination. Must be between 0 and 3600. Defaults to 480 seconds. - :vartype termination_grace_period_seconds: int - :ivar header_count_limit: Maximum number of headers per request allowed by the ingress. Must be - at least 1. Defaults to 100. - :vartype header_count_limit: int - :ivar request_idle_timeout: Duration (in minutes) before idle requests are timed out. Must be - between 4 and 30 inclusive. Defaults to 4 minutes. - :vartype request_idle_timeout: int - """ - - _attribute_map = { - "workload_profile_name": {"key": "workloadProfileName", "type": "str"}, - "termination_grace_period_seconds": {"key": "terminationGracePeriodSeconds", "type": "int"}, - "header_count_limit": {"key": "headerCountLimit", "type": "int"}, - "request_idle_timeout": {"key": "requestIdleTimeout", "type": "int"}, - } - - def __init__( - self, - *, - workload_profile_name: Optional[str] = None, - termination_grace_period_seconds: Optional[int] = None, - header_count_limit: Optional[int] = None, - request_idle_timeout: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword workload_profile_name: Name of the workload profile used by the ingress component. - Required. - :paramtype workload_profile_name: str - :keyword termination_grace_period_seconds: Time (in seconds) to allow active connections to - complete on termination. Must be between 0 and 3600. Defaults to 480 seconds. - :paramtype termination_grace_period_seconds: int - :keyword header_count_limit: Maximum number of headers per request allowed by the ingress. Must - be at least 1. Defaults to 100. - :paramtype header_count_limit: int - :keyword request_idle_timeout: Duration (in minutes) before idle requests are timed out. Must - be between 4 and 30 inclusive. Defaults to 4 minutes. - :paramtype request_idle_timeout: int - """ - super().__init__(**kwargs) - self.workload_profile_name = workload_profile_name - self.termination_grace_period_seconds = termination_grace_period_seconds - self.header_count_limit = header_count_limit - self.request_idle_timeout = request_idle_timeout - - -class IngressPortMapping(_serialization.Model): - """Port mappings of container app ingress. - - All required parameters must be populated in order to send to server. - - :ivar external: Specifies whether the app port is accessible outside of the environment. - Required. - :vartype external: bool - :ivar target_port: Specifies the port user's container listens on. Required. - :vartype target_port: int - :ivar exposed_port: Specifies the exposed port for the target port. If not specified, it - defaults to target port. - :vartype exposed_port: int - """ - - _validation = { - "external": {"required": True}, - "target_port": {"required": True}, - } - - _attribute_map = { - "external": {"key": "external", "type": "bool"}, - "target_port": {"key": "targetPort", "type": "int"}, - "exposed_port": {"key": "exposedPort", "type": "int"}, - } - - def __init__(self, *, external: bool, target_port: int, exposed_port: Optional[int] = None, **kwargs: Any) -> None: - """ - :keyword external: Specifies whether the app port is accessible outside of the environment. - Required. - :paramtype external: bool - :keyword target_port: Specifies the port user's container listens on. Required. - :paramtype target_port: int - :keyword exposed_port: Specifies the exposed port for the target port. If not specified, it - defaults to target port. - :paramtype exposed_port: int - """ - super().__init__(**kwargs) - self.external = external - self.target_port = target_port - self.exposed_port = exposed_port - - -class IngressStickySessions(_serialization.Model): - """Sticky Sessions for Single Revision Mode. - - :ivar affinity: Sticky Session Affinity. Known values are: "sticky" and "none". - :vartype affinity: str or ~azure.mgmt.appcontainers.models.Affinity - """ - - _attribute_map = { - "affinity": {"key": "affinity", "type": "str"}, - } - - def __init__(self, *, affinity: Optional[Union[str, "_models.Affinity"]] = None, **kwargs: Any) -> None: - """ - :keyword affinity: Sticky Session Affinity. Known values are: "sticky" and "none". - :paramtype affinity: str or ~azure.mgmt.appcontainers.models.Affinity - """ - super().__init__(**kwargs) - self.affinity = affinity - - -class InitContainer(BaseContainer): - """Container App init container definition. - - :ivar image: Container image tag. - :vartype image: str - :ivar name: Custom container name. - :vartype name: str - :ivar command: Container start command. - :vartype command: list[str] - :ivar args: Container start command arguments. - :vartype args: list[str] - :ivar env: Container environment variables. - :vartype env: list[~azure.mgmt.appcontainers.models.EnvironmentVar] - :ivar resources: Container resource requirements. - :vartype resources: ~azure.mgmt.appcontainers.models.ContainerResources - :ivar volume_mounts: Container volume mounts. - :vartype volume_mounts: list[~azure.mgmt.appcontainers.models.VolumeMount] - """ - - -class IpSecurityRestrictionRule(_serialization.Model): - """Rule to restrict incoming IP address. - - All required parameters must be populated in order to send to server. - - :ivar name: Name for the IP restriction rule. Required. - :vartype name: str - :ivar description: Describe the IP restriction rule that is being sent to the container-app. - This is an optional field. - :vartype description: str - :ivar ip_address_range: CIDR notation to match incoming IP address. Required. - :vartype ip_address_range: str - :ivar action: Allow or Deny rules to determine for incoming IP. Note: Rules can only consist of - ALL Allow or ALL Deny. Required. Known values are: "Allow" and "Deny". - :vartype action: str or ~azure.mgmt.appcontainers.models.Action - """ - - _validation = { - "name": {"required": True}, - "ip_address_range": {"required": True}, - "action": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "ip_address_range": {"key": "ipAddressRange", "type": "str"}, - "action": {"key": "action", "type": "str"}, - } - - def __init__( - self, - *, - name: str, - ip_address_range: str, - action: Union[str, "_models.Action"], - description: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name for the IP restriction rule. Required. - :paramtype name: str - :keyword description: Describe the IP restriction rule that is being sent to the container-app. - This is an optional field. - :paramtype description: str - :keyword ip_address_range: CIDR notation to match incoming IP address. Required. - :paramtype ip_address_range: str - :keyword action: Allow or Deny rules to determine for incoming IP. Note: Rules can only consist - of ALL Allow or ALL Deny. Required. Known values are: "Allow" and "Deny". - :paramtype action: str or ~azure.mgmt.appcontainers.models.Action - """ - super().__init__(**kwargs) - self.name = name - self.description = description - self.ip_address_range = ip_address_range - self.action = action - - -class JavaComponent(ProxyResource): - """Java Component. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData - :ivar properties: Java Component resource specific properties. - :vartype properties: ~azure.mgmt.appcontainers.models.JavaComponentProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "JavaComponentProperties"}, - } - - def __init__(self, *, properties: Optional["_models.JavaComponentProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Java Component resource specific properties. - :paramtype properties: ~azure.mgmt.appcontainers.models.JavaComponentProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class JavaComponentConfigurationProperty(_serialization.Model): - """Configuration properties for a Java Component. - - :ivar property_name: The name of the property. - :vartype property_name: str - :ivar value: The value of the property. - :vartype value: str - """ - - _attribute_map = { - "property_name": {"key": "propertyName", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, *, property_name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword property_name: The name of the property. - :paramtype property_name: str - :keyword value: The value of the property. - :paramtype value: str - """ - super().__init__(**kwargs) - self.property_name = property_name - self.value = value - - -class JavaComponentIngress(_serialization.Model): - """Container App Ingress configuration. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar fqdn: Hostname of the Java Component endpoint. - :vartype fqdn: str - """ - - _validation = { - "fqdn": {"readonly": True}, - } - - _attribute_map = { - "fqdn": {"key": "fqdn", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.fqdn: Optional[str] = None - - -class JavaComponentProperties(_serialization.Model): - """Java Component common properties. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - SpringBootAdminComponent, SpringCloudConfigComponent, SpringCloudEurekaComponent - - 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 component_type: Type of the Java Component. Required. Known values are: - "SpringBootAdmin", "SpringCloudEureka", and "SpringCloudConfig". - :vartype component_type: str or ~azure.mgmt.appcontainers.models.JavaComponentType - :ivar provisioning_state: Provisioning state of the Java Component. Known values are: - "Succeeded", "Failed", "Canceled", "Deleting", and "InProgress". - :vartype provisioning_state: str or - ~azure.mgmt.appcontainers.models.JavaComponentProvisioningState - :ivar configurations: List of Java Components configuration properties. - :vartype configurations: - list[~azure.mgmt.appcontainers.models.JavaComponentConfigurationProperty] - :ivar scale: Java component scaling configurations. - :vartype scale: ~azure.mgmt.appcontainers.models.JavaComponentPropertiesScale - :ivar service_binds: List of Java Components that are bound to the Java component. - :vartype service_binds: list[~azure.mgmt.appcontainers.models.JavaComponentServiceBind] - """ - - _validation = { - "component_type": {"required": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "component_type": {"key": "componentType", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "configurations": {"key": "configurations", "type": "[JavaComponentConfigurationProperty]"}, - "scale": {"key": "scale", "type": "JavaComponentPropertiesScale"}, - "service_binds": {"key": "serviceBinds", "type": "[JavaComponentServiceBind]"}, - } - - _subtype_map = { - "component_type": { - "SpringBootAdmin": "SpringBootAdminComponent", - "SpringCloudConfig": "SpringCloudConfigComponent", - "SpringCloudEureka": "SpringCloudEurekaComponent", - } - } - - def __init__( - self, - *, - configurations: Optional[list["_models.JavaComponentConfigurationProperty"]] = None, - scale: Optional["_models.JavaComponentPropertiesScale"] = None, - service_binds: Optional[list["_models.JavaComponentServiceBind"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword configurations: List of Java Components configuration properties. - :paramtype configurations: - list[~azure.mgmt.appcontainers.models.JavaComponentConfigurationProperty] - :keyword scale: Java component scaling configurations. - :paramtype scale: ~azure.mgmt.appcontainers.models.JavaComponentPropertiesScale - :keyword service_binds: List of Java Components that are bound to the Java component. - :paramtype service_binds: list[~azure.mgmt.appcontainers.models.JavaComponentServiceBind] - """ - super().__init__(**kwargs) - self.component_type: Optional[str] = None - self.provisioning_state: Optional[Union[str, "_models.JavaComponentProvisioningState"]] = None - self.configurations = configurations - self.scale = scale - self.service_binds = service_binds - - -class JavaComponentPropertiesScale(_serialization.Model): - """Java component scaling configurations. - - :ivar min_replicas: Optional. Minimum number of Java component replicas. Defaults to 1 if not - set. - :vartype min_replicas: int - :ivar max_replicas: Optional. Maximum number of Java component replicas. - :vartype max_replicas: int - """ - - _attribute_map = { - "min_replicas": {"key": "minReplicas", "type": "int"}, - "max_replicas": {"key": "maxReplicas", "type": "int"}, - } - - def __init__( - self, *, min_replicas: Optional[int] = None, max_replicas: Optional[int] = None, **kwargs: Any - ) -> None: - """ - :keyword min_replicas: Optional. Minimum number of Java component replicas. Defaults to 1 if - not set. - :paramtype min_replicas: int - :keyword max_replicas: Optional. Maximum number of Java component replicas. - :paramtype max_replicas: int - """ - super().__init__(**kwargs) - self.min_replicas = min_replicas - self.max_replicas = max_replicas - - -class JavaComponentsCollection(_serialization.Model): - """Java Components ARM resource. - - 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 value: Collection of resources. Required. - :vartype value: list[~azure.mgmt.appcontainers.models.JavaComponent] - :ivar next_link: Link to next page of resources. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[JavaComponent]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: list["_models.JavaComponent"], **kwargs: Any) -> None: - """ - :keyword value: Collection of resources. Required. - :paramtype value: list[~azure.mgmt.appcontainers.models.JavaComponent] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None - - -class JavaComponentServiceBind(_serialization.Model): - """Configuration to bind a Java Component to another Java Component. - - :ivar name: Name of the service bind. - :vartype name: str - :ivar service_id: Resource id of the target service. - :vartype service_id: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "service_id": {"key": "serviceId", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, service_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: Name of the service bind. - :paramtype name: str - :keyword service_id: Resource id of the target service. - :paramtype service_id: str - """ - super().__init__(**kwargs) - self.name = name - self.service_id = service_id - - -class Job(TrackedResource): - """Container App Job. - - 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 id: Fully qualified resource ID for the resource. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData - :ivar tags: Resource tags. - :vartype tags: dict[str, str] - :ivar location: The geo-location where the resource lives. Required. - :vartype location: str - :ivar identity: Managed identities needed by a container app job to interact with other Azure - services to not maintain any secrets or credentials in code. - :vartype identity: ~azure.mgmt.appcontainers.models.ManagedServiceIdentity - :ivar provisioning_state: Provisioning state of the Container Apps Job. Known values are: - "InProgress", "Succeeded", "Failed", "Canceled", and "Deleting". - :vartype provisioning_state: str or ~azure.mgmt.appcontainers.models.JobProvisioningState - :ivar environment_id: Resource ID of environment. - :vartype environment_id: str - :ivar workload_profile_name: Workload profile name to pin for container apps job execution. - :vartype workload_profile_name: str - :ivar configuration: Container Apps Job configuration properties. - :vartype configuration: ~azure.mgmt.appcontainers.models.JobConfiguration - :ivar template: Container Apps job definition. - :vartype template: ~azure.mgmt.appcontainers.models.JobTemplate - :ivar outbound_ip_addresses: Outbound IP Addresses of a container apps job. - :vartype outbound_ip_addresses: list[str] - :ivar event_stream_endpoint: The endpoint of the eventstream of the container apps job. - :vartype event_stream_endpoint: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - "location": {"required": True}, - "provisioning_state": {"readonly": True}, - "outbound_ip_addresses": {"readonly": True}, - "event_stream_endpoint": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "tags": {"key": "tags", "type": "{str}"}, - "location": {"key": "location", "type": "str"}, - "identity": {"key": "identity", "type": "ManagedServiceIdentity"}, - "provisioning_state": {"key": "properties.provisioningState", "type": "str"}, - "environment_id": {"key": "properties.environmentId", "type": "str"}, - "workload_profile_name": {"key": "properties.workloadProfileName", "type": "str"}, - "configuration": {"key": "properties.configuration", "type": "JobConfiguration"}, - "template": {"key": "properties.template", "type": "JobTemplate"}, - "outbound_ip_addresses": {"key": "properties.outboundIpAddresses", "type": "[str]"}, - "event_stream_endpoint": {"key": "properties.eventStreamEndpoint", "type": "str"}, - } - - def __init__( - self, - *, - location: str, - tags: Optional[dict[str, str]] = None, - identity: Optional["_models.ManagedServiceIdentity"] = None, - environment_id: Optional[str] = None, - workload_profile_name: Optional[str] = None, - configuration: Optional["_models.JobConfiguration"] = None, - template: Optional["_models.JobTemplate"] = None, - **kwargs: Any - ) -> None: - """ - :keyword tags: Resource tags. - :paramtype tags: dict[str, str] - :keyword location: The geo-location where the resource lives. Required. - :paramtype location: str - :keyword identity: Managed identities needed by a container app job to interact with other - Azure services to not maintain any secrets or credentials in code. - :paramtype identity: ~azure.mgmt.appcontainers.models.ManagedServiceIdentity - :keyword environment_id: Resource ID of environment. - :paramtype environment_id: str - :keyword workload_profile_name: Workload profile name to pin for container apps job execution. - :paramtype workload_profile_name: str - :keyword configuration: Container Apps Job configuration properties. - :paramtype configuration: ~azure.mgmt.appcontainers.models.JobConfiguration - :keyword template: Container Apps job definition. - :paramtype template: ~azure.mgmt.appcontainers.models.JobTemplate - """ - super().__init__(tags=tags, location=location, **kwargs) - self.identity = identity - self.provisioning_state: Optional[Union[str, "_models.JobProvisioningState"]] = None - self.environment_id = environment_id - self.workload_profile_name = workload_profile_name - self.configuration = configuration - self.template = template - self.outbound_ip_addresses: Optional[list[str]] = None - self.event_stream_endpoint: Optional[str] = None - - -class JobConfiguration(_serialization.Model): - """Non versioned Container Apps Job configuration properties. - - All required parameters must be populated in order to send to server. - - :ivar secrets: Collection of secrets used by a Container Apps Job. - :vartype secrets: list[~azure.mgmt.appcontainers.models.Secret] - :ivar trigger_type: Trigger type of the job. Known values are: "Schedule", "Event", and - "Manual". - :vartype trigger_type: str or ~azure.mgmt.appcontainers.models.TriggerType - :ivar replica_timeout: Maximum number of seconds a replica is allowed to run. Required. - :vartype replica_timeout: int - :ivar replica_retry_limit: Maximum number of retries before failing the job. - :vartype replica_retry_limit: int - :ivar manual_trigger_config: Manual trigger configuration for a single execution job. - Properties replicaCompletionCount and parallelism would be set to 1 by default. - :vartype manual_trigger_config: - ~azure.mgmt.appcontainers.models.JobConfigurationManualTriggerConfig - :ivar schedule_trigger_config: Cron formatted repeating trigger schedule ("\\ * * * * *") for - cronjobs. Properties completions and parallelism would be set to 1 by default. - :vartype schedule_trigger_config: - ~azure.mgmt.appcontainers.models.JobConfigurationScheduleTriggerConfig - :ivar event_trigger_config: Trigger configuration of an event driven job. - :vartype event_trigger_config: - ~azure.mgmt.appcontainers.models.JobConfigurationEventTriggerConfig - :ivar registries: Collection of private container registry credentials used by a Container apps - job. - :vartype registries: list[~azure.mgmt.appcontainers.models.RegistryCredentials] - :ivar identity_settings: Optional settings for Managed Identities that are assigned to the - Container App Job. If a Managed Identity is not specified here, default settings will be used. - :vartype identity_settings: list[~azure.mgmt.appcontainers.models.IdentitySettings] - """ - - _validation = { - "trigger_type": {"required": True}, - "replica_timeout": {"required": True}, - } - - _attribute_map = { - "secrets": {"key": "secrets", "type": "[Secret]"}, - "trigger_type": {"key": "triggerType", "type": "str"}, - "replica_timeout": {"key": "replicaTimeout", "type": "int"}, - "replica_retry_limit": {"key": "replicaRetryLimit", "type": "int"}, - "manual_trigger_config": {"key": "manualTriggerConfig", "type": "JobConfigurationManualTriggerConfig"}, - "schedule_trigger_config": {"key": "scheduleTriggerConfig", "type": "JobConfigurationScheduleTriggerConfig"}, - "event_trigger_config": {"key": "eventTriggerConfig", "type": "JobConfigurationEventTriggerConfig"}, - "registries": {"key": "registries", "type": "[RegistryCredentials]"}, - "identity_settings": {"key": "identitySettings", "type": "[IdentitySettings]"}, - } - - def __init__( - self, - *, - trigger_type: Union[str, "_models.TriggerType"] = "Manual", - replica_timeout: int, - secrets: Optional[list["_models.Secret"]] = None, - replica_retry_limit: Optional[int] = None, - manual_trigger_config: Optional["_models.JobConfigurationManualTriggerConfig"] = None, - schedule_trigger_config: Optional["_models.JobConfigurationScheduleTriggerConfig"] = None, - event_trigger_config: Optional["_models.JobConfigurationEventTriggerConfig"] = None, - registries: Optional[list["_models.RegistryCredentials"]] = None, - identity_settings: Optional[list["_models.IdentitySettings"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword secrets: Collection of secrets used by a Container Apps Job. - :paramtype secrets: list[~azure.mgmt.appcontainers.models.Secret] - :keyword trigger_type: Trigger type of the job. Known values are: "Schedule", "Event", and - "Manual". - :paramtype trigger_type: str or ~azure.mgmt.appcontainers.models.TriggerType - :keyword replica_timeout: Maximum number of seconds a replica is allowed to run. Required. - :paramtype replica_timeout: int - :keyword replica_retry_limit: Maximum number of retries before failing the job. - :paramtype replica_retry_limit: int - :keyword manual_trigger_config: Manual trigger configuration for a single execution job. - Properties replicaCompletionCount and parallelism would be set to 1 by default. - :paramtype manual_trigger_config: - ~azure.mgmt.appcontainers.models.JobConfigurationManualTriggerConfig - :keyword schedule_trigger_config: Cron formatted repeating trigger schedule ("\\ * * * * *") - for cronjobs. Properties completions and parallelism would be set to 1 by default. - :paramtype schedule_trigger_config: - ~azure.mgmt.appcontainers.models.JobConfigurationScheduleTriggerConfig - :keyword event_trigger_config: Trigger configuration of an event driven job. - :paramtype event_trigger_config: - ~azure.mgmt.appcontainers.models.JobConfigurationEventTriggerConfig - :keyword registries: Collection of private container registry credentials used by a Container - apps job. - :paramtype registries: list[~azure.mgmt.appcontainers.models.RegistryCredentials] - :keyword identity_settings: Optional settings for Managed Identities that are assigned to the - Container App Job. If a Managed Identity is not specified here, default settings will be used. - :paramtype identity_settings: list[~azure.mgmt.appcontainers.models.IdentitySettings] - """ - super().__init__(**kwargs) - self.secrets = secrets - self.trigger_type = trigger_type - self.replica_timeout = replica_timeout - self.replica_retry_limit = replica_retry_limit - self.manual_trigger_config = manual_trigger_config - self.schedule_trigger_config = schedule_trigger_config - self.event_trigger_config = event_trigger_config - self.registries = registries - self.identity_settings = identity_settings - - -class JobConfigurationEventTriggerConfig(_serialization.Model): - """Trigger configuration of an event driven job. - - :ivar replica_completion_count: Minimum number of successful replica completions before overall - job completion. - :vartype replica_completion_count: int - :ivar parallelism: Number of parallel replicas of a job that can run at a given time. - :vartype parallelism: int - :ivar scale: Scaling configurations for event driven jobs. - :vartype scale: ~azure.mgmt.appcontainers.models.JobScale - """ - - _attribute_map = { - "replica_completion_count": {"key": "replicaCompletionCount", "type": "int"}, - "parallelism": {"key": "parallelism", "type": "int"}, - "scale": {"key": "scale", "type": "JobScale"}, - } - - def __init__( - self, - *, - replica_completion_count: Optional[int] = None, - parallelism: Optional[int] = None, - scale: Optional["_models.JobScale"] = None, - **kwargs: Any - ) -> None: - """ - :keyword replica_completion_count: Minimum number of successful replica completions before - overall job completion. - :paramtype replica_completion_count: int - :keyword parallelism: Number of parallel replicas of a job that can run at a given time. - :paramtype parallelism: int - :keyword scale: Scaling configurations for event driven jobs. - :paramtype scale: ~azure.mgmt.appcontainers.models.JobScale - """ - super().__init__(**kwargs) - self.replica_completion_count = replica_completion_count - self.parallelism = parallelism - self.scale = scale - - -class JobConfigurationManualTriggerConfig(_serialization.Model): - """Manual trigger configuration for a single execution job. Properties replicaCompletionCount and - parallelism would be set to 1 by default. - - :ivar replica_completion_count: Minimum number of successful replica completions before overall - job completion. - :vartype replica_completion_count: int - :ivar parallelism: Number of parallel replicas of a job that can run at a given time. - :vartype parallelism: int - """ - - _attribute_map = { - "replica_completion_count": {"key": "replicaCompletionCount", "type": "int"}, - "parallelism": {"key": "parallelism", "type": "int"}, - } - - def __init__( - self, *, replica_completion_count: Optional[int] = None, parallelism: Optional[int] = None, **kwargs: Any - ) -> None: - """ - :keyword replica_completion_count: Minimum number of successful replica completions before - overall job completion. - :paramtype replica_completion_count: int - :keyword parallelism: Number of parallel replicas of a job that can run at a given time. - :paramtype parallelism: int - """ - super().__init__(**kwargs) - self.replica_completion_count = replica_completion_count - self.parallelism = parallelism - - -class JobConfigurationScheduleTriggerConfig(_serialization.Model): - """Cron formatted repeating trigger schedule ("\\ * * * * *") for cronjobs. Properties completions - and parallelism would be set to 1 by default. - - All required parameters must be populated in order to send to server. - - :ivar replica_completion_count: Minimum number of successful replica completions before overall - job completion. - :vartype replica_completion_count: int - :ivar cron_expression: Cron formatted repeating schedule ("\\ * * * * *") of a Cron Job. - Required. - :vartype cron_expression: str - :ivar parallelism: Number of parallel replicas of a job that can run at a given time. - :vartype parallelism: int - """ - - _validation = { - "cron_expression": {"required": True}, - } - - _attribute_map = { - "replica_completion_count": {"key": "replicaCompletionCount", "type": "int"}, - "cron_expression": {"key": "cronExpression", "type": "str"}, - "parallelism": {"key": "parallelism", "type": "int"}, - } - - def __init__( - self, - *, - cron_expression: str, - replica_completion_count: Optional[int] = None, - parallelism: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword replica_completion_count: Minimum number of successful replica completions before - overall job completion. - :paramtype replica_completion_count: int - :keyword cron_expression: Cron formatted repeating schedule ("\\ * * * * *") of a Cron Job. - Required. - :paramtype cron_expression: str - :keyword parallelism: Number of parallel replicas of a job that can run at a given time. - :paramtype parallelism: int - """ - super().__init__(**kwargs) - self.replica_completion_count = replica_completion_count - self.cron_expression = cron_expression - self.parallelism = parallelism - - -class JobExecution(_serialization.Model): - """Container Apps Job execution. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Job execution Name. - :vartype name: str - :ivar id: Job execution Id. - :vartype id: str - :ivar type: Job execution type. - :vartype type: str - :ivar status: Current running State of the job. Known values are: "Running", "Processing", - "Stopped", "Degraded", "Failed", "Unknown", and "Succeeded". - :vartype status: str or ~azure.mgmt.appcontainers.models.JobExecutionRunningState - :ivar start_time: Job execution start time. - :vartype start_time: ~datetime.datetime - :ivar end_time: Job execution end time. - :vartype end_time: ~datetime.datetime - :ivar template: Job's execution container. - :vartype template: ~azure.mgmt.appcontainers.models.JobExecutionTemplate - """ - - _validation = { - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "id": {"key": "id", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "status": {"key": "properties.status", "type": "str"}, - "start_time": {"key": "properties.startTime", "type": "iso-8601"}, - "end_time": {"key": "properties.endTime", "type": "iso-8601"}, - "template": {"key": "properties.template", "type": "JobExecutionTemplate"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - id: Optional[str] = None, # pylint: disable=redefined-builtin - type: Optional[str] = None, - start_time: Optional[datetime.datetime] = None, - end_time: Optional[datetime.datetime] = None, - template: Optional["_models.JobExecutionTemplate"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Job execution Name. - :paramtype name: str - :keyword id: Job execution Id. - :paramtype id: str - :keyword type: Job execution type. - :paramtype type: str - :keyword start_time: Job execution start time. - :paramtype start_time: ~datetime.datetime - :keyword end_time: Job execution end time. - :paramtype end_time: ~datetime.datetime - :keyword template: Job's execution container. - :paramtype template: ~azure.mgmt.appcontainers.models.JobExecutionTemplate - """ - super().__init__(**kwargs) - self.name = name - self.id = id - self.type = type - self.status: Optional[Union[str, "_models.JobExecutionRunningState"]] = None - self.start_time = start_time - self.end_time = end_time - self.template = template - - -class JobExecutionBase(_serialization.Model): - """Container App's Job execution name. - - :ivar name: Job execution name. - :vartype name: str - :ivar id: Job execution Id. - :vartype id: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "id": {"key": "id", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - id: Optional[str] = None, # pylint: disable=redefined-builtin - **kwargs: Any - ) -> None: - """ - :keyword name: Job execution name. - :paramtype name: str - :keyword id: Job execution Id. - :paramtype id: str - """ - super().__init__(**kwargs) - self.name = name - self.id = id - - -class JobExecutionContainer(_serialization.Model): - """Container Apps Jobs execution container definition. - - :ivar image: Container image tag. - :vartype image: str - :ivar name: Custom container name. - :vartype name: str - :ivar command: Container start command. - :vartype command: list[str] - :ivar args: Container start command arguments. - :vartype args: list[str] - :ivar env: Container environment variables. - :vartype env: list[~azure.mgmt.appcontainers.models.EnvironmentVar] - :ivar resources: Container resource requirements. - :vartype resources: ~azure.mgmt.appcontainers.models.ContainerResources - """ - - _attribute_map = { - "image": {"key": "image", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "command": {"key": "command", "type": "[str]"}, - "args": {"key": "args", "type": "[str]"}, - "env": {"key": "env", "type": "[EnvironmentVar]"}, - "resources": {"key": "resources", "type": "ContainerResources"}, - } - - def __init__( - self, - *, - image: Optional[str] = None, - name: Optional[str] = None, - command: Optional[list[str]] = None, - args: Optional[list[str]] = None, - env: Optional[list["_models.EnvironmentVar"]] = None, - resources: Optional["_models.ContainerResources"] = None, - **kwargs: Any - ) -> None: - """ - :keyword image: Container image tag. - :paramtype image: str - :keyword name: Custom container name. - :paramtype name: str - :keyword command: Container start command. - :paramtype command: list[str] - :keyword args: Container start command arguments. - :paramtype args: list[str] - :keyword env: Container environment variables. - :paramtype env: list[~azure.mgmt.appcontainers.models.EnvironmentVar] - :keyword resources: Container resource requirements. - :paramtype resources: ~azure.mgmt.appcontainers.models.ContainerResources - """ - super().__init__(**kwargs) - self.image = image - self.name = name - self.command = command - self.args = args - self.env = env - self.resources = resources - - -class JobExecutionNamesCollection(_serialization.Model): - """Container App executions names list. - - All required parameters must be populated in order to send to server. - - :ivar value: Collection of resources. Required. - :vartype value: list[~azure.mgmt.appcontainers.models.JobExecutionBase] - """ - - _validation = { - "value": {"required": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[JobExecutionBase]"}, - } - - def __init__(self, *, value: list["_models.JobExecutionBase"], **kwargs: Any) -> None: - """ - :keyword value: Collection of resources. Required. - :paramtype value: list[~azure.mgmt.appcontainers.models.JobExecutionBase] - """ - super().__init__(**kwargs) - self.value = value - - -class JobExecutionTemplate(_serialization.Model): - """Job's execution template, containing container configuration for a job's execution. - - :ivar containers: List of container definitions for the Container Apps Job. - :vartype containers: list[~azure.mgmt.appcontainers.models.JobExecutionContainer] - :ivar init_containers: List of specialized containers that run before job containers. - :vartype init_containers: list[~azure.mgmt.appcontainers.models.JobExecutionContainer] - """ - - _attribute_map = { - "containers": {"key": "containers", "type": "[JobExecutionContainer]"}, - "init_containers": {"key": "initContainers", "type": "[JobExecutionContainer]"}, - } - - def __init__( - self, - *, - containers: Optional[list["_models.JobExecutionContainer"]] = None, - init_containers: Optional[list["_models.JobExecutionContainer"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword containers: List of container definitions for the Container Apps Job. - :paramtype containers: list[~azure.mgmt.appcontainers.models.JobExecutionContainer] - :keyword init_containers: List of specialized containers that run before job containers. - :paramtype init_containers: list[~azure.mgmt.appcontainers.models.JobExecutionContainer] - """ - super().__init__(**kwargs) - self.containers = containers - self.init_containers = init_containers - - -class JobPatchProperties(_serialization.Model): - """Container Apps Job resource specific properties. - - :ivar identity: Managed identities needed by a container app job to interact with other Azure - services to not maintain any secrets or credentials in code. - :vartype identity: ~azure.mgmt.appcontainers.models.ManagedServiceIdentity - :ivar tags: Resource tags. - :vartype tags: dict[str, str] - :ivar properties: - :vartype properties: ~azure.mgmt.appcontainers.models.JobPatchPropertiesProperties - """ - - _attribute_map = { - "identity": {"key": "identity", "type": "ManagedServiceIdentity"}, - "tags": {"key": "tags", "type": "{str}"}, - "properties": {"key": "properties", "type": "JobPatchPropertiesProperties"}, - } - - def __init__( - self, - *, - identity: Optional["_models.ManagedServiceIdentity"] = None, - tags: Optional[dict[str, str]] = None, - properties: Optional["_models.JobPatchPropertiesProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword identity: Managed identities needed by a container app job to interact with other - Azure services to not maintain any secrets or credentials in code. - :paramtype identity: ~azure.mgmt.appcontainers.models.ManagedServiceIdentity - :keyword tags: Resource tags. - :paramtype tags: dict[str, str] - :keyword properties: - :paramtype properties: ~azure.mgmt.appcontainers.models.JobPatchPropertiesProperties - """ - super().__init__(**kwargs) - self.identity = identity - self.tags = tags - self.properties = properties - - -class JobPatchPropertiesProperties(_serialization.Model): - """JobPatchPropertiesProperties. - - :ivar environment_id: Resource ID of environment. - :vartype environment_id: str - :ivar configuration: Container Apps Job configuration properties. - :vartype configuration: ~azure.mgmt.appcontainers.models.JobConfiguration - :ivar template: Container Apps job definition. - :vartype template: ~azure.mgmt.appcontainers.models.JobTemplate - :ivar outbound_ip_addresses: Outbound IP Addresses of a container apps job. - :vartype outbound_ip_addresses: list[str] - :ivar event_stream_endpoint: The endpoint of the eventstream of the container apps job. - :vartype event_stream_endpoint: str - """ - - _attribute_map = { - "environment_id": {"key": "environmentId", "type": "str"}, - "configuration": {"key": "configuration", "type": "JobConfiguration"}, - "template": {"key": "template", "type": "JobTemplate"}, - "outbound_ip_addresses": {"key": "outboundIpAddresses", "type": "[str]"}, - "event_stream_endpoint": {"key": "eventStreamEndpoint", "type": "str"}, - } - - def __init__( - self, - *, - environment_id: Optional[str] = None, - configuration: Optional["_models.JobConfiguration"] = None, - template: Optional["_models.JobTemplate"] = None, - outbound_ip_addresses: Optional[list[str]] = None, - event_stream_endpoint: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword environment_id: Resource ID of environment. - :paramtype environment_id: str - :keyword configuration: Container Apps Job configuration properties. - :paramtype configuration: ~azure.mgmt.appcontainers.models.JobConfiguration - :keyword template: Container Apps job definition. - :paramtype template: ~azure.mgmt.appcontainers.models.JobTemplate - :keyword outbound_ip_addresses: Outbound IP Addresses of a container apps job. - :paramtype outbound_ip_addresses: list[str] - :keyword event_stream_endpoint: The endpoint of the eventstream of the container apps job. - :paramtype event_stream_endpoint: str - """ - super().__init__(**kwargs) - self.environment_id = environment_id - self.configuration = configuration - self.template = template - self.outbound_ip_addresses = outbound_ip_addresses - self.event_stream_endpoint = event_stream_endpoint - - -class JobScale(_serialization.Model): - """Scaling configurations for event driven jobs. - - :ivar polling_interval: Interval to check each event source in seconds. Defaults to 30s. - :vartype polling_interval: int - :ivar min_executions: Minimum number of job executions that are created for a trigger, default - 0. - :vartype min_executions: int - :ivar max_executions: Maximum number of job executions that are created for a trigger, default - 100. - :vartype max_executions: int - :ivar rules: Scaling rules. - :vartype rules: list[~azure.mgmt.appcontainers.models.JobScaleRule] - """ - - _attribute_map = { - "polling_interval": {"key": "pollingInterval", "type": "int"}, - "min_executions": {"key": "minExecutions", "type": "int"}, - "max_executions": {"key": "maxExecutions", "type": "int"}, - "rules": {"key": "rules", "type": "[JobScaleRule]"}, - } - - def __init__( - self, - *, - polling_interval: Optional[int] = None, - min_executions: int = 0, - max_executions: int = 100, - rules: Optional[list["_models.JobScaleRule"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword polling_interval: Interval to check each event source in seconds. Defaults to 30s. - :paramtype polling_interval: int - :keyword min_executions: Minimum number of job executions that are created for a trigger, - default 0. - :paramtype min_executions: int - :keyword max_executions: Maximum number of job executions that are created for a trigger, - default 100. - :paramtype max_executions: int - :keyword rules: Scaling rules. - :paramtype rules: list[~azure.mgmt.appcontainers.models.JobScaleRule] - """ - super().__init__(**kwargs) - self.polling_interval = polling_interval - self.min_executions = min_executions - self.max_executions = max_executions - self.rules = rules - - -class JobScaleRule(_serialization.Model): - """Scaling rule. - - :ivar name: Scale Rule Name. - :vartype name: str - :ivar type: Type of the scale rule eg: azure-servicebus, redis etc. - :vartype type: str - :ivar metadata: Metadata properties to describe the scale rule. - :vartype metadata: JSON - :ivar auth: Authentication secrets for the scale rule. - :vartype auth: list[~azure.mgmt.appcontainers.models.ScaleRuleAuth] - :ivar identity: The resource ID of a user-assigned managed identity that is assigned to the - Container App, or 'system' for system-assigned identity. - :vartype identity: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "metadata": {"key": "metadata", "type": "object"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - "identity": {"key": "identity", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - type: Optional[str] = None, - metadata: Optional[JSON] = None, - auth: Optional[list["_models.ScaleRuleAuth"]] = None, - identity: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Scale Rule Name. - :paramtype name: str - :keyword type: Type of the scale rule eg: azure-servicebus, redis etc. - :paramtype type: str - :keyword metadata: Metadata properties to describe the scale rule. - :paramtype metadata: JSON - :keyword auth: Authentication secrets for the scale rule. - :paramtype auth: list[~azure.mgmt.appcontainers.models.ScaleRuleAuth] - :keyword identity: The resource ID of a user-assigned managed identity that is assigned to the - Container App, or 'system' for system-assigned identity. - :paramtype identity: str - """ - super().__init__(**kwargs) - self.name = name - self.type = type - self.metadata = metadata - self.auth = auth - self.identity = identity - - -class JobsCollection(_serialization.Model): - """Container Apps Jobs collection ARM resource. - - 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 value: Collection of resources. Required. - :vartype value: list[~azure.mgmt.appcontainers.models.Job] - :ivar next_link: Link to next page of resources. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[Job]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: list["_models.Job"], **kwargs: Any) -> None: - """ - :keyword value: Collection of resources. Required. - :paramtype value: list[~azure.mgmt.appcontainers.models.Job] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None - - -class JobSecretsCollection(_serialization.Model): - """Container Apps Job Secrets Collection ARM resource. - - All required parameters must be populated in order to send to server. - - :ivar value: Collection of resources. Required. - :vartype value: list[~azure.mgmt.appcontainers.models.Secret] - """ - - _validation = { - "value": {"required": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[Secret]"}, - } - - def __init__(self, *, value: list["_models.Secret"], **kwargs: Any) -> None: - """ - :keyword value: Collection of resources. Required. - :paramtype value: list[~azure.mgmt.appcontainers.models.Secret] - """ - super().__init__(**kwargs) - self.value = value - - -class JobTemplate(_serialization.Model): - """Container Apps Job versioned application definition. Defines the desired state of an immutable - revision. Any changes to this section Will result in a new revision being created. - - :ivar init_containers: List of specialized containers that run before app containers. - :vartype init_containers: list[~azure.mgmt.appcontainers.models.InitContainer] - :ivar containers: List of container definitions for the Container App. - :vartype containers: list[~azure.mgmt.appcontainers.models.Container] - :ivar volumes: List of volume definitions for the Container App. - :vartype volumes: list[~azure.mgmt.appcontainers.models.Volume] - """ - - _attribute_map = { - "init_containers": {"key": "initContainers", "type": "[InitContainer]"}, - "containers": {"key": "containers", "type": "[Container]"}, - "volumes": {"key": "volumes", "type": "[Volume]"}, - } - - def __init__( - self, - *, - init_containers: Optional[list["_models.InitContainer"]] = None, - containers: Optional[list["_models.Container"]] = None, - volumes: Optional[list["_models.Volume"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword init_containers: List of specialized containers that run before app containers. - :paramtype init_containers: list[~azure.mgmt.appcontainers.models.InitContainer] - :keyword containers: List of container definitions for the Container App. - :paramtype containers: list[~azure.mgmt.appcontainers.models.Container] - :keyword volumes: List of volume definitions for the Container App. - :paramtype volumes: list[~azure.mgmt.appcontainers.models.Volume] - """ - super().__init__(**kwargs) - self.init_containers = init_containers - self.containers = containers - self.volumes = volumes - - -class JwtClaimChecks(_serialization.Model): - """The configuration settings of the checks that should be made while validating the JWT Claims. - - :ivar allowed_groups: The list of the allowed groups. - :vartype allowed_groups: list[str] - :ivar allowed_client_applications: The list of the allowed client applications. - :vartype allowed_client_applications: list[str] - """ - - _attribute_map = { - "allowed_groups": {"key": "allowedGroups", "type": "[str]"}, - "allowed_client_applications": {"key": "allowedClientApplications", "type": "[str]"}, - } - - def __init__( - self, - *, - allowed_groups: Optional[list[str]] = None, - allowed_client_applications: Optional[list[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword allowed_groups: The list of the allowed groups. - :paramtype allowed_groups: list[str] - :keyword allowed_client_applications: The list of the allowed client applications. - :paramtype allowed_client_applications: list[str] - """ - super().__init__(**kwargs) - self.allowed_groups = allowed_groups - self.allowed_client_applications = allowed_client_applications - - -class KedaConfiguration(_serialization.Model): - """Configuration properties Keda component. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar version: The version of Keda. - :vartype version: str - """ - - _validation = { - "version": {"readonly": True}, - } - - _attribute_map = { - "version": {"key": "version", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.version: Optional[str] = None - - -class LifecycleConfiguration(_serialization.Model): - """The lifecycle configuration properties of a session in the dynamic session pool. - - :ivar lifecycle_type: The lifecycle type of the session pool. Known values are: "Timed" and - "OnContainerExit". - :vartype lifecycle_type: str or ~azure.mgmt.appcontainers.models.LifecycleType - :ivar cooldown_period_in_seconds: The cooldown period of a session in seconds when the - lifecycle type is 'Timed'. - :vartype cooldown_period_in_seconds: int - :ivar max_alive_period_in_seconds: The maximum alive period of a session in seconds when the - lifecycle type is 'OnContainerExit'. - :vartype max_alive_period_in_seconds: int - """ - - _attribute_map = { - "lifecycle_type": {"key": "lifecycleType", "type": "str"}, - "cooldown_period_in_seconds": {"key": "cooldownPeriodInSeconds", "type": "int"}, - "max_alive_period_in_seconds": {"key": "maxAlivePeriodInSeconds", "type": "int"}, - } - - def __init__( - self, - *, - lifecycle_type: Optional[Union[str, "_models.LifecycleType"]] = None, - cooldown_period_in_seconds: Optional[int] = None, - max_alive_period_in_seconds: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword lifecycle_type: The lifecycle type of the session pool. Known values are: "Timed" and - "OnContainerExit". - :paramtype lifecycle_type: str or ~azure.mgmt.appcontainers.models.LifecycleType - :keyword cooldown_period_in_seconds: The cooldown period of a session in seconds when the - lifecycle type is 'Timed'. - :paramtype cooldown_period_in_seconds: int - :keyword max_alive_period_in_seconds: The maximum alive period of a session in seconds when the - lifecycle type is 'OnContainerExit'. - :paramtype max_alive_period_in_seconds: int - """ - super().__init__(**kwargs) - self.lifecycle_type = lifecycle_type - self.cooldown_period_in_seconds = cooldown_period_in_seconds - self.max_alive_period_in_seconds = max_alive_period_in_seconds - - -class ListUsagesResult(_serialization.Model): - """ListUsagesResult. - - :ivar value: The list of compute resource usages. - :vartype value: list[~azure.mgmt.appcontainers.models.Usage] - :ivar next_link: The URI to fetch the next page of compute resource usage information. Call - ListNext() with this to fetch the next page of compute resource usage information. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[Usage]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[list["_models.Usage"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: The list of compute resource usages. - :paramtype value: list[~azure.mgmt.appcontainers.models.Usage] - :keyword next_link: The URI to fetch the next page of compute resource usage information. Call - ListNext() with this to fetch the next page of compute resource usage information. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class LogAnalyticsConfiguration(_serialization.Model): - """Log Analytics configuration, must only be provided when destination is configured as - 'log-analytics'. - - :ivar customer_id: Log analytics customer id. - :vartype customer_id: str - :ivar shared_key: Log analytics customer key. - :vartype shared_key: str - """ - - _attribute_map = { - "customer_id": {"key": "customerId", "type": "str"}, - "shared_key": {"key": "sharedKey", "type": "str"}, - } - - def __init__(self, *, customer_id: Optional[str] = None, shared_key: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword customer_id: Log analytics customer id. - :paramtype customer_id: str - :keyword shared_key: Log analytics customer key. - :paramtype shared_key: str - """ - super().__init__(**kwargs) - self.customer_id = customer_id - self.shared_key = shared_key - - -class LogicApp(ProxyResource): - """A logic app extension 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. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData - """ - - -class Login(_serialization.Model): - """The configuration settings of the login flow of users using ContainerApp Service - Authentication/Authorization. - - :ivar routes: The routes that specify the endpoints used for login and logout requests. - :vartype routes: ~azure.mgmt.appcontainers.models.LoginRoutes - :ivar token_store: The configuration settings of the token store. - :vartype token_store: ~azure.mgmt.appcontainers.models.TokenStore - :ivar preserve_url_fragments_for_logins: :code:`true` if the fragments from the - request are preserved after the login request is made; otherwise, :code:`false`. - :vartype preserve_url_fragments_for_logins: bool - :ivar allowed_external_redirect_urls: External URLs that can be redirected to as part of - logging in or logging out of the app. Note that the query string part of the URL is ignored. - This is an advanced setting typically only needed by Windows Store application backends. Note - that URLs within the current domain are always implicitly allowed. - :vartype allowed_external_redirect_urls: list[str] - :ivar cookie_expiration: The configuration settings of the session cookie's expiration. - :vartype cookie_expiration: ~azure.mgmt.appcontainers.models.CookieExpiration - :ivar nonce: The configuration settings of the nonce used in the login flow. - :vartype nonce: ~azure.mgmt.appcontainers.models.Nonce - """ - - _attribute_map = { - "routes": {"key": "routes", "type": "LoginRoutes"}, - "token_store": {"key": "tokenStore", "type": "TokenStore"}, - "preserve_url_fragments_for_logins": {"key": "preserveUrlFragmentsForLogins", "type": "bool"}, - "allowed_external_redirect_urls": {"key": "allowedExternalRedirectUrls", "type": "[str]"}, - "cookie_expiration": {"key": "cookieExpiration", "type": "CookieExpiration"}, - "nonce": {"key": "nonce", "type": "Nonce"}, - } - - def __init__( - self, - *, - routes: Optional["_models.LoginRoutes"] = None, - token_store: Optional["_models.TokenStore"] = None, - preserve_url_fragments_for_logins: Optional[bool] = None, - allowed_external_redirect_urls: Optional[list[str]] = None, - cookie_expiration: Optional["_models.CookieExpiration"] = None, - nonce: Optional["_models.Nonce"] = None, - **kwargs: Any - ) -> None: - """ - :keyword routes: The routes that specify the endpoints used for login and logout requests. - :paramtype routes: ~azure.mgmt.appcontainers.models.LoginRoutes - :keyword token_store: The configuration settings of the token store. - :paramtype token_store: ~azure.mgmt.appcontainers.models.TokenStore - :keyword preserve_url_fragments_for_logins: :code:`true` if the fragments from the - request are preserved after the login request is made; otherwise, :code:`false`. - :paramtype preserve_url_fragments_for_logins: bool - :keyword allowed_external_redirect_urls: External URLs that can be redirected to as part of - logging in or logging out of the app. Note that the query string part of the URL is ignored. - This is an advanced setting typically only needed by Windows Store application backends. Note - that URLs within the current domain are always implicitly allowed. - :paramtype allowed_external_redirect_urls: list[str] - :keyword cookie_expiration: The configuration settings of the session cookie's expiration. - :paramtype cookie_expiration: ~azure.mgmt.appcontainers.models.CookieExpiration - :keyword nonce: The configuration settings of the nonce used in the login flow. - :paramtype nonce: ~azure.mgmt.appcontainers.models.Nonce - """ - super().__init__(**kwargs) - self.routes = routes - self.token_store = token_store - self.preserve_url_fragments_for_logins = preserve_url_fragments_for_logins - self.allowed_external_redirect_urls = allowed_external_redirect_urls - self.cookie_expiration = cookie_expiration - self.nonce = nonce - - -class LoginRoutes(_serialization.Model): - """The routes that specify the endpoints used for login and logout requests. - - :ivar logout_endpoint: The endpoint at which a logout request should be made. - :vartype logout_endpoint: str - """ - - _attribute_map = { - "logout_endpoint": {"key": "logoutEndpoint", "type": "str"}, - } - - def __init__(self, *, logout_endpoint: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword logout_endpoint: The endpoint at which a logout request should be made. - :paramtype logout_endpoint: str - """ - super().__init__(**kwargs) - self.logout_endpoint = logout_endpoint - - -class LoginScopes(_serialization.Model): - """The configuration settings of the login flow, including the scopes that should be requested. - - :ivar scopes: A list of the scopes that should be requested while authenticating. - :vartype scopes: list[str] - """ - - _attribute_map = { - "scopes": {"key": "scopes", "type": "[str]"}, - } - - def __init__(self, *, scopes: Optional[list[str]] = None, **kwargs: Any) -> None: - """ - :keyword scopes: A list of the scopes that should be requested while authenticating. - :paramtype scopes: list[str] - """ - super().__init__(**kwargs) - self.scopes = scopes - - -class MaintenanceConfigurationCollection(_serialization.Model): - """The response of list maintenance configuration resources. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: Results of the list maintenance configuration resources. - :vartype value: list[~azure.mgmt.appcontainers.models.MaintenanceConfigurationResource] - :ivar next_link: Link for next page of results. - :vartype next_link: str - """ - - _validation = { - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[MaintenanceConfigurationResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[list["_models.MaintenanceConfigurationResource"]] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Results of the list maintenance configuration resources. - :paramtype value: list[~azure.mgmt.appcontainers.models.MaintenanceConfigurationResource] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None - - -class MaintenanceConfigurationResource(ProxyResource): - """Information about the Maintenance Configuration 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. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData - :ivar scheduled_entries: List of maintenance schedules for a managed environment. - :vartype scheduled_entries: list[~azure.mgmt.appcontainers.models.ScheduledEntry] - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "scheduled_entries": {"key": "properties.scheduledEntries", "type": "[ScheduledEntry]"}, - } - - def __init__(self, *, scheduled_entries: Optional[list["_models.ScheduledEntry"]] = None, **kwargs: Any) -> None: - """ - :keyword scheduled_entries: List of maintenance schedules for a managed environment. - :paramtype scheduled_entries: list[~azure.mgmt.appcontainers.models.ScheduledEntry] - """ - super().__init__(**kwargs) - self.scheduled_entries = scheduled_entries - - -class ManagedCertificate(TrackedResource): - """Managed certificates used for Custom Domain bindings of Container Apps in a Managed - Environment. - - 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 id: Fully qualified resource ID for the resource. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData - :ivar tags: Resource tags. - :vartype tags: dict[str, str] - :ivar location: The geo-location where the resource lives. Required. - :vartype location: str - :ivar properties: Certificate resource specific properties. - :vartype properties: ~azure.mgmt.appcontainers.models.ManagedCertificateProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - "location": {"required": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "tags": {"key": "tags", "type": "{str}"}, - "location": {"key": "location", "type": "str"}, - "properties": {"key": "properties", "type": "ManagedCertificateProperties"}, - } - - def __init__( - self, - *, - location: str, - tags: Optional[dict[str, str]] = None, - properties: Optional["_models.ManagedCertificateProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword tags: Resource tags. - :paramtype tags: dict[str, str] - :keyword location: The geo-location where the resource lives. Required. - :paramtype location: str - :keyword properties: Certificate resource specific properties. - :paramtype properties: ~azure.mgmt.appcontainers.models.ManagedCertificateProperties - """ - super().__init__(tags=tags, location=location, **kwargs) - self.properties = properties - - -class ManagedCertificateCollection(_serialization.Model): - """Collection of Managed Certificates. - - 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 value: Collection of resources. Required. - :vartype value: list[~azure.mgmt.appcontainers.models.ManagedCertificate] - :ivar next_link: Link to next page of resources. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[ManagedCertificate]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: list["_models.ManagedCertificate"], **kwargs: Any) -> None: - """ - :keyword value: Collection of resources. Required. - :paramtype value: list[~azure.mgmt.appcontainers.models.ManagedCertificate] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None - - -class ManagedCertificatePatch(_serialization.Model): - """A managed certificate to update. - - :ivar tags: Application-specific metadata in the form of key-value pairs. - :vartype tags: dict[str, str] - """ - - _attribute_map = { - "tags": {"key": "tags", "type": "{str}"}, - } - - def __init__(self, *, tags: Optional[dict[str, str]] = None, **kwargs: Any) -> None: - """ - :keyword tags: Application-specific metadata in the form of key-value pairs. - :paramtype tags: dict[str, str] - """ - super().__init__(**kwargs) - self.tags = tags - - -class ManagedCertificateProperties(_serialization.Model): - """Certificate resource specific properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the certificate. Known values are: "Succeeded", - "Failed", "Canceled", "DeleteFailed", "Pending", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appcontainers.models.CertificateProvisioningState - :ivar subject_name: Subject name of the certificate. - :vartype subject_name: str - :ivar error: Any error occurred during the certificate provision. - :vartype error: str - :ivar domain_control_validation: Selected type of domain control validation for managed - certificates. Known values are: "CNAME", "HTTP", and "TXT". - :vartype domain_control_validation: str or - ~azure.mgmt.appcontainers.models.ManagedCertificateDomainControlValidation - :ivar validation_token: A TXT token used for DNS TXT domain control validation when issuing - this type of managed certificates. - :vartype validation_token: str - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "error": {"readonly": True}, - "validation_token": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "error": {"key": "error", "type": "str"}, - "domain_control_validation": {"key": "domainControlValidation", "type": "str"}, - "validation_token": {"key": "validationToken", "type": "str"}, - } - - def __init__( - self, - *, - subject_name: Optional[str] = None, - domain_control_validation: Optional[Union[str, "_models.ManagedCertificateDomainControlValidation"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword subject_name: Subject name of the certificate. - :paramtype subject_name: str - :keyword domain_control_validation: Selected type of domain control validation for managed - certificates. Known values are: "CNAME", "HTTP", and "TXT". - :paramtype domain_control_validation: str or - ~azure.mgmt.appcontainers.models.ManagedCertificateDomainControlValidation - """ - super().__init__(**kwargs) - self.provisioning_state: Optional[Union[str, "_models.CertificateProvisioningState"]] = None - self.subject_name = subject_name - self.error: Optional[str] = None - self.domain_control_validation = domain_control_validation - self.validation_token: Optional[str] = None - - -class ManagedEnvironment(TrackedResource): - """An environment for hosting container apps. - - 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 id: Fully qualified resource ID for the resource. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData - :ivar tags: Resource tags. - :vartype tags: dict[str, str] - :ivar location: The geo-location where the resource lives. Required. - :vartype location: str - :ivar kind: Kind of the Environment. - :vartype kind: str - :ivar identity: Managed identities for the Managed Environment to interact with other Azure - services without maintaining any secrets or credentials in code. - :vartype identity: ~azure.mgmt.appcontainers.models.ManagedServiceIdentity - :ivar provisioning_state: Provisioning state of the Environment. Known values are: "Succeeded", - "Failed", "Canceled", "Waiting", "InitializationInProgress", "InfrastructureSetupInProgress", - "InfrastructureSetupComplete", "ScheduledForDelete", "UpgradeRequested", and "UpgradeFailed". - :vartype provisioning_state: str or - ~azure.mgmt.appcontainers.models.EnvironmentProvisioningState - :ivar dapr_ai_instrumentation_key: Azure Monitor instrumentation key used by Dapr to export - Service to Service communication telemetry. - :vartype dapr_ai_instrumentation_key: str - :ivar dapr_ai_connection_string: Application Insights connection string used by Dapr to export - Service to Service communication telemetry. - :vartype dapr_ai_connection_string: str - :ivar vnet_configuration: Vnet configuration for the environment. - :vartype vnet_configuration: ~azure.mgmt.appcontainers.models.VnetConfiguration - :ivar deployment_errors: Any errors that occurred during deployment or deployment validation. - :vartype deployment_errors: str - :ivar default_domain: Default Domain Name for the cluster. - :vartype default_domain: str - :ivar static_ip: Static IP of the Environment. - :vartype static_ip: str - :ivar app_logs_configuration: Cluster configuration which enables the log daemon to export app - logs to configured destination. - :vartype app_logs_configuration: ~azure.mgmt.appcontainers.models.AppLogsConfiguration - :ivar zone_redundant: Whether or not this Managed Environment is zone-redundant. - :vartype zone_redundant: bool - :ivar custom_domain_configuration: Custom domain configuration for the environment. - :vartype custom_domain_configuration: - ~azure.mgmt.appcontainers.models.CustomDomainConfiguration - :ivar event_stream_endpoint: The endpoint of the eventstream of the Environment. - :vartype event_stream_endpoint: str - :ivar workload_profiles: Workload profiles configured for the Managed Environment. - :vartype workload_profiles: list[~azure.mgmt.appcontainers.models.WorkloadProfile] - :ivar keda_configuration: The configuration of Keda component. - :vartype keda_configuration: ~azure.mgmt.appcontainers.models.KedaConfiguration - :ivar dapr_configuration: The configuration of Dapr component. - :vartype dapr_configuration: ~azure.mgmt.appcontainers.models.DaprConfiguration - :ivar infrastructure_resource_group: Name of the platform-managed resource group created for - the Managed Environment to host infrastructure resources. If a subnet ID is provided, this - resource group will be created in the same subscription as the subnet. - :vartype infrastructure_resource_group: str - :ivar peer_authentication: Peer authentication settings for the Managed Environment. - :vartype peer_authentication: - ~azure.mgmt.appcontainers.models.ManagedEnvironmentPropertiesPeerAuthentication - :ivar peer_traffic_configuration: Peer traffic settings for the Managed Environment. - :vartype peer_traffic_configuration: - ~azure.mgmt.appcontainers.models.ManagedEnvironmentPropertiesPeerTrafficConfiguration - :ivar ingress_configuration: Ingress configuration for the Managed Environment. - :vartype ingress_configuration: ~azure.mgmt.appcontainers.models.IngressConfiguration - :ivar private_endpoint_connections: Private endpoint connections to the resource. - :vartype private_endpoint_connections: - list[~azure.mgmt.appcontainers.models.PrivateEndpointConnection] - :ivar public_network_access: Property to allow or block all public traffic. Allowed Values: - 'Enabled', 'Disabled'. Known values are: "Enabled" and "Disabled". - :vartype public_network_access: str or ~azure.mgmt.appcontainers.models.PublicNetworkAccess - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - "location": {"required": True}, - "provisioning_state": {"readonly": True}, - "deployment_errors": {"readonly": True}, - "default_domain": {"readonly": True}, - "static_ip": {"readonly": True}, - "event_stream_endpoint": {"readonly": True}, - "private_endpoint_connections": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "tags": {"key": "tags", "type": "{str}"}, - "location": {"key": "location", "type": "str"}, - "kind": {"key": "kind", "type": "str"}, - "identity": {"key": "identity", "type": "ManagedServiceIdentity"}, - "provisioning_state": {"key": "properties.provisioningState", "type": "str"}, - "dapr_ai_instrumentation_key": {"key": "properties.daprAIInstrumentationKey", "type": "str"}, - "dapr_ai_connection_string": {"key": "properties.daprAIConnectionString", "type": "str"}, - "vnet_configuration": {"key": "properties.vnetConfiguration", "type": "VnetConfiguration"}, - "deployment_errors": {"key": "properties.deploymentErrors", "type": "str"}, - "default_domain": {"key": "properties.defaultDomain", "type": "str"}, - "static_ip": {"key": "properties.staticIp", "type": "str"}, - "app_logs_configuration": {"key": "properties.appLogsConfiguration", "type": "AppLogsConfiguration"}, - "zone_redundant": {"key": "properties.zoneRedundant", "type": "bool"}, - "custom_domain_configuration": { - "key": "properties.customDomainConfiguration", - "type": "CustomDomainConfiguration", - }, - "event_stream_endpoint": {"key": "properties.eventStreamEndpoint", "type": "str"}, - "workload_profiles": {"key": "properties.workloadProfiles", "type": "[WorkloadProfile]"}, - "keda_configuration": {"key": "properties.kedaConfiguration", "type": "KedaConfiguration"}, - "dapr_configuration": {"key": "properties.daprConfiguration", "type": "DaprConfiguration"}, - "infrastructure_resource_group": {"key": "properties.infrastructureResourceGroup", "type": "str"}, - "peer_authentication": { - "key": "properties.peerAuthentication", - "type": "ManagedEnvironmentPropertiesPeerAuthentication", - }, - "peer_traffic_configuration": { - "key": "properties.peerTrafficConfiguration", - "type": "ManagedEnvironmentPropertiesPeerTrafficConfiguration", - }, - "ingress_configuration": {"key": "properties.ingressConfiguration", "type": "IngressConfiguration"}, - "private_endpoint_connections": { - "key": "properties.privateEndpointConnections", - "type": "[PrivateEndpointConnection]", - }, - "public_network_access": {"key": "properties.publicNetworkAccess", "type": "str"}, - } - - def __init__( # pylint: disable=too-many-locals - self, - *, - location: str, - tags: Optional[dict[str, str]] = None, - kind: Optional[str] = None, - identity: Optional["_models.ManagedServiceIdentity"] = None, - dapr_ai_instrumentation_key: Optional[str] = None, - dapr_ai_connection_string: Optional[str] = None, - vnet_configuration: Optional["_models.VnetConfiguration"] = None, - app_logs_configuration: Optional["_models.AppLogsConfiguration"] = None, - zone_redundant: Optional[bool] = None, - custom_domain_configuration: Optional["_models.CustomDomainConfiguration"] = None, - workload_profiles: Optional[list["_models.WorkloadProfile"]] = None, - keda_configuration: Optional["_models.KedaConfiguration"] = None, - dapr_configuration: Optional["_models.DaprConfiguration"] = None, - infrastructure_resource_group: Optional[str] = None, - peer_authentication: Optional["_models.ManagedEnvironmentPropertiesPeerAuthentication"] = None, - peer_traffic_configuration: Optional["_models.ManagedEnvironmentPropertiesPeerTrafficConfiguration"] = None, - ingress_configuration: Optional["_models.IngressConfiguration"] = None, - public_network_access: Optional[Union[str, "_models.PublicNetworkAccess"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword tags: Resource tags. - :paramtype tags: dict[str, str] - :keyword location: The geo-location where the resource lives. Required. - :paramtype location: str - :keyword kind: Kind of the Environment. - :paramtype kind: str - :keyword identity: Managed identities for the Managed Environment to interact with other Azure - services without maintaining any secrets or credentials in code. - :paramtype identity: ~azure.mgmt.appcontainers.models.ManagedServiceIdentity - :keyword dapr_ai_instrumentation_key: Azure Monitor instrumentation key used by Dapr to export - Service to Service communication telemetry. - :paramtype dapr_ai_instrumentation_key: str - :keyword dapr_ai_connection_string: Application Insights connection string used by Dapr to - export Service to Service communication telemetry. - :paramtype dapr_ai_connection_string: str - :keyword vnet_configuration: Vnet configuration for the environment. - :paramtype vnet_configuration: ~azure.mgmt.appcontainers.models.VnetConfiguration - :keyword app_logs_configuration: Cluster configuration which enables the log daemon to export - app logs to configured destination. - :paramtype app_logs_configuration: ~azure.mgmt.appcontainers.models.AppLogsConfiguration - :keyword zone_redundant: Whether or not this Managed Environment is zone-redundant. - :paramtype zone_redundant: bool - :keyword custom_domain_configuration: Custom domain configuration for the environment. - :paramtype custom_domain_configuration: - ~azure.mgmt.appcontainers.models.CustomDomainConfiguration - :keyword workload_profiles: Workload profiles configured for the Managed Environment. - :paramtype workload_profiles: list[~azure.mgmt.appcontainers.models.WorkloadProfile] - :keyword keda_configuration: The configuration of Keda component. - :paramtype keda_configuration: ~azure.mgmt.appcontainers.models.KedaConfiguration - :keyword dapr_configuration: The configuration of Dapr component. - :paramtype dapr_configuration: ~azure.mgmt.appcontainers.models.DaprConfiguration - :keyword infrastructure_resource_group: Name of the platform-managed resource group created for - the Managed Environment to host infrastructure resources. If a subnet ID is provided, this - resource group will be created in the same subscription as the subnet. - :paramtype infrastructure_resource_group: str - :keyword peer_authentication: Peer authentication settings for the Managed Environment. - :paramtype peer_authentication: - ~azure.mgmt.appcontainers.models.ManagedEnvironmentPropertiesPeerAuthentication - :keyword peer_traffic_configuration: Peer traffic settings for the Managed Environment. - :paramtype peer_traffic_configuration: - ~azure.mgmt.appcontainers.models.ManagedEnvironmentPropertiesPeerTrafficConfiguration - :keyword ingress_configuration: Ingress configuration for the Managed Environment. - :paramtype ingress_configuration: ~azure.mgmt.appcontainers.models.IngressConfiguration - :keyword public_network_access: Property to allow or block all public traffic. Allowed Values: - 'Enabled', 'Disabled'. Known values are: "Enabled" and "Disabled". - :paramtype public_network_access: str or ~azure.mgmt.appcontainers.models.PublicNetworkAccess - """ - super().__init__(tags=tags, location=location, **kwargs) - self.kind = kind - self.identity = identity - self.provisioning_state: Optional[Union[str, "_models.EnvironmentProvisioningState"]] = None - self.dapr_ai_instrumentation_key = dapr_ai_instrumentation_key - self.dapr_ai_connection_string = dapr_ai_connection_string - self.vnet_configuration = vnet_configuration - self.deployment_errors: Optional[str] = None - self.default_domain: Optional[str] = None - self.static_ip: Optional[str] = None - self.app_logs_configuration = app_logs_configuration - self.zone_redundant = zone_redundant - self.custom_domain_configuration = custom_domain_configuration - self.event_stream_endpoint: Optional[str] = None - self.workload_profiles = workload_profiles - self.keda_configuration = keda_configuration - self.dapr_configuration = dapr_configuration - self.infrastructure_resource_group = infrastructure_resource_group - self.peer_authentication = peer_authentication - self.peer_traffic_configuration = peer_traffic_configuration - self.ingress_configuration = ingress_configuration - self.private_endpoint_connections: Optional[list["_models.PrivateEndpointConnection"]] = None - self.public_network_access = public_network_access - - -class ManagedEnvironmentPropertiesPeerAuthentication(_serialization.Model): # pylint: disable=name-too-long - """Peer authentication settings for the Managed Environment. - - :ivar mtls: Mutual TLS authentication settings for the Managed Environment. - :vartype mtls: ~azure.mgmt.appcontainers.models.Mtls - """ - - _attribute_map = { - "mtls": {"key": "mtls", "type": "Mtls"}, - } - - def __init__(self, *, mtls: Optional["_models.Mtls"] = None, **kwargs: Any) -> None: - """ - :keyword mtls: Mutual TLS authentication settings for the Managed Environment. - :paramtype mtls: ~azure.mgmt.appcontainers.models.Mtls - """ - super().__init__(**kwargs) - self.mtls = mtls - - -class ManagedEnvironmentPropertiesPeerTrafficConfiguration(_serialization.Model): # pylint: disable=name-too-long - """Peer traffic settings for the Managed Environment. - - :ivar encryption: Peer traffic encryption settings for the Managed Environment. - :vartype encryption: - ~azure.mgmt.appcontainers.models.ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryption - """ - - _attribute_map = { - "encryption": {"key": "encryption", "type": "ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryption"}, - } - - def __init__( - self, - *, - encryption: Optional["_models.ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryption"] = None, - **kwargs: Any - ) -> None: - """ - :keyword encryption: Peer traffic encryption settings for the Managed Environment. - :paramtype encryption: - ~azure.mgmt.appcontainers.models.ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryption - """ - super().__init__(**kwargs) - self.encryption = encryption - - -class ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryption( - _serialization.Model -): # pylint: disable=name-too-long - """Peer traffic encryption settings for the Managed Environment. - - :ivar enabled: Boolean indicating whether the peer traffic encryption is enabled. - :vartype enabled: bool - """ - - _attribute_map = { - "enabled": {"key": "enabled", "type": "bool"}, - } - - def __init__(self, *, enabled: Optional[bool] = None, **kwargs: Any) -> None: - """ - :keyword enabled: Boolean indicating whether the peer traffic encryption is enabled. - :paramtype enabled: bool - """ - super().__init__(**kwargs) - self.enabled = enabled - - -class ManagedEnvironmentsCollection(_serialization.Model): - """Collection of Environments. - - 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 value: Collection of resources. Required. - :vartype value: list[~azure.mgmt.appcontainers.models.ManagedEnvironment] - :ivar next_link: Link to next page of resources. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[ManagedEnvironment]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: list["_models.ManagedEnvironment"], **kwargs: Any) -> None: - """ - :keyword value: Collection of resources. Required. - :paramtype value: list[~azure.mgmt.appcontainers.models.ManagedEnvironment] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None - - -class ManagedEnvironmentStorage(ProxyResource): - """Storage resource for managedEnvironment. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData - :ivar properties: Storage properties. - :vartype properties: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStorageProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ManagedEnvironmentStorageProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.ManagedEnvironmentStorageProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Storage properties. - :paramtype properties: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStorageProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ManagedEnvironmentStorageProperties(_serialization.Model): - """Storage properties. - - :ivar azure_file: Azure file properties. - :vartype azure_file: ~azure.mgmt.appcontainers.models.AzureFileProperties - :ivar nfs_azure_file: NFS Azure file properties. - :vartype nfs_azure_file: ~azure.mgmt.appcontainers.models.NfsAzureFileProperties - """ - - _attribute_map = { - "azure_file": {"key": "azureFile", "type": "AzureFileProperties"}, - "nfs_azure_file": {"key": "nfsAzureFile", "type": "NfsAzureFileProperties"}, - } - - def __init__( - self, - *, - azure_file: Optional["_models.AzureFileProperties"] = None, - nfs_azure_file: Optional["_models.NfsAzureFileProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword azure_file: Azure file properties. - :paramtype azure_file: ~azure.mgmt.appcontainers.models.AzureFileProperties - :keyword nfs_azure_file: NFS Azure file properties. - :paramtype nfs_azure_file: ~azure.mgmt.appcontainers.models.NfsAzureFileProperties - """ - super().__init__(**kwargs) - self.azure_file = azure_file - self.nfs_azure_file = nfs_azure_file - - -class ManagedEnvironmentStoragesCollection(_serialization.Model): - """Collection of Storage for Environments. - - All required parameters must be populated in order to send to server. - - :ivar value: Collection of storage resources. Required. - :vartype value: list[~azure.mgmt.appcontainers.models.ManagedEnvironmentStorage] - """ - - _validation = { - "value": {"required": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[ManagedEnvironmentStorage]"}, - } - - def __init__(self, *, value: list["_models.ManagedEnvironmentStorage"], **kwargs: Any) -> None: - """ - :keyword value: Collection of storage resources. Required. - :paramtype value: list[~azure.mgmt.appcontainers.models.ManagedEnvironmentStorage] - """ - super().__init__(**kwargs) - self.value = value - - -class ManagedIdentitySetting(_serialization.Model): - """Optional settings for a Managed Identity that is assigned to the Session pool. - - All required parameters must be populated in order to send to server. - - :ivar identity: The resource ID of a user-assigned managed identity that is assigned to the - Session Pool, or 'system' for system-assigned identity. Required. - :vartype identity: str - :ivar lifecycle: Use to select the lifecycle stages of a Session Pool during which the Managed - Identity should be available. Known values are: "Init", "Main", "None", and "All". - :vartype lifecycle: str or ~azure.mgmt.appcontainers.models.IdentitySettingsLifeCycle - """ - - _validation = { - "identity": {"required": True}, - } - - _attribute_map = { - "identity": {"key": "identity", "type": "str"}, - "lifecycle": {"key": "lifecycle", "type": "str"}, - } - - def __init__( - self, - *, - identity: str, - lifecycle: Optional[Union[str, "_models.IdentitySettingsLifeCycle"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword identity: The resource ID of a user-assigned managed identity that is assigned to the - Session Pool, or 'system' for system-assigned identity. Required. - :paramtype identity: str - :keyword lifecycle: Use to select the lifecycle stages of a Session Pool during which the - Managed Identity should be available. Known values are: "Init", "Main", "None", and "All". - :paramtype lifecycle: str or ~azure.mgmt.appcontainers.models.IdentitySettingsLifeCycle - """ - super().__init__(**kwargs) - self.identity = identity - self.lifecycle = lifecycle - - -class ManagedServiceIdentity(_serialization.Model): - """Managed service identity (system assigned and/or user assigned identities). - - 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 principal_id: The service principal ID of the system assigned identity. This property - will only be provided for a system assigned identity. - :vartype principal_id: str - :ivar tenant_id: The tenant ID of the system assigned identity. This property will only be - provided for a system assigned identity. - :vartype tenant_id: str - :ivar type: Type of managed service identity (where both SystemAssigned and UserAssigned types - are allowed). Required. Known values are: "None", "SystemAssigned", "UserAssigned", and - "SystemAssigned,UserAssigned". - :vartype type: str or ~azure.mgmt.appcontainers.models.ManagedServiceIdentityType - :ivar user_assigned_identities: The set of user assigned identities associated with the - resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. - The dictionary values can be empty objects ({}) in requests. - :vartype user_assigned_identities: dict[str, - ~azure.mgmt.appcontainers.models.UserAssignedIdentity] - """ - - _validation = { - "principal_id": {"readonly": True}, - "tenant_id": {"readonly": True}, - "type": {"required": True}, - } - - _attribute_map = { - "principal_id": {"key": "principalId", "type": "str"}, - "tenant_id": {"key": "tenantId", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "user_assigned_identities": {"key": "userAssignedIdentities", "type": "{UserAssignedIdentity}"}, - } - - def __init__( - self, - *, - type: Union[str, "_models.ManagedServiceIdentityType"], - user_assigned_identities: Optional[dict[str, "_models.UserAssignedIdentity"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of managed service identity (where both SystemAssigned and UserAssigned - types are allowed). Required. Known values are: "None", "SystemAssigned", "UserAssigned", and - "SystemAssigned,UserAssigned". - :paramtype type: str or ~azure.mgmt.appcontainers.models.ManagedServiceIdentityType - :keyword user_assigned_identities: The set of user assigned identities associated with the - resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. - The dictionary values can be empty objects ({}) in requests. - :paramtype user_assigned_identities: dict[str, - ~azure.mgmt.appcontainers.models.UserAssignedIdentity] - """ - super().__init__(**kwargs) - self.principal_id: Optional[str] = None - self.tenant_id: Optional[str] = None - self.type = type - self.user_assigned_identities = user_assigned_identities - - -class Mtls(_serialization.Model): - """Configuration properties for mutual TLS authentication. - - :ivar enabled: Boolean indicating whether the mutual TLS authentication is enabled. - :vartype enabled: bool - """ - - _attribute_map = { - "enabled": {"key": "enabled", "type": "bool"}, - } - - def __init__(self, *, enabled: Optional[bool] = None, **kwargs: Any) -> None: - """ - :keyword enabled: Boolean indicating whether the mutual TLS authentication is enabled. - :paramtype enabled: bool - """ - super().__init__(**kwargs) - self.enabled = enabled - - -class NfsAzureFileProperties(_serialization.Model): - """NFS Azure File Properties. - - :ivar server: Server for NFS azure file. Specify the Azure storage account server address. - :vartype server: str - :ivar access_mode: Access mode for storage. Known values are: "ReadOnly" and "ReadWrite". - :vartype access_mode: str or ~azure.mgmt.appcontainers.models.AccessMode - :ivar share_name: NFS Azure file share name. - :vartype share_name: str - """ - - _attribute_map = { - "server": {"key": "server", "type": "str"}, - "access_mode": {"key": "accessMode", "type": "str"}, - "share_name": {"key": "shareName", "type": "str"}, - } - - def __init__( - self, - *, - server: Optional[str] = None, - access_mode: Optional[Union[str, "_models.AccessMode"]] = None, - share_name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword server: Server for NFS azure file. Specify the Azure storage account server address. - :paramtype server: str - :keyword access_mode: Access mode for storage. Known values are: "ReadOnly" and "ReadWrite". - :paramtype access_mode: str or ~azure.mgmt.appcontainers.models.AccessMode - :keyword share_name: NFS Azure file share name. - :paramtype share_name: str - """ - super().__init__(**kwargs) - self.server = server - self.access_mode = access_mode - self.share_name = share_name - - -class Nonce(_serialization.Model): - """The configuration settings of the nonce used in the login flow. - - :ivar validate_nonce: :code:`false` if the nonce should not be validated while - completing the login flow; otherwise, :code:`true`. - :vartype validate_nonce: bool - :ivar nonce_expiration_interval: The time after the request is made when the nonce should - expire. - :vartype nonce_expiration_interval: str - """ - - _attribute_map = { - "validate_nonce": {"key": "validateNonce", "type": "bool"}, - "nonce_expiration_interval": {"key": "nonceExpirationInterval", "type": "str"}, - } - - def __init__( - self, *, validate_nonce: Optional[bool] = None, nonce_expiration_interval: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword validate_nonce: :code:`false` if the nonce should not be validated while - completing the login flow; otherwise, :code:`true`. - :paramtype validate_nonce: bool - :keyword nonce_expiration_interval: The time after the request is made when the nonce should - expire. - :paramtype nonce_expiration_interval: str - """ - super().__init__(**kwargs) - self.validate_nonce = validate_nonce - self.nonce_expiration_interval = nonce_expiration_interval - - -class OpenIdConnectClientCredential(_serialization.Model): - """The authentication client credentials of the custom Open ID Connect provider. - - :ivar method: The method that should be used to authenticate the user. Default value is - "ClientSecretPost". - :vartype method: str - :ivar client_secret_setting_name: The app setting that contains the client secret for the - custom Open ID Connect provider. - :vartype client_secret_setting_name: str - """ - - _attribute_map = { - "method": {"key": "method", "type": "str"}, - "client_secret_setting_name": {"key": "clientSecretSettingName", "type": "str"}, - } - - def __init__( - self, - *, - method: Optional[Literal["ClientSecretPost"]] = None, - client_secret_setting_name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword method: The method that should be used to authenticate the user. Default value is - "ClientSecretPost". - :paramtype method: str - :keyword client_secret_setting_name: The app setting that contains the client secret for the - custom Open ID Connect provider. - :paramtype client_secret_setting_name: str - """ - super().__init__(**kwargs) - self.method = method - self.client_secret_setting_name = client_secret_setting_name - - -class OpenIdConnectConfig(_serialization.Model): - """The configuration settings of the endpoints used for the custom Open ID Connect provider. - - :ivar authorization_endpoint: The endpoint to be used to make an authorization request. - :vartype authorization_endpoint: str - :ivar token_endpoint: The endpoint to be used to request a token. - :vartype token_endpoint: str - :ivar issuer: The endpoint that issues the token. - :vartype issuer: str - :ivar certification_uri: The endpoint that provides the keys necessary to validate the token. - :vartype certification_uri: str - :ivar well_known_open_id_configuration: The endpoint that contains all the configuration - endpoints for the provider. - :vartype well_known_open_id_configuration: str - """ - - _attribute_map = { - "authorization_endpoint": {"key": "authorizationEndpoint", "type": "str"}, - "token_endpoint": {"key": "tokenEndpoint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "certification_uri": {"key": "certificationUri", "type": "str"}, - "well_known_open_id_configuration": {"key": "wellKnownOpenIdConfiguration", "type": "str"}, - } - - def __init__( - self, - *, - authorization_endpoint: Optional[str] = None, - token_endpoint: Optional[str] = None, - issuer: Optional[str] = None, - certification_uri: Optional[str] = None, - well_known_open_id_configuration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword authorization_endpoint: The endpoint to be used to make an authorization request. - :paramtype authorization_endpoint: str - :keyword token_endpoint: The endpoint to be used to request a token. - :paramtype token_endpoint: str - :keyword issuer: The endpoint that issues the token. - :paramtype issuer: str - :keyword certification_uri: The endpoint that provides the keys necessary to validate the - token. - :paramtype certification_uri: str - :keyword well_known_open_id_configuration: The endpoint that contains all the configuration - endpoints for the provider. - :paramtype well_known_open_id_configuration: str - """ - super().__init__(**kwargs) - self.authorization_endpoint = authorization_endpoint - self.token_endpoint = token_endpoint - self.issuer = issuer - self.certification_uri = certification_uri - self.well_known_open_id_configuration = well_known_open_id_configuration - - -class OpenIdConnectLogin(_serialization.Model): - """The configuration settings of the login flow of the custom Open ID Connect provider. - - :ivar name_claim_type: The name of the claim that contains the users name. - :vartype name_claim_type: str - :ivar scopes: A list of the scopes that should be requested while authenticating. - :vartype scopes: list[str] - """ - - _attribute_map = { - "name_claim_type": {"key": "nameClaimType", "type": "str"}, - "scopes": {"key": "scopes", "type": "[str]"}, - } - - def __init__( - self, *, name_claim_type: Optional[str] = None, scopes: Optional[list[str]] = None, **kwargs: Any - ) -> None: - """ - :keyword name_claim_type: The name of the claim that contains the users name. - :paramtype name_claim_type: str - :keyword scopes: A list of the scopes that should be requested while authenticating. - :paramtype scopes: list[str] - """ - super().__init__(**kwargs) - self.name_claim_type = name_claim_type - self.scopes = scopes - - -class OpenIdConnectRegistration(_serialization.Model): - """The configuration settings of the app registration for the custom Open ID Connect provider. - - :ivar client_id: The client id of the custom Open ID Connect provider. - :vartype client_id: str - :ivar client_credential: The authentication credentials of the custom Open ID Connect provider. - :vartype client_credential: ~azure.mgmt.appcontainers.models.OpenIdConnectClientCredential - :ivar open_id_connect_configuration: The configuration settings of the endpoints used for the - custom Open ID Connect provider. - :vartype open_id_connect_configuration: ~azure.mgmt.appcontainers.models.OpenIdConnectConfig - """ - - _attribute_map = { - "client_id": {"key": "clientId", "type": "str"}, - "client_credential": {"key": "clientCredential", "type": "OpenIdConnectClientCredential"}, - "open_id_connect_configuration": {"key": "openIdConnectConfiguration", "type": "OpenIdConnectConfig"}, - } - - def __init__( - self, - *, - client_id: Optional[str] = None, - client_credential: Optional["_models.OpenIdConnectClientCredential"] = None, - open_id_connect_configuration: Optional["_models.OpenIdConnectConfig"] = None, - **kwargs: Any - ) -> None: - """ - :keyword client_id: The client id of the custom Open ID Connect provider. - :paramtype client_id: str - :keyword client_credential: The authentication credentials of the custom Open ID Connect - provider. - :paramtype client_credential: ~azure.mgmt.appcontainers.models.OpenIdConnectClientCredential - :keyword open_id_connect_configuration: The configuration settings of the endpoints used for - the custom Open ID Connect provider. - :paramtype open_id_connect_configuration: ~azure.mgmt.appcontainers.models.OpenIdConnectConfig - """ - super().__init__(**kwargs) - self.client_id = client_id - self.client_credential = client_credential - self.open_id_connect_configuration = open_id_connect_configuration - - -class OperationDetail(_serialization.Model): - """Operation detail payload. - - :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.appcontainers.models.OperationDisplay - :ivar origin: Origin of the operation. - :vartype origin: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "is_data_action": {"key": "isDataAction", "type": "bool"}, - "display": {"key": "display", "type": "OperationDisplay"}, - "origin": {"key": "origin", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - is_data_action: Optional[bool] = None, - display: Optional["_models.OperationDisplay"] = None, - origin: Optional[str] = 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.appcontainers.models.OperationDisplay - :keyword origin: Origin of the operation. - :paramtype origin: str - """ - super().__init__(**kwargs) - self.name = name - self.is_data_action = is_data_action - self.display = display - self.origin = origin - - -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 PrivateEndpoint(_serialization.Model): - """The Private Endpoint resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: The ARM identifier for Private Endpoint. - :vartype id: str - """ - - _validation = { - "id": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - - -class PrivateEndpointConnection(Resource): - """The Private Endpoint Connection 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. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData - :ivar group_ids: The group ids for the private endpoint resource. - :vartype group_ids: list[str] - :ivar private_endpoint: The resource of private end point. - :vartype private_endpoint: ~azure.mgmt.appcontainers.models.PrivateEndpoint - :ivar private_link_service_connection_state: A collection of information about the state of the - connection between service consumer and provider. - :vartype private_link_service_connection_state: - ~azure.mgmt.appcontainers.models.PrivateLinkServiceConnectionState - :ivar provisioning_state: The provisioning state of the private endpoint connection resource. - Known values are: "Succeeded", "Failed", "Canceled", "Waiting", "Updating", "Deleting", and - "Pending". - :vartype provisioning_state: str or - ~azure.mgmt.appcontainers.models.PrivateEndpointConnectionProvisioningState - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - "group_ids": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "group_ids": {"key": "properties.groupIds", "type": "[str]"}, - "private_endpoint": {"key": "properties.privateEndpoint", "type": "PrivateEndpoint"}, - "private_link_service_connection_state": { - "key": "properties.privateLinkServiceConnectionState", - "type": "PrivateLinkServiceConnectionState", - }, - "provisioning_state": {"key": "properties.provisioningState", "type": "str"}, - } - - def __init__( - self, - *, - private_endpoint: Optional["_models.PrivateEndpoint"] = None, - private_link_service_connection_state: Optional["_models.PrivateLinkServiceConnectionState"] = None, - **kwargs: Any - ) -> None: - """ - :keyword private_endpoint: The resource of private end point. - :paramtype private_endpoint: ~azure.mgmt.appcontainers.models.PrivateEndpoint - :keyword private_link_service_connection_state: A collection of information about the state of - the connection between service consumer and provider. - :paramtype private_link_service_connection_state: - ~azure.mgmt.appcontainers.models.PrivateLinkServiceConnectionState - """ - super().__init__(**kwargs) - self.group_ids: Optional[list[str]] = None - self.private_endpoint = private_endpoint - self.private_link_service_connection_state = private_link_service_connection_state - self.provisioning_state: Optional[Union[str, "_models.PrivateEndpointConnectionProvisioningState"]] = None - - -class PrivateEndpointConnectionListResult(_serialization.Model): - """List of private endpoint connection associated with the specified resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: Array of private endpoint connections. - :vartype value: list[~azure.mgmt.appcontainers.models.PrivateEndpointConnection] - :ivar next_link: URL to get the next set of operation list results (if there are any). - :vartype next_link: str - """ - - _validation = { - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[PrivateEndpointConnection]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: Optional[list["_models.PrivateEndpointConnection"]] = None, **kwargs: Any) -> None: - """ - :keyword value: Array of private endpoint connections. - :paramtype value: list[~azure.mgmt.appcontainers.models.PrivateEndpointConnection] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None - - -class PrivateLinkResource(Resource): - """A private link 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. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData - :ivar group_id: The private link resource group id. - :vartype group_id: str - :ivar required_members: The private link resource required member names. - :vartype required_members: list[str] - :ivar required_zone_names: The private link resource private link DNS zone name. - :vartype required_zone_names: list[str] - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - "group_id": {"readonly": True}, - "required_members": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "group_id": {"key": "properties.groupId", "type": "str"}, - "required_members": {"key": "properties.requiredMembers", "type": "[str]"}, - "required_zone_names": {"key": "properties.requiredZoneNames", "type": "[str]"}, - } - - def __init__(self, *, required_zone_names: Optional[list[str]] = None, **kwargs: Any) -> None: - """ - :keyword required_zone_names: The private link resource private link DNS zone name. - :paramtype required_zone_names: list[str] - """ - super().__init__(**kwargs) - self.group_id: Optional[str] = None - self.required_members: Optional[list[str]] = None - self.required_zone_names = required_zone_names - - -class PrivateLinkResourceListResult(_serialization.Model): - """A list of private link resources. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: Array of private link resources. - :vartype value: list[~azure.mgmt.appcontainers.models.PrivateLinkResource] - :ivar next_link: URL to get the next set of operation list results (if there are any). - :vartype next_link: str - """ - - _validation = { - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[PrivateLinkResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: Optional[list["_models.PrivateLinkResource"]] = None, **kwargs: Any) -> None: - """ - :keyword value: Array of private link resources. - :paramtype value: list[~azure.mgmt.appcontainers.models.PrivateLinkResource] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None - - -class PrivateLinkServiceConnectionState(_serialization.Model): - """A collection of information about the state of the connection between service consumer and - provider. - - :ivar status: Indicates whether the connection has been Approved/Rejected/Removed by the owner - of the service. Known values are: "Pending", "Approved", "Rejected", and "Disconnected". - :vartype status: str or ~azure.mgmt.appcontainers.models.PrivateEndpointServiceConnectionStatus - :ivar description: The reason for approval/rejection of the connection. - :vartype description: str - :ivar actions_required: A message indicating if changes on the service provider require any - updates on the consumer. - :vartype actions_required: str - """ - - _attribute_map = { - "status": {"key": "status", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "actions_required": {"key": "actionsRequired", "type": "str"}, - } - - def __init__( - self, - *, - status: Optional[Union[str, "_models.PrivateEndpointServiceConnectionStatus"]] = None, - description: Optional[str] = None, - actions_required: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword status: Indicates whether the connection has been Approved/Rejected/Removed by the - owner of the service. Known values are: "Pending", "Approved", "Rejected", and "Disconnected". - :paramtype status: str or - ~azure.mgmt.appcontainers.models.PrivateEndpointServiceConnectionStatus - :keyword description: The reason for approval/rejection of the connection. - :paramtype description: str - :keyword actions_required: A message indicating if changes on the service provider require any - updates on the consumer. - :paramtype actions_required: str - """ - super().__init__(**kwargs) - self.status = status - self.description = description - self.actions_required = actions_required - - -class QueueScaleRule(_serialization.Model): - """Container App container Azure Queue based scaling rule. - - :ivar account_name: Storage account name. required if using managed identity to authenticate. - :vartype account_name: str - :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.appcontainers.models.ScaleRuleAuth] - :ivar identity: The resource ID of a user-assigned managed identity that is assigned to the - Container App, or 'system' for system-assigned identity. - :vartype identity: str - """ - - _attribute_map = { - "account_name": {"key": "accountName", "type": "str"}, - "queue_name": {"key": "queueName", "type": "str"}, - "queue_length": {"key": "queueLength", "type": "int"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - "identity": {"key": "identity", "type": "str"}, - } - - def __init__( - self, - *, - account_name: Optional[str] = None, - queue_name: Optional[str] = None, - queue_length: Optional[int] = None, - auth: Optional[list["_models.ScaleRuleAuth"]] = None, - identity: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword account_name: Storage account name. required if using managed identity to - authenticate. - :paramtype account_name: str - :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.appcontainers.models.ScaleRuleAuth] - :keyword identity: The resource ID of a user-assigned managed identity that is assigned to the - Container App, or 'system' for system-assigned identity. - :paramtype identity: str - """ - super().__init__(**kwargs) - self.account_name = account_name - self.queue_name = queue_name - self.queue_length = queue_length - self.auth = auth - self.identity = identity - - -class RegistryCredentials(_serialization.Model): - """Container App Private Registry. - - :ivar server: Container Registry Server. - :vartype server: str - :ivar username: Container Registry Username. - :vartype username: str - :ivar password_secret_ref: The name of the Secret that contains the registry login password. - :vartype password_secret_ref: str - :ivar identity: A Managed Identity to use to authenticate with Azure Container Registry. For - user-assigned identities, use the full user-assigned identity Resource ID. For system-assigned - identities, use 'system'. - :vartype identity: str - """ - - _attribute_map = { - "server": {"key": "server", "type": "str"}, - "username": {"key": "username", "type": "str"}, - "password_secret_ref": {"key": "passwordSecretRef", "type": "str"}, - "identity": {"key": "identity", "type": "str"}, - } - - def __init__( - self, - *, - server: Optional[str] = None, - username: Optional[str] = None, - password_secret_ref: Optional[str] = None, - identity: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword server: Container Registry Server. - :paramtype server: str - :keyword username: Container Registry Username. - :paramtype username: str - :keyword password_secret_ref: The name of the Secret that contains the registry login password. - :paramtype password_secret_ref: str - :keyword identity: A Managed Identity to use to authenticate with Azure Container Registry. For - user-assigned identities, use the full user-assigned identity Resource ID. For system-assigned - identities, use 'system'. - :paramtype identity: str - """ - super().__init__(**kwargs) - self.server = server - self.username = username - self.password_secret_ref = password_secret_ref - self.identity = identity - - -class RegistryInfo(_serialization.Model): - """Container App registry information. - - :ivar registry_url: registry server Url. - :vartype registry_url: str - :ivar registry_user_name: registry username. - :vartype registry_user_name: str - :ivar registry_password: registry secret. - :vartype registry_password: str - """ - - _attribute_map = { - "registry_url": {"key": "registryUrl", "type": "str"}, - "registry_user_name": {"key": "registryUserName", "type": "str"}, - "registry_password": {"key": "registryPassword", "type": "str"}, - } - - def __init__( - self, - *, - registry_url: Optional[str] = None, - registry_user_name: Optional[str] = None, - registry_password: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword registry_url: registry server Url. - :paramtype registry_url: str - :keyword registry_user_name: registry username. - :paramtype registry_user_name: str - :keyword registry_password: registry secret. - :paramtype registry_password: str - """ - super().__init__(**kwargs) - self.registry_url = registry_url - self.registry_user_name = registry_user_name - self.registry_password = registry_password - - -class Replica(ProxyResource): - """Container App Revision Replica. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData - :ivar created_time: Timestamp describing when the pod was created by controller. - :vartype created_time: ~datetime.datetime - :ivar running_state: Current running state of the replica. Known values are: "Running", - "NotRunning", and "Unknown". - :vartype running_state: str or ~azure.mgmt.appcontainers.models.ContainerAppReplicaRunningState - :ivar running_state_details: The details of replica current running state. - :vartype running_state_details: str - :ivar containers: The containers collection under a replica. - :vartype containers: list[~azure.mgmt.appcontainers.models.ReplicaContainer] - :ivar init_containers: The init containers collection under a replica. - :vartype init_containers: list[~azure.mgmt.appcontainers.models.ReplicaContainer] - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - "created_time": {"readonly": True}, - "running_state": {"readonly": True}, - "running_state_details": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "created_time": {"key": "properties.createdTime", "type": "iso-8601"}, - "running_state": {"key": "properties.runningState", "type": "str"}, - "running_state_details": {"key": "properties.runningStateDetails", "type": "str"}, - "containers": {"key": "properties.containers", "type": "[ReplicaContainer]"}, - "init_containers": {"key": "properties.initContainers", "type": "[ReplicaContainer]"}, - } - - def __init__( - self, - *, - containers: Optional[list["_models.ReplicaContainer"]] = None, - init_containers: Optional[list["_models.ReplicaContainer"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword containers: The containers collection under a replica. - :paramtype containers: list[~azure.mgmt.appcontainers.models.ReplicaContainer] - :keyword init_containers: The init containers collection under a replica. - :paramtype init_containers: list[~azure.mgmt.appcontainers.models.ReplicaContainer] - """ - super().__init__(**kwargs) - self.created_time: Optional[datetime.datetime] = None - self.running_state: Optional[Union[str, "_models.ContainerAppReplicaRunningState"]] = None - self.running_state_details: Optional[str] = None - self.containers = containers - self.init_containers = init_containers - - -class ReplicaCollection(_serialization.Model): - """Container App Revision Replicas collection ARM resource. - - All required parameters must be populated in order to send to server. - - :ivar value: Collection of resources. Required. - :vartype value: list[~azure.mgmt.appcontainers.models.Replica] - """ - - _validation = { - "value": {"required": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[Replica]"}, - } - - def __init__(self, *, value: list["_models.Replica"], **kwargs: Any) -> None: - """ - :keyword value: Collection of resources. Required. - :paramtype value: list[~azure.mgmt.appcontainers.models.Replica] - """ - super().__init__(**kwargs) - self.value = value - - -class ReplicaContainer(_serialization.Model): - """Container object under Container App Revision Replica. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The Name of the Container. - :vartype name: str - :ivar container_id: The Id of the Container. - :vartype container_id: str - :ivar ready: The container ready status. - :vartype ready: bool - :ivar started: The container start status. - :vartype started: bool - :ivar restart_count: The container restart count. - :vartype restart_count: int - :ivar running_state: Current running state of the container. Known values are: "Running", - "Terminated", and "Waiting". - :vartype running_state: str or - ~azure.mgmt.appcontainers.models.ContainerAppContainerRunningState - :ivar running_state_details: The details of container current running state. - :vartype running_state_details: str - :ivar log_stream_endpoint: Log Stream endpoint. - :vartype log_stream_endpoint: str - :ivar exec_endpoint: Container exec endpoint. - :vartype exec_endpoint: str - """ - - _validation = { - "running_state": {"readonly": True}, - "running_state_details": {"readonly": True}, - "log_stream_endpoint": {"readonly": True}, - "exec_endpoint": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "container_id": {"key": "containerId", "type": "str"}, - "ready": {"key": "ready", "type": "bool"}, - "started": {"key": "started", "type": "bool"}, - "restart_count": {"key": "restartCount", "type": "int"}, - "running_state": {"key": "runningState", "type": "str"}, - "running_state_details": {"key": "runningStateDetails", "type": "str"}, - "log_stream_endpoint": {"key": "logStreamEndpoint", "type": "str"}, - "exec_endpoint": {"key": "execEndpoint", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - container_id: Optional[str] = None, - ready: Optional[bool] = None, - started: Optional[bool] = None, - restart_count: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The Name of the Container. - :paramtype name: str - :keyword container_id: The Id of the Container. - :paramtype container_id: str - :keyword ready: The container ready status. - :paramtype ready: bool - :keyword started: The container start status. - :paramtype started: bool - :keyword restart_count: The container restart count. - :paramtype restart_count: int - """ - super().__init__(**kwargs) - self.name = name - self.container_id = container_id - self.ready = ready - self.started = started - self.restart_count = restart_count - self.running_state: Optional[Union[str, "_models.ContainerAppContainerRunningState"]] = None - self.running_state_details: Optional[str] = None - self.log_stream_endpoint: Optional[str] = None - self.exec_endpoint: Optional[str] = None - - -class Revision(ProxyResource): - """Container App Revision. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData - :ivar created_time: Timestamp describing when the revision was created by controller. - :vartype created_time: ~datetime.datetime - :ivar last_active_time: Timestamp describing when the revision was last active. Only meaningful - when revision is inactive. - :vartype last_active_time: ~datetime.datetime - :ivar fqdn: Fully qualified domain name of the revision. - :vartype fqdn: str - :ivar template: Container App Revision Template with all possible settings and the defaults if - user did not provide them. The defaults are populated as they were at the creation time. - :vartype template: ~azure.mgmt.appcontainers.models.Template - :ivar active: Boolean describing if the Revision is Active. - :vartype active: bool - :ivar replicas: Number of pods currently running for this revision. - :vartype replicas: int - :ivar traffic_weight: Traffic weight assigned to this revision. - :vartype traffic_weight: int - :ivar provisioning_error: Optional Field - Platform Error Message. - :vartype provisioning_error: str - :ivar health_state: Current health State of the revision. Known values are: "Healthy", - "Unhealthy", and "None". - :vartype health_state: str or ~azure.mgmt.appcontainers.models.RevisionHealthState - :ivar provisioning_state: Current provisioning State of the revision. Known values are: - "Provisioning", "Provisioned", "Failed", "Deprovisioning", and "Deprovisioned". - :vartype provisioning_state: str or ~azure.mgmt.appcontainers.models.RevisionProvisioningState - :ivar running_state: Current running state of the revision. Known values are: "Running", - "Processing", "Stopped", "Degraded", "Failed", and "Unknown". - :vartype running_state: str or ~azure.mgmt.appcontainers.models.RevisionRunningState - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - "created_time": {"readonly": True}, - "last_active_time": {"readonly": True}, - "fqdn": {"readonly": True}, - "template": {"readonly": True}, - "active": {"readonly": True}, - "replicas": {"readonly": True}, - "traffic_weight": {"readonly": True}, - "provisioning_error": {"readonly": True}, - "health_state": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "running_state": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "created_time": {"key": "properties.createdTime", "type": "iso-8601"}, - "last_active_time": {"key": "properties.lastActiveTime", "type": "iso-8601"}, - "fqdn": {"key": "properties.fqdn", "type": "str"}, - "template": {"key": "properties.template", "type": "Template"}, - "active": {"key": "properties.active", "type": "bool"}, - "replicas": {"key": "properties.replicas", "type": "int"}, - "traffic_weight": {"key": "properties.trafficWeight", "type": "int"}, - "provisioning_error": {"key": "properties.provisioningError", "type": "str"}, - "health_state": {"key": "properties.healthState", "type": "str"}, - "provisioning_state": {"key": "properties.provisioningState", "type": "str"}, - "running_state": {"key": "properties.runningState", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.created_time: Optional[datetime.datetime] = None - self.last_active_time: Optional[datetime.datetime] = None - self.fqdn: Optional[str] = None - self.template: Optional["_models.Template"] = None - self.active: Optional[bool] = None - self.replicas: Optional[int] = None - self.traffic_weight: Optional[int] = None - self.provisioning_error: Optional[str] = None - self.health_state: Optional[Union[str, "_models.RevisionHealthState"]] = None - self.provisioning_state: Optional[Union[str, "_models.RevisionProvisioningState"]] = None - self.running_state: Optional[Union[str, "_models.RevisionRunningState"]] = None - - -class RevisionCollection(_serialization.Model): - """Container App Revisions collection ARM resource. - - 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 value: Collection of resources. Required. - :vartype value: list[~azure.mgmt.appcontainers.models.Revision] - :ivar next_link: Link to next page of resources. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[Revision]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: list["_models.Revision"], **kwargs: Any) -> None: - """ - :keyword value: Collection of resources. Required. - :paramtype value: list[~azure.mgmt.appcontainers.models.Revision] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None - - -class Runtime(_serialization.Model): - """Container App Runtime configuration. - - :ivar java: Java app configuration. - :vartype java: ~azure.mgmt.appcontainers.models.RuntimeJava - """ - - _attribute_map = { - "java": {"key": "java", "type": "RuntimeJava"}, - } - - def __init__(self, *, java: Optional["_models.RuntimeJava"] = None, **kwargs: Any) -> None: - """ - :keyword java: Java app configuration. - :paramtype java: ~azure.mgmt.appcontainers.models.RuntimeJava - """ - super().__init__(**kwargs) - self.java = java - - -class RuntimeJava(_serialization.Model): - """Java app configuration. - - :ivar enable_metrics: Enable jmx core metrics for the java app. - :vartype enable_metrics: bool - """ - - _attribute_map = { - "enable_metrics": {"key": "enableMetrics", "type": "bool"}, - } - - def __init__(self, *, enable_metrics: Optional[bool] = None, **kwargs: Any) -> None: - """ - :keyword enable_metrics: Enable jmx core metrics for the java app. - :paramtype enable_metrics: bool - """ - super().__init__(**kwargs) - self.enable_metrics = enable_metrics - - -class Scale(_serialization.Model): - """Container App 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 cooldown_period: Optional. KEDA Cooldown Period in seconds. Defaults to 300 seconds if - not set. - :vartype cooldown_period: int - :ivar polling_interval: Optional. KEDA Polling Interval in seconds. Defaults to 30 seconds if - not set. - :vartype polling_interval: int - :ivar rules: Scaling rules. - :vartype rules: list[~azure.mgmt.appcontainers.models.ScaleRule] - """ - - _attribute_map = { - "min_replicas": {"key": "minReplicas", "type": "int"}, - "max_replicas": {"key": "maxReplicas", "type": "int"}, - "cooldown_period": {"key": "cooldownPeriod", "type": "int"}, - "polling_interval": {"key": "pollingInterval", "type": "int"}, - "rules": {"key": "rules", "type": "[ScaleRule]"}, - } - - def __init__( - self, - *, - min_replicas: Optional[int] = None, - max_replicas: int = 10, - cooldown_period: Optional[int] = None, - polling_interval: Optional[int] = None, - 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 cooldown_period: Optional. KEDA Cooldown Period in seconds. Defaults to 300 seconds if - not set. - :paramtype cooldown_period: int - :keyword polling_interval: Optional. KEDA Polling Interval in seconds. Defaults to 30 seconds - if not set. - :paramtype polling_interval: int - :keyword rules: Scaling rules. - :paramtype rules: list[~azure.mgmt.appcontainers.models.ScaleRule] - """ - super().__init__(**kwargs) - self.min_replicas = min_replicas - self.max_replicas = max_replicas - self.cooldown_period = cooldown_period - self.polling_interval = polling_interval - self.rules = rules - - -class ScaleConfiguration(_serialization.Model): - """Scale configuration. - - :ivar max_concurrent_sessions: The maximum count of sessions at the same time. - :vartype max_concurrent_sessions: int - :ivar ready_session_instances: The minimum count of ready session instances. - :vartype ready_session_instances: int - """ - - _attribute_map = { - "max_concurrent_sessions": {"key": "maxConcurrentSessions", "type": "int"}, - "ready_session_instances": {"key": "readySessionInstances", "type": "int"}, - } - - def __init__( - self, - *, - max_concurrent_sessions: Optional[int] = None, - ready_session_instances: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword max_concurrent_sessions: The maximum count of sessions at the same time. - :paramtype max_concurrent_sessions: int - :keyword ready_session_instances: The minimum count of ready session instances. - :paramtype ready_session_instances: int - """ - super().__init__(**kwargs) - self.max_concurrent_sessions = max_concurrent_sessions - self.ready_session_instances = ready_session_instances - - -class ScaleRule(_serialization.Model): - """Container App container scaling rule. - - :ivar name: Scale Rule Name. - :vartype name: str - :ivar azure_queue: Azure Queue based scaling. - :vartype azure_queue: ~azure.mgmt.appcontainers.models.QueueScaleRule - :ivar custom: Custom scale rule. - :vartype custom: ~azure.mgmt.appcontainers.models.CustomScaleRule - :ivar http: HTTP requests based scaling. - :vartype http: ~azure.mgmt.appcontainers.models.HttpScaleRule - :ivar tcp: Tcp requests based scaling. - :vartype tcp: ~azure.mgmt.appcontainers.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.appcontainers.models.QueueScaleRule - :keyword custom: Custom scale rule. - :paramtype custom: ~azure.mgmt.appcontainers.models.CustomScaleRule - :keyword http: HTTP requests based scaling. - :paramtype http: ~azure.mgmt.appcontainers.models.HttpScaleRule - :keyword tcp: Tcp requests based scaling. - :paramtype tcp: ~azure.mgmt.appcontainers.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 Scale Rule. - - :ivar secret_ref: Name of the 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 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 ScheduledEntry(_serialization.Model): - """Maintenance schedule entry for a managed environment. - - All required parameters must be populated in order to send to server. - - :ivar week_day: Day of the week when a managed environment can be patched. Required. Known - values are: "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", and "Sunday". - :vartype week_day: str or ~azure.mgmt.appcontainers.models.WeekDay - :ivar start_hour_utc: Start hour after which managed environment maintenance can start from 0 - to 23 hour. Required. - :vartype start_hour_utc: int - :ivar duration_hours: Length of maintenance window range from 8 to 24 hours. Required. - :vartype duration_hours: int - """ - - _validation = { - "week_day": {"required": True}, - "start_hour_utc": {"required": True}, - "duration_hours": {"required": True}, - } - - _attribute_map = { - "week_day": {"key": "weekDay", "type": "str"}, - "start_hour_utc": {"key": "startHourUtc", "type": "int"}, - "duration_hours": {"key": "durationHours", "type": "int"}, - } - - def __init__( - self, *, week_day: Union[str, "_models.WeekDay"], start_hour_utc: int, duration_hours: int, **kwargs: Any - ) -> None: - """ - :keyword week_day: Day of the week when a managed environment can be patched. Required. Known - values are: "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", and "Sunday". - :paramtype week_day: str or ~azure.mgmt.appcontainers.models.WeekDay - :keyword start_hour_utc: Start hour after which managed environment maintenance can start from - 0 to 23 hour. Required. - :paramtype start_hour_utc: int - :keyword duration_hours: Length of maintenance window range from 8 to 24 hours. Required. - :paramtype duration_hours: int - """ - super().__init__(**kwargs) - self.week_day = week_day - self.start_hour_utc = start_hour_utc - self.duration_hours = duration_hours - - -class Secret(_serialization.Model): - """Secret definition. - - :ivar name: Secret Name. - :vartype name: str - :ivar value: Secret Value. - :vartype value: str - :ivar identity: Resource ID of a managed identity to authenticate with Azure Key Vault, or - System to use a system-assigned identity. - :vartype identity: str - :ivar key_vault_url: Azure Key Vault URL pointing to the secret referenced by the container - app. - :vartype key_vault_url: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - "identity": {"key": "identity", "type": "str"}, - "key_vault_url": {"key": "keyVaultUrl", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - value: Optional[str] = None, - identity: Optional[str] = None, - key_vault_url: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Secret Name. - :paramtype name: str - :keyword value: Secret Value. - :paramtype value: str - :keyword identity: Resource ID of a managed identity to authenticate with Azure Key Vault, or - System to use a system-assigned identity. - :paramtype identity: str - :keyword key_vault_url: Azure Key Vault URL pointing to the secret referenced by the container - app. - :paramtype key_vault_url: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - self.identity = identity - self.key_vault_url = key_vault_url - - -class SecretKeyVaultProperties(_serialization.Model): - """Properties for a secret stored in a Key Vault. - - :ivar identity: Resource ID of a managed identity to authenticate with Azure Key Vault, or - System to use a system-assigned identity. - :vartype identity: str - :ivar key_vault_url: URL pointing to the Azure Key Vault secret. - :vartype key_vault_url: str - """ - - _attribute_map = { - "identity": {"key": "identity", "type": "str"}, - "key_vault_url": {"key": "keyVaultUrl", "type": "str"}, - } - - def __init__(self, *, identity: Optional[str] = None, key_vault_url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword identity: Resource ID of a managed identity to authenticate with Azure Key Vault, or - System to use a system-assigned identity. - :paramtype identity: str - :keyword key_vault_url: URL pointing to the Azure Key Vault secret. - :paramtype key_vault_url: str - """ - super().__init__(**kwargs) - self.identity = identity - self.key_vault_url = key_vault_url - - -class SecretsCollection(_serialization.Model): - """Container App Secrets Collection ARM resource. - - All required parameters must be populated in order to send to server. - - :ivar value: Collection of resources. Required. - :vartype value: list[~azure.mgmt.appcontainers.models.ContainerAppSecret] - """ - - _validation = { - "value": {"required": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[ContainerAppSecret]"}, - } - - def __init__(self, *, value: list["_models.ContainerAppSecret"], **kwargs: Any) -> None: - """ - :keyword value: Collection of resources. Required. - :paramtype value: list[~azure.mgmt.appcontainers.models.ContainerAppSecret] - """ - super().__init__(**kwargs) - self.value = value - - -class SecretVolumeItem(_serialization.Model): - """Secret to be added to volume. - - :ivar secret_ref: Name of the Container App secret from which to pull the secret value. - :vartype secret_ref: str - :ivar path: Path to project secret to. If no path is provided, path defaults to name of secret - listed in secretRef. - :vartype path: str - """ - - _attribute_map = { - "secret_ref": {"key": "secretRef", "type": "str"}, - "path": {"key": "path", "type": "str"}, - } - - def __init__(self, *, secret_ref: Optional[str] = None, path: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword secret_ref: Name of the Container App secret from which to pull the secret value. - :paramtype secret_ref: str - :keyword path: Path to project secret to. If no path is provided, path defaults to name of - secret listed in secretRef. - :paramtype path: str - """ - super().__init__(**kwargs) - self.secret_ref = secret_ref - self.path = path - - -class Service(_serialization.Model): - """Container App to be a dev service. - - All required parameters must be populated in order to send to server. - - :ivar type: Dev ContainerApp service type. Required. - :vartype type: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - } - - def __init__(self, *, type: str, **kwargs: Any) -> None: - """ - :keyword type: Dev ContainerApp service type. Required. - :paramtype type: str - """ - super().__init__(**kwargs) - self.type = type - - -class ServiceBind(_serialization.Model): - """Configuration to bind a ContainerApp to a dev ContainerApp Service. - - :ivar service_id: Resource id of the target service. - :vartype service_id: str - :ivar name: Name of the service bind. - :vartype name: str - """ - - _attribute_map = { - "service_id": {"key": "serviceId", "type": "str"}, - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, service_id: Optional[str] = None, name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword service_id: Resource id of the target service. - :paramtype service_id: str - :keyword name: Name of the service bind. - :paramtype name: str - """ - super().__init__(**kwargs) - self.service_id = service_id - self.name = name - - -class SessionContainer(_serialization.Model): - """Container definitions for the sessions of the session pool. - - :ivar image: Container image tag. - :vartype image: str - :ivar name: Custom container name. - :vartype name: str - :ivar command: Container start command. - :vartype command: list[str] - :ivar args: Container start command arguments. - :vartype args: list[str] - :ivar env: Container environment variables. - :vartype env: list[~azure.mgmt.appcontainers.models.EnvironmentVar] - :ivar resources: Container resource requirements. - :vartype resources: ~azure.mgmt.appcontainers.models.SessionContainerResources - """ - - _attribute_map = { - "image": {"key": "image", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "command": {"key": "command", "type": "[str]"}, - "args": {"key": "args", "type": "[str]"}, - "env": {"key": "env", "type": "[EnvironmentVar]"}, - "resources": {"key": "resources", "type": "SessionContainerResources"}, - } - - def __init__( - self, - *, - image: Optional[str] = None, - name: Optional[str] = None, - command: Optional[list[str]] = None, - args: Optional[list[str]] = None, - env: Optional[list["_models.EnvironmentVar"]] = None, - resources: Optional["_models.SessionContainerResources"] = None, - **kwargs: Any - ) -> None: - """ - :keyword image: Container image tag. - :paramtype image: str - :keyword name: Custom container name. - :paramtype name: str - :keyword command: Container start command. - :paramtype command: list[str] - :keyword args: Container start command arguments. - :paramtype args: list[str] - :keyword env: Container environment variables. - :paramtype env: list[~azure.mgmt.appcontainers.models.EnvironmentVar] - :keyword resources: Container resource requirements. - :paramtype resources: ~azure.mgmt.appcontainers.models.SessionContainerResources - """ - super().__init__(**kwargs) - self.image = image - self.name = name - self.command = command - self.args = args - self.env = env - self.resources = resources - - -class SessionContainerResources(_serialization.Model): - """Container resource requirements for sessions of the session pool. - - :ivar cpu: Required CPU in cores, e.g. 0.5. - :vartype cpu: float - :ivar memory: Required memory, e.g. "250Mb". - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "float"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: Optional[float] = None, memory: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword cpu: Required CPU in cores, e.g. 0.5. - :paramtype cpu: float - :keyword memory: Required memory, e.g. "250Mb". - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class SessionIngress(_serialization.Model): - """Session pool ingress configuration. - - :ivar target_port: Target port in containers for traffic from ingress. - :vartype target_port: int - """ - - _attribute_map = { - "target_port": {"key": "targetPort", "type": "int"}, - } - - def __init__(self, *, target_port: Optional[int] = None, **kwargs: Any) -> None: - """ - :keyword target_port: Target port in containers for traffic from ingress. - :paramtype target_port: int - """ - super().__init__(**kwargs) - self.target_port = target_port - - -class SessionNetworkConfiguration(_serialization.Model): - """Session network configuration. - - :ivar status: Network status for the sessions. Known values are: "EgressEnabled" and - "EgressDisabled". - :vartype status: str or ~azure.mgmt.appcontainers.models.SessionNetworkStatus - """ - - _attribute_map = { - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, *, status: Optional[Union[str, "_models.SessionNetworkStatus"]] = None, **kwargs: Any) -> None: - """ - :keyword status: Network status for the sessions. Known values are: "EgressEnabled" and - "EgressDisabled". - :paramtype status: str or ~azure.mgmt.appcontainers.models.SessionNetworkStatus - """ - super().__init__(**kwargs) - self.status = status - - -class SessionPool(TrackedResource): - """Container App session pool. - - 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 id: Fully qualified resource ID for the resource. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData - :ivar tags: Resource tags. - :vartype tags: dict[str, str] - :ivar location: The geo-location where the resource lives. Required. - :vartype location: str - :ivar identity: Managed identities needed by a session pool to interact with other Azure - services to not maintain any secrets or credentials in code. - :vartype identity: ~azure.mgmt.appcontainers.models.ManagedServiceIdentity - :ivar environment_id: Resource ID of the session pool's environment. - :vartype environment_id: str - :ivar container_type: The container type of the sessions. Known values are: "CustomContainer" - and "PythonLTS". - :vartype container_type: str or ~azure.mgmt.appcontainers.models.ContainerType - :ivar pool_management_type: The pool management type of the session pool. Known values are: - "Manual" and "Dynamic". - :vartype pool_management_type: str or ~azure.mgmt.appcontainers.models.PoolManagementType - :ivar node_count: The number of nodes the session pool is using. - :vartype node_count: int - :ivar scale_configuration: The scale configuration of the session pool. - :vartype scale_configuration: ~azure.mgmt.appcontainers.models.ScaleConfiguration - :ivar secrets: The secrets of the session pool. - :vartype secrets: list[~azure.mgmt.appcontainers.models.SessionPoolSecret] - :ivar dynamic_pool_configuration: The pool configuration if the poolManagementType is dynamic. - :vartype dynamic_pool_configuration: ~azure.mgmt.appcontainers.models.DynamicPoolConfiguration - :ivar custom_container_template: The custom container configuration if the containerType is - CustomContainer. - :vartype custom_container_template: ~azure.mgmt.appcontainers.models.CustomContainerTemplate - :ivar session_network_configuration: The network configuration of the sessions in the session - pool. - :vartype session_network_configuration: - ~azure.mgmt.appcontainers.models.SessionNetworkConfiguration - :ivar pool_management_endpoint: The endpoint to manage the pool. - :vartype pool_management_endpoint: str - :ivar provisioning_state: Provisioning state of the session pool. Known values are: - "InProgress", "Succeeded", "Failed", "Canceled", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appcontainers.models.SessionPoolProvisioningState - :ivar managed_identity_settings: Optional settings for a Managed Identity that is assigned to - the Session pool. - :vartype managed_identity_settings: - list[~azure.mgmt.appcontainers.models.ManagedIdentitySetting] - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - "location": {"required": True}, - "node_count": {"readonly": True}, - "pool_management_endpoint": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "tags": {"key": "tags", "type": "{str}"}, - "location": {"key": "location", "type": "str"}, - "identity": {"key": "identity", "type": "ManagedServiceIdentity"}, - "environment_id": {"key": "properties.environmentId", "type": "str"}, - "container_type": {"key": "properties.containerType", "type": "str"}, - "pool_management_type": {"key": "properties.poolManagementType", "type": "str"}, - "node_count": {"key": "properties.nodeCount", "type": "int"}, - "scale_configuration": {"key": "properties.scaleConfiguration", "type": "ScaleConfiguration"}, - "secrets": {"key": "properties.secrets", "type": "[SessionPoolSecret]"}, - "dynamic_pool_configuration": { - "key": "properties.dynamicPoolConfiguration", - "type": "DynamicPoolConfiguration", - }, - "custom_container_template": {"key": "properties.customContainerTemplate", "type": "CustomContainerTemplate"}, - "session_network_configuration": { - "key": "properties.sessionNetworkConfiguration", - "type": "SessionNetworkConfiguration", - }, - "pool_management_endpoint": {"key": "properties.poolManagementEndpoint", "type": "str"}, - "provisioning_state": {"key": "properties.provisioningState", "type": "str"}, - "managed_identity_settings": {"key": "properties.managedIdentitySettings", "type": "[ManagedIdentitySetting]"}, - } - - def __init__( - self, - *, - location: str, - tags: Optional[dict[str, str]] = None, - identity: Optional["_models.ManagedServiceIdentity"] = None, - environment_id: Optional[str] = None, - container_type: Optional[Union[str, "_models.ContainerType"]] = None, - pool_management_type: Optional[Union[str, "_models.PoolManagementType"]] = None, - scale_configuration: Optional["_models.ScaleConfiguration"] = None, - secrets: Optional[list["_models.SessionPoolSecret"]] = None, - dynamic_pool_configuration: Optional["_models.DynamicPoolConfiguration"] = None, - custom_container_template: Optional["_models.CustomContainerTemplate"] = None, - session_network_configuration: Optional["_models.SessionNetworkConfiguration"] = None, - managed_identity_settings: Optional[list["_models.ManagedIdentitySetting"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword tags: Resource tags. - :paramtype tags: dict[str, str] - :keyword location: The geo-location where the resource lives. Required. - :paramtype location: str - :keyword identity: Managed identities needed by a session pool to interact with other Azure - services to not maintain any secrets or credentials in code. - :paramtype identity: ~azure.mgmt.appcontainers.models.ManagedServiceIdentity - :keyword environment_id: Resource ID of the session pool's environment. - :paramtype environment_id: str - :keyword container_type: The container type of the sessions. Known values are: - "CustomContainer" and "PythonLTS". - :paramtype container_type: str or ~azure.mgmt.appcontainers.models.ContainerType - :keyword pool_management_type: The pool management type of the session pool. Known values are: - "Manual" and "Dynamic". - :paramtype pool_management_type: str or ~azure.mgmt.appcontainers.models.PoolManagementType - :keyword scale_configuration: The scale configuration of the session pool. - :paramtype scale_configuration: ~azure.mgmt.appcontainers.models.ScaleConfiguration - :keyword secrets: The secrets of the session pool. - :paramtype secrets: list[~azure.mgmt.appcontainers.models.SessionPoolSecret] - :keyword dynamic_pool_configuration: The pool configuration if the poolManagementType is - dynamic. - :paramtype dynamic_pool_configuration: - ~azure.mgmt.appcontainers.models.DynamicPoolConfiguration - :keyword custom_container_template: The custom container configuration if the containerType is - CustomContainer. - :paramtype custom_container_template: ~azure.mgmt.appcontainers.models.CustomContainerTemplate - :keyword session_network_configuration: The network configuration of the sessions in the - session pool. - :paramtype session_network_configuration: - ~azure.mgmt.appcontainers.models.SessionNetworkConfiguration - :keyword managed_identity_settings: Optional settings for a Managed Identity that is assigned - to the Session pool. - :paramtype managed_identity_settings: - list[~azure.mgmt.appcontainers.models.ManagedIdentitySetting] - """ - super().__init__(tags=tags, location=location, **kwargs) - self.identity = identity - self.environment_id = environment_id - self.container_type = container_type - self.pool_management_type = pool_management_type - self.node_count: Optional[int] = None - self.scale_configuration = scale_configuration - self.secrets = secrets - self.dynamic_pool_configuration = dynamic_pool_configuration - self.custom_container_template = custom_container_template - self.session_network_configuration = session_network_configuration - self.pool_management_endpoint: Optional[str] = None - self.provisioning_state: Optional[Union[str, "_models.SessionPoolProvisioningState"]] = None - self.managed_identity_settings = managed_identity_settings - - -class SessionPoolCollection(_serialization.Model): - """Session pool collection Azure resource. - - 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 value: Collection of resources. Required. - :vartype value: list[~azure.mgmt.appcontainers.models.SessionPool] - :ivar next_link: Link to next page of resources. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[SessionPool]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: list["_models.SessionPool"], **kwargs: Any) -> None: - """ - :keyword value: Collection of resources. Required. - :paramtype value: list[~azure.mgmt.appcontainers.models.SessionPool] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None - - -class SessionPoolSecret(_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 SessionPoolUpdatableProperties(_serialization.Model): - """Container App session pool updatable properties. - - :ivar tags: Resource tags. - :vartype tags: dict[str, str] - :ivar identity: Managed identities needed by a session pool to interact with other Azure - services to not maintain any secrets or credentials in code. - :vartype identity: ~azure.mgmt.appcontainers.models.ManagedServiceIdentity - :ivar scale_configuration: The scale configuration of the session pool. - :vartype scale_configuration: ~azure.mgmt.appcontainers.models.ScaleConfiguration - :ivar secrets: The secrets of the session pool. - :vartype secrets: list[~azure.mgmt.appcontainers.models.SessionPoolSecret] - :ivar dynamic_pool_configuration: The pool configuration if the poolManagementType is dynamic. - :vartype dynamic_pool_configuration: ~azure.mgmt.appcontainers.models.DynamicPoolConfiguration - :ivar custom_container_template: The custom container configuration if the containerType is - CustomContainer. - :vartype custom_container_template: ~azure.mgmt.appcontainers.models.CustomContainerTemplate - :ivar session_network_configuration: The network configuration of the sessions in the session - pool. - :vartype session_network_configuration: - ~azure.mgmt.appcontainers.models.SessionNetworkConfiguration - """ - - _attribute_map = { - "tags": {"key": "tags", "type": "{str}"}, - "identity": {"key": "identity", "type": "ManagedServiceIdentity"}, - "scale_configuration": {"key": "properties.scaleConfiguration", "type": "ScaleConfiguration"}, - "secrets": {"key": "properties.secrets", "type": "[SessionPoolSecret]"}, - "dynamic_pool_configuration": { - "key": "properties.dynamicPoolConfiguration", - "type": "DynamicPoolConfiguration", - }, - "custom_container_template": {"key": "properties.customContainerTemplate", "type": "CustomContainerTemplate"}, - "session_network_configuration": { - "key": "properties.sessionNetworkConfiguration", - "type": "SessionNetworkConfiguration", - }, - } - - def __init__( - self, - *, - tags: Optional[dict[str, str]] = None, - identity: Optional["_models.ManagedServiceIdentity"] = None, - scale_configuration: Optional["_models.ScaleConfiguration"] = None, - secrets: Optional[list["_models.SessionPoolSecret"]] = None, - dynamic_pool_configuration: Optional["_models.DynamicPoolConfiguration"] = None, - custom_container_template: Optional["_models.CustomContainerTemplate"] = None, - session_network_configuration: Optional["_models.SessionNetworkConfiguration"] = None, - **kwargs: Any - ) -> None: - """ - :keyword tags: Resource tags. - :paramtype tags: dict[str, str] - :keyword identity: Managed identities needed by a session pool to interact with other Azure - services to not maintain any secrets or credentials in code. - :paramtype identity: ~azure.mgmt.appcontainers.models.ManagedServiceIdentity - :keyword scale_configuration: The scale configuration of the session pool. - :paramtype scale_configuration: ~azure.mgmt.appcontainers.models.ScaleConfiguration - :keyword secrets: The secrets of the session pool. - :paramtype secrets: list[~azure.mgmt.appcontainers.models.SessionPoolSecret] - :keyword dynamic_pool_configuration: The pool configuration if the poolManagementType is - dynamic. - :paramtype dynamic_pool_configuration: - ~azure.mgmt.appcontainers.models.DynamicPoolConfiguration - :keyword custom_container_template: The custom container configuration if the containerType is - CustomContainer. - :paramtype custom_container_template: ~azure.mgmt.appcontainers.models.CustomContainerTemplate - :keyword session_network_configuration: The network configuration of the sessions in the - session pool. - :paramtype session_network_configuration: - ~azure.mgmt.appcontainers.models.SessionNetworkConfiguration - """ - super().__init__(**kwargs) - self.tags = tags - self.identity = identity - self.scale_configuration = scale_configuration - self.secrets = secrets - self.dynamic_pool_configuration = dynamic_pool_configuration - self.custom_container_template = custom_container_template - self.session_network_configuration = session_network_configuration - - -class SessionRegistryCredentials(_serialization.Model): - """Session pool private registry credentials. - - :ivar server: Container registry server. - :vartype server: str - :ivar username: Container registry username. - :vartype username: str - :ivar password_secret_ref: The name of the secret that contains the registry login password. - :vartype password_secret_ref: str - :ivar identity: A Managed Identity to use to authenticate with Azure Container Registry. For - user-assigned identities, use the full user-assigned identity Resource ID. For system-assigned - identities, use 'system'. - :vartype identity: str - """ - - _attribute_map = { - "server": {"key": "server", "type": "str"}, - "username": {"key": "username", "type": "str"}, - "password_secret_ref": {"key": "passwordSecretRef", "type": "str"}, - "identity": {"key": "identity", "type": "str"}, - } - - def __init__( - self, - *, - server: Optional[str] = None, - username: Optional[str] = None, - password_secret_ref: Optional[str] = None, - identity: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword server: Container registry server. - :paramtype server: str - :keyword username: Container registry username. - :paramtype username: str - :keyword password_secret_ref: The name of the secret that contains the registry login password. - :paramtype password_secret_ref: str - :keyword identity: A Managed Identity to use to authenticate with Azure Container Registry. For - user-assigned identities, use the full user-assigned identity Resource ID. For system-assigned - identities, use 'system'. - :paramtype identity: str - """ - super().__init__(**kwargs) - self.server = server - self.username = username - self.password_secret_ref = password_secret_ref - self.identity = identity - - -class SourceControl(ProxyResource): - """Container App SourceControl. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData - :ivar operation_state: Current provisioning State of the operation. Known values are: - "InProgress", "Succeeded", "Failed", and "Canceled". - :vartype operation_state: str or ~azure.mgmt.appcontainers.models.SourceControlOperationState - :ivar repo_url: The repo url which will be integrated to ContainerApp. - :vartype repo_url: str - :ivar branch: The branch which will trigger the auto deployment. - :vartype branch: str - :ivar github_action_configuration: Container App Revision Template with all possible settings - and the defaults if user did not provide them. The defaults are populated as they were at the - creation time. - :vartype github_action_configuration: - ~azure.mgmt.appcontainers.models.GithubActionConfiguration - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - "operation_state": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "operation_state": {"key": "properties.operationState", "type": "str"}, - "repo_url": {"key": "properties.repoUrl", "type": "str"}, - "branch": {"key": "properties.branch", "type": "str"}, - "github_action_configuration": { - "key": "properties.githubActionConfiguration", - "type": "GithubActionConfiguration", - }, - } - - def __init__( - self, - *, - repo_url: Optional[str] = None, - branch: Optional[str] = None, - github_action_configuration: Optional["_models.GithubActionConfiguration"] = None, - **kwargs: Any - ) -> None: - """ - :keyword repo_url: The repo url which will be integrated to ContainerApp. - :paramtype repo_url: str - :keyword branch: The branch which will trigger the auto deployment. - :paramtype branch: str - :keyword github_action_configuration: Container App Revision Template with all possible - settings and the defaults if user did not provide them. The defaults are populated as they were - at the creation time. - :paramtype github_action_configuration: - ~azure.mgmt.appcontainers.models.GithubActionConfiguration - """ - super().__init__(**kwargs) - self.operation_state: Optional[Union[str, "_models.SourceControlOperationState"]] = None - self.repo_url = repo_url - self.branch = branch - self.github_action_configuration = github_action_configuration - - -class SourceControlCollection(_serialization.Model): - """SourceControl collection ARM resource. - - 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 value: Collection of resources. Required. - :vartype value: list[~azure.mgmt.appcontainers.models.SourceControl] - :ivar next_link: Link to next page of resources. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[SourceControl]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: list["_models.SourceControl"], **kwargs: Any) -> None: - """ - :keyword value: Collection of resources. Required. - :paramtype value: list[~azure.mgmt.appcontainers.models.SourceControl] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None - - -class SpringBootAdminComponent(JavaComponentProperties): - """Spring Boot Admin properties. - - 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 component_type: Type of the Java Component. Required. Known values are: - "SpringBootAdmin", "SpringCloudEureka", and "SpringCloudConfig". - :vartype component_type: str or ~azure.mgmt.appcontainers.models.JavaComponentType - :ivar provisioning_state: Provisioning state of the Java Component. Known values are: - "Succeeded", "Failed", "Canceled", "Deleting", and "InProgress". - :vartype provisioning_state: str or - ~azure.mgmt.appcontainers.models.JavaComponentProvisioningState - :ivar configurations: List of Java Components configuration properties. - :vartype configurations: - list[~azure.mgmt.appcontainers.models.JavaComponentConfigurationProperty] - :ivar scale: Java component scaling configurations. - :vartype scale: ~azure.mgmt.appcontainers.models.JavaComponentPropertiesScale - :ivar service_binds: List of Java Components that are bound to the Java component. - :vartype service_binds: list[~azure.mgmt.appcontainers.models.JavaComponentServiceBind] - :ivar ingress: Java Component Ingress configurations. - :vartype ingress: ~azure.mgmt.appcontainers.models.JavaComponentIngress - """ - - _validation = { - "component_type": {"required": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "component_type": {"key": "componentType", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "configurations": {"key": "configurations", "type": "[JavaComponentConfigurationProperty]"}, - "scale": {"key": "scale", "type": "JavaComponentPropertiesScale"}, - "service_binds": {"key": "serviceBinds", "type": "[JavaComponentServiceBind]"}, - "ingress": {"key": "ingress", "type": "JavaComponentIngress"}, - } - - def __init__( - self, - *, - configurations: Optional[list["_models.JavaComponentConfigurationProperty"]] = None, - scale: Optional["_models.JavaComponentPropertiesScale"] = None, - service_binds: Optional[list["_models.JavaComponentServiceBind"]] = None, - ingress: Optional["_models.JavaComponentIngress"] = None, - **kwargs: Any - ) -> None: - """ - :keyword configurations: List of Java Components configuration properties. - :paramtype configurations: - list[~azure.mgmt.appcontainers.models.JavaComponentConfigurationProperty] - :keyword scale: Java component scaling configurations. - :paramtype scale: ~azure.mgmt.appcontainers.models.JavaComponentPropertiesScale - :keyword service_binds: List of Java Components that are bound to the Java component. - :paramtype service_binds: list[~azure.mgmt.appcontainers.models.JavaComponentServiceBind] - :keyword ingress: Java Component Ingress configurations. - :paramtype ingress: ~azure.mgmt.appcontainers.models.JavaComponentIngress - """ - super().__init__(configurations=configurations, scale=scale, service_binds=service_binds, **kwargs) - self.component_type: str = "SpringBootAdmin" - self.ingress = ingress - - -class SpringCloudConfigComponent(JavaComponentProperties): - """Spring Cloud Config properties. - - 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 component_type: Type of the Java Component. Required. Known values are: - "SpringBootAdmin", "SpringCloudEureka", and "SpringCloudConfig". - :vartype component_type: str or ~azure.mgmt.appcontainers.models.JavaComponentType - :ivar provisioning_state: Provisioning state of the Java Component. Known values are: - "Succeeded", "Failed", "Canceled", "Deleting", and "InProgress". - :vartype provisioning_state: str or - ~azure.mgmt.appcontainers.models.JavaComponentProvisioningState - :ivar configurations: List of Java Components configuration properties. - :vartype configurations: - list[~azure.mgmt.appcontainers.models.JavaComponentConfigurationProperty] - :ivar scale: Java component scaling configurations. - :vartype scale: ~azure.mgmt.appcontainers.models.JavaComponentPropertiesScale - :ivar service_binds: List of Java Components that are bound to the Java component. - :vartype service_binds: list[~azure.mgmt.appcontainers.models.JavaComponentServiceBind] - """ - - _validation = { - "component_type": {"required": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "component_type": {"key": "componentType", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "configurations": {"key": "configurations", "type": "[JavaComponentConfigurationProperty]"}, - "scale": {"key": "scale", "type": "JavaComponentPropertiesScale"}, - "service_binds": {"key": "serviceBinds", "type": "[JavaComponentServiceBind]"}, - } - - def __init__( - self, - *, - configurations: Optional[list["_models.JavaComponentConfigurationProperty"]] = None, - scale: Optional["_models.JavaComponentPropertiesScale"] = None, - service_binds: Optional[list["_models.JavaComponentServiceBind"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword configurations: List of Java Components configuration properties. - :paramtype configurations: - list[~azure.mgmt.appcontainers.models.JavaComponentConfigurationProperty] - :keyword scale: Java component scaling configurations. - :paramtype scale: ~azure.mgmt.appcontainers.models.JavaComponentPropertiesScale - :keyword service_binds: List of Java Components that are bound to the Java component. - :paramtype service_binds: list[~azure.mgmt.appcontainers.models.JavaComponentServiceBind] - """ - super().__init__(configurations=configurations, scale=scale, service_binds=service_binds, **kwargs) - self.component_type: str = "SpringCloudConfig" - - -class SpringCloudEurekaComponent(JavaComponentProperties): - """Spring Cloud Eureka properties. - - 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 component_type: Type of the Java Component. Required. Known values are: - "SpringBootAdmin", "SpringCloudEureka", and "SpringCloudConfig". - :vartype component_type: str or ~azure.mgmt.appcontainers.models.JavaComponentType - :ivar provisioning_state: Provisioning state of the Java Component. Known values are: - "Succeeded", "Failed", "Canceled", "Deleting", and "InProgress". - :vartype provisioning_state: str or - ~azure.mgmt.appcontainers.models.JavaComponentProvisioningState - :ivar configurations: List of Java Components configuration properties. - :vartype configurations: - list[~azure.mgmt.appcontainers.models.JavaComponentConfigurationProperty] - :ivar scale: Java component scaling configurations. - :vartype scale: ~azure.mgmt.appcontainers.models.JavaComponentPropertiesScale - :ivar service_binds: List of Java Components that are bound to the Java component. - :vartype service_binds: list[~azure.mgmt.appcontainers.models.JavaComponentServiceBind] - :ivar ingress: Java Component Ingress configurations. - :vartype ingress: ~azure.mgmt.appcontainers.models.JavaComponentIngress - """ - - _validation = { - "component_type": {"required": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "component_type": {"key": "componentType", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "configurations": {"key": "configurations", "type": "[JavaComponentConfigurationProperty]"}, - "scale": {"key": "scale", "type": "JavaComponentPropertiesScale"}, - "service_binds": {"key": "serviceBinds", "type": "[JavaComponentServiceBind]"}, - "ingress": {"key": "ingress", "type": "JavaComponentIngress"}, - } - - def __init__( - self, - *, - configurations: Optional[list["_models.JavaComponentConfigurationProperty"]] = None, - scale: Optional["_models.JavaComponentPropertiesScale"] = None, - service_binds: Optional[list["_models.JavaComponentServiceBind"]] = None, - ingress: Optional["_models.JavaComponentIngress"] = None, - **kwargs: Any - ) -> None: - """ - :keyword configurations: List of Java Components configuration properties. - :paramtype configurations: - list[~azure.mgmt.appcontainers.models.JavaComponentConfigurationProperty] - :keyword scale: Java component scaling configurations. - :paramtype scale: ~azure.mgmt.appcontainers.models.JavaComponentPropertiesScale - :keyword service_binds: List of Java Components that are bound to the Java component. - :paramtype service_binds: list[~azure.mgmt.appcontainers.models.JavaComponentServiceBind] - :keyword ingress: Java Component Ingress configurations. - :paramtype ingress: ~azure.mgmt.appcontainers.models.JavaComponentIngress - """ - super().__init__(configurations=configurations, scale=scale, service_binds=service_binds, **kwargs) - self.component_type: str = "SpringCloudEureka" - self.ingress = ingress - - -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.appcontainers.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.appcontainers.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.appcontainers.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.appcontainers.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 TcpScaleRule(_serialization.Model): - """Container App container 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.appcontainers.models.ScaleRuleAuth] - :ivar identity: The resource ID of a user-assigned managed identity that is assigned to the - Container App, or 'system' for system-assigned identity. - :vartype identity: str - """ - - _attribute_map = { - "metadata": {"key": "metadata", "type": "{str}"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - "identity": {"key": "identity", "type": "str"}, - } - - def __init__( - self, - *, - metadata: Optional[dict[str, str]] = None, - auth: Optional[list["_models.ScaleRuleAuth"]] = None, - identity: Optional[str] = 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.appcontainers.models.ScaleRuleAuth] - :keyword identity: The resource ID of a user-assigned managed identity that is assigned to the - Container App, or 'system' for system-assigned identity. - :paramtype identity: str - """ - super().__init__(**kwargs) - self.metadata = metadata - self.auth = auth - self.identity = identity - - -class Template(_serialization.Model): - """Container App versioned application definition. Defines the desired state of an immutable - revision. Any changes to this section Will result in a new revision being created. - - :ivar revision_suffix: User friendly suffix that is appended to the revision name. - :vartype revision_suffix: str - :ivar termination_grace_period_seconds: Optional duration in seconds the Container App Instance - needs to terminate gracefully. 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. Set this value longer than the expected cleanup time - for your process. Defaults to 30 seconds. - :vartype termination_grace_period_seconds: int - :ivar init_containers: List of specialized containers that run before app containers. - :vartype init_containers: list[~azure.mgmt.appcontainers.models.InitContainer] - :ivar containers: List of container definitions for the Container App. - :vartype containers: list[~azure.mgmt.appcontainers.models.Container] - :ivar scale: Scaling properties for the Container App. - :vartype scale: ~azure.mgmt.appcontainers.models.Scale - :ivar volumes: List of volume definitions for the Container App. - :vartype volumes: list[~azure.mgmt.appcontainers.models.Volume] - :ivar service_binds: List of container app services bound to the app. - :vartype service_binds: list[~azure.mgmt.appcontainers.models.ServiceBind] - """ - - _attribute_map = { - "revision_suffix": {"key": "revisionSuffix", "type": "str"}, - "termination_grace_period_seconds": {"key": "terminationGracePeriodSeconds", "type": "int"}, - "init_containers": {"key": "initContainers", "type": "[InitContainer]"}, - "containers": {"key": "containers", "type": "[Container]"}, - "scale": {"key": "scale", "type": "Scale"}, - "volumes": {"key": "volumes", "type": "[Volume]"}, - "service_binds": {"key": "serviceBinds", "type": "[ServiceBind]"}, - } - - def __init__( - self, - *, - revision_suffix: Optional[str] = None, - termination_grace_period_seconds: Optional[int] = None, - init_containers: Optional[list["_models.InitContainer"]] = None, - containers: Optional[list["_models.Container"]] = None, - scale: Optional["_models.Scale"] = None, - volumes: Optional[list["_models.Volume"]] = None, - service_binds: Optional[list["_models.ServiceBind"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword revision_suffix: User friendly suffix that is appended to the revision name. - :paramtype revision_suffix: str - :keyword termination_grace_period_seconds: Optional duration in seconds the Container App - Instance needs to terminate gracefully. 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. Set this value longer than the expected - cleanup time for your process. Defaults to 30 seconds. - :paramtype termination_grace_period_seconds: int - :keyword init_containers: List of specialized containers that run before app containers. - :paramtype init_containers: list[~azure.mgmt.appcontainers.models.InitContainer] - :keyword containers: List of container definitions for the Container App. - :paramtype containers: list[~azure.mgmt.appcontainers.models.Container] - :keyword scale: Scaling properties for the Container App. - :paramtype scale: ~azure.mgmt.appcontainers.models.Scale - :keyword volumes: List of volume definitions for the Container App. - :paramtype volumes: list[~azure.mgmt.appcontainers.models.Volume] - :keyword service_binds: List of container app services bound to the app. - :paramtype service_binds: list[~azure.mgmt.appcontainers.models.ServiceBind] - """ - super().__init__(**kwargs) - self.revision_suffix = revision_suffix - self.termination_grace_period_seconds = termination_grace_period_seconds - self.init_containers = init_containers - self.containers = containers - self.scale = scale - self.volumes = volumes - self.service_binds = service_binds - - -class TokenStore(_serialization.Model): - """The configuration settings of the token store. - - :ivar enabled: :code:`true` to durably store platform-specific security tokens - that are obtained during login flows; otherwise, :code:`false`. The default is - :code:`false`. - :vartype enabled: bool - :ivar token_refresh_extension_hours: The number of hours after session token expiration that a - session token can be used to call the token refresh API. The default is 72 hours. - :vartype token_refresh_extension_hours: float - :ivar azure_blob_storage: The configuration settings of the storage of the tokens if blob - storage is used. - :vartype azure_blob_storage: ~azure.mgmt.appcontainers.models.BlobStorageTokenStore - """ - - _attribute_map = { - "enabled": {"key": "enabled", "type": "bool"}, - "token_refresh_extension_hours": {"key": "tokenRefreshExtensionHours", "type": "float"}, - "azure_blob_storage": {"key": "azureBlobStorage", "type": "BlobStorageTokenStore"}, - } - - def __init__( - self, - *, - enabled: Optional[bool] = None, - token_refresh_extension_hours: Optional[float] = None, - azure_blob_storage: Optional["_models.BlobStorageTokenStore"] = None, - **kwargs: Any - ) -> None: - """ - :keyword enabled: :code:`true` to durably store platform-specific security tokens - that are obtained during login flows; otherwise, :code:`false`. The default is - :code:`false`. - :paramtype enabled: bool - :keyword token_refresh_extension_hours: The number of hours after session token expiration that - a session token can be used to call the token refresh API. The default is 72 hours. - :paramtype token_refresh_extension_hours: float - :keyword azure_blob_storage: The configuration settings of the storage of the tokens if blob - storage is used. - :paramtype azure_blob_storage: ~azure.mgmt.appcontainers.models.BlobStorageTokenStore - """ - super().__init__(**kwargs) - self.enabled = enabled - self.token_refresh_extension_hours = token_refresh_extension_hours - self.azure_blob_storage = azure_blob_storage - - -class TrafficWeight(_serialization.Model): - """Traffic weight assigned to a revision. - - :ivar revision_name: Name of a revision. - :vartype revision_name: str - :ivar weight: Traffic weight assigned to a revision. - :vartype weight: int - :ivar latest_revision: Indicates that the traffic weight belongs to a latest stable revision. - :vartype latest_revision: bool - :ivar label: Associates a traffic label with a revision. - :vartype label: str - """ - - _attribute_map = { - "revision_name": {"key": "revisionName", "type": "str"}, - "weight": {"key": "weight", "type": "int"}, - "latest_revision": {"key": "latestRevision", "type": "bool"}, - "label": {"key": "label", "type": "str"}, - } - - def __init__( - self, - *, - revision_name: Optional[str] = None, - weight: Optional[int] = None, - latest_revision: bool = False, - label: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword revision_name: Name of a revision. - :paramtype revision_name: str - :keyword weight: Traffic weight assigned to a revision. - :paramtype weight: int - :keyword latest_revision: Indicates that the traffic weight belongs to a latest stable - revision. - :paramtype latest_revision: bool - :keyword label: Associates a traffic label with a revision. - :paramtype label: str - """ - super().__init__(**kwargs) - self.revision_name = revision_name - self.weight = weight - self.latest_revision = latest_revision - self.label = label - - -class Twitter(_serialization.Model): - """The configuration settings of the Twitter provider. - - :ivar enabled: :code:`false` if the Twitter provider should not be enabled despite - the set registration; otherwise, :code:`true`. - :vartype enabled: bool - :ivar registration: The configuration settings of the app registration for the Twitter - provider. - :vartype registration: ~azure.mgmt.appcontainers.models.TwitterRegistration - """ - - _attribute_map = { - "enabled": {"key": "enabled", "type": "bool"}, - "registration": {"key": "registration", "type": "TwitterRegistration"}, - } - - def __init__( - self, - *, - enabled: Optional[bool] = None, - registration: Optional["_models.TwitterRegistration"] = None, - **kwargs: Any - ) -> None: - """ - :keyword enabled: :code:`false` if the Twitter provider should not be enabled - despite the set registration; otherwise, :code:`true`. - :paramtype enabled: bool - :keyword registration: The configuration settings of the app registration for the Twitter - provider. - :paramtype registration: ~azure.mgmt.appcontainers.models.TwitterRegistration - """ - super().__init__(**kwargs) - self.enabled = enabled - self.registration = registration - - -class TwitterRegistration(_serialization.Model): - """The configuration settings of the app registration for the Twitter provider. - - :ivar consumer_key: The OAuth 1.0a consumer key of the Twitter application used for sign-in. - This setting is required for enabling Twitter Sign-In. Twitter Sign-In documentation: - https://dev.twitter.com/web/sign-in. - :vartype consumer_key: str - :ivar consumer_secret_setting_name: The app setting name that contains the OAuth 1.0a consumer - secret of the Twitter application used for sign-in. - :vartype consumer_secret_setting_name: str - """ - - _attribute_map = { - "consumer_key": {"key": "consumerKey", "type": "str"}, - "consumer_secret_setting_name": {"key": "consumerSecretSettingName", "type": "str"}, - } - - def __init__( - self, *, consumer_key: Optional[str] = None, consumer_secret_setting_name: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword consumer_key: The OAuth 1.0a consumer key of the Twitter application used for sign-in. - This setting is required for enabling Twitter Sign-In. Twitter Sign-In documentation: - https://dev.twitter.com/web/sign-in. - :paramtype consumer_key: str - :keyword consumer_secret_setting_name: The app setting name that contains the OAuth 1.0a - consumer secret of the Twitter application used for sign-in. - :paramtype consumer_secret_setting_name: str - """ - super().__init__(**kwargs) - self.consumer_key = consumer_key - self.consumer_secret_setting_name = consumer_secret_setting_name - - -class Usage(_serialization.Model): - """Describes Compute Resource Usage. - - 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 unit: An enum describing the unit of usage measurement. Required. Default value is - "Count". - :vartype unit: str - :ivar current_value: The current usage of the resource. Required. - :vartype current_value: float - :ivar limit: The maximum permitted usage of the resource. Required. - :vartype limit: float - :ivar name: The name of the type of usage. Required. - :vartype name: ~azure.mgmt.appcontainers.models.UsageName - """ - - _validation = { - "unit": {"required": True, "constant": True}, - "current_value": {"required": True}, - "limit": {"required": True}, - "name": {"required": True}, - } - - _attribute_map = { - "unit": {"key": "unit", "type": "str"}, - "current_value": {"key": "currentValue", "type": "float"}, - "limit": {"key": "limit", "type": "float"}, - "name": {"key": "name", "type": "UsageName"}, - } - - unit = "Count" - - def __init__(self, *, current_value: float, limit: float, name: "_models.UsageName", **kwargs: Any) -> None: - """ - :keyword current_value: The current usage of the resource. Required. - :paramtype current_value: float - :keyword limit: The maximum permitted usage of the resource. Required. - :paramtype limit: float - :keyword name: The name of the type of usage. Required. - :paramtype name: ~azure.mgmt.appcontainers.models.UsageName - """ - super().__init__(**kwargs) - self.current_value = current_value - self.limit = limit - self.name = name - - -class UsageName(_serialization.Model): - """The Usage Names. - - :ivar value: The name of the resource. - :vartype value: str - :ivar localized_value: The localized name of the resource. - :vartype localized_value: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "str"}, - "localized_value": {"key": "localizedValue", "type": "str"}, - } - - def __init__(self, *, value: Optional[str] = None, localized_value: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword value: The name of the resource. - :paramtype value: str - :keyword localized_value: The localized name of the resource. - :paramtype localized_value: str - """ - super().__init__(**kwargs) - self.value = value - self.localized_value = localized_value - - -class UserAssignedIdentity(_serialization.Model): - """User assigned identity properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar principal_id: The principal ID of the assigned identity. - :vartype principal_id: str - :ivar client_id: The client ID of the assigned 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: Optional[str] = None - self.client_id: Optional[str] = None - - -class VnetConfiguration(_serialization.Model): - """Configuration properties for apps environment to join a Virtual Network. - - :ivar internal: Boolean indicating the environment only has an internal load balancer. These - environments do not have a public static IP resource. They must provide infrastructureSubnetId - if enabling this property. - :vartype internal: bool - :ivar infrastructure_subnet_id: Resource ID of a subnet for infrastructure components. Must not - overlap with any other provided IP ranges. - :vartype infrastructure_subnet_id: str - :ivar docker_bridge_cidr: CIDR notation IP range assigned to the Docker bridge, network. Must - not overlap with any other provided IP ranges. - :vartype docker_bridge_cidr: str - :ivar platform_reserved_cidr: IP range in CIDR notation that can be reserved for environment - infrastructure IP addresses. Must not overlap with any other provided IP ranges. - :vartype platform_reserved_cidr: str - :ivar platform_reserved_dns_ip: An IP address from the IP range defined by platformReservedCidr - that will be reserved for the internal DNS server. - :vartype platform_reserved_dns_ip: str - """ - - _attribute_map = { - "internal": {"key": "internal", "type": "bool"}, - "infrastructure_subnet_id": {"key": "infrastructureSubnetId", "type": "str"}, - "docker_bridge_cidr": {"key": "dockerBridgeCidr", "type": "str"}, - "platform_reserved_cidr": {"key": "platformReservedCidr", "type": "str"}, - "platform_reserved_dns_ip": {"key": "platformReservedDnsIP", "type": "str"}, - } - - def __init__( - self, - *, - internal: Optional[bool] = None, - infrastructure_subnet_id: Optional[str] = None, - docker_bridge_cidr: Optional[str] = None, - platform_reserved_cidr: Optional[str] = None, - platform_reserved_dns_ip: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword internal: Boolean indicating the environment only has an internal load balancer. These - environments do not have a public static IP resource. They must provide infrastructureSubnetId - if enabling this property. - :paramtype internal: bool - :keyword infrastructure_subnet_id: Resource ID of a subnet for infrastructure components. Must - not overlap with any other provided IP ranges. - :paramtype infrastructure_subnet_id: str - :keyword docker_bridge_cidr: CIDR notation IP range assigned to the Docker bridge, network. - Must not overlap with any other provided IP ranges. - :paramtype docker_bridge_cidr: str - :keyword platform_reserved_cidr: IP range in CIDR notation that can be reserved for environment - infrastructure IP addresses. Must not overlap with any other provided IP ranges. - :paramtype platform_reserved_cidr: str - :keyword platform_reserved_dns_ip: An IP address from the IP range defined by - platformReservedCidr that will be reserved for the internal DNS server. - :paramtype platform_reserved_dns_ip: str - """ - super().__init__(**kwargs) - self.internal = internal - self.infrastructure_subnet_id = infrastructure_subnet_id - self.docker_bridge_cidr = docker_bridge_cidr - self.platform_reserved_cidr = platform_reserved_cidr - self.platform_reserved_dns_ip = platform_reserved_dns_ip - - -class Volume(_serialization.Model): - """Volume definitions for the Container App. - - :ivar name: Volume name. - :vartype name: str - :ivar storage_type: Storage type for the volume. If not provided, use EmptyDir. Known values - are: "AzureFile", "EmptyDir", "Secret", and "NfsAzureFile". - :vartype storage_type: str or ~azure.mgmt.appcontainers.models.StorageType - :ivar storage_name: Name of storage resource. No need to provide for EmptyDir and Secret. - :vartype storage_name: str - :ivar secrets: List of secrets to be added in volume. If no secrets are provided, all secrets - in collection will be added to volume. - :vartype secrets: list[~azure.mgmt.appcontainers.models.SecretVolumeItem] - :ivar mount_options: Mount options used while mounting the Azure file share or NFS Azure file - share. Must be a comma-separated string. - :vartype mount_options: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "storage_type": {"key": "storageType", "type": "str"}, - "storage_name": {"key": "storageName", "type": "str"}, - "secrets": {"key": "secrets", "type": "[SecretVolumeItem]"}, - "mount_options": {"key": "mountOptions", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - storage_type: Optional[Union[str, "_models.StorageType"]] = None, - storage_name: Optional[str] = None, - secrets: Optional[list["_models.SecretVolumeItem"]] = None, - mount_options: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Volume name. - :paramtype name: str - :keyword storage_type: Storage type for the volume. If not provided, use EmptyDir. Known values - are: "AzureFile", "EmptyDir", "Secret", and "NfsAzureFile". - :paramtype storage_type: str or ~azure.mgmt.appcontainers.models.StorageType - :keyword storage_name: Name of storage resource. No need to provide for EmptyDir and Secret. - :paramtype storage_name: str - :keyword secrets: List of secrets to be added in volume. If no secrets are provided, all - secrets in collection will be added to volume. - :paramtype secrets: list[~azure.mgmt.appcontainers.models.SecretVolumeItem] - :keyword mount_options: Mount options used while mounting the Azure file share or NFS Azure - file share. Must be a comma-separated string. - :paramtype mount_options: str - """ - super().__init__(**kwargs) - self.name = name - self.storage_type = storage_type - self.storage_name = storage_name - self.secrets = secrets - self.mount_options = mount_options - - -class VolumeMount(_serialization.Model): - """Volume mount for the Container App. - - :ivar volume_name: This must match the Name of a Volume. - :vartype volume_name: str - :ivar mount_path: Path within the container at which the volume should be mounted.Must not - contain ':'. - :vartype mount_path: str - :ivar sub_path: Path within the volume from which the container's volume should be mounted. - Defaults to "" (volume's root). - :vartype sub_path: str - """ - - _attribute_map = { - "volume_name": {"key": "volumeName", "type": "str"}, - "mount_path": {"key": "mountPath", "type": "str"}, - "sub_path": {"key": "subPath", "type": "str"}, - } - - def __init__( - self, - *, - volume_name: Optional[str] = None, - mount_path: Optional[str] = None, - sub_path: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword volume_name: This must match the Name of a Volume. - :paramtype volume_name: str - :keyword mount_path: Path within the container at which the volume should be mounted.Must not - contain ':'. - :paramtype mount_path: str - :keyword sub_path: Path within the volume from which the container's volume should be mounted. - Defaults to "" (volume's root). - :paramtype sub_path: str - """ - super().__init__(**kwargs) - self.volume_name = volume_name - self.mount_path = mount_path - self.sub_path = sub_path - - -class WorkflowEnvelope(ProxyResource): - """Schema for the workflow 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. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData - :ivar kind: Gets the logic app hybrid workflow kind. Known values are: "Stateful", "Stateless", - and "Agentic". - :vartype kind: str or ~azure.mgmt.appcontainers.models.WorkflowKind - :ivar properties: Additional workflow properties. - :vartype properties: ~azure.mgmt.appcontainers.models.WorkflowEnvelopeProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "kind": {"key": "kind", "type": "str"}, - "properties": {"key": "properties", "type": "WorkflowEnvelopeProperties"}, - } - - def __init__( - self, - *, - kind: Optional[Union[str, "_models.WorkflowKind"]] = None, - properties: Optional["_models.WorkflowEnvelopeProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword kind: Gets the logic app hybrid workflow kind. Known values are: "Stateful", - "Stateless", and "Agentic". - :paramtype kind: str or ~azure.mgmt.appcontainers.models.WorkflowKind - :keyword properties: Additional workflow properties. - :paramtype properties: ~azure.mgmt.appcontainers.models.WorkflowEnvelopeProperties - """ - super().__init__(**kwargs) - self.kind = kind - self.properties = properties - - -class WorkflowEnvelopeCollection(_serialization.Model): - """Collection of workflow information elements. - - 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 value: Collection of resources. Required. - :vartype value: list[~azure.mgmt.appcontainers.models.WorkflowEnvelope] - :ivar next_link: Link to next page of resources. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[WorkflowEnvelope]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: list["_models.WorkflowEnvelope"], **kwargs: Any) -> None: - """ - :keyword value: Collection of resources. Required. - :paramtype value: list[~azure.mgmt.appcontainers.models.WorkflowEnvelope] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None - - -class WorkflowEnvelopeProperties(_serialization.Model): - """Additional workflow properties. - - :ivar files: Gets or sets the files. - :vartype files: JSON - :ivar flow_state: Gets or sets the state of the workflow. Known values are: "NotSpecified", - "Completed", "Enabled", "Disabled", "Deleted", and "Suspended". - :vartype flow_state: str or ~azure.mgmt.appcontainers.models.WorkflowState - :ivar health: Gets or sets workflow health. - :vartype health: ~azure.mgmt.appcontainers.models.WorkflowHealth - """ - - _attribute_map = { - "files": {"key": "files", "type": "object"}, - "flow_state": {"key": "flowState", "type": "str"}, - "health": {"key": "health", "type": "WorkflowHealth"}, - } - - def __init__( - self, - *, - files: Optional[JSON] = None, - flow_state: Optional[Union[str, "_models.WorkflowState"]] = None, - health: Optional["_models.WorkflowHealth"] = None, - **kwargs: Any - ) -> None: - """ - :keyword files: Gets or sets the files. - :paramtype files: JSON - :keyword flow_state: Gets or sets the state of the workflow. Known values are: "NotSpecified", - "Completed", "Enabled", "Disabled", "Deleted", and "Suspended". - :paramtype flow_state: str or ~azure.mgmt.appcontainers.models.WorkflowState - :keyword health: Gets or sets workflow health. - :paramtype health: ~azure.mgmt.appcontainers.models.WorkflowHealth - """ - super().__init__(**kwargs) - self.files = files - self.flow_state = flow_state - self.health = health - - -class WorkflowHealth(_serialization.Model): - """Represents the workflow health. - - All required parameters must be populated in order to send to server. - - :ivar state: Gets or sets the workflow health state. Required. Known values are: - "NotSpecified", "Healthy", "Unhealthy", and "Unknown". - :vartype state: str or ~azure.mgmt.appcontainers.models.WorkflowHealthState - :ivar error: Gets or sets the workflow error. - :vartype error: ~azure.mgmt.appcontainers.models.ErrorEntity - """ - - _validation = { - "state": {"required": True}, - } - - _attribute_map = { - "state": {"key": "state", "type": "str"}, - "error": {"key": "error", "type": "ErrorEntity"}, - } - - def __init__( - self, - *, - state: Union[str, "_models.WorkflowHealthState"], - error: Optional["_models.ErrorEntity"] = None, - **kwargs: Any - ) -> None: - """ - :keyword state: Gets or sets the workflow health state. Required. Known values are: - "NotSpecified", "Healthy", "Unhealthy", and "Unknown". - :paramtype state: str or ~azure.mgmt.appcontainers.models.WorkflowHealthState - :keyword error: Gets or sets the workflow error. - :paramtype error: ~azure.mgmt.appcontainers.models.ErrorEntity - """ - super().__init__(**kwargs) - self.state = state - self.error = error - - -class WorkloadProfile(_serialization.Model): - """Workload profile to scope container app execution. - - All required parameters must be populated in order to send to server. - - :ivar name: Workload profile type for the workloads to run on. Required. - :vartype name: str - :ivar workload_profile_type: Workload profile type for the workloads to run on. Required. - :vartype workload_profile_type: str - :ivar minimum_count: The minimum capacity. - :vartype minimum_count: int - :ivar maximum_count: The maximum capacity. - :vartype maximum_count: int - """ - - _validation = { - "name": {"required": True}, - "workload_profile_type": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "workload_profile_type": {"key": "workloadProfileType", "type": "str"}, - "minimum_count": {"key": "minimumCount", "type": "int"}, - "maximum_count": {"key": "maximumCount", "type": "int"}, - } - - def __init__( - self, - *, - name: str, - workload_profile_type: str, - minimum_count: Optional[int] = None, - maximum_count: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Workload profile type for the workloads to run on. Required. - :paramtype name: str - :keyword workload_profile_type: Workload profile type for the workloads to run on. Required. - :paramtype workload_profile_type: str - :keyword minimum_count: The minimum capacity. - :paramtype minimum_count: int - :keyword maximum_count: The maximum capacity. - :paramtype maximum_count: int - """ - super().__init__(**kwargs) - self.name = name - self.workload_profile_type = workload_profile_type - self.minimum_count = minimum_count - self.maximum_count = maximum_count - - -class WorkloadProfileStates(ProxyResource): - """Collection of all the workload Profile States for a Managed Environment.. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.appcontainers.models.SystemData - :ivar properties: Workload Profile resource specific properties. - :vartype properties: ~azure.mgmt.appcontainers.models.WorkloadProfileStatesProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "WorkloadProfileStatesProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.WorkloadProfileStatesProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Workload Profile resource specific properties. - :paramtype properties: ~azure.mgmt.appcontainers.models.WorkloadProfileStatesProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class WorkloadProfileStatesCollection(_serialization.Model): - """Collection of workloadProfileStates. - - 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 value: Collection of resources. Required. - :vartype value: list[~azure.mgmt.appcontainers.models.WorkloadProfileStates] - :ivar next_link: Link to next page of resources. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[WorkloadProfileStates]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: list["_models.WorkloadProfileStates"], **kwargs: Any) -> None: - """ - :keyword value: Collection of resources. Required. - :paramtype value: list[~azure.mgmt.appcontainers.models.WorkloadProfileStates] - """ - super().__init__(**kwargs) - self.value = value - self.next_link: Optional[str] = None - - -class WorkloadProfileStatesProperties(_serialization.Model): - """Workload Profile resource specific properties. - - :ivar minimum_count: Minimum count of instances. - :vartype minimum_count: int - :ivar maximum_count: Maximum count of nodes. - :vartype maximum_count: int - :ivar current_count: Current count of nodes. - :vartype current_count: int - """ - - _attribute_map = { - "minimum_count": {"key": "minimumCount", "type": "int"}, - "maximum_count": {"key": "maximumCount", "type": "int"}, - "current_count": {"key": "currentCount", "type": "int"}, - } - - def __init__( - self, - *, - minimum_count: Optional[int] = None, - maximum_count: Optional[int] = None, - current_count: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword minimum_count: Minimum count of instances. - :paramtype minimum_count: int - :keyword maximum_count: Maximum count of nodes. - :paramtype maximum_count: int - :keyword current_count: Current count of nodes. - :paramtype current_count: int - """ - super().__init__(**kwargs) - self.minimum_count = minimum_count - self.maximum_count = maximum_count - self.current_count = current_count diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_patch.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_patch.py index f7dd32510333..87676c65a8f0 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_patch.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_patch.py @@ -1,14 +1,15 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------- """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 + +__all__: list[str] = [] # Add all objects you want publicly available to users at this package level def patch_sdk(): diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/__init__.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/__init__.py index c40facc691e4..0d43041a94b4 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/__init__.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/__init__.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- # pylint: disable=wrong-import-position @@ -13,77 +12,107 @@ if TYPE_CHECKING: from ._patch import * # pylint: disable=unused-wildcard-import -from ._container_apps_auth_configs_operations import ContainerAppsAuthConfigsOperations # type: ignore -from ._available_workload_profiles_operations import AvailableWorkloadProfilesOperations # type: ignore -from ._billing_meters_operations import BillingMetersOperations # type: ignore -from ._connected_environments_operations import ConnectedEnvironmentsOperations # type: ignore -from ._connected_environments_certificates_operations import ConnectedEnvironmentsCertificatesOperations # type: ignore -from ._connected_environments_dapr_components_operations import ConnectedEnvironmentsDaprComponentsOperations # type: ignore -from ._connected_environments_storages_operations import ConnectedEnvironmentsStoragesOperations # type: ignore -from ._container_apps_operations import ContainerAppsOperations # type: ignore -from ._container_apps_revisions_operations import ContainerAppsRevisionsOperations # type: ignore -from ._container_apps_revision_replicas_operations import ContainerAppsRevisionReplicasOperations # type: ignore -from ._container_apps_diagnostics_operations import ContainerAppsDiagnosticsOperations # type: ignore -from ._managed_environment_diagnostics_operations import ManagedEnvironmentDiagnosticsOperations # type: ignore -from ._managed_environments_diagnostics_operations import ManagedEnvironmentsDiagnosticsOperations # type: ignore -from ._jobs_operations import JobsOperations # type: ignore from ._operations import Operations # type: ignore -from ._java_components_operations import JavaComponentsOperations # type: ignore -from ._jobs_executions_operations import JobsExecutionsOperations # type: ignore -from ._container_apps_api_client_operations import _ContainerAppsAPIClientOperationsMixin # type: ignore # pylint: disable=unused-import -from ._managed_environments_operations import ManagedEnvironmentsOperations # type: ignore -from ._certificates_operations import CertificatesOperations # type: ignore -from ._managed_certificates_operations import ManagedCertificatesOperations # type: ignore -from ._namespaces_operations import NamespacesOperations # type: ignore -from ._managed_environment_private_endpoint_connections_operations import ManagedEnvironmentPrivateEndpointConnectionsOperations # type: ignore -from ._managed_environment_private_link_resources_operations import ManagedEnvironmentPrivateLinkResourcesOperations # type: ignore -from ._dapr_components_operations import DaprComponentsOperations # type: ignore -from ._http_route_config_operations import HttpRouteConfigOperations # type: ignore -from ._maintenance_configurations_operations import MaintenanceConfigurationsOperations # type: ignore -from ._managed_environments_storages_operations import ManagedEnvironmentsStoragesOperations # type: ignore -from ._container_apps_session_pools_operations import ContainerAppsSessionPoolsOperations # type: ignore -from ._container_apps_source_controls_operations import ContainerAppsSourceControlsOperations # type: ignore -from ._usages_operations import UsagesOperations # type: ignore -from ._managed_environment_usages_operations import ManagedEnvironmentUsagesOperations # type: ignore -from ._logic_apps_operations import LogicAppsOperations # type: ignore +from ._operations import ContainerAppsSessionPoolsOperations # type: ignore +from ._operations import ContainerAppsSourceControlsOperations # type: ignore +from ._operations import ContainerAppsOperations # type: ignore +from ._operations import ContainerAppsBuildsOperations # type: ignore +from ._operations import ContainerAppsFunctionsOperations # type: ignore +from ._operations import ContainerAppsRevisionsOperations # type: ignore +from ._operations import FunctionsExtensionOperations # type: ignore +from ._operations import ContainerAppsLabelHistoryOperations # type: ignore +from ._operations import ContainerAppsPatchesOperations # type: ignore +from ._operations import ContainerAppsRevisionReplicasOperations # type: ignore +from ._operations import DotNetComponentsOperations # type: ignore +from ._operations import JavaComponentsOperations # type: ignore +from ._operations import LogicAppsOperations # type: ignore +from ._operations import ContainerAppsAuthConfigsOperations # type: ignore +from ._operations import BuildersOperations # type: ignore +from ._operations import BuildsOperations # type: ignore +from ._operations import ConnectedEnvironmentsOperations # type: ignore +from ._operations import CertificatesOperations # type: ignore +from ._operations import ConnectedEnvironmentsDaprComponentsOperations # type: ignore +from ._operations import DaprComponentsOperations # type: ignore +from ._operations import ConnectedEnvironmentsStoragesOperations # type: ignore +from ._operations import ManagedEnvironmentsOperations # type: ignore +from ._operations import ManagedCertificatesOperations # type: ignore +from ._operations import DaprComponentResiliencyPoliciesOperations # type: ignore +from ._operations import DaprSubscriptionsOperations # type: ignore +from ._operations import MaintenanceConfigurationsOperations # type: ignore +from ._operations import ManagedEnvironmentsStoragesOperations # type: ignore +from ._operations import JobsOperations # type: ignore +from ._operations import ContainerAppsDiagnosticsOperations # type: ignore +from ._operations import ManagedEnvironmentsDiagnosticsOperations # type: ignore +from ._operations import ContainerAppsBuildsByContainerAppOperations # type: ignore +from ._operations import ContainerAppsRevisionFunctionsOperations # type: ignore +from ._operations import AppResiliencyOperations # type: ignore +from ._operations import BuildsByBuilderResourceOperations # type: ignore +from ._operations import BuildAuthTokenOperations # type: ignore +from ._operations import ConnectedEnvironmentsCertificatesOperations # type: ignore +from ._operations import NamespacesOperations # type: ignore +from ._operations import ManagedEnvironmentPrivateLinkResourcesOperations # type: ignore +from ._operations import ManagedEnvironmentPrivateEndpointConnectionsOperations # type: ignore +from ._operations import HttpRouteConfigOperations # type: ignore +from ._operations import JobsExecutionsOperations # type: ignore +from ._operations import ManagedEnvironmentDiagnosticsOperations # type: ignore +from ._operations import AvailableWorkloadProfilesOperations # type: ignore +from ._operations import BillingMetersOperations # type: ignore +from ._operations import UsagesOperations # type: ignore +from ._operations import ManagedEnvironmentUsagesOperations # type: ignore +from ._operations import _ContainerAppsAPIClientOperationsMixin # type: ignore # pylint: disable=unused-import from ._patch import __all__ as _patch_all from ._patch import * from ._patch import patch_sdk as _patch_sdk __all__ = [ - "ContainerAppsAuthConfigsOperations", - "AvailableWorkloadProfilesOperations", - "BillingMetersOperations", - "ConnectedEnvironmentsOperations", - "ConnectedEnvironmentsCertificatesOperations", - "ConnectedEnvironmentsDaprComponentsOperations", - "ConnectedEnvironmentsStoragesOperations", + "Operations", + "ContainerAppsSessionPoolsOperations", + "ContainerAppsSourceControlsOperations", "ContainerAppsOperations", + "ContainerAppsBuildsOperations", + "ContainerAppsFunctionsOperations", "ContainerAppsRevisionsOperations", + "FunctionsExtensionOperations", + "ContainerAppsLabelHistoryOperations", + "ContainerAppsPatchesOperations", "ContainerAppsRevisionReplicasOperations", - "ContainerAppsDiagnosticsOperations", - "ManagedEnvironmentDiagnosticsOperations", - "ManagedEnvironmentsDiagnosticsOperations", - "JobsOperations", - "Operations", + "DotNetComponentsOperations", "JavaComponentsOperations", - "JobsExecutionsOperations", - "ManagedEnvironmentsOperations", + "LogicAppsOperations", + "ContainerAppsAuthConfigsOperations", + "BuildersOperations", + "BuildsOperations", + "ConnectedEnvironmentsOperations", "CertificatesOperations", + "ConnectedEnvironmentsDaprComponentsOperations", + "DaprComponentsOperations", + "ConnectedEnvironmentsStoragesOperations", + "ManagedEnvironmentsOperations", "ManagedCertificatesOperations", + "DaprComponentResiliencyPoliciesOperations", + "DaprSubscriptionsOperations", + "MaintenanceConfigurationsOperations", + "ManagedEnvironmentsStoragesOperations", + "JobsOperations", + "ContainerAppsDiagnosticsOperations", + "ManagedEnvironmentsDiagnosticsOperations", + "ContainerAppsBuildsByContainerAppOperations", + "ContainerAppsRevisionFunctionsOperations", + "AppResiliencyOperations", + "BuildsByBuilderResourceOperations", + "BuildAuthTokenOperations", + "ConnectedEnvironmentsCertificatesOperations", "NamespacesOperations", - "ManagedEnvironmentPrivateEndpointConnectionsOperations", "ManagedEnvironmentPrivateLinkResourcesOperations", - "DaprComponentsOperations", + "ManagedEnvironmentPrivateEndpointConnectionsOperations", "HttpRouteConfigOperations", - "MaintenanceConfigurationsOperations", - "ManagedEnvironmentsStoragesOperations", - "ContainerAppsSessionPoolsOperations", - "ContainerAppsSourceControlsOperations", + "JobsExecutionsOperations", + "ManagedEnvironmentDiagnosticsOperations", + "AvailableWorkloadProfilesOperations", + "BillingMetersOperations", "UsagesOperations", "ManagedEnvironmentUsagesOperations", - "LogicAppsOperations", ] __all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore _patch_sdk() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_available_workload_profiles_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_available_workload_profiles_operations.py deleted file mode 100644 index 122ee6a24506..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_available_workload_profiles_operations.py +++ /dev/null @@ -1,170 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -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 .._configuration import ContainerAppsAPIClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/providers/Microsoft.App/locations/{location}/availableManagedEnvironmentsWorkloadProfileTypes", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "location": _SERIALIZER.url("location", location, "str", min_length=1), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_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 AvailableWorkloadProfilesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`available_workload_profiles` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def get(self, location: str, **kwargs: Any) -> ItemPaged["_models.AvailableWorkloadProfile"]: - """Get available workload profiles by location. - - Get all available workload profiles for a location. - - :param location: The name of Azure region. Required. - :type location: str - :return: An iterator like instance of either AvailableWorkloadProfile or the result of - cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.AvailableWorkloadProfile] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.AvailableWorkloadProfilesCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_get_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableWorkloadProfilesCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_billing_meters_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_billing_meters_operations.py deleted file mode 100644 index 9af04a745252..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_billing_meters_operations.py +++ /dev/null @@ -1,139 +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 collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -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 .._configuration import ContainerAppsAPIClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.App/locations/{location}/billingMeters" - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "location": _SERIALIZER.url("location", location, "str", min_length=1), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_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 BillingMetersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`billing_meters` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def get(self, location: str, **kwargs: Any) -> _models.BillingMeterCollection: - """Get billing meters by location. - - Get all billingMeters for a location. - - :param location: The name of Azure region. Required. - :type location: str - :return: BillingMeterCollection or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.BillingMeterCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.BillingMeterCollection] = kwargs.pop("cls", None) - - _request = build_get_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BillingMeterCollection", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_certificates_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_certificates_operations.py deleted file mode 100644 index 6dfd731cb85c..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_certificates_operations.py +++ /dev/null @@ -1,753 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -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 .._configuration import ContainerAppsAPIClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_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, environment_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates/{certificateName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_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, environment_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", "2026-01-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.App/managedEnvironments/{environmentName}/certificates/{certificateName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_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, environment_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates/{certificateName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_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_update_request( - resource_group_name: str, environment_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", "2026-01-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.App/managedEnvironments/{environmentName}/certificates/{certificateName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_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="PATCH", 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.appcontainers.ContainerAppsAPIClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list(self, resource_group_name: str, environment_name: str, **kwargs: Any) -> ItemPaged["_models.Certificate"]: - """Get the Certificates in a given managed environment. - - Get the Certificates in a given managed environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :return: An iterator like instance of either Certificate or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.Certificate] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.CertificateCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, environment_name: str, certificate_name: str, **kwargs: Any - ) -> _models.Certificate: - """Get the specified Certificate. - - Get the specified Certificate. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param certificate_name: Name of the Certificate. Required. - :type certificate_name: str - :return: Certificate or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.Certificate - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.Certificate] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Certificate", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def create_or_update( - self, - resource_group_name: str, - environment_name: str, - certificate_name: str, - certificate_envelope: Optional[_models.Certificate] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Certificate: - """Create or Update a Certificate. - - Create or Update a Certificate. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param certificate_name: Name of the Certificate. Required. - :type certificate_name: str - :param certificate_envelope: Certificate to be created or updated. Default value is None. - :type certificate_envelope: ~azure.mgmt.appcontainers.models.Certificate - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Certificate or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.Certificate - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update( - self, - resource_group_name: str, - environment_name: str, - certificate_name: str, - certificate_envelope: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Certificate: - """Create or Update a Certificate. - - Create or Update a Certificate. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param certificate_name: Name of the Certificate. Required. - :type certificate_name: str - :param certificate_envelope: Certificate to be created or updated. Default value is None. - :type certificate_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Certificate or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.Certificate - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update( - self, - resource_group_name: str, - environment_name: str, - certificate_name: str, - certificate_envelope: Optional[Union[_models.Certificate, IO[bytes]]] = None, - **kwargs: Any - ) -> _models.Certificate: - """Create or Update a Certificate. - - Create or Update a Certificate. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param certificate_name: Name of the Certificate. Required. - :type certificate_name: str - :param certificate_envelope: Certificate to be created or updated. Is either a Certificate type - or a IO[bytes] type. Default value is None. - :type certificate_envelope: ~azure.mgmt.appcontainers.models.Certificate or IO[bytes] - :return: Certificate or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.Certificate - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if certificate_envelope else None - cls: ClsType[_models.Certificate] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" if certificate_envelope else None - _json = None - _content = None - if isinstance(certificate_envelope, (IOBase, bytes)): - _content = certificate_envelope - else: - if certificate_envelope is not None: - _json = self._serialize.body(certificate_envelope, "Certificate") - else: - _json = None - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - environment_name=environment_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.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Certificate", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def delete( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, environment_name: str, certificate_name: str, **kwargs: Any - ) -> None: - """Deletes the specified Certificate. - - Deletes the specified Certificate. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param certificate_name: Name of the Certificate. Required. - :type certificate_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = 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) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def update( - self, - resource_group_name: str, - environment_name: str, - certificate_name: str, - certificate_envelope: _models.CertificatePatch, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Certificate: - """Update properties of a certificate. - - Patches a certificate. Currently only patching of tags is supported. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param certificate_name: Name of the Certificate. Required. - :type certificate_name: str - :param certificate_envelope: Properties of a certificate that need to be updated. Required. - :type certificate_envelope: ~azure.mgmt.appcontainers.models.CertificatePatch - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Certificate or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.Certificate - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def update( - self, - resource_group_name: str, - environment_name: str, - certificate_name: str, - certificate_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Certificate: - """Update properties of a certificate. - - Patches a certificate. Currently only patching of tags is supported. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param certificate_name: Name of the Certificate. Required. - :type certificate_name: str - :param certificate_envelope: Properties of a certificate that need to be updated. Required. - :type certificate_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Certificate or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.Certificate - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def update( - self, - resource_group_name: str, - environment_name: str, - certificate_name: str, - certificate_envelope: Union[_models.CertificatePatch, IO[bytes]], - **kwargs: Any - ) -> _models.Certificate: - """Update properties of a certificate. - - Patches a certificate. Currently only patching of tags is supported. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param certificate_name: Name of the Certificate. Required. - :type certificate_name: str - :param certificate_envelope: Properties of a certificate that need to be updated. Is either a - CertificatePatch type or a IO[bytes] type. Required. - :type certificate_envelope: ~azure.mgmt.appcontainers.models.CertificatePatch or IO[bytes] - :return: Certificate or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.Certificate - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Certificate] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_envelope, (IOBase, bytes)): - _content = certificate_envelope - else: - _json = self._serialize.body(certificate_envelope, "CertificatePatch") - - _request = build_update_request( - resource_group_name=resource_group_name, - environment_name=environment_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.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Certificate", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_connected_environments_certificates_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_connected_environments_certificates_operations.py deleted file mode 100644 index ddcfc22cdb1d..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_connected_environments_certificates_operations.py +++ /dev/null @@ -1,977 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from .._configuration import ContainerAppsAPIClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, connected_environment_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/certificates", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_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, - connected_environment_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/certificates/{certificateName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_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, - connected_environment_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", "2026-01-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.App/connectedEnvironments/{connectedEnvironmentName}/certificates/{certificateName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_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, - connected_environment_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/certificates/{certificateName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_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_update_request( - resource_group_name: str, - connected_environment_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", "2026-01-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.App/connectedEnvironments/{connectedEnvironmentName}/certificates/{certificateName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_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="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -class ConnectedEnvironmentsCertificatesOperations: # pylint: disable=name-too-long - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`connected_environments_certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list( - self, resource_group_name: str, connected_environment_name: str, **kwargs: Any - ) -> ItemPaged["_models.Certificate"]: - """Get the Certificates in a given connected environment. - - Get the Certificates in a given connected environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Connected Environment. Required. - :type connected_environment_name: str - :return: An iterator like instance of either Certificate or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.Certificate] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.CertificateCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, connected_environment_name: str, certificate_name: str, **kwargs: Any - ) -> _models.Certificate: - """Get the specified Certificate. - - Get the specified Certificate. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Connected Environment. Required. - :type connected_environment_name: str - :param certificate_name: Name of the Certificate. Required. - :type certificate_name: str - :return: Certificate or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.Certificate - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.Certificate] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Certificate", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - connected_environment_name: str, - certificate_name: str, - certificate_envelope: Optional[Union[_models.Certificate, IO[bytes]]] = None, - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if certificate_envelope else None - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" if certificate_envelope else None - _json = None - _content = None - if isinstance(certificate_envelope, (IOBase, bytes)): - _content = certificate_envelope - else: - if certificate_envelope is not None: - _json = self._serialize.body(certificate_envelope, "Certificate") - else: - _json = None - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_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.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 201: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - connected_environment_name: str, - certificate_name: str, - certificate_envelope: Optional[_models.Certificate] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.Certificate]: - """Create or Update a Certificate. - - Create or Update a Certificate. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Connected Environment. Required. - :type connected_environment_name: str - :param certificate_name: Name of the Certificate. Required. - :type certificate_name: str - :param certificate_envelope: Certificate to be created or updated. Default value is None. - :type certificate_envelope: ~azure.mgmt.appcontainers.models.Certificate - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either Certificate or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.Certificate] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - connected_environment_name: str, - certificate_name: str, - certificate_envelope: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.Certificate]: - """Create or Update a Certificate. - - Create or Update a Certificate. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Connected Environment. Required. - :type connected_environment_name: str - :param certificate_name: Name of the Certificate. Required. - :type certificate_name: str - :param certificate_envelope: Certificate to be created or updated. Default value is None. - :type certificate_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either Certificate or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.Certificate] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - connected_environment_name: str, - certificate_name: str, - certificate_envelope: Optional[Union[_models.Certificate, IO[bytes]]] = None, - **kwargs: Any - ) -> LROPoller[_models.Certificate]: - """Create or Update a Certificate. - - Create or Update a Certificate. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Connected Environment. Required. - :type connected_environment_name: str - :param certificate_name: Name of the Certificate. Required. - :type certificate_name: str - :param certificate_envelope: Certificate to be created or updated. Is either a Certificate type - or a IO[bytes] type. Default value is None. - :type certificate_envelope: ~azure.mgmt.appcontainers.models.Certificate or IO[bytes] - :return: An instance of LROPoller that returns either Certificate or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.Certificate] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if certificate_envelope else None - cls: ClsType[_models.Certificate] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - certificate_name=certificate_name, - certificate_envelope=certificate_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("Certificate", pipeline_response.http_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.Certificate].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.Certificate]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( - self, resource_group_name: str, connected_environment_name: str, certificate_name: str, **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: 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]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, connected_environment_name: str, certificate_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Deletes the specified Certificate. - - Deletes the specified Certificate. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Connected Environment. Required. - :type connected_environment_name: str - :param certificate_name: Name of the Certificate. 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._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=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 _update_initial( - self, - resource_group_name: str, - connected_environment_name: str, - certificate_name: str, - certificate_envelope: Union[_models.CertificatePatch, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_envelope, (IOBase, bytes)): - _content = certificate_envelope - else: - _json = self._serialize.body(certificate_envelope, "CertificatePatch") - - _request = build_update_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_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.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - connected_environment_name: str, - certificate_name: str, - certificate_envelope: _models.CertificatePatch, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.Certificate]: - """Update properties of a certificate. - - Patches a certificate. Currently only patching of tags is supported. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Connected Environment. Required. - :type connected_environment_name: str - :param certificate_name: Name of the Certificate. Required. - :type certificate_name: str - :param certificate_envelope: Properties of a certificate that need to be updated. Required. - :type certificate_envelope: ~azure.mgmt.appcontainers.models.CertificatePatch - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either Certificate or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.Certificate] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - connected_environment_name: str, - certificate_name: str, - certificate_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.Certificate]: - """Update properties of a certificate. - - Patches a certificate. Currently only patching of tags is supported. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Connected Environment. Required. - :type connected_environment_name: str - :param certificate_name: Name of the Certificate. Required. - :type certificate_name: str - :param certificate_envelope: Properties of a certificate that need to be updated. Required. - :type certificate_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either Certificate or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.Certificate] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - connected_environment_name: str, - certificate_name: str, - certificate_envelope: Union[_models.CertificatePatch, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.Certificate]: - """Update properties of a certificate. - - Patches a certificate. Currently only patching of tags is supported. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Connected Environment. Required. - :type connected_environment_name: str - :param certificate_name: Name of the Certificate. Required. - :type certificate_name: str - :param certificate_envelope: Properties of a certificate that need to be updated. Is either a - CertificatePatch type or a IO[bytes] type. Required. - :type certificate_envelope: ~azure.mgmt.appcontainers.models.CertificatePatch or IO[bytes] - :return: An instance of LROPoller that returns either Certificate or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.Certificate] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Certificate] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.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, - connected_environment_name=connected_environment_name, - certificate_name=certificate_name, - certificate_envelope=certificate_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("Certificate", pipeline_response.http_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.Certificate].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.Certificate]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_connected_environments_dapr_components_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_connected_environments_dapr_components_operations.py deleted file mode 100644 index b1f4e65de407..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_connected_environments_dapr_components_operations.py +++ /dev/null @@ -1,799 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from .._configuration import ContainerAppsAPIClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, connected_environment_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/daprComponents", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_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, connected_environment_name: str, component_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/daprComponents/{componentName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_name, "str"), - "componentName": _SERIALIZER.url("component_name", component_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, connected_environment_name: str, component_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-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.App/connectedEnvironments/{connectedEnvironmentName}/daprComponents/{componentName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_name, "str"), - "componentName": _SERIALIZER.url("component_name", component_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, connected_environment_name: str, component_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/daprComponents/{componentName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_name, "str"), - "componentName": _SERIALIZER.url("component_name", component_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_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_secrets_request( - resource_group_name: str, connected_environment_name: str, component_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/daprComponents/{componentName}/listSecrets", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_name, "str"), - "componentName": _SERIALIZER.url("component_name", component_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_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 ConnectedEnvironmentsDaprComponentsOperations: # pylint: disable=name-too-long - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`connected_environments_dapr_components` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list( - self, resource_group_name: str, connected_environment_name: str, **kwargs: Any - ) -> ItemPaged["_models.DaprComponent"]: - """Get the Dapr Components for a connected environment. - - Get the Dapr Components for a connected environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the connected environment. Required. - :type connected_environment_name: str - :return: An iterator like instance of either DaprComponent or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.DaprComponent] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DaprComponentsCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DaprComponentsCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any - ) -> _models.DaprComponent: - """Get a dapr component. - - Get a dapr component. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the connected environment. Required. - :type connected_environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :return: DaprComponent or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.DaprComponent - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DaprComponent] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - component_name=component_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DaprComponent", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - connected_environment_name: str, - component_name: str, - dapr_component_envelope: Union[_models.DaprComponent, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(dapr_component_envelope, (IOBase, bytes)): - _content = dapr_component_envelope - else: - _json = self._serialize.body(dapr_component_envelope, "DaprComponent") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - component_name=component_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 201: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - connected_environment_name: str, - component_name: str, - dapr_component_envelope: _models.DaprComponent, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DaprComponent]: - """Creates or updates a Dapr Component. - - Creates or updates a Dapr Component in a connected environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the connected environment. Required. - :type connected_environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :param dapr_component_envelope: Configuration details of the Dapr Component. Required. - :type dapr_component_envelope: ~azure.mgmt.appcontainers.models.DaprComponent - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DaprComponent or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.DaprComponent] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - connected_environment_name: str, - component_name: str, - dapr_component_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DaprComponent]: - """Creates or updates a Dapr Component. - - Creates or updates a Dapr Component in a connected environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the connected environment. Required. - :type connected_environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :param dapr_component_envelope: Configuration details of the Dapr Component. Required. - :type dapr_component_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DaprComponent or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.DaprComponent] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - connected_environment_name: str, - component_name: str, - dapr_component_envelope: Union[_models.DaprComponent, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DaprComponent]: - """Creates or updates a Dapr Component. - - Creates or updates a Dapr Component in a connected environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the connected environment. Required. - :type connected_environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :param dapr_component_envelope: Configuration details of the Dapr Component. Is either a - DaprComponent type or a IO[bytes] type. Required. - :type dapr_component_envelope: ~azure.mgmt.appcontainers.models.DaprComponent or IO[bytes] - :return: An instance of LROPoller that returns either DaprComponent or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.DaprComponent] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DaprComponent] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - component_name=component_name, - dapr_component_envelope=dapr_component_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DaprComponent", pipeline_response.http_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.DaprComponent].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DaprComponent]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( - self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - component_name=component_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: 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]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete a Dapr Component. - - Delete a Dapr Component from a connected environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the connected environment. Required. - :type connected_environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - component_name=component_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=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_secrets( - self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any - ) -> _models.DaprSecretsCollection: - """List secrets for a dapr component. - - List secrets for a dapr component. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the connected environment. Required. - :type connected_environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :return: DaprSecretsCollection or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.DaprSecretsCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DaprSecretsCollection] = kwargs.pop("cls", None) - - _request = build_list_secrets_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - component_name=component_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DaprSecretsCollection", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_connected_environments_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_connected_environments_operations.py deleted file mode 100644 index dec439666998..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_connected_environments_operations.py +++ /dev/null @@ -1,1122 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression,too-many-lines -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from .._configuration import ContainerAppsAPIClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.App/connectedEnvironments") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_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_by_resource_group_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_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, connected_environment_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, connected_environment_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-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.App/connectedEnvironments/{connectedEnvironmentName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, connected_environment_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_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, connected_environment_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-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.App/connectedEnvironments/{connectedEnvironmentName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_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_check_name_availability_request( - resource_group_name: str, connected_environment_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-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.App/connectedEnvironments/{connectedEnvironmentName}/checkNameAvailability", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_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 ConnectedEnvironmentsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`connected_environments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.ConnectedEnvironment"]: - """Get all connectedEnvironments for a subscription. - - Get all connectedEnvironments for a subscription. - - :return: An iterator like instance of either ConnectedEnvironment or the result of - cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.ConnectedEnvironment] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ConnectedEnvironmentCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: 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.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ConnectedEnvironmentCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_by_resource_group( - self, resource_group_name: str, **kwargs: Any - ) -> ItemPaged["_models.ConnectedEnvironment"]: - """Get all connectedEnvironments in a resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :return: An iterator like instance of either ConnectedEnvironment or the result of - cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.ConnectedEnvironment] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ConnectedEnvironmentCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: 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_resource_group_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ConnectedEnvironmentCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, connected_environment_name: str, **kwargs: Any - ) -> _models.ConnectedEnvironment: - """Get the properties of an connectedEnvironment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the connectedEnvironment. Required. - :type connected_environment_name: str - :return: ConnectedEnvironment or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironment - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ConnectedEnvironment] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConnectedEnvironment", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - connected_environment_name: str, - environment_envelope: Union[_models.ConnectedEnvironment, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(environment_envelope, (IOBase, bytes)): - _content = environment_envelope - else: - _json = self._serialize.body(environment_envelope, "ConnectedEnvironment") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 201: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - connected_environment_name: str, - environment_envelope: _models.ConnectedEnvironment, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConnectedEnvironment]: - """Creates or updates an connectedEnvironment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the connectedEnvironment. Required. - :type connected_environment_name: str - :param environment_envelope: Configuration details of the connectedEnvironment. Required. - :type environment_envelope: ~azure.mgmt.appcontainers.models.ConnectedEnvironment - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConnectedEnvironment or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironment] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - connected_environment_name: str, - environment_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConnectedEnvironment]: - """Creates or updates an connectedEnvironment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the connectedEnvironment. Required. - :type connected_environment_name: str - :param environment_envelope: Configuration details of the connectedEnvironment. Required. - :type environment_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConnectedEnvironment or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironment] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - connected_environment_name: str, - environment_envelope: Union[_models.ConnectedEnvironment, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConnectedEnvironment]: - """Creates or updates an connectedEnvironment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the connectedEnvironment. Required. - :type connected_environment_name: str - :param environment_envelope: Configuration details of the connectedEnvironment. Is either a - ConnectedEnvironment type or a IO[bytes] type. Required. - :type environment_envelope: ~azure.mgmt.appcontainers.models.ConnectedEnvironment or IO[bytes] - :return: An instance of LROPoller that returns either ConnectedEnvironment or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironment] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConnectedEnvironment] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - environment_envelope=environment_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConnectedEnvironment", pipeline_response.http_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.ConnectedEnvironment].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConnectedEnvironment]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( - self, resource_group_name: str, connected_environment_name: str, **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_delete(self, resource_group_name: str, connected_environment_name: str, **kwargs: Any) -> LROPoller[None]: - """Delete an connectedEnvironment. - - Delete an connectedEnvironment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the connectedEnvironment. Required. - :type connected_environment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=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 - - @overload - def update( - self, - resource_group_name: str, - connected_environment_name: str, - environment_envelope: _models.ConnectedEnvironmentPatchResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ConnectedEnvironment: - """Update connected Environment's properties. - - Patches a Managed Environment. Only patching of tags is supported currently. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the connectedEnvironment. Required. - :type connected_environment_name: str - :param environment_envelope: Configuration details of the connectedEnvironment. Required. - :type environment_envelope: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentPatchResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ConnectedEnvironment or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironment - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def update( - self, - resource_group_name: str, - connected_environment_name: str, - environment_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ConnectedEnvironment: - """Update connected Environment's properties. - - Patches a Managed Environment. Only patching of tags is supported currently. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the connectedEnvironment. Required. - :type connected_environment_name: str - :param environment_envelope: Configuration details of the connectedEnvironment. Required. - :type environment_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ConnectedEnvironment or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironment - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def update( - self, - resource_group_name: str, - connected_environment_name: str, - environment_envelope: Union[_models.ConnectedEnvironmentPatchResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConnectedEnvironment: - """Update connected Environment's properties. - - Patches a Managed Environment. Only patching of tags is supported currently. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the connectedEnvironment. Required. - :type connected_environment_name: str - :param environment_envelope: Configuration details of the connectedEnvironment. Is either a - ConnectedEnvironmentPatchResource type or a IO[bytes] type. Required. - :type environment_envelope: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentPatchResource - or IO[bytes] - :return: ConnectedEnvironment or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironment - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConnectedEnvironment] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(environment_envelope, (IOBase, bytes)): - _content = environment_envelope - else: - _json = self._serialize.body(environment_envelope, "ConnectedEnvironmentPatchResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConnectedEnvironment", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def check_name_availability( - self, - resource_group_name: str, - connected_environment_name: str, - check_name_availability_request: _models.CheckNameAvailabilityRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CheckNameAvailabilityResponse: - """Checks the resource connectedEnvironmentName availability. - - Checks if resource connectedEnvironmentName is available. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Managed Environment. Required. - :type connected_environment_name: str - :param check_name_availability_request: The check connectedEnvironmentName availability - request. Required. - :type check_name_availability_request: - ~azure.mgmt.appcontainers.models.CheckNameAvailabilityRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CheckNameAvailabilityResponse or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.CheckNameAvailabilityResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def check_name_availability( - self, - resource_group_name: str, - connected_environment_name: str, - check_name_availability_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CheckNameAvailabilityResponse: - """Checks the resource connectedEnvironmentName availability. - - Checks if resource connectedEnvironmentName is available. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Managed Environment. Required. - :type connected_environment_name: str - :param check_name_availability_request: The check connectedEnvironmentName availability - request. Required. - :type check_name_availability_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: CheckNameAvailabilityResponse or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.CheckNameAvailabilityResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def check_name_availability( - self, - resource_group_name: str, - connected_environment_name: str, - check_name_availability_request: Union[_models.CheckNameAvailabilityRequest, IO[bytes]], - **kwargs: Any - ) -> _models.CheckNameAvailabilityResponse: - """Checks the resource connectedEnvironmentName availability. - - Checks if resource connectedEnvironmentName is available. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Managed Environment. Required. - :type connected_environment_name: str - :param check_name_availability_request: The check connectedEnvironmentName availability - request. Is either a CheckNameAvailabilityRequest type or a IO[bytes] type. Required. - :type check_name_availability_request: - ~azure.mgmt.appcontainers.models.CheckNameAvailabilityRequest or IO[bytes] - :return: CheckNameAvailabilityResponse or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.CheckNameAvailabilityResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CheckNameAvailabilityResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(check_name_availability_request, (IOBase, bytes)): - _content = check_name_availability_request - else: - _json = self._serialize.body(check_name_availability_request, "CheckNameAvailabilityRequest") - - _request = build_check_name_availability_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CheckNameAvailabilityResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_connected_environments_storages_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_connected_environments_storages_operations.py deleted file mode 100644 index 4c11d8aed136..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_connected_environments_storages_operations.py +++ /dev/null @@ -1,675 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from .._configuration import ContainerAppsAPIClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, connected_environment_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/storages", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_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, connected_environment_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/storages/{storageName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_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, connected_environment_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", "2026-01-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.App/connectedEnvironments/{connectedEnvironmentName}/storages/{storageName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_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, connected_environment_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/storages/{storageName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_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) - - -class ConnectedEnvironmentsStoragesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`connected_environments_storages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list( - self, resource_group_name: str, connected_environment_name: str, **kwargs: Any - ) -> _models.ConnectedEnvironmentStoragesCollection: - """Get all storages for a connectedEnvironment. - - Get all storages for a connectedEnvironment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Environment. Required. - :type connected_environment_name: str - :return: ConnectedEnvironmentStoragesCollection or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStoragesCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ConnectedEnvironmentStoragesCollection] = kwargs.pop("cls", None) - - _request = build_list_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConnectedEnvironmentStoragesCollection", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get( - self, resource_group_name: str, connected_environment_name: str, storage_name: str, **kwargs: Any - ) -> _models.ConnectedEnvironmentStorage: - """Get storage for a connectedEnvironment. - - Get storage for a connectedEnvironment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Environment. Required. - :type connected_environment_name: str - :param storage_name: Name of the storage. Required. - :type storage_name: str - :return: ConnectedEnvironmentStorage or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ConnectedEnvironmentStorage] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConnectedEnvironmentStorage", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - connected_environment_name: str, - storage_name: str, - storage_envelope: Union[_models.ConnectedEnvironmentStorage, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(storage_envelope, (IOBase, bytes)): - _content = storage_envelope - else: - _json = self._serialize.body(storage_envelope, "ConnectedEnvironmentStorage") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_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.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 201: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - connected_environment_name: str, - storage_name: str, - storage_envelope: _models.ConnectedEnvironmentStorage, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConnectedEnvironmentStorage]: - """Create or update storage for a connectedEnvironment. - - Create or update storage for a connectedEnvironment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Environment. Required. - :type connected_environment_name: str - :param storage_name: Name of the storage. Required. - :type storage_name: str - :param storage_envelope: Configuration details of storage. Required. - :type storage_envelope: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConnectedEnvironmentStorage or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - connected_environment_name: str, - storage_name: str, - storage_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConnectedEnvironmentStorage]: - """Create or update storage for a connectedEnvironment. - - Create or update storage for a connectedEnvironment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Environment. Required. - :type connected_environment_name: str - :param storage_name: Name of the storage. Required. - :type storage_name: str - :param storage_envelope: Configuration details of storage. Required. - :type storage_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConnectedEnvironmentStorage or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - connected_environment_name: str, - storage_name: str, - storage_envelope: Union[_models.ConnectedEnvironmentStorage, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConnectedEnvironmentStorage]: - """Create or update storage for a connectedEnvironment. - - Create or update storage for a connectedEnvironment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Environment. Required. - :type connected_environment_name: str - :param storage_name: Name of the storage. Required. - :type storage_name: str - :param storage_envelope: Configuration details of storage. Is either a - ConnectedEnvironmentStorage type or a IO[bytes] type. Required. - :type storage_envelope: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage or - IO[bytes] - :return: An instance of LROPoller that returns either ConnectedEnvironmentStorage or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConnectedEnvironmentStorage] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - storage_name=storage_name, - storage_envelope=storage_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConnectedEnvironmentStorage", pipeline_response.http_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.ConnectedEnvironmentStorage].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConnectedEnvironmentStorage]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( - self, resource_group_name: str, connected_environment_name: str, storage_name: str, **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: 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]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, connected_environment_name: str, storage_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete storage for a connectedEnvironment. - - Delete storage for a connectedEnvironment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the Environment. Required. - :type connected_environment_name: str - :param storage_name: Name of the storage. 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._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - storage_name=storage_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=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 diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_api_client_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_api_client_operations.py deleted file mode 100644 index 4305d9110c5a..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_api_client_operations.py +++ /dev/null @@ -1,224 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -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 .._configuration import ContainerAppsAPIClientConfiguration -from .._utils.serialization import Serializer -from .._utils.utils import ClientMixinABC - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_job_execution_request( - resource_group_name: str, job_name: str, job_execution_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/executions/{jobExecutionName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "jobName": _SERIALIZER.url("job_name", job_name, "str", pattern=r"^[-\w\._\(\)]+$"), - "jobExecutionName": _SERIALIZER.url( - "job_execution_name", job_execution_name, "str", pattern=r"^[-\w\._\(\)]+$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_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_custom_domain_verification_id_request( # pylint: disable=name-too-long - subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.App/getCustomDomainVerificationId" - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_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 _ContainerAppsAPIClientOperationsMixin( - ClientMixinABC[PipelineClient[HttpRequest, HttpResponse], ContainerAppsAPIClientConfiguration] -): - - @distributed_trace - def job_execution( - self, resource_group_name: str, job_name: str, job_execution_name: str, **kwargs: Any - ) -> _models.JobExecution: - """Get details of a single job execution. - - Get details of a single job execution. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :param job_execution_name: Job execution name. Required. - :type job_execution_name: str - :return: JobExecution or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.JobExecution - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.JobExecution] = kwargs.pop("cls", None) - - _request = build_job_execution_request( - resource_group_name=resource_group_name, - job_name=job_name, - job_execution_name=job_execution_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("JobExecution", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_custom_domain_verification_id(self, **kwargs: Any) -> str: - """Get the verification id of a subscription used for verifying custom domains. - - :return: str or the result of cls(response) - :rtype: str - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[str] = kwargs.pop("cls", None) - - _request = build_get_custom_domain_verification_id_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("str", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_auth_configs_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_auth_configs_operations.py deleted file mode 100644 index f17faa3e8015..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_auth_configs_operations.py +++ /dev/null @@ -1,564 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -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 .._configuration import ContainerAppsAPIClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_by_container_app_request( - resource_group_name: str, container_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url("container_app_name", container_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) - - -def build_get_request( - resource_group_name: str, container_app_name: str, auth_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{authConfigName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), - "authConfigName": _SERIALIZER.url("auth_config_name", auth_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, container_app_name: str, auth_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", "2026-01-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.App/containerApps/{containerAppName}/authConfigs/{authConfigName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), - "authConfigName": _SERIALIZER.url("auth_config_name", auth_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, container_app_name: str, auth_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{authConfigName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), - "authConfigName": _SERIALIZER.url("auth_config_name", auth_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) - - -class ContainerAppsAuthConfigsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`container_apps_auth_configs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_container_app( - self, resource_group_name: str, container_app_name: str, **kwargs: Any - ) -> ItemPaged["_models.AuthConfig"]: - """Get the Container App AuthConfigs in a given resource group. - - Get the Container App AuthConfigs in a given resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :return: An iterator like instance of either AuthConfig or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.AuthConfig] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.AuthConfigCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: 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_container_app_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AuthConfigCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, container_app_name: str, auth_config_name: str, **kwargs: Any - ) -> _models.AuthConfig: - """Get a AuthConfig of a Container App. - - Get a AuthConfig of a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param auth_config_name: Name of the Container App AuthConfig. Required. - :type auth_config_name: str - :return: AuthConfig or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.AuthConfig - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.AuthConfig] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - auth_config_name=auth_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AuthConfig", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def create_or_update( - self, - resource_group_name: str, - container_app_name: str, - auth_config_name: str, - auth_config_envelope: _models.AuthConfig, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.AuthConfig: - """Create or update the AuthConfig for a Container App. - - Create or update the AuthConfig for a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param auth_config_name: Name of the Container App AuthConfig. Required. - :type auth_config_name: str - :param auth_config_envelope: Properties used to create a Container App AuthConfig. Required. - :type auth_config_envelope: ~azure.mgmt.appcontainers.models.AuthConfig - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: AuthConfig or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.AuthConfig - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update( - self, - resource_group_name: str, - container_app_name: str, - auth_config_name: str, - auth_config_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.AuthConfig: - """Create or update the AuthConfig for a Container App. - - Create or update the AuthConfig for a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param auth_config_name: Name of the Container App AuthConfig. Required. - :type auth_config_name: str - :param auth_config_envelope: Properties used to create a Container App AuthConfig. Required. - :type auth_config_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: AuthConfig or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.AuthConfig - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update( - self, - resource_group_name: str, - container_app_name: str, - auth_config_name: str, - auth_config_envelope: Union[_models.AuthConfig, IO[bytes]], - **kwargs: Any - ) -> _models.AuthConfig: - """Create or update the AuthConfig for a Container App. - - Create or update the AuthConfig for a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param auth_config_name: Name of the Container App AuthConfig. Required. - :type auth_config_name: str - :param auth_config_envelope: Properties used to create a Container App AuthConfig. Is either a - AuthConfig type or a IO[bytes] type. Required. - :type auth_config_envelope: ~azure.mgmt.appcontainers.models.AuthConfig or IO[bytes] - :return: AuthConfig or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.AuthConfig - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AuthConfig] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(auth_config_envelope, (IOBase, bytes)): - _content = auth_config_envelope - else: - _json = self._serialize.body(auth_config_envelope, "AuthConfig") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - auth_config_name=auth_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.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AuthConfig", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def delete( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, container_app_name: str, auth_config_name: str, **kwargs: Any - ) -> None: - """Delete a Container App AuthConfig. - - Delete a Container App AuthConfig. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param auth_config_name: Name of the Container App AuthConfig. Required. - :type auth_config_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - auth_config_name=auth_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = 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) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_diagnostics_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_diagnostics_operations.py deleted file mode 100644 index e51fe103473a..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_diagnostics_operations.py +++ /dev/null @@ -1,607 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -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 .._configuration import ContainerAppsAPIClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_detectors_request( - resource_group_name: str, container_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectors", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url("container_app_name", container_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) - - -def build_get_detector_request( - resource_group_name: str, container_app_name: str, detector_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectors/{detectorName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), - "detectorName": _SERIALIZER.url("detector_name", detector_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_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_revisions_request( - resource_group_name: str, - container_app_name: str, - subscription_id: str, - *, - filter: 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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorProperties/revisionsApi/revisions/", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url("container_app_name", container_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 filter is not None: - _params["$filter"] = _SERIALIZER.query("filter", filter, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_revision_request( - resource_group_name: str, container_app_name: str, revision_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorProperties/revisionsApi/revisions/{revisionName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), - "revisionName": _SERIALIZER.url("revision_name", revision_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_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_root_request( - resource_group_name: str, container_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorProperties/rootApi/", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url("container_app_name", container_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 ContainerAppsDiagnosticsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`container_apps_diagnostics` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_detectors( - self, resource_group_name: str, container_app_name: str, **kwargs: Any - ) -> ItemPaged["_models.Diagnostics"]: - """Get the list of diagnostics for a given Container App. - - Get the list of diagnostics for a given Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App for which detector info is needed. - Required. - :type container_app_name: str - :return: An iterator like instance of either Diagnostics or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.Diagnostics] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DiagnosticsCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_detectors_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DiagnosticsCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_detector( - self, resource_group_name: str, container_app_name: str, detector_name: str, **kwargs: Any - ) -> _models.Diagnostics: - """Get a diagnostics result of a Container App. - - Get a diagnostics result of a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param detector_name: Name of the Container App Detector. Required. - :type detector_name: str - :return: Diagnostics or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.Diagnostics - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.Diagnostics] = kwargs.pop("cls", None) - - _request = build_get_detector_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - detector_name=detector_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Diagnostics", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_revisions( - self, resource_group_name: str, container_app_name: str, filter: Optional[str] = None, **kwargs: Any - ) -> ItemPaged["_models.Revision"]: - """Get the Revisions for a given Container App. - - Get the Revisions for a given Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App for which Revisions are needed. Required. - :type container_app_name: str - :param filter: The filter to apply on the operation. Default value is None. - :type filter: str - :return: An iterator like instance of either Revision or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.Revision] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.RevisionCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_revisions_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - subscription_id=self._config.subscription_id, - filter=filter, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("RevisionCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_revision( - self, resource_group_name: str, container_app_name: str, revision_name: str, **kwargs: Any - ) -> _models.Revision: - """Get a revision of a Container App. - - Get a revision of a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param revision_name: Name of the Container App Revision. Required. - :type revision_name: str - :return: Revision or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.Revision - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.Revision] = kwargs.pop("cls", None) - - _request = build_get_revision_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - revision_name=revision_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Revision", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_root(self, resource_group_name: str, container_app_name: str, **kwargs: Any) -> _models.ContainerApp: - """Get the properties of a Container App. - - Get the properties of a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :return: ContainerApp or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ContainerApp - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerApp] = kwargs.pop("cls", None) - - _request = build_get_root_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ContainerApp", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_operations.py deleted file mode 100644 index bb500d31478f..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_operations.py +++ /dev/null @@ -1,1611 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression,too-many-lines -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from .._configuration import ContainerAppsAPIClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.App/containerApps") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_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_by_resource_group_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_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, container_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url("container_app_name", container_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) - - -def build_create_or_update_request( - resource_group_name: str, container_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", "2026-01-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.App/containerApps/{containerAppName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url("container_app_name", container_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, container_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url("container_app_name", container_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, container_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", "2026-01-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.App/containerApps/{containerAppName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url("container_app_name", container_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_custom_host_name_analysis_request( # pylint: disable=name-too-long - resource_group_name: str, - container_app_name: str, - subscription_id: str, - *, - custom_hostname: 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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/listCustomHostNameAnalysis", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - if custom_hostname is not None: - _params["customHostname"] = _SERIALIZER.query("custom_hostname", custom_hostname, "str") - _params["api-version"] = _SERIALIZER.query("api_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_secrets_request( - resource_group_name: str, container_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/listSecrets", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url("container_app_name", container_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_get_auth_token_request( - resource_group_name: str, container_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/getAuthtoken", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url("container_app_name", container_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_start_request( - resource_group_name: str, container_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/start", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url( - "container_app_name", container_app_name, "str", pattern=r"^[-\w\._\(\)]+$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_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, container_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/stop", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url( - "container_app_name", container_app_name, "str", pattern=r"^[-\w\._\(\)]+$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_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 ContainerAppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`container_apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.ContainerApp"]: - """Get the Container Apps in a given subscription. - - Get the Container Apps in a given subscription. - - :return: An iterator like instance of either ContainerApp or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.ContainerApp] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerAppCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: 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.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ContainerAppCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.ContainerApp"]: - """Get the Container Apps in a given resource group. - - Get the Container Apps in a given resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :return: An iterator like instance of either ContainerApp or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.ContainerApp] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerAppCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: 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_resource_group_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ContainerAppCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get(self, resource_group_name: str, container_app_name: str, **kwargs: Any) -> _models.ContainerApp: - """Get the properties of a Container App. - - Get the properties of a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :return: ContainerApp or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ContainerApp - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerApp] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ContainerApp", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - container_app_name: str, - container_app_envelope: Union[_models.ContainerApp, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(container_app_envelope, (IOBase, bytes)): - _content = container_app_envelope - else: - _json = self._serialize.body(container_app_envelope, "ContainerApp") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - container_app_name=container_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.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - container_app_name: str, - container_app_envelope: _models.ContainerApp, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ContainerApp]: - """Create or update a Container App. - - Create or update a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param container_app_envelope: Properties used to create a container app. Required. - :type container_app_envelope: ~azure.mgmt.appcontainers.models.ContainerApp - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ContainerApp or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ContainerApp] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - container_app_name: str, - container_app_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ContainerApp]: - """Create or update a Container App. - - Create or update a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param container_app_envelope: Properties used to create a container app. Required. - :type container_app_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ContainerApp or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ContainerApp] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - container_app_name: str, - container_app_envelope: Union[_models.ContainerApp, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ContainerApp]: - """Create or update a Container App. - - Create or update a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param container_app_envelope: Properties used to create a container app. Is either a - ContainerApp type or a IO[bytes] type. Required. - :type container_app_envelope: ~azure.mgmt.appcontainers.models.ContainerApp or IO[bytes] - :return: An instance of LROPoller that returns either ContainerApp or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ContainerApp] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerApp] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - container_app_envelope=container_app_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerApp", pipeline_response.http_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.ContainerApp].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ContainerApp]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial(self, resource_group_name: str, container_app_name: str, **kwargs: Any) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_delete(self, resource_group_name: str, container_app_name: str, **kwargs: Any) -> LROPoller[None]: - """Delete a Container App. - - Delete a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_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._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=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 _update_initial( - self, - resource_group_name: str, - container_app_name: str, - container_app_envelope: Union[_models.ContainerApp, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(container_app_envelope, (IOBase, bytes)): - _content = container_app_envelope - else: - _json = self._serialize.body(container_app_envelope, "ContainerApp") - - _request = build_update_request( - resource_group_name=resource_group_name, - container_app_name=container_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.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - container_app_name: str, - container_app_envelope: _models.ContainerApp, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ContainerApp]: - """Update properties of a Container App. - - Patches a Container App using JSON Merge Patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param container_app_envelope: Properties of a Container App that need to be updated. Required. - :type container_app_envelope: ~azure.mgmt.appcontainers.models.ContainerApp - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ContainerApp or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ContainerApp] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - container_app_name: str, - container_app_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ContainerApp]: - """Update properties of a Container App. - - Patches a Container App using JSON Merge Patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param container_app_envelope: Properties of a Container App that need to be updated. Required. - :type container_app_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ContainerApp or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ContainerApp] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - container_app_name: str, - container_app_envelope: Union[_models.ContainerApp, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ContainerApp]: - """Update properties of a Container App. - - Patches a Container App using JSON Merge Patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param container_app_envelope: Properties of a Container App that need to be updated. Is either - a ContainerApp type or a IO[bytes] type. Required. - :type container_app_envelope: ~azure.mgmt.appcontainers.models.ContainerApp or IO[bytes] - :return: An instance of LROPoller that returns either ContainerApp or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ContainerApp] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerApp] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.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, - container_app_name=container_app_name, - container_app_envelope=container_app_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerApp", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ContainerApp].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ContainerApp]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_custom_host_name_analysis( - self, resource_group_name: str, container_app_name: str, custom_hostname: Optional[str] = None, **kwargs: Any - ) -> _models.CustomHostnameAnalysisResult: - """Analyzes a custom hostname for a Container App. - - Analyzes a custom hostname for a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param custom_hostname: Custom hostname. Default value is None. - :type custom_hostname: str - :return: CustomHostnameAnalysisResult or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.CustomHostnameAnalysisResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.CustomHostnameAnalysisResult] = kwargs.pop("cls", None) - - _request = build_list_custom_host_name_analysis_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - subscription_id=self._config.subscription_id, - custom_hostname=custom_hostname, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomHostnameAnalysisResult", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_secrets( - self, resource_group_name: str, container_app_name: str, **kwargs: Any - ) -> _models.SecretsCollection: - """List secrets for a container app. - - List secrets for a container app. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :return: SecretsCollection or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.SecretsCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.SecretsCollection] = kwargs.pop("cls", None) - - _request = build_list_secrets_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SecretsCollection", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_auth_token( - self, resource_group_name: str, container_app_name: str, **kwargs: Any - ) -> _models.ContainerAppAuthToken: - """Get auth token for a container app. - - Get auth token for a container app. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :return: ContainerAppAuthToken or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ContainerAppAuthToken - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerAppAuthToken] = kwargs.pop("cls", None) - - _request = build_get_auth_token_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ContainerAppAuthToken", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _start_initial(self, resource_group_name: str, container_app_name: str, **kwargs: Any) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_start( - self, resource_group_name: str, container_app_name: str, **kwargs: Any - ) -> LROPoller[_models.ContainerApp]: - """Start a container app. - - Start a container app. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :return: An instance of LROPoller that returns either ContainerApp or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ContainerApp] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerApp] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.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( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerApp", pipeline_response.http_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.ContainerApp].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ContainerApp]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _stop_initial(self, resource_group_name: str, container_app_name: str, **kwargs: Any) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_stop( - self, resource_group_name: str, container_app_name: str, **kwargs: Any - ) -> LROPoller[_models.ContainerApp]: - """Stop a container app. - - Stop a container app. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :return: An instance of LROPoller that returns either ContainerApp or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ContainerApp] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerApp] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.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( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerApp", pipeline_response.http_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.ContainerApp].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ContainerApp]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_revision_replicas_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_revision_replicas_operations.py deleted file mode 100644 index 9328667c7f11..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_revision_replicas_operations.py +++ /dev/null @@ -1,265 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -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 .._configuration import ContainerAppsAPIClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_replica_request( - resource_group_name: str, - container_app_name: str, - revision_name: str, - replica_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/replicas/{replicaName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), - "revisionName": _SERIALIZER.url("revision_name", revision_name, "str"), - "replicaName": _SERIALIZER.url("replica_name", replica_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_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_replicas_request( - resource_group_name: str, container_app_name: str, revision_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/replicas", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), - "revisionName": _SERIALIZER.url("revision_name", revision_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_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 ContainerAppsRevisionReplicasOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`container_apps_revision_replicas` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def get_replica( - self, resource_group_name: str, container_app_name: str, revision_name: str, replica_name: str, **kwargs: Any - ) -> _models.Replica: - """Get a replica for a Container App Revision. - - Get a replica for a Container App Revision. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param revision_name: Name of the Container App Revision. Required. - :type revision_name: str - :param replica_name: Name of the Container App Revision Replica. Required. - :type replica_name: str - :return: Replica or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.Replica - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.Replica] = kwargs.pop("cls", None) - - _request = build_get_replica_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - revision_name=revision_name, - replica_name=replica_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Replica", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_replicas( - self, resource_group_name: str, container_app_name: str, revision_name: str, **kwargs: Any - ) -> _models.ReplicaCollection: - """List replicas for a Container App Revision. - - List replicas for a Container App Revision. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param revision_name: Name of the Container App Revision. Required. - :type revision_name: str - :return: ReplicaCollection or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ReplicaCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ReplicaCollection] = kwargs.pop("cls", None) - - _request = build_list_replicas_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - revision_name=revision_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ReplicaCollection", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_revisions_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_revisions_operations.py deleted file mode 100644 index e03b08b8da60..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_revisions_operations.py +++ /dev/null @@ -1,578 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -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 .._configuration import ContainerAppsAPIClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_revisions_request( - resource_group_name: str, - container_app_name: str, - subscription_id: str, - *, - filter: 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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url("container_app_name", container_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 filter is not None: - _params["$filter"] = _SERIALIZER.query("filter", filter, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_revision_request( - resource_group_name: str, container_app_name: str, revision_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), - "revisionName": _SERIALIZER.url("revision_name", revision_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_activate_revision_request( - resource_group_name: str, container_app_name: str, revision_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/activate", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), - "revisionName": _SERIALIZER.url("revision_name", revision_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_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_deactivate_revision_request( - resource_group_name: str, container_app_name: str, revision_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/deactivate", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), - "revisionName": _SERIALIZER.url("revision_name", revision_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_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_revision_request( - resource_group_name: str, container_app_name: str, revision_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/restart", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), - "revisionName": _SERIALIZER.url("revision_name", revision_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_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 ContainerAppsRevisionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`container_apps_revisions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_revisions( - self, resource_group_name: str, container_app_name: str, filter: Optional[str] = None, **kwargs: Any - ) -> ItemPaged["_models.Revision"]: - """Get the Revisions for a given Container App. - - Get the Revisions for a given Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App for which Revisions are needed. Required. - :type container_app_name: str - :param filter: The filter to apply on the operation. Default value is None. - :type filter: str - :return: An iterator like instance of either Revision or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.Revision] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.RevisionCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_revisions_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - subscription_id=self._config.subscription_id, - filter=filter, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("RevisionCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_revision( - self, resource_group_name: str, container_app_name: str, revision_name: str, **kwargs: Any - ) -> _models.Revision: - """Get a revision of a Container App. - - Get a revision of a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param revision_name: Name of the Container App Revision. Required. - :type revision_name: str - :return: Revision or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.Revision - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.Revision] = kwargs.pop("cls", None) - - _request = build_get_revision_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - revision_name=revision_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Revision", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def activate_revision( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, container_app_name: str, revision_name: str, **kwargs: Any - ) -> None: - """Activates a revision for a Container App. - - Activates a revision for a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param revision_name: Name of the Container App Revision. Required. - :type revision_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_activate_revision_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - revision_name=revision_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def deactivate_revision( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, container_app_name: str, revision_name: str, **kwargs: Any - ) -> None: - """Deactivates a revision for a Container App. - - Deactivates a revision for a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param revision_name: Name of the Container App Revision. Required. - :type revision_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_deactivate_revision_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - revision_name=revision_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def restart_revision( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, container_app_name: str, revision_name: str, **kwargs: Any - ) -> None: - """Restarts a revision for a Container App. - - Restarts a revision for a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param revision_name: Name of the Container App Revision. Required. - :type revision_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_revision_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - revision_name=revision_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_session_pools_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_session_pools_operations.py deleted file mode 100644 index 2da205e4523c..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_session_pools_operations.py +++ /dev/null @@ -1,1014 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression,too-many-lines -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from .._configuration import ContainerAppsAPIClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.App/sessionPools") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_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_by_resource_group_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/sessionPools", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_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, session_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/sessionPools/{sessionPoolName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "sessionPoolName": _SERIALIZER.url( - "session_pool_name", session_pool_name, "str", max_length=63, min_length=3, 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, session_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", "2026-01-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.App/sessionPools/{sessionPoolName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "sessionPoolName": _SERIALIZER.url( - "session_pool_name", session_pool_name, "str", max_length=63, min_length=3, 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_request( - resource_group_name: str, session_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", "2026-01-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.App/sessionPools/{sessionPoolName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "sessionPoolName": _SERIALIZER.url( - "session_pool_name", session_pool_name, "str", max_length=63, min_length=3, 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, session_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/sessionPools/{sessionPoolName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "sessionPoolName": _SERIALIZER.url( - "session_pool_name", session_pool_name, "str", max_length=63, min_length=3, 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 ContainerAppsSessionPoolsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`container_apps_session_pools` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.SessionPool"]: - """Get the session pools in a given subscription. - - Get the session pools in a given subscription. - - :return: An iterator like instance of either SessionPool or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.SessionPool] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.SessionPoolCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: 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.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("SessionPoolCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.SessionPool"]: - """Get the session pools in a given resource group of a subscription. - - Get the session pools in a given resource group of a subscription. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :return: An iterator like instance of either SessionPool or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.SessionPool] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.SessionPoolCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: 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_resource_group_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("SessionPoolCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get(self, resource_group_name: str, session_pool_name: str, **kwargs: Any) -> _models.SessionPool: - """Get the properties of a session pool. - - Get the properties of a session pool. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param session_pool_name: Name of the session pool. Required. - :type session_pool_name: str - :return: SessionPool or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.SessionPool - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.SessionPool] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - session_pool_name=session_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SessionPool", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - session_pool_name: str, - session_pool_envelope: Union[_models.SessionPool, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(session_pool_envelope, (IOBase, bytes)): - _content = session_pool_envelope - else: - _json = self._serialize.body(session_pool_envelope, "SessionPool") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - session_pool_name=session_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.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - session_pool_name: str, - session_pool_envelope: _models.SessionPool, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.SessionPool]: - """Create or update a session pool. - - Create or update a session pool with the given properties. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param session_pool_name: Name of the session pool. Required. - :type session_pool_name: str - :param session_pool_envelope: Properties used to create a session pool. Required. - :type session_pool_envelope: ~azure.mgmt.appcontainers.models.SessionPool - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either SessionPool or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.SessionPool] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - session_pool_name: str, - session_pool_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.SessionPool]: - """Create or update a session pool. - - Create or update a session pool with the given properties. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param session_pool_name: Name of the session pool. Required. - :type session_pool_name: str - :param session_pool_envelope: Properties used to create a session pool. Required. - :type session_pool_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either SessionPool or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.SessionPool] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - session_pool_name: str, - session_pool_envelope: Union[_models.SessionPool, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.SessionPool]: - """Create or update a session pool. - - Create or update a session pool with the given properties. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param session_pool_name: Name of the session pool. Required. - :type session_pool_name: str - :param session_pool_envelope: Properties used to create a session pool. Is either a SessionPool - type or a IO[bytes] type. Required. - :type session_pool_envelope: ~azure.mgmt.appcontainers.models.SessionPool or IO[bytes] - :return: An instance of LROPoller that returns either SessionPool or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.SessionPool] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.SessionPool] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - session_pool_name=session_pool_name, - session_pool_envelope=session_pool_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("SessionPool", pipeline_response.http_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.SessionPool].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.SessionPool]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_initial( - self, - resource_group_name: str, - session_pool_name: str, - session_pool_envelope: Union[_models.SessionPoolUpdatableProperties, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(session_pool_envelope, (IOBase, bytes)): - _content = session_pool_envelope - else: - _json = self._serialize.body(session_pool_envelope, "SessionPoolUpdatableProperties") - - _request = build_update_request( - resource_group_name=resource_group_name, - session_pool_name=session_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.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - session_pool_name: str, - session_pool_envelope: _models.SessionPoolUpdatableProperties, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.SessionPool]: - """Update properties of a session pool. - - Patches a session pool using JSON merge patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param session_pool_name: Name of the session pool. Required. - :type session_pool_name: str - :param session_pool_envelope: Properties used to create a session pool. Required. - :type session_pool_envelope: ~azure.mgmt.appcontainers.models.SessionPoolUpdatableProperties - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either SessionPool or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.SessionPool] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - session_pool_name: str, - session_pool_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.SessionPool]: - """Update properties of a session pool. - - Patches a session pool using JSON merge patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param session_pool_name: Name of the session pool. Required. - :type session_pool_name: str - :param session_pool_envelope: Properties used to create a session pool. Required. - :type session_pool_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either SessionPool or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.SessionPool] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - session_pool_name: str, - session_pool_envelope: Union[_models.SessionPoolUpdatableProperties, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.SessionPool]: - """Update properties of a session pool. - - Patches a session pool using JSON merge patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param session_pool_name: Name of the session pool. Required. - :type session_pool_name: str - :param session_pool_envelope: Properties used to create a session pool. Is either a - SessionPoolUpdatableProperties type or a IO[bytes] type. Required. - :type session_pool_envelope: ~azure.mgmt.appcontainers.models.SessionPoolUpdatableProperties or - IO[bytes] - :return: An instance of LROPoller that returns either SessionPool or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.SessionPool] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.SessionPool] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.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, - session_pool_name=session_pool_name, - session_pool_envelope=session_pool_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("SessionPool", pipeline_response.http_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.SessionPool].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.SessionPool]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial(self, resource_group_name: str, session_pool_name: str, **kwargs: Any) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - session_pool_name=session_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: 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]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_delete(self, resource_group_name: str, session_pool_name: str, **kwargs: Any) -> LROPoller[None]: - """Delete a session pool. - - Delete the session pool with the given name. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param session_pool_name: Name of the session pool. Required. - :type session_pool_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - session_pool_name=session_pool_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=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 diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_source_controls_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_source_controls_operations.py deleted file mode 100644 index db5bd720f3d6..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_container_apps_source_controls_operations.py +++ /dev/null @@ -1,687 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from .._configuration import ContainerAppsAPIClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_by_container_app_request( - resource_group_name: str, container_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url("container_app_name", container_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) - - -def build_get_request( - resource_group_name: str, container_app_name: str, source_control_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols/{sourceControlName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), - "sourceControlName": _SERIALIZER.url("source_control_name", source_control_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, container_app_name: str, source_control_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-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.App/containerApps/{containerAppName}/sourcecontrols/{sourceControlName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), - "sourceControlName": _SERIALIZER.url("source_control_name", source_control_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, container_app_name: str, source_control_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols/{sourceControlName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), - "sourceControlName": _SERIALIZER.url("source_control_name", source_control_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_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 ContainerAppsSourceControlsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`container_apps_source_controls` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_container_app( - self, resource_group_name: str, container_app_name: str, **kwargs: Any - ) -> ItemPaged["_models.SourceControl"]: - """Get the Container App SourceControls in a given resource group. - - Get the Container App SourceControls in a given resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :return: An iterator like instance of either SourceControl or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.SourceControl] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.SourceControlCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: 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_container_app_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("SourceControlCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, container_app_name: str, source_control_name: str, **kwargs: Any - ) -> _models.SourceControl: - """Get a SourceControl of a Container App. - - Get a SourceControl of a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param source_control_name: Name of the Container App SourceControl. Required. - :type source_control_name: str - :return: SourceControl or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.SourceControl - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.SourceControl] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - source_control_name=source_control_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SourceControl", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - container_app_name: str, - source_control_name: str, - source_control_envelope: Union[_models.SourceControl, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(source_control_envelope, (IOBase, bytes)): - _content = source_control_envelope - else: - _json = self._serialize.body(source_control_envelope, "SourceControl") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - source_control_name=source_control_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - container_app_name: str, - source_control_name: str, - source_control_envelope: _models.SourceControl, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.SourceControl]: - """Create or update the SourceControl for a Container App. - - Create or update the SourceControl for a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param source_control_name: Name of the Container App SourceControl. Required. - :type source_control_name: str - :param source_control_envelope: Properties used to create a Container App SourceControl. - Required. - :type source_control_envelope: ~azure.mgmt.appcontainers.models.SourceControl - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either SourceControl or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.SourceControl] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - container_app_name: str, - source_control_name: str, - source_control_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.SourceControl]: - """Create or update the SourceControl for a Container App. - - Create or update the SourceControl for a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param source_control_name: Name of the Container App SourceControl. Required. - :type source_control_name: str - :param source_control_envelope: Properties used to create a Container App SourceControl. - Required. - :type source_control_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either SourceControl or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.SourceControl] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - container_app_name: str, - source_control_name: str, - source_control_envelope: Union[_models.SourceControl, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.SourceControl]: - """Create or update the SourceControl for a Container App. - - Create or update the SourceControl for a Container App. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param source_control_name: Name of the Container App SourceControl. Required. - :type source_control_name: str - :param source_control_envelope: Properties used to create a Container App SourceControl. Is - either a SourceControl type or a IO[bytes] type. Required. - :type source_control_envelope: ~azure.mgmt.appcontainers.models.SourceControl or IO[bytes] - :return: An instance of LROPoller that returns either SourceControl or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.SourceControl] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.SourceControl] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - source_control_name=source_control_name, - source_control_envelope=source_control_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("SourceControl", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.SourceControl].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.SourceControl]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( - self, resource_group_name: str, container_app_name: str, source_control_name: str, **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - source_control_name=source_control_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, container_app_name: str, source_control_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete a Container App SourceControl. - - Delete a Container App SourceControl. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param source_control_name: Name of the Container App SourceControl. Required. - :type source_control_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - source_control_name=source_control_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - 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/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_dapr_components_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_dapr_components_operations.py deleted file mode 100644 index c20031182449..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_dapr_components_operations.py +++ /dev/null @@ -1,664 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -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 .._configuration import ContainerAppsAPIClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_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, environment_name: str, component_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), - "componentName": _SERIALIZER.url("component_name", component_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, environment_name: str, component_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-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.App/managedEnvironments/{environmentName}/daprComponents/{componentName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), - "componentName": _SERIALIZER.url("component_name", component_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, environment_name: str, component_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), - "componentName": _SERIALIZER.url("component_name", component_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_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_secrets_request( - resource_group_name: str, environment_name: str, component_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}/listSecrets", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), - "componentName": _SERIALIZER.url("component_name", component_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_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 DaprComponentsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`dapr_components` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list( - self, resource_group_name: str, environment_name: str, **kwargs: Any - ) -> ItemPaged["_models.DaprComponent"]: - """Get the Dapr Components for a managed environment. - - Get the Dapr Components for a managed environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :return: An iterator like instance of either DaprComponent or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.DaprComponent] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DaprComponentsCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DaprComponentsCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, environment_name: str, component_name: str, **kwargs: Any - ) -> _models.DaprComponent: - """Get a dapr component. - - Get a dapr component. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :return: DaprComponent or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.DaprComponent - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DaprComponent] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - component_name=component_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DaprComponent", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def create_or_update( - self, - resource_group_name: str, - environment_name: str, - component_name: str, - dapr_component_envelope: _models.DaprComponent, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.DaprComponent: - """Creates or updates a Dapr Component. - - Creates or updates a Dapr Component in a Managed Environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :param dapr_component_envelope: Configuration details of the Dapr Component. Required. - :type dapr_component_envelope: ~azure.mgmt.appcontainers.models.DaprComponent - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: DaprComponent or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.DaprComponent - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update( - self, - resource_group_name: str, - environment_name: str, - component_name: str, - dapr_component_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.DaprComponent: - """Creates or updates a Dapr Component. - - Creates or updates a Dapr Component in a Managed Environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :param dapr_component_envelope: Configuration details of the Dapr Component. Required. - :type dapr_component_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: DaprComponent or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.DaprComponent - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update( - self, - resource_group_name: str, - environment_name: str, - component_name: str, - dapr_component_envelope: Union[_models.DaprComponent, IO[bytes]], - **kwargs: Any - ) -> _models.DaprComponent: - """Creates or updates a Dapr Component. - - Creates or updates a Dapr Component in a Managed Environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :param dapr_component_envelope: Configuration details of the Dapr Component. Is either a - DaprComponent type or a IO[bytes] type. Required. - :type dapr_component_envelope: ~azure.mgmt.appcontainers.models.DaprComponent or IO[bytes] - :return: DaprComponent or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.DaprComponent - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DaprComponent] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(dapr_component_envelope, (IOBase, bytes)): - _content = dapr_component_envelope - else: - _json = self._serialize.body(dapr_component_envelope, "DaprComponent") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - component_name=component_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DaprComponent", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def delete( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, environment_name: str, component_name: str, **kwargs: Any - ) -> None: - """Delete a Dapr Component. - - Delete a Dapr Component from a Managed Environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - component_name=component_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = 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) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def list_secrets( - self, resource_group_name: str, environment_name: str, component_name: str, **kwargs: Any - ) -> _models.DaprSecretsCollection: - """List secrets for a dapr component. - - List secrets for a dapr component. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :return: DaprSecretsCollection or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.DaprSecretsCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DaprSecretsCollection] = kwargs.pop("cls", None) - - _request = build_list_secrets_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - component_name=component_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DaprSecretsCollection", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_http_route_config_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_http_route_config_operations.py deleted file mode 100644 index 0dc1aed8049d..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_http_route_config_operations.py +++ /dev/null @@ -1,826 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from .._configuration import ContainerAppsAPIClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, environment_name: str, http_route_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/httpRouteConfigs/{httpRouteName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str", pattern=r"^[-\w\._\(\)]+$"), - "httpRouteName": _SERIALIZER.url( - "http_route_name", http_route_name, "str", max_length=63, min_length=3, 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, environment_name: str, http_route_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-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.App/managedEnvironments/{environmentName}/httpRouteConfigs/{httpRouteName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str", pattern=r"^[-\w\._\(\)]+$"), - "httpRouteName": _SERIALIZER.url( - "http_route_name", http_route_name, "str", max_length=63, min_length=3, 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_request( - resource_group_name: str, environment_name: str, http_route_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-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.App/managedEnvironments/{environmentName}/httpRouteConfigs/{httpRouteName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), - "httpRouteName": _SERIALIZER.url("http_route_name", http_route_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_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, environment_name: str, http_route_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/httpRouteConfigs/{httpRouteName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str", pattern=r"^[-\w\._\(\)]+$"), - "httpRouteName": _SERIALIZER.url( - "http_route_name", http_route_name, "str", max_length=63, min_length=3, 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, environment_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/httpRouteConfigs", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str", pattern=r"^[-\w\._\(\)]+$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_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 HttpRouteConfigOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`http_route_config` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def get( - self, resource_group_name: str, environment_name: str, http_route_name: str, **kwargs: Any - ) -> _models.HttpRouteConfig: - """Get the specified Http Route Config. - - Get the specified Http Route Config. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param http_route_name: Name of the Http Route Config Resource. Required. - :type http_route_name: str - :return: HttpRouteConfig or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.HttpRouteConfig - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.HttpRouteConfig] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - http_route_name=http_route_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("HttpRouteConfig", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def create_or_update( - self, - resource_group_name: str, - environment_name: str, - http_route_name: str, - http_route_config_envelope: Optional[_models.HttpRouteConfig] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.HttpRouteConfig: - """Create or Update a Http Route Config. - - Create or Update a Http Route Config. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param http_route_name: Name of the Http Route Config Resource. Required. - :type http_route_name: str - :param http_route_config_envelope: Http Route Config to be created or updated. Default value is - None. - :type http_route_config_envelope: ~azure.mgmt.appcontainers.models.HttpRouteConfig - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: HttpRouteConfig or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.HttpRouteConfig - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update( - self, - resource_group_name: str, - environment_name: str, - http_route_name: str, - http_route_config_envelope: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.HttpRouteConfig: - """Create or Update a Http Route Config. - - Create or Update a Http Route Config. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param http_route_name: Name of the Http Route Config Resource. Required. - :type http_route_name: str - :param http_route_config_envelope: Http Route Config to be created or updated. Default value is - None. - :type http_route_config_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: HttpRouteConfig or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.HttpRouteConfig - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update( - self, - resource_group_name: str, - environment_name: str, - http_route_name: str, - http_route_config_envelope: Optional[Union[_models.HttpRouteConfig, IO[bytes]]] = None, - **kwargs: Any - ) -> _models.HttpRouteConfig: - """Create or Update a Http Route Config. - - Create or Update a Http Route Config. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param http_route_name: Name of the Http Route Config Resource. Required. - :type http_route_name: str - :param http_route_config_envelope: Http Route Config to be created or updated. Is either a - HttpRouteConfig type or a IO[bytes] type. Default value is None. - :type http_route_config_envelope: ~azure.mgmt.appcontainers.models.HttpRouteConfig or IO[bytes] - :return: HttpRouteConfig or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.HttpRouteConfig - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if http_route_config_envelope else None - cls: ClsType[_models.HttpRouteConfig] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" if http_route_config_envelope else None - _json = None - _content = None - if isinstance(http_route_config_envelope, (IOBase, bytes)): - _content = http_route_config_envelope - else: - if http_route_config_envelope is not None: - _json = self._serialize.body(http_route_config_envelope, "HttpRouteConfig") - else: - _json = None - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - http_route_name=http_route_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("HttpRouteConfig", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def update( - self, - resource_group_name: str, - environment_name: str, - http_route_name: str, - http_route_config_envelope: _models.HttpRouteConfig, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.HttpRouteConfig: - """Update tags of a Http Route Config object. - - Patches a Http Route Config resource. Only patching of tags is supported. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param http_route_name: Name of the Http Route Config Resource. Required. - :type http_route_name: str - :param http_route_config_envelope: Properties of http route config that need to be updated. - Required. - :type http_route_config_envelope: ~azure.mgmt.appcontainers.models.HttpRouteConfig - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: HttpRouteConfig or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.HttpRouteConfig - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def update( - self, - resource_group_name: str, - environment_name: str, - http_route_name: str, - http_route_config_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.HttpRouteConfig: - """Update tags of a Http Route Config object. - - Patches a Http Route Config resource. Only patching of tags is supported. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param http_route_name: Name of the Http Route Config Resource. Required. - :type http_route_name: str - :param http_route_config_envelope: Properties of http route config that need to be updated. - Required. - :type http_route_config_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: HttpRouteConfig or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.HttpRouteConfig - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def update( - self, - resource_group_name: str, - environment_name: str, - http_route_name: str, - http_route_config_envelope: Union[_models.HttpRouteConfig, IO[bytes]], - **kwargs: Any - ) -> _models.HttpRouteConfig: - """Update tags of a Http Route Config object. - - Patches a Http Route Config resource. Only patching of tags is supported. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param http_route_name: Name of the Http Route Config Resource. Required. - :type http_route_name: str - :param http_route_config_envelope: Properties of http route config that need to be updated. Is - either a HttpRouteConfig type or a IO[bytes] type. Required. - :type http_route_config_envelope: ~azure.mgmt.appcontainers.models.HttpRouteConfig or IO[bytes] - :return: HttpRouteConfig or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.HttpRouteConfig - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.HttpRouteConfig] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(http_route_config_envelope, (IOBase, bytes)): - _content = http_route_config_envelope - else: - _json = self._serialize.body(http_route_config_envelope, "HttpRouteConfig") - - _request = build_update_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - http_route_name=http_route_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("HttpRouteConfig", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _delete_initial( - self, resource_group_name: str, environment_name: str, http_route_name: str, **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - http_route_name=http_route_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: 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]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["location"] = self._deserialize("str", response.headers.get("location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, environment_name: str, http_route_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Deletes the specified Http Route Config. - - Deletes the specified Http Route Config. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param http_route_name: Name of the Http Route Config Resource. Required. - :type http_route_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - environment_name=environment_name, - http_route_name=http_route_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - 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, environment_name: str, **kwargs: Any - ) -> ItemPaged["_models.HttpRouteConfig"]: - """List the Http Route Configs in a given managed environment. - - List the Http Route Configs in a given managed environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :return: An iterator like instance of either HttpRouteConfig or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.HttpRouteConfig] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.HttpRouteConfigCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("HttpRouteConfigCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_java_components_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_java_components_operations.py deleted file mode 100644 index 63346d3320c9..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_java_components_operations.py +++ /dev/null @@ -1,946 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from .._configuration import ContainerAppsAPIClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/javaComponents", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str", pattern=r"^[-\w\._\(\)]+$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_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, environment_name: str, name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/javaComponents/{name}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str", pattern=r"^[-\w\._\(\)]+$"), - "name": _SERIALIZER.url("name", name, "str", pattern=r"^[-\w\._\(\)]+$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, environment_name: str, name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-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.App/managedEnvironments/{environmentName}/javaComponents/{name}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str", pattern=r"^[-\w\._\(\)]+$"), - "name": _SERIALIZER.url("name", name, "str", pattern=r"^[-\w\._\(\)]+$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_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_request( - resource_group_name: str, environment_name: str, name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-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.App/managedEnvironments/{environmentName}/javaComponents/{name}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str", pattern=r"^[-\w\._\(\)]+$"), - "name": _SERIALIZER.url("name", name, "str", pattern=r"^[-\w\._\(\)]+$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_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, environment_name: str, name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/javaComponents/{name}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str", pattern=r"^[-\w\._\(\)]+$"), - "name": _SERIALIZER.url("name", name, "str", pattern=r"^[-\w\._\(\)]+$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_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 JavaComponentsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`java_components` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list( - self, resource_group_name: str, environment_name: str, **kwargs: Any - ) -> ItemPaged["_models.JavaComponent"]: - """Get the Java Components for a managed environment. - - Get the Java Components for a managed environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :return: An iterator like instance of either JavaComponent or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.JavaComponent] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.JavaComponentsCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("JavaComponentsCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get(self, resource_group_name: str, environment_name: str, name: str, **kwargs: Any) -> _models.JavaComponent: - """Get a Java Component. - - Get a Java Component. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param name: Name of the Java Component. Required. - :type name: str - :return: JavaComponent or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.JavaComponent - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.JavaComponent] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - name=name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("JavaComponent", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - environment_name: str, - name: str, - java_component_envelope: Union[_models.JavaComponent, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(java_component_envelope, (IOBase, bytes)): - _content = java_component_envelope - else: - _json = self._serialize.body(java_component_envelope, "JavaComponent") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - name=name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - environment_name: str, - name: str, - java_component_envelope: _models.JavaComponent, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.JavaComponent]: - """Creates or updates a Java Component. - - Creates or updates a Java Component in a Managed Environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param name: Name of the Java Component. Required. - :type name: str - :param java_component_envelope: Configuration details of the Java Component. Required. - :type java_component_envelope: ~azure.mgmt.appcontainers.models.JavaComponent - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either JavaComponent or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.JavaComponent] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - environment_name: str, - name: str, - java_component_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.JavaComponent]: - """Creates or updates a Java Component. - - Creates or updates a Java Component in a Managed Environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param name: Name of the Java Component. Required. - :type name: str - :param java_component_envelope: Configuration details of the Java Component. Required. - :type java_component_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either JavaComponent or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.JavaComponent] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - environment_name: str, - name: str, - java_component_envelope: Union[_models.JavaComponent, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.JavaComponent]: - """Creates or updates a Java Component. - - Creates or updates a Java Component in a Managed Environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param name: Name of the Java Component. Required. - :type name: str - :param java_component_envelope: Configuration details of the Java Component. Is either a - JavaComponent type or a IO[bytes] type. Required. - :type java_component_envelope: ~azure.mgmt.appcontainers.models.JavaComponent or IO[bytes] - :return: An instance of LROPoller that returns either JavaComponent or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.JavaComponent] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.JavaComponent] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - environment_name=environment_name, - name=name, - java_component_envelope=java_component_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("JavaComponent", pipeline_response.http_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.JavaComponent].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.JavaComponent]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_initial( - self, - resource_group_name: str, - environment_name: str, - name: str, - java_component_envelope: Union[_models.JavaComponent, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(java_component_envelope, (IOBase, bytes)): - _content = java_component_envelope - else: - _json = self._serialize.body(java_component_envelope, "JavaComponent") - - _request = build_update_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - name=name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - environment_name: str, - name: str, - java_component_envelope: _models.JavaComponent, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.JavaComponent]: - """Update properties of a Java Component. - - Patches a Java Component using JSON Merge Patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param name: Name of the Java Component. Required. - :type name: str - :param java_component_envelope: Configuration details of the Java Component. Required. - :type java_component_envelope: ~azure.mgmt.appcontainers.models.JavaComponent - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either JavaComponent or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.JavaComponent] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - environment_name: str, - name: str, - java_component_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.JavaComponent]: - """Update properties of a Java Component. - - Patches a Java Component using JSON Merge Patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param name: Name of the Java Component. Required. - :type name: str - :param java_component_envelope: Configuration details of the Java Component. Required. - :type java_component_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either JavaComponent or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.JavaComponent] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - environment_name: str, - name: str, - java_component_envelope: Union[_models.JavaComponent, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.JavaComponent]: - """Update properties of a Java Component. - - Patches a Java Component using JSON Merge Patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param name: Name of the Java Component. Required. - :type name: str - :param java_component_envelope: Configuration details of the Java Component. Is either a - JavaComponent type or a IO[bytes] type. Required. - :type java_component_envelope: ~azure.mgmt.appcontainers.models.JavaComponent or IO[bytes] - :return: An instance of LROPoller that returns either JavaComponent or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.JavaComponent] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.JavaComponent] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.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, - environment_name=environment_name, - name=name, - java_component_envelope=java_component_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("JavaComponent", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.JavaComponent].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.JavaComponent]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( - self, resource_group_name: str, environment_name: str, name: str, **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - name=name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: 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]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, environment_name: str, name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete. - - Delete a Java Component. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param name: Name of the Java Component. Required. - :type name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - environment_name=environment_name, - name=name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=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 diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_jobs_executions_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_jobs_executions_operations.py deleted file mode 100644 index d6a4a3614f13..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_jobs_executions_operations.py +++ /dev/null @@ -1,185 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -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 .._configuration import ContainerAppsAPIClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, job_name: str, subscription_id: str, *, filter: 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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/executions", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "jobName": _SERIALIZER.url("job_name", job_name, "str", pattern=r"^[-\w\._\(\)]+$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if filter is not None: - _params["$filter"] = _SERIALIZER.query("filter", filter, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class JobsExecutionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`jobs_executions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list( - self, resource_group_name: str, job_name: str, filter: Optional[str] = None, **kwargs: Any - ) -> ItemPaged["_models.JobExecution"]: - """Get a Container Apps Job's executions. - - Get a Container Apps Job's executions. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :param filter: The filter to apply on the operation. Default value is None. - :type filter: str - :return: An iterator like instance of either JobExecution or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.JobExecution] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerAppJobExecutions] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - job_name=job_name, - subscription_id=self._config.subscription_id, - filter=filter, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ContainerAppJobExecutions", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_jobs_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_jobs_operations.py deleted file mode 100644 index 396f5be50f50..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_jobs_operations.py +++ /dev/null @@ -1,1953 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression,too-many-lines -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from .._configuration import ContainerAppsAPIClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_detectors_request( - resource_group_name: str, job_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/detectors", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "jobName": _SERIALIZER.url("job_name", job_name, "str", pattern=r"^[-\w\._\(\)]+$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_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_detector_request( - resource_group_name: str, job_name: str, detector_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/detectors/{detectorName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "jobName": _SERIALIZER.url("job_name", job_name, "str", pattern=r"^[-\w\._\(\)]+$"), - "detectorName": _SERIALIZER.url("detector_name", detector_name, "str", pattern=r"^[-\w\._\(\)]+$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_proxy_get_request( - resource_group_name: str, job_name: str, api_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/detectorProperties/{apiName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "jobName": _SERIALIZER.url("job_name", job_name, "str", pattern=r"^[-\w\._\(\)]+$"), - "apiName": _SERIALIZER.url("api_name", api_name, "str", pattern=r"^[-\w\._]+$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_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_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.App/jobs") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_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_by_resource_group_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_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, job_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "jobName": _SERIALIZER.url("job_name", job_name, "str", pattern=r"^[-\w\._\(\)]+$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, job_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-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.App/jobs/{jobName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "jobName": _SERIALIZER.url("job_name", job_name, "str", pattern=r"^[-\w\._\(\)]+$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request(resource_group_name: str, job_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "jobName": _SERIALIZER.url("job_name", job_name, "str", pattern=r"^[-\w\._\(\)]+$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_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, job_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-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.App/jobs/{jobName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "jobName": _SERIALIZER.url("job_name", job_name, "str", pattern=r"^[-\w\._\(\)]+$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_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_start_request(resource_group_name: str, job_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-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.App/jobs/{jobName}/start", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "jobName": _SERIALIZER.url("job_name", job_name, "str", pattern=r"^[-\w\._\(\)]+$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_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_stop_execution_request( - resource_group_name: str, job_name: str, job_execution_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/executions/{jobExecutionName}/stop", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "jobName": _SERIALIZER.url("job_name", job_name, "str", pattern=r"^[-\w\._\(\)]+$"), - "jobExecutionName": _SERIALIZER.url( - "job_execution_name", job_execution_name, "str", pattern=r"^[-\w\._\(\)]+$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_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_multiple_executions_request( - resource_group_name: str, job_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/stop", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "jobName": _SERIALIZER.url("job_name", job_name, "str", pattern=r"^[-\w\._\(\)]+$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_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_secrets_request( - resource_group_name: str, job_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/listSecrets", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "jobName": _SERIALIZER.url("job_name", job_name, "str", pattern=r"^[-\w\._\(\)]+$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_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 JobsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`jobs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_detectors( - self, resource_group_name: str, job_name: str, **kwargs: Any - ) -> ItemPaged["_models.Diagnostics"]: - """Get the list of diagnostics for a given Container App Job. - - Get the list of diagnostics for a Container App Job. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :return: An iterator like instance of either Diagnostics or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.Diagnostics] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DiagnosticsCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_detectors_request( - resource_group_name=resource_group_name, - job_name=job_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DiagnosticsCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_detector( - self, resource_group_name: str, job_name: str, detector_name: str, **kwargs: Any - ) -> _models.Diagnostics: - """Get the diagnostics data for a given Container App Job. - - Get the diagnostics data for a Container App Job. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :param detector_name: Name of the Container App Job detector. Required. - :type detector_name: str - :return: Diagnostics or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.Diagnostics - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.Diagnostics] = kwargs.pop("cls", None) - - _request = build_get_detector_request( - resource_group_name=resource_group_name, - job_name=job_name, - detector_name=detector_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Diagnostics", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def proxy_get(self, resource_group_name: str, job_name: str, api_name: str, **kwargs: Any) -> _models.Job: - """Get the properties of a Container App Job. - - Get the properties of a Container App Job. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :param api_name: Proxy API Name for Container App Job. Required. - :type api_name: str - :return: Job or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.Job - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.Job] = kwargs.pop("cls", None) - - _request = build_proxy_get_request( - resource_group_name=resource_group_name, - job_name=job_name, - api_name=api_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Job", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.Job"]: - """Get the Container Apps Jobs in a given subscription. - - Get the Container Apps Jobs in a given subscription. - - :return: An iterator like instance of either Job or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.Job] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.JobsCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: 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.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("JobsCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.Job"]: - """Get the Container Apps Jobs in a given resource group. - - Get the Container Apps Jobs in a given resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :return: An iterator like instance of either Job or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.Job] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.JobsCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: 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_resource_group_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("JobsCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get(self, resource_group_name: str, job_name: str, **kwargs: Any) -> _models.Job: - """Get the properties of a Container Apps Job. - - Get the properties of a Container Apps Job. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :return: Job or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.Job - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.Job] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - job_name=job_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Job", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, resource_group_name: str, job_name: str, job_envelope: Union[_models.Job, IO[bytes]], **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(job_envelope, (IOBase, bytes)): - _content = job_envelope - else: - _json = self._serialize.body(job_envelope, "Job") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - job_name=job_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - job_name: str, - job_envelope: _models.Job, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.Job]: - """Create or Update a Container Apps Job. - - Create or Update a Container Apps Job. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :param job_envelope: Properties used to create a container apps job. Required. - :type job_envelope: ~azure.mgmt.appcontainers.models.Job - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either Job or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.Job] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - job_name: str, - job_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.Job]: - """Create or Update a Container Apps Job. - - Create or Update a Container Apps Job. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :param job_envelope: Properties used to create a container apps job. Required. - :type job_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either Job or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.Job] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, resource_group_name: str, job_name: str, job_envelope: Union[_models.Job, IO[bytes]], **kwargs: Any - ) -> LROPoller[_models.Job]: - """Create or Update a Container Apps Job. - - Create or Update a Container Apps Job. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :param job_envelope: Properties used to create a container apps job. Is either a Job type or a - IO[bytes] type. Required. - :type job_envelope: ~azure.mgmt.appcontainers.models.Job or IO[bytes] - :return: An instance of LROPoller that returns either Job or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.Job] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Job] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - job_name=job_name, - job_envelope=job_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("Job", pipeline_response.http_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.Job].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.Job](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _delete_initial(self, resource_group_name: str, job_name: str, **kwargs: Any) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - job_name=job_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_delete(self, resource_group_name: str, job_name: str, **kwargs: Any) -> LROPoller[None]: - """Delete a Container Apps Job. - - Delete a Container Apps Job. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - job_name=job_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=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 _update_initial( - self, - resource_group_name: str, - job_name: str, - job_envelope: Union[_models.JobPatchProperties, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(job_envelope, (IOBase, bytes)): - _content = job_envelope - else: - _json = self._serialize.body(job_envelope, "JobPatchProperties") - - _request = build_update_request( - resource_group_name=resource_group_name, - job_name=job_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - job_name: str, - job_envelope: _models.JobPatchProperties, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.Job]: - """Update properties of a Container Apps Job. - - Patches a Container Apps Job using JSON Merge Patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :param job_envelope: Properties used to create a container apps job. Required. - :type job_envelope: ~azure.mgmt.appcontainers.models.JobPatchProperties - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either Job or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.Job] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - job_name: str, - job_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.Job]: - """Update properties of a Container Apps Job. - - Patches a Container Apps Job using JSON Merge Patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :param job_envelope: Properties used to create a container apps job. Required. - :type job_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either Job or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.Job] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - job_name: str, - job_envelope: Union[_models.JobPatchProperties, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.Job]: - """Update properties of a Container Apps Job. - - Patches a Container Apps Job using JSON Merge Patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :param job_envelope: Properties used to create a container apps job. Is either a - JobPatchProperties type or a IO[bytes] type. Required. - :type job_envelope: ~azure.mgmt.appcontainers.models.JobPatchProperties or IO[bytes] - :return: An instance of LROPoller that returns either Job or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.Job] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Job] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.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, - job_name=job_name, - job_envelope=job_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("Job", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.Job].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.Job](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _start_initial( - self, - resource_group_name: str, - job_name: str, - template: Optional[Union[_models.JobExecutionTemplate, IO[bytes]]] = None, - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if template else None - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" if template else None - _json = None - _content = None - if isinstance(template, (IOBase, bytes)): - _content = template - else: - if template is not None: - _json = self._serialize.body(template, "JobExecutionTemplate") - else: - _json = None - - _request = build_start_request( - resource_group_name=resource_group_name, - job_name=job_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_start( - self, - resource_group_name: str, - job_name: str, - template: Optional[_models.JobExecutionTemplate] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.JobExecutionBase]: - """Start a Container Apps Job. - - Start a Container Apps Job. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :param template: Properties used to start a job execution. Default value is None. - :type template: ~azure.mgmt.appcontainers.models.JobExecutionTemplate - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either JobExecutionBase or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.JobExecutionBase] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_start( - self, - resource_group_name: str, - job_name: str, - template: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.JobExecutionBase]: - """Start a Container Apps Job. - - Start a Container Apps Job. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :param template: Properties used to start a job execution. Default value is None. - :type template: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either JobExecutionBase or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.JobExecutionBase] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_start( - self, - resource_group_name: str, - job_name: str, - template: Optional[Union[_models.JobExecutionTemplate, IO[bytes]]] = None, - **kwargs: Any - ) -> LROPoller[_models.JobExecutionBase]: - """Start a Container Apps Job. - - Start a Container Apps Job. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :param template: Properties used to start a job execution. Is either a JobExecutionTemplate - type or a IO[bytes] type. Default value is None. - :type template: ~azure.mgmt.appcontainers.models.JobExecutionTemplate or IO[bytes] - :return: An instance of LROPoller that returns either JobExecutionBase or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.JobExecutionBase] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if template else None - cls: ClsType[_models.JobExecutionBase] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.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( - resource_group_name=resource_group_name, - job_name=job_name, - template=template, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("JobExecutionBase", pipeline_response.http_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.JobExecutionBase].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.JobExecutionBase]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _stop_execution_initial( - self, resource_group_name: str, job_name: str, job_execution_name: str, **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_stop_execution_request( - resource_group_name=resource_group_name, - job_name=job_name, - job_execution_name=job_execution_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_stop_execution( - self, resource_group_name: str, job_name: str, job_execution_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Terminates execution of a running container apps job. - - Terminates execution of a running container apps job. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :param job_execution_name: Job execution name. Required. - :type job_execution_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.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_execution_initial( - resource_group_name=resource_group_name, - job_name=job_name, - job_execution_name=job_execution_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=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 _stop_multiple_executions_initial( - self, resource_group_name: str, job_name: str, **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_stop_multiple_executions_request( - resource_group_name=resource_group_name, - job_name=job_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_stop_multiple_executions( - self, resource_group_name: str, job_name: str, **kwargs: Any - ) -> LROPoller[_models.ContainerAppJobExecutions]: - """Terminates execution of a running container apps job. - - Terminates execution of a running container apps job. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :return: An instance of LROPoller that returns either ContainerAppJobExecutions or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ContainerAppJobExecutions] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ContainerAppJobExecutions] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.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_multiple_executions_initial( - resource_group_name=resource_group_name, - job_name=job_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerAppJobExecutions", pipeline_response.http_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.ContainerAppJobExecutions].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ContainerAppJobExecutions]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_secrets(self, resource_group_name: str, job_name: str, **kwargs: Any) -> _models.JobSecretsCollection: - """List secrets for a container apps job. - - List secrets for a container apps job. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param job_name: Job Name. Required. - :type job_name: str - :return: JobSecretsCollection or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.JobSecretsCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.JobSecretsCollection] = kwargs.pop("cls", None) - - _request = build_list_secrets_request( - resource_group_name=resource_group_name, - job_name=job_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("JobSecretsCollection", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_logic_apps_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_logic_apps_operations.py deleted file mode 100644 index 38155344395c..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_logic_apps_operations.py +++ /dev/null @@ -1,787 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -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 .._configuration import ContainerAppsAPIClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, container_app_name: str, logic_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/providers/Microsoft.App/logicApps/{logicAppName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url( - "container_app_name", container_app_name, "str", pattern=r"^[-\w\._\(\)]+$" - ), - "logicAppName": _SERIALIZER.url("logic_app_name", logic_app_name, "str", pattern=r"^[-\w\._\(\)]+$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, container_app_name: str, logic_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", "2026-01-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.App/containerApps/{containerAppName}/providers/Microsoft.App/logicApps/{logicAppName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url( - "container_app_name", container_app_name, "str", pattern=r"^[-\w\._\(\)]+$" - ), - "logicAppName": _SERIALIZER.url("logic_app_name", logic_app_name, "str", pattern=r"^[-\w\._\(\)]+$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, container_app_name: str, logic_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/providers/Microsoft.App/logicApps/{logicAppName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url( - "container_app_name", container_app_name, "str", pattern=r"^[-\w\._\(\)]+$" - ), - "logicAppName": _SERIALIZER.url("logic_app_name", logic_app_name, "str", pattern=r"^[-\w\._\(\)]+$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_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_workflows_request( - resource_group_name: str, container_app_name: str, logic_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/providers/Microsoft.App/logicApps/{logicAppName}/workflows", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url( - "container_app_name", container_app_name, "str", pattern=r"^[-\w\._\(\)]+$" - ), - "logicAppName": _SERIALIZER.url("logic_app_name", logic_app_name, "str", pattern=r"^[-\w\._\(\)]+$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_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_workflow_request( - resource_group_name: str, - container_app_name: str, - logic_app_name: str, - workflow_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/providers/Microsoft.App/logicApps/{logicAppName}/workflows/{workflowName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url( - "container_app_name", container_app_name, "str", pattern=r"^[-\w\._\(\)]+$" - ), - "logicAppName": _SERIALIZER.url("logic_app_name", logic_app_name, "str", pattern=r"^[-\w\._\(\)]+$"), - "workflowName": _SERIALIZER.url( - "workflow_name", workflow_name, "str", max_length=63, min_length=3, 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_list_workflows_connections_request( - resource_group_name: str, container_app_name: str, logic_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/providers/Microsoft.App/logicApps/{logicAppName}/listWorkflowsConnections", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "containerAppName": _SERIALIZER.url( - "container_app_name", container_app_name, "str", pattern=r"^[-\w\._\(\)]+$" - ), - "logicAppName": _SERIALIZER.url("logic_app_name", logic_app_name, "str", pattern=r"^[-\w\._\(\)]+$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_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 LogicAppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`logic_apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def get( - self, resource_group_name: str, container_app_name: str, logic_app_name: str, **kwargs: Any - ) -> _models.LogicApp: - """Gets a logic app extension resource. - - Gets a logic app extension resource. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param logic_app_name: Name of the Logic App. Required. - :type logic_app_name: str - :return: LogicApp or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.LogicApp - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.LogicApp] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - logic_app_name=logic_app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("LogicApp", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def create_or_update( - self, - resource_group_name: str, - container_app_name: str, - logic_app_name: str, - resource: Optional[_models.LogicApp] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.LogicApp: - """Create or update a Logic App extension resource. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param logic_app_name: Name of the Logic App. Required. - :type logic_app_name: str - :param resource: Logic app resource properties. Default value is None. - :type resource: ~azure.mgmt.appcontainers.models.LogicApp - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: LogicApp or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.LogicApp - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update( - self, - resource_group_name: str, - container_app_name: str, - logic_app_name: str, - resource: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.LogicApp: - """Create or update a Logic App extension resource. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param logic_app_name: Name of the Logic App. Required. - :type logic_app_name: str - :param resource: Logic app resource properties. Default value is None. - :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: LogicApp or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.LogicApp - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update( - self, - resource_group_name: str, - container_app_name: str, - logic_app_name: str, - resource: Optional[Union[_models.LogicApp, IO[bytes]]] = None, - **kwargs: Any - ) -> _models.LogicApp: - """Create or update a Logic App extension resource. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param logic_app_name: Name of the Logic App. Required. - :type logic_app_name: str - :param resource: Logic app resource properties. Is either a LogicApp type or a IO[bytes] type. - Default value is None. - :type resource: ~azure.mgmt.appcontainers.models.LogicApp or IO[bytes] - :return: LogicApp or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.LogicApp - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if resource else None - cls: ClsType[_models.LogicApp] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" if resource else None - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - if resource is not None: - _json = self._serialize.body(resource, "LogicApp") - else: - _json = None - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - logic_app_name=logic_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.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("LogicApp", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def delete( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, container_app_name: str, logic_app_name: str, **kwargs: Any - ) -> None: - """Deletes a Logic App extension resource. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param logic_app_name: Name of the Logic App. Required. - :type logic_app_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - logic_app_name=logic_app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = 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) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def list_workflows( - self, resource_group_name: str, container_app_name: str, logic_app_name: str, **kwargs: Any - ) -> ItemPaged["_models.WorkflowEnvelope"]: - """List the workflows for a logic app. - - List the workflows for a logic app. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param logic_app_name: Name of the Logic App. Required. - :type logic_app_name: str - :return: An iterator like instance of either WorkflowEnvelope or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.WorkflowEnvelope] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.WorkflowEnvelopeCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_workflows_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - logic_app_name=logic_app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("WorkflowEnvelopeCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_workflow( - self, resource_group_name: str, container_app_name: str, logic_app_name: str, workflow_name: str, **kwargs: Any - ) -> _models.WorkflowEnvelope: - """Get workflow information by its name. - - Get workflow information by its name. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param logic_app_name: Name of the Logic App. Required. - :type logic_app_name: str - :param workflow_name: Workflow name. Required. - :type workflow_name: str - :return: WorkflowEnvelope or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.WorkflowEnvelope - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.WorkflowEnvelope] = kwargs.pop("cls", None) - - _request = build_get_workflow_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - logic_app_name=logic_app_name, - workflow_name=workflow_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("WorkflowEnvelope", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_workflows_connections( - self, resource_group_name: str, container_app_name: str, logic_app_name: str, **kwargs: Any - ) -> _models.WorkflowEnvelope: - """Gets logic app's connections. - - Gets logic app's connections. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param container_app_name: Name of the Container App. Required. - :type container_app_name: str - :param logic_app_name: Name of the Logic App. Required. - :type logic_app_name: str - :return: WorkflowEnvelope or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.WorkflowEnvelope - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.WorkflowEnvelope] = kwargs.pop("cls", None) - - _request = build_list_workflows_connections_request( - resource_group_name=resource_group_name, - container_app_name=container_app_name, - logic_app_name=logic_app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("WorkflowEnvelope", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_maintenance_configurations_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_maintenance_configurations_operations.py deleted file mode 100644 index 3db0139bdc20..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_maintenance_configurations_operations.py +++ /dev/null @@ -1,559 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -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 .._configuration import ContainerAppsAPIClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/maintenanceConfigurations", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str", pattern=r"^[-\w\._\(\)]+$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, environment_name: str, 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", "2026-01-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.App/managedEnvironments/{environmentName}/maintenanceConfigurations/{configName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str", pattern=r"^[-\w\._\(\)]+$"), - "configName": _SERIALIZER.url("config_name", config_name, "str", pattern=r"^[-\w\._\(\)]+$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, environment_name: str, 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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/maintenanceConfigurations/{configName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str", pattern=r"^[-\w\._\(\)]+$"), - "configName": _SERIALIZER.url("config_name", config_name, "str", pattern=r"^[-\w\._\(\)]+$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, environment_name: str, 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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/maintenanceConfigurations/{configName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str", pattern=r"^[-\w\._\(\)]+$"), - "configName": _SERIALIZER.url("config_name", config_name, "str", pattern=r"^[-\w\._\(\)]+$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_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 MaintenanceConfigurationsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`maintenance_configurations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list( - self, resource_group_name: str, environment_name: str, **kwargs: Any - ) -> ItemPaged["_models.MaintenanceConfigurationResource"]: - """Gets all maintenance configurations in the specified Managed Environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: The name of the Managed Environment. Required. - :type environment_name: str - :return: An iterator like instance of either MaintenanceConfigurationResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.MaintenanceConfigurationResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.MaintenanceConfigurationCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("MaintenanceConfigurationCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def create_or_update( - self, - resource_group_name: str, - environment_name: str, - config_name: str, - maintenance_configuration_envelope: _models.MaintenanceConfigurationResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.MaintenanceConfigurationResource: - """Create or update the maintenance configuration for Managed Environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: The name of the Managed Environment. Required. - :type environment_name: str - :param config_name: The name of the maintenance configuration. Required. - :type config_name: str - :param maintenance_configuration_envelope: Parameters to set the maintenance configuration for - ManagedEnvironment . Required. - :type maintenance_configuration_envelope: - ~azure.mgmt.appcontainers.models.MaintenanceConfigurationResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: MaintenanceConfigurationResource or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.MaintenanceConfigurationResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update( - self, - resource_group_name: str, - environment_name: str, - config_name: str, - maintenance_configuration_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.MaintenanceConfigurationResource: - """Create or update the maintenance configuration for Managed Environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: The name of the Managed Environment. Required. - :type environment_name: str - :param config_name: The name of the maintenance configuration. Required. - :type config_name: str - :param maintenance_configuration_envelope: Parameters to set the maintenance configuration for - ManagedEnvironment . Required. - :type maintenance_configuration_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: MaintenanceConfigurationResource or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.MaintenanceConfigurationResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update( - self, - resource_group_name: str, - environment_name: str, - config_name: str, - maintenance_configuration_envelope: Union[_models.MaintenanceConfigurationResource, IO[bytes]], - **kwargs: Any - ) -> _models.MaintenanceConfigurationResource: - """Create or update the maintenance configuration for Managed Environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: The name of the Managed Environment. Required. - :type environment_name: str - :param config_name: The name of the maintenance configuration. Required. - :type config_name: str - :param maintenance_configuration_envelope: Parameters to set the maintenance configuration for - ManagedEnvironment . Is either a MaintenanceConfigurationResource type or a IO[bytes] type. - Required. - :type maintenance_configuration_envelope: - ~azure.mgmt.appcontainers.models.MaintenanceConfigurationResource or IO[bytes] - :return: MaintenanceConfigurationResource or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.MaintenanceConfigurationResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MaintenanceConfigurationResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(maintenance_configuration_envelope, (IOBase, bytes)): - _content = maintenance_configuration_envelope - else: - _json = self._serialize.body(maintenance_configuration_envelope, "MaintenanceConfigurationResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - config_name=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.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MaintenanceConfigurationResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def delete( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, environment_name: str, config_name: str, **kwargs: Any - ) -> None: - """Deletes the maintenance configuration of a ManagedEnvironment . - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: The name of the Managed Environment. Required. - :type environment_name: str - :param config_name: The name of the maintenance configuration. Required. - :type config_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - config_name=config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = 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) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def get( - self, resource_group_name: str, environment_name: str, config_name: str, **kwargs: Any - ) -> _models.MaintenanceConfigurationResource: - """Gets the maintenance configuration of a ManagedEnvironment . - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: The name of the Managed Environment. Required. - :type environment_name: str - :param config_name: The name of the maintenance configuration. Required. - :type config_name: str - :return: MaintenanceConfigurationResource or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.MaintenanceConfigurationResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.MaintenanceConfigurationResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - config_name=config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MaintenanceConfigurationResource", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_certificates_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_certificates_operations.py deleted file mode 100644 index c25e25f03b7f..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_certificates_operations.py +++ /dev/null @@ -1,832 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from .._configuration import ContainerAppsAPIClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, environment_name: str, managed_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), - "managedCertificateName": _SERIALIZER.url("managed_certificate_name", managed_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, environment_name: str, managed_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", "2026-01-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.App/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), - "managedCertificateName": _SERIALIZER.url("managed_certificate_name", managed_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, environment_name: str, managed_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), - "managedCertificateName": _SERIALIZER.url("managed_certificate_name", managed_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_update_request( - resource_group_name: str, environment_name: str, managed_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", "2026-01-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.App/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), - "managedCertificateName": _SERIALIZER.url("managed_certificate_name", managed_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="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/managedCertificates", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_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 ManagedCertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`managed_certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def get( - self, resource_group_name: str, environment_name: str, managed_certificate_name: str, **kwargs: Any - ) -> _models.ManagedCertificate: - """Get the specified Managed Certificate. - - Get the specified Managed Certificate. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param managed_certificate_name: Name of the Managed Certificate. Required. - :type managed_certificate_name: str - :return: ManagedCertificate or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ManagedCertificate - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ManagedCertificate] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - managed_certificate_name=managed_certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ManagedCertificate", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - environment_name: str, - managed_certificate_name: str, - managed_certificate_envelope: Optional[Union[_models.ManagedCertificate, IO[bytes]]] = None, - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if managed_certificate_envelope else None - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" if managed_certificate_envelope else None - _json = None - _content = None - if isinstance(managed_certificate_envelope, (IOBase, bytes)): - _content = managed_certificate_envelope - else: - if managed_certificate_envelope is not None: - _json = self._serialize.body(managed_certificate_envelope, "ManagedCertificate") - else: - _json = None - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - managed_certificate_name=managed_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.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - environment_name: str, - managed_certificate_name: str, - managed_certificate_envelope: Optional[_models.ManagedCertificate] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ManagedCertificate]: - """Create or Update a Managed Certificate. - - Create or Update a Managed Certificate. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param managed_certificate_name: Name of the Managed Certificate. Required. - :type managed_certificate_name: str - :param managed_certificate_envelope: Managed Certificate to be created or updated. Default - value is None. - :type managed_certificate_envelope: ~azure.mgmt.appcontainers.models.ManagedCertificate - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ManagedCertificate or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedCertificate] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - environment_name: str, - managed_certificate_name: str, - managed_certificate_envelope: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ManagedCertificate]: - """Create or Update a Managed Certificate. - - Create or Update a Managed Certificate. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param managed_certificate_name: Name of the Managed Certificate. Required. - :type managed_certificate_name: str - :param managed_certificate_envelope: Managed Certificate to be created or updated. Default - value is None. - :type managed_certificate_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ManagedCertificate or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedCertificate] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - environment_name: str, - managed_certificate_name: str, - managed_certificate_envelope: Optional[Union[_models.ManagedCertificate, IO[bytes]]] = None, - **kwargs: Any - ) -> LROPoller[_models.ManagedCertificate]: - """Create or Update a Managed Certificate. - - Create or Update a Managed Certificate. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param managed_certificate_name: Name of the Managed Certificate. Required. - :type managed_certificate_name: str - :param managed_certificate_envelope: Managed Certificate to be created or updated. Is either a - ManagedCertificate type or a IO[bytes] type. Default value is None. - :type managed_certificate_envelope: ~azure.mgmt.appcontainers.models.ManagedCertificate or - IO[bytes] - :return: An instance of LROPoller that returns either ManagedCertificate or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedCertificate] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if managed_certificate_envelope else None - cls: ClsType[_models.ManagedCertificate] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - environment_name=environment_name, - managed_certificate_name=managed_certificate_name, - managed_certificate_envelope=managed_certificate_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ManagedCertificate", pipeline_response.http_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.ManagedCertificate].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ManagedCertificate]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def delete( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, environment_name: str, managed_certificate_name: str, **kwargs: Any - ) -> None: - """Deletes the specified Managed Certificate. - - Deletes the specified Managed Certificate. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param managed_certificate_name: Name of the Managed Certificate. Required. - :type managed_certificate_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - managed_certificate_name=managed_certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = 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) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def update( - self, - resource_group_name: str, - environment_name: str, - managed_certificate_name: str, - managed_certificate_envelope: _models.ManagedCertificatePatch, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ManagedCertificate: - """Update tags of a managed certificate. - - Patches a managed certificate. Oly patching of tags is supported. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param managed_certificate_name: Name of the Managed Certificate. Required. - :type managed_certificate_name: str - :param managed_certificate_envelope: Properties of a managed certificate that need to be - updated. Required. - :type managed_certificate_envelope: ~azure.mgmt.appcontainers.models.ManagedCertificatePatch - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ManagedCertificate or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ManagedCertificate - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def update( - self, - resource_group_name: str, - environment_name: str, - managed_certificate_name: str, - managed_certificate_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ManagedCertificate: - """Update tags of a managed certificate. - - Patches a managed certificate. Oly patching of tags is supported. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param managed_certificate_name: Name of the Managed Certificate. Required. - :type managed_certificate_name: str - :param managed_certificate_envelope: Properties of a managed certificate that need to be - updated. Required. - :type managed_certificate_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ManagedCertificate or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ManagedCertificate - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def update( - self, - resource_group_name: str, - environment_name: str, - managed_certificate_name: str, - managed_certificate_envelope: Union[_models.ManagedCertificatePatch, IO[bytes]], - **kwargs: Any - ) -> _models.ManagedCertificate: - """Update tags of a managed certificate. - - Patches a managed certificate. Oly patching of tags is supported. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param managed_certificate_name: Name of the Managed Certificate. Required. - :type managed_certificate_name: str - :param managed_certificate_envelope: Properties of a managed certificate that need to be - updated. Is either a ManagedCertificatePatch type or a IO[bytes] type. Required. - :type managed_certificate_envelope: ~azure.mgmt.appcontainers.models.ManagedCertificatePatch or - IO[bytes] - :return: ManagedCertificate or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ManagedCertificate - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ManagedCertificate] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(managed_certificate_envelope, (IOBase, bytes)): - _content = managed_certificate_envelope - else: - _json = self._serialize.body(managed_certificate_envelope, "ManagedCertificatePatch") - - _request = build_update_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - managed_certificate_name=managed_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.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ManagedCertificate", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, environment_name: str, **kwargs: Any - ) -> ItemPaged["_models.ManagedCertificate"]: - """Get the Managed Certificates in a given managed environment. - - Get the Managed Certificates in a given managed environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :return: An iterator like instance of either ManagedCertificate or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.ManagedCertificate] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ManagedCertificateCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ManagedCertificateCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environment_diagnostics_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environment_diagnostics_operations.py deleted file mode 100644 index 66c0068ecb36..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environment_diagnostics_operations.py +++ /dev/null @@ -1,252 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -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 .._configuration import ContainerAppsAPIClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_detectors_request( - resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/detectors", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_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_detector_request( - resource_group_name: str, environment_name: str, detector_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/detectors/{detectorName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), - "detectorName": _SERIALIZER.url("detector_name", detector_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_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 ManagedEnvironmentDiagnosticsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`managed_environment_diagnostics` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_detectors( - self, resource_group_name: str, environment_name: str, **kwargs: Any - ) -> _models.DiagnosticsCollection: - """Get the list of diagnostics for a given Managed Environment. - - Get the list of diagnostics for a Managed Environment used to host container apps. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :return: DiagnosticsCollection or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.DiagnosticsCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DiagnosticsCollection] = kwargs.pop("cls", None) - - _request = build_list_detectors_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DiagnosticsCollection", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_detector( - self, resource_group_name: str, environment_name: str, detector_name: str, **kwargs: Any - ) -> _models.Diagnostics: - """Get the diagnostics data for a given Managed Environment. - - Get the diagnostics data for a Managed Environment used to host container apps. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :param detector_name: Name of the Managed Environment detector. Required. - :type detector_name: str - :return: Diagnostics or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.Diagnostics - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.Diagnostics] = kwargs.pop("cls", None) - - _request = build_get_detector_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - detector_name=detector_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Diagnostics", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environment_private_endpoint_connections_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environment_private_endpoint_connections_operations.py deleted file mode 100644 index 89c9ce0f1636..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environment_private_endpoint_connections_operations.py +++ /dev/null @@ -1,721 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from .._configuration import ContainerAppsAPIClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/privateEndpointConnections", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str", pattern=r"^[-\w\._\(\)]+$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_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, - environment_name: str, - private_endpoint_connection_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/privateEndpointConnections/{privateEndpointConnectionName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str", pattern=r"^[-\w\._\(\)]+$"), - "privateEndpointConnectionName": _SERIALIZER.url( - "private_endpoint_connection_name", private_endpoint_connection_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - environment_name: str, - private_endpoint_connection_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-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.App/managedEnvironments/{environmentName}/privateEndpointConnections/{privateEndpointConnectionName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str", pattern=r"^[-\w\._\(\)]+$"), - "privateEndpointConnectionName": _SERIALIZER.url( - "private_endpoint_connection_name", private_endpoint_connection_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - environment_name: str, - private_endpoint_connection_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/privateEndpointConnections/{privateEndpointConnectionName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str", pattern=r"^[-\w\._\(\)]+$"), - "privateEndpointConnectionName": _SERIALIZER.url( - "private_endpoint_connection_name", private_endpoint_connection_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_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 ManagedEnvironmentPrivateEndpointConnectionsOperations: # pylint: disable=name-too-long - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`managed_environment_private_endpoint_connections` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list( - self, resource_group_name: str, environment_name: str, **kwargs: Any - ) -> ItemPaged["_models.PrivateEndpointConnection"]: - """List private endpoint connections for a given managed environment. - - List private endpoint connections for a given managed environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :return: An iterator like instance of either PrivateEndpointConnection or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.PrivateEndpointConnection] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.PrivateEndpointConnectionListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("PrivateEndpointConnectionListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, environment_name: str, private_endpoint_connection_name: str, **kwargs: Any - ) -> _models.PrivateEndpointConnection: - """Get a private endpoint connection for a given managed environment. - - Get a private endpoint connection for a given managed environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param private_endpoint_connection_name: The name of the private endpoint connection associated - with the Azure resource. Required. - :type private_endpoint_connection_name: str - :return: PrivateEndpointConnection or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.PrivateEndpointConnection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.PrivateEndpointConnection] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - private_endpoint_connection_name=private_endpoint_connection_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("PrivateEndpointConnection", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - environment_name: str, - private_endpoint_connection_name: str, - private_endpoint_connection_envelope: Union[_models.PrivateEndpointConnection, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(private_endpoint_connection_envelope, (IOBase, bytes)): - _content = private_endpoint_connection_envelope - else: - _json = self._serialize.body(private_endpoint_connection_envelope, "PrivateEndpointConnection") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - private_endpoint_connection_name=private_endpoint_connection_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - environment_name: str, - private_endpoint_connection_name: str, - private_endpoint_connection_envelope: _models.PrivateEndpointConnection, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.PrivateEndpointConnection]: - """Update the state of a private endpoint connection for a given managed environment. - - Update the state of a private endpoint connection for a given managed environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param private_endpoint_connection_name: The name of the private endpoint connection associated - with the Azure resource. Required. - :type private_endpoint_connection_name: str - :param private_endpoint_connection_envelope: The resource of private endpoint and its - properties. Required. - :type private_endpoint_connection_envelope: - ~azure.mgmt.appcontainers.models.PrivateEndpointConnection - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either PrivateEndpointConnection or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.PrivateEndpointConnection] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - environment_name: str, - private_endpoint_connection_name: str, - private_endpoint_connection_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.PrivateEndpointConnection]: - """Update the state of a private endpoint connection for a given managed environment. - - Update the state of a private endpoint connection for a given managed environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param private_endpoint_connection_name: The name of the private endpoint connection associated - with the Azure resource. Required. - :type private_endpoint_connection_name: str - :param private_endpoint_connection_envelope: The resource of private endpoint and its - properties. Required. - :type private_endpoint_connection_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either PrivateEndpointConnection or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.PrivateEndpointConnection] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - environment_name: str, - private_endpoint_connection_name: str, - private_endpoint_connection_envelope: Union[_models.PrivateEndpointConnection, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.PrivateEndpointConnection]: - """Update the state of a private endpoint connection for a given managed environment. - - Update the state of a private endpoint connection for a given managed environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param private_endpoint_connection_name: The name of the private endpoint connection associated - with the Azure resource. Required. - :type private_endpoint_connection_name: str - :param private_endpoint_connection_envelope: The resource of private endpoint and its - properties. Is either a PrivateEndpointConnection type or a IO[bytes] type. Required. - :type private_endpoint_connection_envelope: - ~azure.mgmt.appcontainers.models.PrivateEndpointConnection or IO[bytes] - :return: An instance of LROPoller that returns either PrivateEndpointConnection or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.PrivateEndpointConnection] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.PrivateEndpointConnection] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - environment_name=environment_name, - private_endpoint_connection_name=private_endpoint_connection_name, - private_endpoint_connection_envelope=private_endpoint_connection_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("PrivateEndpointConnection", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.PrivateEndpointConnection].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.PrivateEndpointConnection]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( - self, resource_group_name: str, environment_name: str, private_endpoint_connection_name: str, **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - private_endpoint_connection_name=private_endpoint_connection_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: 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]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, environment_name: str, private_endpoint_connection_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete a private endpoint connection for a given managed environment. - - Delete a private endpoint connection for a given managed environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param private_endpoint_connection_name: The name of the private endpoint connection associated - with the Azure resource. Required. - :type private_endpoint_connection_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - environment_name=environment_name, - private_endpoint_connection_name=private_endpoint_connection_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - 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/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environment_private_link_resources_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environment_private_link_resources_operations.py deleted file mode 100644 index 40821588daec..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environment_private_link_resources_operations.py +++ /dev/null @@ -1,180 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -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 .._configuration import ContainerAppsAPIClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/privateLinkResources", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str", pattern=r"^[-\w\._\(\)]+$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_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 ManagedEnvironmentPrivateLinkResourcesOperations: # pylint: disable=name-too-long - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`managed_environment_private_link_resources` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list( - self, resource_group_name: str, environment_name: str, **kwargs: Any - ) -> ItemPaged["_models.PrivateLinkResource"]: - """List private link resources for a given managed environment. - - List private link resources for a given managed environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :return: An iterator like instance of either PrivateLinkResource or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.PrivateLinkResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.PrivateLinkResourceListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("PrivateLinkResourceListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environment_usages_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environment_usages_operations.py deleted file mode 100644 index 71fac0ef3267..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environment_usages_operations.py +++ /dev/null @@ -1,176 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -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 .._configuration import ContainerAppsAPIClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/usages", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str", pattern=r"^[-\w\._]+$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_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 ManagedEnvironmentUsagesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`managed_environment_usages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list(self, resource_group_name: str, environment_name: str, **kwargs: Any) -> ItemPaged["_models.Usage"]: - """Gets the current usage information as well as the limits for environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :return: An iterator like instance of either Usage or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.Usage] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ListUsagesResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ListUsagesResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environments_diagnostics_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environments_diagnostics_operations.py deleted file mode 100644 index 37c1ce3c68e8..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environments_diagnostics_operations.py +++ /dev/null @@ -1,150 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -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 .._configuration import ContainerAppsAPIClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_root_request( - resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/detectorProperties/rootApi/", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_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 ManagedEnvironmentsDiagnosticsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`managed_environments_diagnostics` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def get_root(self, resource_group_name: str, environment_name: str, **kwargs: Any) -> _models.ManagedEnvironment: - """Get the properties of a Managed Environment. - - Get the properties of a Managed Environment used to host container apps. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :return: ManagedEnvironment or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironment - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ManagedEnvironment] = kwargs.pop("cls", None) - - _request = build_get_root_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ManagedEnvironment", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environments_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environments_operations.py deleted file mode 100644 index a34da7ad7719..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environments_operations.py +++ /dev/null @@ -1,1212 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression,too-many-lines -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from .._configuration import ContainerAppsAPIClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.App/managedEnvironments") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_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_by_resource_group_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_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, environment_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-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.App/managedEnvironments/{environmentName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_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, environment_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-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.App/managedEnvironments/{environmentName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_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_get_auth_token_request( - resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/getAuthtoken", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_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_workload_profile_states_request( # pylint: disable=name-too-long - resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/workloadProfileStates", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_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 ManagedEnvironmentsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`managed_environments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.ManagedEnvironment"]: - """Get all Environments for a subscription. - - Get all Managed Environments for a subscription. - - :return: An iterator like instance of either ManagedEnvironment or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.ManagedEnvironment] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ManagedEnvironmentsCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: 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.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ManagedEnvironmentsCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_by_resource_group( - self, resource_group_name: str, **kwargs: Any - ) -> ItemPaged["_models.ManagedEnvironment"]: - """Get all the Environments in a resource group. - - Get all the Managed Environments in a resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :return: An iterator like instance of either ManagedEnvironment or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.ManagedEnvironment] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ManagedEnvironmentsCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: 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_resource_group_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ManagedEnvironmentsCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get(self, resource_group_name: str, environment_name: str, **kwargs: Any) -> _models.ManagedEnvironment: - """Get the properties of a Managed Environment. - - Get the properties of a Managed Environment used to host container apps. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :return: ManagedEnvironment or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironment - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ManagedEnvironment] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ManagedEnvironment", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - environment_name: str, - environment_envelope: Union[_models.ManagedEnvironment, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(environment_envelope, (IOBase, bytes)): - _content = environment_envelope - else: - _json = self._serialize.body(environment_envelope, "ManagedEnvironment") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - environment_name: str, - environment_envelope: _models.ManagedEnvironment, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ManagedEnvironment]: - """Creates or updates a Managed Environment. - - Creates or updates a Managed Environment used to host container apps. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :param environment_envelope: Configuration details of the Environment. Required. - :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ManagedEnvironment or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - environment_name: str, - environment_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ManagedEnvironment]: - """Creates or updates a Managed Environment. - - Creates or updates a Managed Environment used to host container apps. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :param environment_envelope: Configuration details of the Environment. Required. - :type environment_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ManagedEnvironment or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - environment_name: str, - environment_envelope: Union[_models.ManagedEnvironment, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ManagedEnvironment]: - """Creates or updates a Managed Environment. - - Creates or updates a Managed Environment used to host container apps. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :param environment_envelope: Configuration details of the Environment. Is either a - ManagedEnvironment type or a IO[bytes] type. Required. - :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment or IO[bytes] - :return: An instance of LROPoller that returns either ManagedEnvironment or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ManagedEnvironment] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - environment_name=environment_name, - environment_envelope=environment_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ManagedEnvironment", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ManagedEnvironment].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ManagedEnvironment]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial(self, resource_group_name: str, environment_name: str, **kwargs: Any) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_delete(self, resource_group_name: str, environment_name: str, **kwargs: Any) -> LROPoller[None]: - """Delete a Managed Environment. - - Delete a Managed Environment if it does not have any container apps. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - environment_name=environment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - 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, - environment_name: str, - environment_envelope: Union[_models.ManagedEnvironment, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(environment_envelope, (IOBase, bytes)): - _content = environment_envelope - else: - _json = self._serialize.body(environment_envelope, "ManagedEnvironment") - - _request = build_update_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - environment_name: str, - environment_envelope: _models.ManagedEnvironment, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ManagedEnvironment]: - """Update Managed Environment's properties. - - Patches a Managed Environment using JSON Merge Patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :param environment_envelope: Configuration details of the Environment. Required. - :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ManagedEnvironment or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - environment_name: str, - environment_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ManagedEnvironment]: - """Update Managed Environment's properties. - - Patches a Managed Environment using JSON Merge Patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :param environment_envelope: Configuration details of the Environment. Required. - :type environment_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ManagedEnvironment or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - environment_name: str, - environment_envelope: Union[_models.ManagedEnvironment, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ManagedEnvironment]: - """Update Managed Environment's properties. - - Patches a Managed Environment using JSON Merge Patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :param environment_envelope: Configuration details of the Environment. Is either a - ManagedEnvironment type or a IO[bytes] type. Required. - :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment or IO[bytes] - :return: An instance of LROPoller that returns either ManagedEnvironment or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ManagedEnvironment] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.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, - environment_name=environment_name, - environment_envelope=environment_envelope, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ManagedEnvironment", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ManagedEnvironment].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ManagedEnvironment]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def get_auth_token( - self, resource_group_name: str, environment_name: str, **kwargs: Any - ) -> _models.EnvironmentAuthToken: - """Get auth token for a managed environment. - - Checks if resource name is available. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :return: EnvironmentAuthToken or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.EnvironmentAuthToken - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.EnvironmentAuthToken] = kwargs.pop("cls", None) - - _request = build_get_auth_token_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("EnvironmentAuthToken", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_workload_profile_states( - self, resource_group_name: str, environment_name: str, **kwargs: Any - ) -> ItemPaged["_models.WorkloadProfileStates"]: - """Get all workload Profile States for a Managed Environment.. - - Get all workload Profile States for a Managed Environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :return: An iterator like instance of either WorkloadProfileStates or the result of - cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.WorkloadProfileStates] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.WorkloadProfileStatesCollection] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_workload_profile_states_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("WorkloadProfileStatesCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environments_storages_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environments_storages_operations.py deleted file mode 100644 index 23595a41797c..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_managed_environments_storages_operations.py +++ /dev/null @@ -1,536 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -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 .._configuration import ContainerAppsAPIClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_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, environment_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages/{storageName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_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, environment_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", "2026-01-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.App/managedEnvironments/{environmentName}/storages/{storageName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_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, environment_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages/{storageName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_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) - - -class ManagedEnvironmentsStoragesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`managed_environments_storages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list( - self, resource_group_name: str, environment_name: str, **kwargs: Any - ) -> _models.ManagedEnvironmentStoragesCollection: - """Get all storages for a managedEnvironment. - - Get all storages for a managedEnvironment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :return: ManagedEnvironmentStoragesCollection or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStoragesCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ManagedEnvironmentStoragesCollection] = kwargs.pop("cls", None) - - _request = build_list_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ManagedEnvironmentStoragesCollection", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get( - self, resource_group_name: str, environment_name: str, storage_name: str, **kwargs: Any - ) -> _models.ManagedEnvironmentStorage: - """Get storage for a managedEnvironment. - - Get storage for a managedEnvironment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :param storage_name: Name of the storage. Required. - :type storage_name: str - :return: ManagedEnvironmentStorage or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStorage - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ManagedEnvironmentStorage] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ManagedEnvironmentStorage", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def create_or_update( - self, - resource_group_name: str, - environment_name: str, - storage_name: str, - storage_envelope: _models.ManagedEnvironmentStorage, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ManagedEnvironmentStorage: - """Create or update storage for a managedEnvironment. - - Create or update storage for a managedEnvironment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :param storage_name: Name of the storage. Required. - :type storage_name: str - :param storage_envelope: Configuration details of storage. Required. - :type storage_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStorage - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ManagedEnvironmentStorage or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStorage - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update( - self, - resource_group_name: str, - environment_name: str, - storage_name: str, - storage_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ManagedEnvironmentStorage: - """Create or update storage for a managedEnvironment. - - Create or update storage for a managedEnvironment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :param storage_name: Name of the storage. Required. - :type storage_name: str - :param storage_envelope: Configuration details of storage. Required. - :type storage_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ManagedEnvironmentStorage or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStorage - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update( - self, - resource_group_name: str, - environment_name: str, - storage_name: str, - storage_envelope: Union[_models.ManagedEnvironmentStorage, IO[bytes]], - **kwargs: Any - ) -> _models.ManagedEnvironmentStorage: - """Create or update storage for a managedEnvironment. - - Create or update storage for a managedEnvironment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :param storage_name: Name of the storage. Required. - :type storage_name: str - :param storage_envelope: Configuration details of storage. Is either a - ManagedEnvironmentStorage type or a IO[bytes] type. Required. - :type storage_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStorage or IO[bytes] - :return: ManagedEnvironmentStorage or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStorage - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ManagedEnvironmentStorage] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(storage_envelope, (IOBase, bytes)): - _content = storage_envelope - else: - _json = self._serialize.body(storage_envelope, "ManagedEnvironmentStorage") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - environment_name=environment_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.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ManagedEnvironmentStorage", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def delete( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, environment_name: str, storage_name: str, **kwargs: Any - ) -> None: - """Delete storage for a managedEnvironment. - - Delete storage for a managedEnvironment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :param storage_name: Name of the storage. Required. - :type storage_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = 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) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_namespaces_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_namespaces_operations.py deleted file mode 100644 index 180a334d7eea..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_namespaces_operations.py +++ /dev/null @@ -1,235 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -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 .._configuration import ContainerAppsAPIClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_check_name_availability_request( - resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-01-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.App/managedEnvironments/{environmentName}/checkNameAvailability", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1 - ), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_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 NamespacesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`namespaces` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @overload - def check_name_availability( - self, - resource_group_name: str, - environment_name: str, - check_name_availability_request: _models.CheckNameAvailabilityRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CheckNameAvailabilityResponse: - """Checks the resource name availability. - - Checks if resource name is available. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param check_name_availability_request: The check name availability request. Required. - :type check_name_availability_request: - ~azure.mgmt.appcontainers.models.CheckNameAvailabilityRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CheckNameAvailabilityResponse or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.CheckNameAvailabilityResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def check_name_availability( - self, - resource_group_name: str, - environment_name: str, - check_name_availability_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CheckNameAvailabilityResponse: - """Checks the resource name availability. - - Checks if resource name is available. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param check_name_availability_request: The check name availability request. Required. - :type check_name_availability_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: CheckNameAvailabilityResponse or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.CheckNameAvailabilityResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def check_name_availability( - self, - resource_group_name: str, - environment_name: str, - check_name_availability_request: Union[_models.CheckNameAvailabilityRequest, IO[bytes]], - **kwargs: Any - ) -> _models.CheckNameAvailabilityResponse: - """Checks the resource name availability. - - Checks if resource name is available. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param check_name_availability_request: The check name availability request. Is either a - CheckNameAvailabilityRequest type or a IO[bytes] type. Required. - :type check_name_availability_request: - ~azure.mgmt.appcontainers.models.CheckNameAvailabilityRequest or IO[bytes] - :return: CheckNameAvailabilityResponse or the result of cls(response) - :rtype: ~azure.mgmt.appcontainers.models.CheckNameAvailabilityResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CheckNameAvailabilityResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(check_name_availability_request, (IOBase, bytes)): - _content = check_name_availability_request - else: - _json = self._serialize.body(check_name_availability_request, "CheckNameAvailabilityRequest") - - _request = build_check_name_availability_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CheckNameAvailabilityResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_operations.py index b08a5d206986..0e99ad19caa2 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_operations.py @@ -1,12 +1,15 @@ +# pylint: disable=line-too-long,useless-suppression,too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar +from io import IOBase +import json +from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core import PipelineClient @@ -16,36 +19,5363 @@ ResourceExistsError, ResourceNotFoundError, ResourceNotModifiedError, + StreamClosedError, + StreamConsumedError, map_error, ) from azure.core.paging import ItemPaged from azure.core.pipeline import PipelineResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod from azure.core.rest import HttpRequest, HttpResponse from azure.core.tracing.decorator import distributed_trace from azure.core.utils import case_insensitive_dict from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling from .. import models as _models from .._configuration import ContainerAppsAPIClientConfiguration +from .._utils.model_base import SdkJSONEncoder, _deserialize, _failsafe_deserialize from .._utils.serialization import Deserializer, Serializer +from .._utils.utils import ClientMixinABC T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] +JSON = MutableMapping[str, Any] List = list _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -def build_list_request(**kwargs: Any) -> HttpRequest: +def build_operations_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", "2026-01-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.App/operations") + _url = "/providers/Microsoft.App/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) + + +def build_container_apps_session_pools_get_request( # pylint: disable=name-too-long + resource_group_name: str, session_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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/sessionPools/{sessionPoolName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "sessionPoolName": _SERIALIZER.url("session_pool_name", session_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_container_apps_session_pools_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, session_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 {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/sessionPools/{sessionPoolName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "sessionPoolName": _SERIALIZER.url("session_pool_name", session_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) + + +def build_container_apps_session_pools_update_request( # pylint: disable=name-too-long + resource_group_name: str, session_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 {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/sessionPools/{sessionPoolName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "sessionPoolName": _SERIALIZER.url("session_pool_name", session_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="PATCH", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_container_apps_session_pools_delete_request( # pylint: disable=name-too-long + resource_group_name: str, session_pool_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/sessionPools/{sessionPoolName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "sessionPoolName": _SERIALIZER.url("session_pool_name", session_pool_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_container_apps_session_pools_list_by_resource_group_request( # pylint: disable=name-too-long + 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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/sessionPools" + 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_container_apps_session_pools_list_by_subscription_request( # pylint: disable=name-too-long + subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.App/sessionPools" + 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_container_apps_session_pools_fetch_mcp_server_credentials_request( # pylint: disable=name-too-long + resource_group_name: str, session_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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/sessionPools/{sessionPoolName}/fetchMcpServerCredentials" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "sessionPoolName": _SERIALIZER.url("session_pool_name", session_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="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_container_apps_session_pools_rotate_mcp_server_credentials_request( # pylint: disable=name-too-long + resource_group_name: str, session_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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/sessionPools/{sessionPoolName}/rotateMcpServerCredentials" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "sessionPoolName": _SERIALIZER.url("session_pool_name", session_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="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_container_apps_source_controls_get_request( # pylint: disable=name-too-long + resource_group_name: str, container_app_name: str, source_control_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols/{sourceControlName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), + "sourceControlName": _SERIALIZER.url("source_control_name", source_control_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_container_apps_source_controls_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, + container_app_name: str, + source_control_name: str, + subscription_id: str, + *, + x_ms_github_auxiliary: Optional[str] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols/{sourceControlName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), + "sourceControlName": _SERIALIZER.url("source_control_name", source_control_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if x_ms_github_auxiliary is not None: + _headers["x-ms-github-auxiliary"] = _SERIALIZER.header("x_ms_github_auxiliary", x_ms_github_auxiliary, "str") + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_container_apps_source_controls_delete_request( # pylint: disable=name-too-long + resource_group_name: str, + container_app_name: str, + source_control_name: str, + subscription_id: str, + *, + x_ms_github_auxiliary: Optional[str] = None, + ignore_workflow_deletion_failure: Optional[bool] = None, + delete_workflow: Optional[bool] = 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", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols/{sourceControlName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), + "sourceControlName": _SERIALIZER.url("source_control_name", source_control_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + if ignore_workflow_deletion_failure is not None: + _params["ignoreWorkflowDeletionFailure"] = _SERIALIZER.query( + "ignore_workflow_deletion_failure", ignore_workflow_deletion_failure, "bool" + ) + if delete_workflow is not None: + _params["deleteWorkflow"] = _SERIALIZER.query("delete_workflow", delete_workflow, "bool") + + # Construct headers + if x_ms_github_auxiliary is not None: + _headers["x-ms-github-auxiliary"] = _SERIALIZER.header("x_ms_github_auxiliary", x_ms_github_auxiliary, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_container_apps_source_controls_list_by_container_app_request( # pylint: disable=name-too-long + resource_group_name: str, container_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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/sourcecontrols" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_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) + + +def build_container_apps_get_request( + resource_group_name: str, container_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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_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) + + +def build_container_apps_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, container_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 {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_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_container_apps_update_request( + resource_group_name: str, container_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 {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_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_container_apps_delete_request( + resource_group_name: str, container_app_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_container_apps_list_by_resource_group_request( # pylint: disable=name-too-long + 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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps" + 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_container_apps_list_by_subscription_request( # pylint: disable=name-too-long + subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.App/containerApps" + 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_container_apps_list_custom_host_name_analysis_request( # pylint: disable=name-too-long + resource_group_name: str, + container_app_name: str, + subscription_id: str, + *, + custom_hostname: 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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/listCustomHostNameAnalysis" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_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 custom_hostname is not None: + _params["customHostname"] = _SERIALIZER.query("custom_hostname", custom_hostname, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_container_apps_list_secrets_request( # pylint: disable=name-too-long + resource_group_name: str, container_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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/listSecrets" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_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_container_apps_get_auth_token_request( # pylint: disable=name-too-long + resource_group_name: str, container_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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/getAuthtoken" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_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_container_apps_start_request( + resource_group_name: str, container_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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/start" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_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_container_apps_stop_request( + resource_group_name: str, container_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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/stop" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_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_container_apps_builds_get_request( + resource_group_name: str, container_app_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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/builds/{buildName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_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_container_apps_builds_delete_request( # pylint: disable=name-too-long + resource_group_name: str, container_app_name: str, build_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/builds/{buildName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_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") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_container_apps_functions_get_request( # pylint: disable=name-too-long + resource_group_name: str, container_app_name: str, function_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/functions/{functionName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), + "functionName": _SERIALIZER.url("function_name", function_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_container_apps_functions_list_request( # pylint: disable=name-too-long + resource_group_name: str, container_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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/functions" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_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) + + +def build_container_apps_revisions_get_revision_request( # pylint: disable=name-too-long + resource_group_name: str, container_app_name: str, revision_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), + "revisionName": _SERIALIZER.url("revision_name", revision_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_container_apps_revisions_list_revisions_request( # pylint: disable=name-too-long + resource_group_name: str, + container_app_name: str, + subscription_id: str, + *, + filter: 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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_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 filter is not None: + _params["$filter"] = _SERIALIZER.query("filter", filter, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_container_apps_revisions_activate_revision_request( # pylint: disable=name-too-long + resource_group_name: str, container_app_name: str, revision_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/activate" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), + "revisionName": _SERIALIZER.url("revision_name", revision_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="POST", url=_url, params=_params, **kwargs) + + +def build_container_apps_revisions_deactivate_revision_request( # pylint: disable=name-too-long + resource_group_name: str, container_app_name: str, revision_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/deactivate" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), + "revisionName": _SERIALIZER.url("revision_name", revision_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="POST", url=_url, params=_params, **kwargs) + + +def build_container_apps_revisions_restart_revision_request( # pylint: disable=name-too-long + resource_group_name: str, container_app_name: str, revision_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/restart" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), + "revisionName": _SERIALIZER.url("revision_name", revision_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="POST", url=_url, params=_params, **kwargs) + + +def build_functions_extension_invoke_functions_host_request( # pylint: disable=name-too-long + resource_group_name: str, + container_app_name: str, + revision_name: str, + function_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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "text/plain") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/providers/Microsoft.App/functions/{functionAppName}/invoke" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), + "revisionName": _SERIALIZER.url("revision_name", revision_name, "str"), + "functionAppName": _SERIALIZER.url("function_app_name", function_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_container_apps_label_history_get_label_history_request( # pylint: disable=name-too-long + resource_group_name: str, container_app_name: str, label_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/labelHistory/{labelName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), + "labelName": _SERIALIZER.url("label_name", label_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_container_apps_label_history_delete_label_history_request( # pylint: disable=name-too-long + resource_group_name: str, container_app_name: str, label_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/labelHistory/{labelName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), + "labelName": _SERIALIZER.url("label_name", label_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_container_apps_label_history_list_label_history_request( # pylint: disable=name-too-long + resource_group_name: str, + container_app_name: str, + subscription_id: str, + *, + filter: 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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/labelHistory" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_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 filter is not None: + _params["$filter"] = _SERIALIZER.query("filter", filter, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_container_apps_patches_get_request( + resource_group_name: str, container_app_name: str, patch_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/patches/{patchName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), + "patchName": _SERIALIZER.url("patch_name", patch_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_container_apps_patches_delete_request( # pylint: disable=name-too-long + resource_group_name: str, container_app_name: str, patch_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/patches/{patchName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), + "patchName": _SERIALIZER.url("patch_name", patch_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_container_apps_patches_list_by_container_app_request( # pylint: disable=name-too-long + resource_group_name: str, + container_app_name: str, + subscription_id: str, + *, + filter: 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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/patches" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_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 filter is not None: + _params["$filter"] = _SERIALIZER.query("filter", filter, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_container_apps_patches_skip_configure_request( # pylint: disable=name-too-long + resource_group_name: str, container_app_name: str, patch_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/patches/{patchName}/skipConfig" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), + "patchName": _SERIALIZER.url("patch_name", patch_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_container_apps_patches_apply_request( # pylint: disable=name-too-long + resource_group_name: str, container_app_name: str, patch_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/patches/{patchName}/apply" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), + "patchName": _SERIALIZER.url("patch_name", patch_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_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_container_apps_revision_replicas_get_replica_request( # pylint: disable=name-too-long + resource_group_name: str, + container_app_name: str, + revision_name: str, + replica_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/replicas/{replicaName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), + "revisionName": _SERIALIZER.url("revision_name", revision_name, "str"), + "replicaName": _SERIALIZER.url("replica_name", replica_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_container_apps_revision_replicas_list_replicas_request( # pylint: disable=name-too-long + resource_group_name: str, container_app_name: str, revision_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/replicas" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), + "revisionName": _SERIALIZER.url("revision_name", revision_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_dot_net_components_get_request( + resource_group_name: str, environment_name: str, name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/dotNetComponents/{name}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "name": _SERIALIZER.url("name", name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_dot_net_components_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/dotNetComponents/{name}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "name": _SERIALIZER.url("name", name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_dot_net_components_update_request( + resource_group_name: str, environment_name: str, name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/dotNetComponents/{name}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "name": _SERIALIZER.url("name", name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_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_dot_net_components_delete_request( + resource_group_name: str, environment_name: str, name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/dotNetComponents/{name}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "name": _SERIALIZER.url("name", name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_dot_net_components_list_request( + resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/dotNetComponents" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_java_components_get_request( + resource_group_name: str, environment_name: str, name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/javaComponents/{name}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "name": _SERIALIZER.url("name", name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_java_components_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/javaComponents/{name}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "name": _SERIALIZER.url("name", name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_java_components_update_request( + resource_group_name: str, environment_name: str, name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/javaComponents/{name}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "name": _SERIALIZER.url("name", name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_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_java_components_delete_request( + resource_group_name: str, environment_name: str, name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/javaComponents/{name}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "name": _SERIALIZER.url("name", name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_java_components_list_request( + resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/javaComponents" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_logic_apps_get_request( + resource_group_name: str, container_app_name: str, logic_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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/providers/Microsoft.App/logicApps/{logicAppName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), + "logicAppName": _SERIALIZER.url("logic_app_name", logic_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) + + +def build_logic_apps_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, container_app_name: str, logic_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 {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/providers/Microsoft.App/logicApps/{logicAppName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), + "logicAppName": _SERIALIZER.url("logic_app_name", logic_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_logic_apps_delete_request( + resource_group_name: str, container_app_name: str, logic_app_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/providers/Microsoft.App/logicApps/{logicAppName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), + "logicAppName": _SERIALIZER.url("logic_app_name", logic_app_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_logic_apps_deploy_workflow_artifacts_request( # pylint: disable=name-too-long + resource_group_name: str, container_app_name: str, logic_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 {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/providers/Microsoft.App/logicApps/{logicAppName}/deployWorkflowArtifacts" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), + "logicAppName": _SERIALIZER.url("logic_app_name", logic_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") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_logic_apps_list_workflows_connections_request( # pylint: disable=name-too-long + resource_group_name: str, container_app_name: str, logic_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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/providers/Microsoft.App/logicApps/{logicAppName}/listWorkflowsConnections" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), + "logicAppName": _SERIALIZER.url("logic_app_name", logic_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_logic_apps_invoke_request( + resource_group_name: str, + container_app_name: str, + logic_app_name: str, + subscription_id: str, + *, + x_ms_logic_apps_proxy_path: str, + x_ms_logic_apps_proxy_method: Union[str, _models.LogicAppsProxyMethod], + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/providers/Microsoft.App/logicApps/{logicAppName}/invoke" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), + "logicAppName": _SERIALIZER.url("logic_app_name", logic_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["x-ms-logicApps-proxy-path"] = _SERIALIZER.header( + "x_ms_logic_apps_proxy_path", x_ms_logic_apps_proxy_path, "str" + ) + _headers["x-ms-logicApps-proxy-method"] = _SERIALIZER.header( + "x_ms_logic_apps_proxy_method", x_ms_logic_apps_proxy_method, "str" + ) + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_logic_apps_get_workflow_request( + resource_group_name: str, + container_app_name: str, + logic_app_name: str, + workflow_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/providers/Microsoft.App/logicApps/{logicAppName}/workflows/{workflowName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), + "logicAppName": _SERIALIZER.url("logic_app_name", logic_app_name, "str"), + "workflowName": _SERIALIZER.url("workflow_name", workflow_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_logic_apps_list_workflows_request( + resource_group_name: str, container_app_name: str, logic_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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/providers/Microsoft.App/logicApps/{logicAppName}/workflows" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), + "logicAppName": _SERIALIZER.url("logic_app_name", logic_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) + + +def build_container_apps_auth_configs_get_request( # pylint: disable=name-too-long + resource_group_name: str, container_app_name: str, auth_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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{authConfigName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), + "authConfigName": _SERIALIZER.url("auth_config_name", auth_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_container_apps_auth_configs_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, container_app_name: str, auth_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 {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{authConfigName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), + "authConfigName": _SERIALIZER.url("auth_config_name", auth_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_container_apps_auth_configs_delete_request( # pylint: disable=name-too-long + resource_group_name: str, container_app_name: str, auth_config_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{authConfigName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), + "authConfigName": _SERIALIZER.url("auth_config_name", auth_config_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_container_apps_auth_configs_list_by_container_app_request( # pylint: disable=name-too-long + resource_group_name: str, container_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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_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) + + +def build_builders_get_request( + resource_group_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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_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_builders_create_or_update_request( + resource_group_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 {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_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_builders_update_request( + resource_group_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 {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_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="PATCH", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_builders_delete_request( + resource_group_name: str, builder_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_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") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_builders_list_by_resource_group_request( # pylint: disable=name-too-long + 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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders" + 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_builders_list_by_subscription_request( # pylint: disable=name-too-long + subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.App/builders" + 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_builds_get_request( + resource_group_name: str, builder_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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}/builds/{buildName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "builderName": _SERIALIZER.url("builder_name", builder_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_builds_create_or_update_request( + resource_group_name: str, builder_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 {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}/builds/{buildName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "builderName": _SERIALIZER.url("builder_name", builder_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_builds_delete_request( + resource_group_name: str, builder_name: str, build_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}/builds/{buildName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "builderName": _SERIALIZER.url("builder_name", builder_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") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_connected_environments_get_request( + resource_group_name: str, connected_environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_connected_environments_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, connected_environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_connected_environments_update_request( # pylint: disable=name-too-long + resource_group_name: str, connected_environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_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_connected_environments_delete_request( # pylint: disable=name-too-long + resource_group_name: str, connected_environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_connected_environments_list_by_resource_group_request( # pylint: disable=name-too-long + 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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments" + 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_connected_environments_list_by_subscription_request( # pylint: disable=name-too-long + subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.App/connectedEnvironments" + 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_connected_environments_check_name_availability_request( # pylint: disable=name-too-long + resource_group_name: str, connected_environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/checkNameAvailability" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_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_certificates_get_request( + resource_group_name: str, environment_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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates/{certificateName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_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_certificates_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, environment_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 {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates/{certificateName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_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_certificates_update_request( + resource_group_name: str, environment_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 {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates/{certificateName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_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="PATCH", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_certificates_delete_request( + resource_group_name: str, environment_name: str, certificate_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates/{certificateName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_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") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_certificates_list_request( + resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_connected_environments_dapr_components_get_request( # pylint: disable=name-too-long + resource_group_name: str, connected_environment_name: str, component_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/daprComponents/{componentName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_name, "str"), + "componentName": _SERIALIZER.url("component_name", component_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_connected_environments_dapr_components_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, connected_environment_name: str, component_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/daprComponents/{componentName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_name, "str"), + "componentName": _SERIALIZER.url("component_name", component_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_connected_environments_dapr_components_delete_request( # pylint: disable=name-too-long + resource_group_name: str, connected_environment_name: str, component_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/daprComponents/{componentName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_name, "str"), + "componentName": _SERIALIZER.url("component_name", component_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_connected_environments_dapr_components_list_request( # pylint: disable=name-too-long + resource_group_name: str, connected_environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/daprComponents" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_connected_environments_dapr_components_list_secrets_request( # pylint: disable=name-too-long + resource_group_name: str, connected_environment_name: str, component_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/daprComponents/{componentName}/listSecrets" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_name, "str"), + "componentName": _SERIALIZER.url("component_name", component_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_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_dapr_components_get_request( + resource_group_name: str, environment_name: str, component_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "componentName": _SERIALIZER.url("component_name", component_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_dapr_components_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, component_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "componentName": _SERIALIZER.url("component_name", component_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_dapr_components_delete_request( + resource_group_name: str, environment_name: str, component_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "componentName": _SERIALIZER.url("component_name", component_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_dapr_components_list_request( + resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_dapr_components_list_secrets_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, component_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}/listSecrets" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "componentName": _SERIALIZER.url("component_name", component_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_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_connected_environments_storages_get_request( # pylint: disable=name-too-long + resource_group_name: str, connected_environment_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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/storages/{storageName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_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_connected_environments_storages_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, connected_environment_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 {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/storages/{storageName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_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_connected_environments_storages_delete_request( # pylint: disable=name-too-long + resource_group_name: str, connected_environment_name: str, storage_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/storages/{storageName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_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") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_connected_environments_storages_list_request( # pylint: disable=name-too-long + resource_group_name: str, connected_environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/storages" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_managed_environments_get_request( + resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_managed_environments_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_managed_environments_update_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_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_managed_environments_delete_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_managed_environments_list_by_resource_group_request( # pylint: disable=name-too-long + 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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = ( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments" + ) + 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_managed_environments_list_by_subscription_request( # pylint: disable=name-too-long + subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.App/managedEnvironments" + 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_managed_environments_get_auth_token_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/getAuthtoken" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_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_managed_environments_list_workload_profile_states_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/workloadProfileStates" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_managed_certificates_get_request( + resource_group_name: str, environment_name: str, managed_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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "managedCertificateName": _SERIALIZER.url("managed_certificate_name", managed_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_managed_certificates_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, managed_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 {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "managedCertificateName": _SERIALIZER.url("managed_certificate_name", managed_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_managed_certificates_update_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, managed_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 {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "managedCertificateName": _SERIALIZER.url("managed_certificate_name", managed_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="PATCH", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_managed_certificates_delete_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, managed_certificate_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "managedCertificateName": _SERIALIZER.url("managed_certificate_name", managed_certificate_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_managed_certificates_list_request( + resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/managedCertificates" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_dapr_component_resiliency_policies_get_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, component_name: str, name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}/resiliencyPolicies/{name}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "componentName": _SERIALIZER.url("component_name", component_name, "str"), + "name": _SERIALIZER.url("name", name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_dapr_component_resiliency_policies_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, component_name: str, name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}/resiliencyPolicies/{name}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "componentName": _SERIALIZER.url("component_name", component_name, "str"), + "name": _SERIALIZER.url("name", name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_dapr_component_resiliency_policies_delete_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, component_name: str, name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}/resiliencyPolicies/{name}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "componentName": _SERIALIZER.url("component_name", component_name, "str"), + "name": _SERIALIZER.url("name", name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_dapr_component_resiliency_policies_list_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, component_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}/resiliencyPolicies" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "componentName": _SERIALIZER.url("component_name", component_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_dapr_subscriptions_get_request( + resource_group_name: str, environment_name: str, name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprSubscriptions/{name}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "name": _SERIALIZER.url("name", name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_dapr_subscriptions_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprSubscriptions/{name}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "name": _SERIALIZER.url("name", name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_dapr_subscriptions_delete_request( + resource_group_name: str, environment_name: str, name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprSubscriptions/{name}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "name": _SERIALIZER.url("name", name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_dapr_subscriptions_list_request( + resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprSubscriptions" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_maintenance_configurations_get_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, 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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/maintenanceConfigurations/{configName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "configName": _SERIALIZER.url("config_name", 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_maintenance_configurations_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, 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 {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/maintenanceConfigurations/{configName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "configName": _SERIALIZER.url("config_name", 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_maintenance_configurations_delete_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, config_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/maintenanceConfigurations/{configName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "configName": _SERIALIZER.url("config_name", config_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_maintenance_configurations_list_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/maintenanceConfigurations" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_managed_environments_storages_get_request( # pylint: disable=name-too-long + resource_group_name: str, environment_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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages/{storageName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_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_managed_environments_storages_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, environment_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 {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages/{storageName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_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_managed_environments_storages_delete_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, storage_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages/{storageName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_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") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_managed_environments_storages_list_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/storages" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_jobs_get_request(resource_group_name: str, job_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "jobName": _SERIALIZER.url("job_name", job_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_jobs_create_or_update_request( + resource_group_name: str, job_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "jobName": _SERIALIZER.url("job_name", job_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_jobs_update_request( + resource_group_name: str, job_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "jobName": _SERIALIZER.url("job_name", job_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_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_jobs_delete_request( + resource_group_name: str, job_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "jobName": _SERIALIZER.url("job_name", job_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_jobs_list_by_resource_group_request( # pylint: disable=name-too-long + 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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs" + 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_jobs_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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.App/jobs" + 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_jobs_start_request( + resource_group_name: str, job_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/start" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "jobName": _SERIALIZER.url("job_name", job_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_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_jobs_stop_multiple_executions_request( # pylint: disable=name-too-long + resource_group_name: str, job_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = ( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/stop" + ) + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "jobName": _SERIALIZER.url("job_name", job_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_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_jobs_list_secrets_request( + resource_group_name: str, job_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/listSecrets" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "jobName": _SERIALIZER.url("job_name", job_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_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_jobs_resume_request( + resource_group_name: str, job_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/resume" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "jobName": _SERIALIZER.url("job_name", job_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_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_jobs_suspend_request( + resource_group_name: str, job_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/suspend" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "jobName": _SERIALIZER.url("job_name", job_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_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_jobs_stop_execution_request( + resource_group_name: str, job_name: str, job_execution_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/executions/{jobExecutionName}/stop" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "jobName": _SERIALIZER.url("job_name", job_name, "str"), + "jobExecutionName": _SERIALIZER.url("job_execution_name", job_execution_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="POST", url=_url, params=_params, **kwargs) + + +def build_jobs_proxy_get_request( + resource_group_name: str, job_name: str, api_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/detectorProperties/{apiName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "jobName": _SERIALIZER.url("job_name", job_name, "str"), + "apiName": _SERIALIZER.url("api_name", api_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_jobs_list_detectors_request( + resource_group_name: str, job_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/detectors" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "jobName": _SERIALIZER.url("job_name", job_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_jobs_get_detector_request( + resource_group_name: str, job_name: str, detector_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/detectors/{detectorName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "jobName": _SERIALIZER.url("job_name", job_name, "str"), + "detectorName": _SERIALIZER.url("detector_name", detector_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_container_apps_diagnostics_get_revision_request( # pylint: disable=name-too-long + resource_group_name: str, container_app_name: str, revision_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorProperties/revisionsApi/revisions/{revisionName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), + "revisionName": _SERIALIZER.url("revision_name", revision_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_container_apps_diagnostics_list_revisions_request( # pylint: disable=name-too-long + resource_group_name: str, + container_app_name: str, + subscription_id: str, + *, + filter: 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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorProperties/revisionsApi/revisions/" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_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 filter is not None: + _params["$filter"] = _SERIALIZER.query("filter", filter, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_container_apps_diagnostics_get_root_request( # pylint: disable=name-too-long + resource_group_name: str, container_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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectorProperties/rootApi/" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_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) + + +def build_container_apps_diagnostics_list_detectors_request( # pylint: disable=name-too-long + resource_group_name: str, container_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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectors" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_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) + + +def build_container_apps_diagnostics_get_detector_request( # pylint: disable=name-too-long + resource_group_name: str, container_app_name: str, detector_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/detectors/{detectorName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), + "detectorName": _SERIALIZER.url("detector_name", detector_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_managed_environments_diagnostics_get_root_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/detectorProperties/rootApi/" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_container_apps_builds_by_container_app_list_request( # pylint: disable=name-too-long + resource_group_name: str, container_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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/builds" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_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) + + +def build_container_apps_revision_functions_get_request( # pylint: disable=name-too-long + resource_group_name: str, + container_app_name: str, + revision_name: str, + function_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/functions/{functionName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), + "revisionName": _SERIALIZER.url("revision_name", revision_name, "str"), + "functionName": _SERIALIZER.url("function_name", function_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_container_apps_revision_functions_list_request( # pylint: disable=name-too-long + resource_group_name: str, container_app_name: str, revision_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/functions" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "containerAppName": _SERIALIZER.url("container_app_name", container_app_name, "str"), + "revisionName": _SERIALIZER.url("revision_name", revision_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_app_resiliency_get_request( + resource_group_name: str, app_name: str, name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{appName}/resiliencyPolicies/{name}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "appName": _SERIALIZER.url("app_name", app_name, "str"), + "name": _SERIALIZER.url("name", name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_app_resiliency_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, app_name: str, name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{appName}/resiliencyPolicies/{name}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "appName": _SERIALIZER.url("app_name", app_name, "str"), + "name": _SERIALIZER.url("name", name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_app_resiliency_update_request( + resource_group_name: str, app_name: str, name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{appName}/resiliencyPolicies/{name}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "appName": _SERIALIZER.url("app_name", app_name, "str"), + "name": _SERIALIZER.url("name", name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_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_app_resiliency_delete_request( + resource_group_name: str, app_name: str, name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{appName}/resiliencyPolicies/{name}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "appName": _SERIALIZER.url("app_name", app_name, "str"), + "name": _SERIALIZER.url("name", name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_app_resiliency_list_request( + resource_group_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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{appName}/resiliencyPolicies" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_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) + + +def build_builds_by_builder_resource_list_request( # pylint: disable=name-too-long + resource_group_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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}/builds" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_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_build_auth_token_list_request( + resource_group_name: str, builder_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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}/builds/{buildName}/listAuthToken" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "builderName": _SERIALIZER.url("builder_name", builder_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="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_connected_environments_certificates_get_request( # pylint: disable=name-too-long + resource_group_name: str, + connected_environment_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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/certificates/{certificateName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_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_connected_environments_certificates_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, + connected_environment_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 {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/certificates/{certificateName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_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_connected_environments_certificates_update_request( # pylint: disable=name-too-long + resource_group_name: str, + connected_environment_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 {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/certificates/{certificateName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_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="PATCH", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_connected_environments_certificates_delete_request( # pylint: disable=name-too-long + resource_group_name: str, + connected_environment_name: str, + certificate_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/certificates/{certificateName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_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") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_connected_environments_certificates_list_request( # pylint: disable=name-too-long + resource_group_name: str, connected_environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/certificates" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "connectedEnvironmentName": _SERIALIZER.url("connected_environment_name", connected_environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_namespaces_check_name_availability_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/checkNameAvailability" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_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_managed_environment_private_link_resources_list_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/privateLinkResources" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_managed_environment_private_endpoint_connections_get_request( # pylint: disable=name-too-long + resource_group_name: str, + environment_name: str, + private_endpoint_connection_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/privateEndpointConnections/{privateEndpointConnectionName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "privateEndpointConnectionName": _SERIALIZER.url( + "private_endpoint_connection_name", private_endpoint_connection_name, "str" + ), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_managed_environment_private_endpoint_connections_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, + environment_name: str, + private_endpoint_connection_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/privateEndpointConnections/{privateEndpointConnectionName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "privateEndpointConnectionName": _SERIALIZER.url( + "private_endpoint_connection_name", private_endpoint_connection_name, "str" + ), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_managed_environment_private_endpoint_connections_delete_request( # pylint: disable=name-too-long + resource_group_name: str, + environment_name: str, + private_endpoint_connection_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/privateEndpointConnections/{privateEndpointConnectionName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "privateEndpointConnectionName": _SERIALIZER.url( + "private_endpoint_connection_name", private_endpoint_connection_name, "str" + ), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_managed_environment_private_endpoint_connections_list_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/privateEndpointConnections" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_http_route_config_get_request( + resource_group_name: str, environment_name: str, http_route_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/httpRouteConfigs/{httpRouteName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "httpRouteName": _SERIALIZER.url("http_route_name", http_route_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_http_route_config_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, http_route_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/httpRouteConfigs/{httpRouteName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "httpRouteName": _SERIALIZER.url("http_route_name", http_route_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_http_route_config_update_request( + resource_group_name: str, environment_name: str, http_route_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/httpRouteConfigs/{httpRouteName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "httpRouteName": _SERIALIZER.url("http_route_name", http_route_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_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_http_route_config_delete_request( + resource_group_name: str, environment_name: str, http_route_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/httpRouteConfigs/{httpRouteName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "httpRouteName": _SERIALIZER.url("http_route_name", http_route_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_http_route_config_list_request( + resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/httpRouteConfigs" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_jobs_executions_list_request( + resource_group_name: str, job_name: str, subscription_id: str, *, filter: 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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/executions" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "jobName": _SERIALIZER.url("job_name", job_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + if filter is not None: + _params["$filter"] = _SERIALIZER.query("filter", filter, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_managed_environment_diagnostics_list_detectors_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/detectors" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_managed_environment_diagnostics_get_detector_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, detector_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/detectors/{detectorName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "detectorName": _SERIALIZER.url("detector_name", detector_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_available_workload_profiles_get_request( # pylint: disable=name-too-long + 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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.App/locations/{location}/availableManagedEnvironmentsWorkloadProfileTypes" + 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 + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_billing_meters_get_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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.App/locations/{location}/billingMeters" + 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 + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_usages_list_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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.App/locations/{location}/usages" + 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 + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_managed_environment_usages_list_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/usages" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_container_apps_api_get_custom_domain_verification_id_request( # pylint: disable=name-too-long + subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "text/plain") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.App/getCustomDomainVerificationId" + 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="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_container_apps_api_job_execution_request( # pylint: disable=name-too-long + resource_group_name: str, job_name: str, job_execution_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/executions/{jobExecutionName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "jobName": _SERIALIZER.url("job_name", job_name, "str"), + "jobExecutionName": _SERIALIZER.url("job_execution_name", job_execution_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -63,10 +5393,23039 @@ class Operations: Instead, you should access the following operations through :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`operations` attribute. + :attr:`operations` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def list(self, **kwargs: Any) -> ItemPaged["_models.OperationDetail"]: + """Lists all of the available RP operations. + + :return: An iterator like instance of OperationDetail + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.OperationDetail] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.OperationDetail]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_operations_list_request( + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.OperationDetail], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class ContainerAppsSessionPoolsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`container_apps_session_pools` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get(self, resource_group_name: str, session_pool_name: str, **kwargs: Any) -> _models.SessionPool: + """Get the properties of a session pool. + + Get the properties of a session pool. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param session_pool_name: Name of the session pool. Required. + :type session_pool_name: str + :return: SessionPool. The SessionPool is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.SessionPool + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.SessionPool] = kwargs.pop("cls", None) + + _request = build_container_apps_session_pools_get_request( + resource_group_name=resource_group_name, + session_pool_name=session_pool_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.SessionPool, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _create_or_update_initial( + self, + resource_group_name: str, + session_pool_name: str, + session_pool_envelope: Union[_models.SessionPool, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(session_pool_envelope, (IOBase, bytes)): + _content = session_pool_envelope + else: + _content = json.dumps(session_pool_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_container_apps_session_pools_create_or_update_request( + resource_group_name=resource_group_name, + session_pool_name=session_pool_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + session_pool_name: str, + session_pool_envelope: _models.SessionPool, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.SessionPool]: + """Create or update a session pool. + + Create or update a session pool with the given properties. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param session_pool_name: Name of the session pool. Required. + :type session_pool_name: str + :param session_pool_envelope: Properties used to create a session pool. Required. + :type session_pool_envelope: ~azure.mgmt.appcontainers.models.SessionPool + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns SessionPool. The SessionPool is compatible with + MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.SessionPool] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + session_pool_name: str, + session_pool_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.SessionPool]: + """Create or update a session pool. + + Create or update a session pool with the given properties. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param session_pool_name: Name of the session pool. Required. + :type session_pool_name: str + :param session_pool_envelope: Properties used to create a session pool. Required. + :type session_pool_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns SessionPool. The SessionPool is compatible with + MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.SessionPool] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + session_pool_name: str, + session_pool_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.SessionPool]: + """Create or update a session pool. + + Create or update a session pool with the given properties. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param session_pool_name: Name of the session pool. Required. + :type session_pool_name: str + :param session_pool_envelope: Properties used to create a session pool. Required. + :type session_pool_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns SessionPool. The SessionPool is compatible with + MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.SessionPool] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_create_or_update( + self, + resource_group_name: str, + session_pool_name: str, + session_pool_envelope: Union[_models.SessionPool, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.SessionPool]: + """Create or update a session pool. + + Create or update a session pool with the given properties. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param session_pool_name: Name of the session pool. Required. + :type session_pool_name: str + :param session_pool_envelope: Properties used to create a session pool. Is one of the following + types: SessionPool, JSON, IO[bytes] Required. + :type session_pool_envelope: ~azure.mgmt.appcontainers.models.SessionPool or JSON or IO[bytes] + :return: An instance of LROPoller that returns SessionPool. The SessionPool is compatible with + MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.SessionPool] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.SessionPool] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + session_pool_name=session_pool_name, + session_pool_envelope=session_pool_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.SessionPool, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.SessionPool].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.SessionPool]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _update_initial( + self, + resource_group_name: str, + session_pool_name: str, + session_pool_envelope: Union[_models.SessionPoolUpdatableProperties, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(session_pool_envelope, (IOBase, bytes)): + _content = session_pool_envelope + else: + _content = json.dumps(session_pool_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_container_apps_session_pools_update_request( + resource_group_name=resource_group_name, + session_pool_name=session_pool_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_update( + self, + resource_group_name: str, + session_pool_name: str, + session_pool_envelope: _models.SessionPoolUpdatableProperties, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.SessionPool]: + """Update properties of a session pool. + + Patches a session pool using JSON merge patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param session_pool_name: Name of the session pool. Required. + :type session_pool_name: str + :param session_pool_envelope: Properties used to create a session pool. Required. + :type session_pool_envelope: ~azure.mgmt.appcontainers.models.SessionPoolUpdatableProperties + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns SessionPool. The SessionPool is compatible with + MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.SessionPool] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update( + self, + resource_group_name: str, + session_pool_name: str, + session_pool_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.SessionPool]: + """Update properties of a session pool. + + Patches a session pool using JSON merge patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param session_pool_name: Name of the session pool. Required. + :type session_pool_name: str + :param session_pool_envelope: Properties used to create a session pool. Required. + :type session_pool_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns SessionPool. The SessionPool is compatible with + MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.SessionPool] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update( + self, + resource_group_name: str, + session_pool_name: str, + session_pool_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.SessionPool]: + """Update properties of a session pool. + + Patches a session pool using JSON merge patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param session_pool_name: Name of the session pool. Required. + :type session_pool_name: str + :param session_pool_envelope: Properties used to create a session pool. Required. + :type session_pool_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns SessionPool. The SessionPool is compatible with + MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.SessionPool] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_update( + self, + resource_group_name: str, + session_pool_name: str, + session_pool_envelope: Union[_models.SessionPoolUpdatableProperties, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.SessionPool]: + """Update properties of a session pool. + + Patches a session pool using JSON merge patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param session_pool_name: Name of the session pool. Required. + :type session_pool_name: str + :param session_pool_envelope: Properties used to create a session pool. Is one of the following + types: SessionPoolUpdatableProperties, JSON, IO[bytes] Required. + :type session_pool_envelope: ~azure.mgmt.appcontainers.models.SessionPoolUpdatableProperties or + JSON or IO[bytes] + :return: An instance of LROPoller that returns SessionPool. The SessionPool is compatible with + MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.SessionPool] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.SessionPool] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.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, + session_pool_name=session_pool_name, + session_pool_envelope=session_pool_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.SessionPool, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.SessionPool].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.SessionPool]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _delete_initial(self, resource_group_name: str, session_pool_name: str, **kwargs: Any) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_container_apps_session_pools_delete_request( + resource_group_name=resource_group_name, + session_pool_name=session_pool_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: 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]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete(self, resource_group_name: str, session_pool_name: str, **kwargs: Any) -> LROPoller[None]: + """Delete a session pool. + + Delete the session pool with the given name. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param session_pool_name: Name of the session pool. Required. + :type session_pool_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + session_pool_name=session_pool_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.SessionPool"]: + """Get the session pools in a given resource group of a subscription. + + Get the session pools in a given resource group of a subscription. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of SessionPool + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.SessionPool] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.SessionPool]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_container_apps_session_pools_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.SessionPool], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.SessionPool"]: + """Get the session pools in a given subscription. + + Get the session pools in a given subscription. + + :return: An iterator like instance of SessionPool + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.SessionPool] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.SessionPool]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_container_apps_session_pools_list_by_subscription_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.SessionPool], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def fetch_mcp_server_credentials( + self, resource_group_name: str, session_pool_name: str, **kwargs: Any + ) -> _models.McpServerCredential: + """Fetch the MCP server credentials of a session pool. + + Fetch the MCP server credentials of a session pool. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param session_pool_name: Name of the session pool. Required. + :type session_pool_name: str + :return: McpServerCredential. The McpServerCredential is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.McpServerCredential + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.McpServerCredential] = kwargs.pop("cls", None) + + _request = build_container_apps_session_pools_fetch_mcp_server_credentials_request( + resource_group_name=resource_group_name, + session_pool_name=session_pool_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.McpServerCredential, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def rotate_mcp_server_credentials( + self, resource_group_name: str, session_pool_name: str, **kwargs: Any + ) -> _models.McpServerCredential: + """Rotate and fetch the rotated MCP server credentials of a session pool. + + Rotate and fetch the rotated MCP server credentials of a session pool. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param session_pool_name: Name of the session pool. Required. + :type session_pool_name: str + :return: McpServerCredential. The McpServerCredential is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.McpServerCredential + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.McpServerCredential] = kwargs.pop("cls", None) + + _request = build_container_apps_session_pools_rotate_mcp_server_credentials_request( + resource_group_name=resource_group_name, + session_pool_name=session_pool_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.McpServerCredential, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class ContainerAppsSourceControlsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`container_apps_source_controls` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, resource_group_name: str, container_app_name: str, source_control_name: str, **kwargs: Any + ) -> _models.SourceControl: + """Get a SourceControl of a Container App. + + Get a SourceControl of a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param source_control_name: Name of the Container App SourceControl. Required. + :type source_control_name: str + :return: SourceControl. The SourceControl is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.SourceControl + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.SourceControl] = kwargs.pop("cls", None) + + _request = build_container_apps_source_controls_get_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + source_control_name=source_control_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.SourceControl, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _create_or_update_initial( + self, + resource_group_name: str, + container_app_name: str, + source_control_name: str, + source_control_envelope: Union[_models.SourceControl, JSON, IO[bytes]], + *, + x_ms_github_auxiliary: Optional[str] = None, + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(source_control_envelope, (IOBase, bytes)): + _content = source_control_envelope + else: + _content = json.dumps(source_control_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_container_apps_source_controls_create_or_update_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + source_control_name=source_control_name, + subscription_id=self._config.subscription_id, + x_ms_github_auxiliary=x_ms_github_auxiliary, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + container_app_name: str, + source_control_name: str, + source_control_envelope: _models.SourceControl, + *, + x_ms_github_auxiliary: Optional[str] = None, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.SourceControl]: + """Create or update the SourceControl for a Container App. + + Create or update the SourceControl for a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param source_control_name: Name of the Container App SourceControl. Required. + :type source_control_name: str + :param source_control_envelope: Properties used to create a Container App SourceControl. + Required. + :type source_control_envelope: ~azure.mgmt.appcontainers.models.SourceControl + :keyword x_ms_github_auxiliary: Github personal access token used for SourceControl. Default + value is None. + :paramtype x_ms_github_auxiliary: str + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns SourceControl. The SourceControl is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.SourceControl] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + container_app_name: str, + source_control_name: str, + source_control_envelope: JSON, + *, + x_ms_github_auxiliary: Optional[str] = None, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.SourceControl]: + """Create or update the SourceControl for a Container App. + + Create or update the SourceControl for a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param source_control_name: Name of the Container App SourceControl. Required. + :type source_control_name: str + :param source_control_envelope: Properties used to create a Container App SourceControl. + Required. + :type source_control_envelope: JSON + :keyword x_ms_github_auxiliary: Github personal access token used for SourceControl. Default + value is None. + :paramtype x_ms_github_auxiliary: str + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns SourceControl. The SourceControl is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.SourceControl] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + container_app_name: str, + source_control_name: str, + source_control_envelope: IO[bytes], + *, + x_ms_github_auxiliary: Optional[str] = None, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.SourceControl]: + """Create or update the SourceControl for a Container App. + + Create or update the SourceControl for a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param source_control_name: Name of the Container App SourceControl. Required. + :type source_control_name: str + :param source_control_envelope: Properties used to create a Container App SourceControl. + Required. + :type source_control_envelope: IO[bytes] + :keyword x_ms_github_auxiliary: Github personal access token used for SourceControl. Default + value is None. + :paramtype x_ms_github_auxiliary: str + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns SourceControl. The SourceControl is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.SourceControl] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_create_or_update( + self, + resource_group_name: str, + container_app_name: str, + source_control_name: str, + source_control_envelope: Union[_models.SourceControl, JSON, IO[bytes]], + *, + x_ms_github_auxiliary: Optional[str] = None, + **kwargs: Any + ) -> LROPoller[_models.SourceControl]: + """Create or update the SourceControl for a Container App. + + Create or update the SourceControl for a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param source_control_name: Name of the Container App SourceControl. Required. + :type source_control_name: str + :param source_control_envelope: Properties used to create a Container App SourceControl. Is one + of the following types: SourceControl, JSON, IO[bytes] Required. + :type source_control_envelope: ~azure.mgmt.appcontainers.models.SourceControl or JSON or + IO[bytes] + :keyword x_ms_github_auxiliary: Github personal access token used for SourceControl. Default + value is None. + :paramtype x_ms_github_auxiliary: str + :return: An instance of LROPoller that returns SourceControl. The SourceControl is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.SourceControl] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.SourceControl] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + source_control_name=source_control_name, + source_control_envelope=source_control_envelope, + x_ms_github_auxiliary=x_ms_github_auxiliary, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.SourceControl, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.SourceControl].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.SourceControl]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _delete_initial( + self, + resource_group_name: str, + container_app_name: str, + source_control_name: str, + *, + x_ms_github_auxiliary: Optional[str] = None, + ignore_workflow_deletion_failure: Optional[bool] = None, + delete_workflow: Optional[bool] = None, + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_container_apps_source_controls_delete_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + source_control_name=source_control_name, + subscription_id=self._config.subscription_id, + x_ms_github_auxiliary=x_ms_github_auxiliary, + ignore_workflow_deletion_failure=ignore_workflow_deletion_failure, + delete_workflow=delete_workflow, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete( + self, + resource_group_name: str, + container_app_name: str, + source_control_name: str, + *, + x_ms_github_auxiliary: Optional[str] = None, + ignore_workflow_deletion_failure: Optional[bool] = None, + delete_workflow: Optional[bool] = None, + **kwargs: Any + ) -> LROPoller[None]: + """Delete a Container App SourceControl. + + Delete a Container App SourceControl. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param source_control_name: Name of the Container App SourceControl. Required. + :type source_control_name: str + :keyword x_ms_github_auxiliary: Github personal access token used for SourceControl. Default + value is None. + :paramtype x_ms_github_auxiliary: str + :keyword ignore_workflow_deletion_failure: Ignore Workflow Deletion Failure. Default value is + None. + :paramtype ignore_workflow_deletion_failure: bool + :keyword delete_workflow: Delete workflow. Default value is None. + :paramtype delete_workflow: bool + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + source_control_name=source_control_name, + x_ms_github_auxiliary=x_ms_github_auxiliary, + ignore_workflow_deletion_failure=ignore_workflow_deletion_failure, + delete_workflow=delete_workflow, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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_by_container_app( + self, resource_group_name: str, container_app_name: str, **kwargs: Any + ) -> ItemPaged["_models.SourceControl"]: + """Get the Container App SourceControls in a given resource group. + + Get the Container App SourceControls in a given resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :return: An iterator like instance of SourceControl + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.SourceControl] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.SourceControl]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_container_apps_source_controls_list_by_container_app_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.SourceControl], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class ContainerAppsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`container_apps` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get(self, resource_group_name: str, container_app_name: str, **kwargs: Any) -> _models.ContainerApp: + """Get the properties of a Container App. + + Get the properties of a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :return: ContainerApp. The ContainerApp is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ContainerApp + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ContainerApp] = kwargs.pop("cls", None) + + _request = build_container_apps_get_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ContainerApp, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _create_or_update_initial( + self, + resource_group_name: str, + container_app_name: str, + container_app_envelope: Union[_models.ContainerApp, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(container_app_envelope, (IOBase, bytes)): + _content = container_app_envelope + else: + _content = json.dumps(container_app_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_container_apps_create_or_update_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + container_app_name: str, + container_app_envelope: _models.ContainerApp, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ContainerApp]: + """Create or update a Container App. + + Create or update a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param container_app_envelope: Properties used to create a container app. Required. + :type container_app_envelope: ~azure.mgmt.appcontainers.models.ContainerApp + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ContainerApp. The ContainerApp is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ContainerApp] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + container_app_name: str, + container_app_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ContainerApp]: + """Create or update a Container App. + + Create or update a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param container_app_envelope: Properties used to create a container app. Required. + :type container_app_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ContainerApp. The ContainerApp is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ContainerApp] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + container_app_name: str, + container_app_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ContainerApp]: + """Create or update a Container App. + + Create or update a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param container_app_envelope: Properties used to create a container app. Required. + :type container_app_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ContainerApp. The ContainerApp is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ContainerApp] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_create_or_update( + self, + resource_group_name: str, + container_app_name: str, + container_app_envelope: Union[_models.ContainerApp, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.ContainerApp]: + """Create or update a Container App. + + Create or update a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param container_app_envelope: Properties used to create a container app. Is one of the + following types: ContainerApp, JSON, IO[bytes] Required. + :type container_app_envelope: ~azure.mgmt.appcontainers.models.ContainerApp or JSON or + IO[bytes] + :return: An instance of LROPoller that returns ContainerApp. The ContainerApp is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ContainerApp] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ContainerApp] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + container_app_envelope=container_app_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.ContainerApp, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.ContainerApp].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.ContainerApp]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _update_initial( + self, + resource_group_name: str, + container_app_name: str, + container_app_envelope: Union[_models.ContainerApp, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(container_app_envelope, (IOBase, bytes)): + _content = container_app_envelope + else: + _content = json.dumps(container_app_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_container_apps_update_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_update( + self, + resource_group_name: str, + container_app_name: str, + container_app_envelope: _models.ContainerApp, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ContainerApp]: + """Update properties of a Container App. + + Patches a Container App using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param container_app_envelope: Properties of a Container App that need to be updated. Required. + :type container_app_envelope: ~azure.mgmt.appcontainers.models.ContainerApp + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ContainerApp. The ContainerApp is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ContainerApp] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update( + self, + resource_group_name: str, + container_app_name: str, + container_app_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ContainerApp]: + """Update properties of a Container App. + + Patches a Container App using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param container_app_envelope: Properties of a Container App that need to be updated. Required. + :type container_app_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ContainerApp. The ContainerApp is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ContainerApp] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update( + self, + resource_group_name: str, + container_app_name: str, + container_app_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ContainerApp]: + """Update properties of a Container App. + + Patches a Container App using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param container_app_envelope: Properties of a Container App that need to be updated. Required. + :type container_app_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ContainerApp. The ContainerApp is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ContainerApp] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_update( + self, + resource_group_name: str, + container_app_name: str, + container_app_envelope: Union[_models.ContainerApp, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.ContainerApp]: + """Update properties of a Container App. + + Patches a Container App using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param container_app_envelope: Properties of a Container App that need to be updated. Is one of + the following types: ContainerApp, JSON, IO[bytes] Required. + :type container_app_envelope: ~azure.mgmt.appcontainers.models.ContainerApp or JSON or + IO[bytes] + :return: An instance of LROPoller that returns ContainerApp. The ContainerApp is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ContainerApp] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ContainerApp] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.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, + container_app_name=container_app_name, + container_app_envelope=container_app_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.ContainerApp, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.ContainerApp].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.ContainerApp]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _delete_initial(self, resource_group_name: str, container_app_name: str, **kwargs: Any) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_container_apps_delete_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete(self, resource_group_name: str, container_app_name: str, **kwargs: Any) -> LROPoller[None]: + """Delete a Container App. + + Delete a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.ContainerApp"]: + """Get the Container Apps in a given resource group. + + Get the Container Apps in a given resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of ContainerApp + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.ContainerApp] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ContainerApp]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_container_apps_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ContainerApp], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.ContainerApp"]: + """Get the Container Apps in a given subscription. + + Get the Container Apps in a given subscription. + + :return: An iterator like instance of ContainerApp + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.ContainerApp] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ContainerApp]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_container_apps_list_by_subscription_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ContainerApp], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def list_custom_host_name_analysis( + self, resource_group_name: str, container_app_name: str, *, custom_hostname: Optional[str] = None, **kwargs: Any + ) -> _models.CustomHostnameAnalysisResult: + """Analyzes a custom hostname for a Container App. + + Analyzes a custom hostname for a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :keyword custom_hostname: Custom hostname. Default value is None. + :paramtype custom_hostname: str + :return: CustomHostnameAnalysisResult. The CustomHostnameAnalysisResult is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.CustomHostnameAnalysisResult + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.CustomHostnameAnalysisResult] = kwargs.pop("cls", None) + + _request = build_container_apps_list_custom_host_name_analysis_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + custom_hostname=custom_hostname, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.CustomHostnameAnalysisResult, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def list_secrets( + self, resource_group_name: str, container_app_name: str, **kwargs: Any + ) -> _models.SecretsCollection: + """List secrets for a container app. + + List secrets for a container app. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :return: SecretsCollection. The SecretsCollection is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.SecretsCollection + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.SecretsCollection] = kwargs.pop("cls", None) + + _request = build_container_apps_list_secrets_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.SecretsCollection, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def get_auth_token( + self, resource_group_name: str, container_app_name: str, **kwargs: Any + ) -> _models.ContainerAppAuthToken: + """Get auth token for a container app. + + Get auth token for a container app. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :return: ContainerAppAuthToken. The ContainerAppAuthToken is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ContainerAppAuthToken + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ContainerAppAuthToken] = kwargs.pop("cls", None) + + _request = build_container_apps_get_auth_token_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ContainerAppAuthToken, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _start_initial(self, resource_group_name: str, container_app_name: str, **kwargs: Any) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_container_apps_start_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_start( + self, resource_group_name: str, container_app_name: str, **kwargs: Any + ) -> LROPoller[_models.ContainerApp]: + """Start a container app. + + Start a container app. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :return: An instance of LROPoller that returns ContainerApp. The ContainerApp is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ContainerApp] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ContainerApp] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.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( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = _deserialize(_models.ContainerApp, response.json()) + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.ContainerApp].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.ContainerApp]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _stop_initial(self, resource_group_name: str, container_app_name: str, **kwargs: Any) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_container_apps_stop_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_stop( + self, resource_group_name: str, container_app_name: str, **kwargs: Any + ) -> LROPoller[_models.ContainerApp]: + """Stop a container app. + + Stop a container app. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :return: An instance of LROPoller that returns ContainerApp. The ContainerApp is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ContainerApp] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ContainerApp] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.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( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = _deserialize(_models.ContainerApp, response.json()) + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.ContainerApp].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.ContainerApp]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + +class ContainerAppsBuildsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`container_apps_builds` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, resource_group_name: str, container_app_name: str, build_name: str, **kwargs: Any + ) -> _models.ContainerAppsBuildResource: + """Get a Container Apps Build resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param build_name: Name of the build. Required. + :type build_name: str + :return: ContainerAppsBuildResource. The ContainerAppsBuildResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ContainerAppsBuildResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ContainerAppsBuildResource] = kwargs.pop("cls", None) + + _request = build_container_apps_builds_get_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + build_name=build_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ContainerAppsBuildResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _delete_initial( + self, resource_group_name: str, container_app_name: str, build_name: str, **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_container_apps_builds_delete_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + build_name=build_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: 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]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete( + self, resource_group_name: str, container_app_name: str, build_name: str, **kwargs: Any + ) -> LROPoller[None]: + """Delete a Container Apps Build resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param build_name: Name of the build. Required. + :type build_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + build_name=build_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + +class ContainerAppsFunctionsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`container_apps_functions` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, resource_group_name: str, container_app_name: str, function_name: str, **kwargs: Any + ) -> _models.ContainerAppsFunction: + """Get a specific function of a Container App from the latest Revision. + + Get a specific function of a Container App from the latest Revision. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param function_name: Name of the Function. Required. + :type function_name: str + :return: ContainerAppsFunction. The ContainerAppsFunction is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ContainerAppsFunction + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ContainerAppsFunction] = kwargs.pop("cls", None) + + _request = build_container_apps_functions_get_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + function_name=function_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ContainerAppsFunction, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def list( + self, resource_group_name: str, container_app_name: str, **kwargs: Any + ) -> ItemPaged["_models.ContainerAppsFunction"]: + """List the functions for a given Container App from the latest Revision. + + List the functions for a given Container App from the latest Revision. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :return: An iterator like instance of ContainerAppsFunction + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.ContainerAppsFunction] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ContainerAppsFunction]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_container_apps_functions_list_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ContainerAppsFunction], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class ContainerAppsRevisionsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`container_apps_revisions` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get_revision( + self, resource_group_name: str, container_app_name: str, revision_name: str, **kwargs: Any + ) -> _models.Revision: + """Get a revision of a Container App. + + Get a revision of a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param revision_name: Name of the Container App Revision. Required. + :type revision_name: str + :return: Revision. The Revision is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Revision + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.Revision] = kwargs.pop("cls", None) + + _request = build_container_apps_revisions_get_revision_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + revision_name=revision_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Revision, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def list_revisions( + self, resource_group_name: str, container_app_name: str, *, filter: Optional[str] = None, **kwargs: Any + ) -> ItemPaged["_models.Revision"]: + """Get the Revisions for a given Container App. + + Get the Revisions for a given Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :keyword filter: The filter to apply on the operation. Default value is None. + :paramtype filter: str + :return: An iterator like instance of Revision + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.Revision] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.Revision]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_container_apps_revisions_list_revisions_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + filter=filter, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Revision], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def activate_revision( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, container_app_name: str, revision_name: str, **kwargs: Any + ) -> None: + """Activates a revision for a Container App. + + Activates a revision for a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param revision_name: Name of the Container App Revision. Required. + :type revision_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_container_apps_revisions_activate_revision_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + revision_name=revision_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def deactivate_revision( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, container_app_name: str, revision_name: str, **kwargs: Any + ) -> None: + """Deactivates a revision for a Container App. + + Deactivates a revision for a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param revision_name: Name of the Container App Revision. Required. + :type revision_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_container_apps_revisions_deactivate_revision_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + revision_name=revision_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def restart_revision( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, container_app_name: str, revision_name: str, **kwargs: Any + ) -> None: + """Restarts a revision for a Container App. + + Restarts a revision for a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param revision_name: Name of the Container App Revision. Required. + :type revision_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_container_apps_revisions_restart_revision_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + revision_name=revision_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + +class FunctionsExtensionOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`functions_extension` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def invoke_functions_host( + self, + resource_group_name: str, + container_app_name: str, + revision_name: str, + function_app_name: str, + **kwargs: Any + ) -> str: + """Proxies a Functions host call to the function app backed by the container app. + + Proxies a Functions host call to the function app backed by the container app. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param revision_name: Name of the Container App Revision. Required. + :type revision_name: str + :param function_app_name: Name of the Function. Required. + :type function_app_name: str + :return: str + :rtype: str + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[str] = kwargs.pop("cls", None) + + _request = build_functions_extension_invoke_functions_host_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + revision_name=revision_name, + function_app_name=function_app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(str, response.text()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class ContainerAppsLabelHistoryOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`container_apps_label_history` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get_label_history( + self, resource_group_name: str, container_app_name: str, label_name: str, **kwargs: Any + ) -> _models.LabelHistory: + """Get the history of a label. + + Get the history of a label. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param label_name: Name of the label. Required. + :type label_name: str + :return: LabelHistory. The LabelHistory is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.LabelHistory + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.LabelHistory] = kwargs.pop("cls", None) + + _request = build_container_apps_label_history_get_label_history_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + label_name=label_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.LabelHistory, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def delete_label_history( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, container_app_name: str, label_name: str, **kwargs: Any + ) -> None: + """Delete the history of a label. + + Delete the history of a label. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param label_name: Name of the label. Required. + :type label_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_container_apps_label_history_delete_label_history_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + label_name=label_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = 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) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list_label_history( + self, resource_group_name: str, container_app_name: str, *, filter: Optional[str] = None, **kwargs: Any + ) -> ItemPaged["_models.LabelHistory"]: + """Get the Label History for a given Container App. + + Get the Label History for a given Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :keyword filter: The filter to apply on the operation. Default value is None. + :paramtype filter: str + :return: An iterator like instance of LabelHistory + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.LabelHistory] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.LabelHistory]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_container_apps_label_history_list_label_history_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + filter=filter, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.LabelHistory], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class ContainerAppsPatchesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`container_apps_patches` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, resource_group_name: str, container_app_name: str, patch_name: str, **kwargs: Any + ) -> _models.ContainerAppsPatchResource: + """Get details for specific Container Apps Patch by patch name. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param patch_name: Name of the Container Apps Patch. Required. + :type patch_name: str + :return: ContainerAppsPatchResource. The ContainerAppsPatchResource is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ContainerAppsPatchResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ContainerAppsPatchResource] = kwargs.pop("cls", None) + + _request = build_container_apps_patches_get_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + patch_name=patch_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ContainerAppsPatchResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _delete_initial( + self, resource_group_name: str, container_app_name: str, patch_name: str, **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_container_apps_patches_delete_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + patch_name=patch_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: 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]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete( + self, resource_group_name: str, container_app_name: str, patch_name: str, **kwargs: Any + ) -> LROPoller[None]: + """Delete specific Container Apps Patch by patch name. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param patch_name: Name of the Container Apps Patch. Required. + :type patch_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + patch_name=patch_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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_by_container_app( + self, resource_group_name: str, container_app_name: str, *, filter: Optional[str] = None, **kwargs: Any + ) -> ItemPaged["_models.ContainerAppsPatchResource"]: + """List Container Apps Patch resources by ContainerApp. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :keyword filter: The filter to apply on the operation. For example, + $filter=properties/patchApplyStatus eq 'Succeeded'. Default value is None. + :paramtype filter: str + :return: An iterator like instance of ContainerAppsPatchResource + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.ContainerAppsPatchResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ContainerAppsPatchResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_container_apps_patches_list_by_container_app_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + filter=filter, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ContainerAppsPatchResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + def _skip_configure_initial( + self, + resource_group_name: str, + container_app_name: str, + patch_name: str, + patch_skip_config: Union[_models.PatchSkipConfig, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(patch_skip_config, (IOBase, bytes)): + _content = patch_skip_config + else: + _content = json.dumps(patch_skip_config, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_container_apps_patches_skip_configure_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + patch_name=patch_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: 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]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_skip_configure( + self, + resource_group_name: str, + container_app_name: str, + patch_name: str, + patch_skip_config: _models.PatchSkipConfig, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: + """Configure the Container Apps Patch skip option by patch name. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param patch_name: Name of the Container Apps Patch. Required. + :type patch_name: str + :param patch_skip_config: Configure patcher to skip a patch or not. Required. + :type patch_skip_config: ~azure.mgmt.appcontainers.models.PatchSkipConfig + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_skip_configure( + self, + resource_group_name: str, + container_app_name: str, + patch_name: str, + patch_skip_config: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: + """Configure the Container Apps Patch skip option by patch name. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param patch_name: Name of the Container Apps Patch. Required. + :type patch_name: str + :param patch_skip_config: Configure patcher to skip a patch or not. Required. + :type patch_skip_config: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_skip_configure( + self, + resource_group_name: str, + container_app_name: str, + patch_name: str, + patch_skip_config: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: + """Configure the Container Apps Patch skip option by patch name. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param patch_name: Name of the Container Apps Patch. Required. + :type patch_name: str + :param patch_skip_config: Configure patcher to skip a patch or not. Required. + :type patch_skip_config: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_skip_configure( + self, + resource_group_name: str, + container_app_name: str, + patch_name: str, + patch_skip_config: Union[_models.PatchSkipConfig, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[None]: + """Configure the Container Apps Patch skip option by patch name. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param patch_name: Name of the Container Apps Patch. Required. + :type patch_name: str + :param patch_skip_config: Configure patcher to skip a patch or not. Is one of the following + types: PatchSkipConfig, JSON, IO[bytes] Required. + :type patch_skip_config: ~azure.mgmt.appcontainers.models.PatchSkipConfig or JSON or IO[bytes] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + 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._skip_configure_initial( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + patch_name=patch_name, + patch_skip_config=patch_skip_config, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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 _apply_initial( + self, resource_group_name: str, container_app_name: str, patch_name: str, **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_container_apps_patches_apply_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + patch_name=patch_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_apply( + self, resource_group_name: str, container_app_name: str, patch_name: str, **kwargs: Any + ) -> LROPoller[_models.ContainerAppsPatchResource]: + """Apply a Container Apps Patch resource with patch name. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param patch_name: Name of the Container Apps Patch. Required. + :type patch_name: str + :return: An instance of LROPoller that returns ContainerAppsPatchResource. The + ContainerAppsPatchResource is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ContainerAppsPatchResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ContainerAppsPatchResource] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._apply_initial( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + patch_name=patch_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = _deserialize(_models.ContainerAppsPatchResource, response.json()) + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.ContainerAppsPatchResource].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.ContainerAppsPatchResource]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + +class ContainerAppsRevisionReplicasOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`container_apps_revision_replicas` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get_replica( + self, resource_group_name: str, container_app_name: str, revision_name: str, replica_name: str, **kwargs: Any + ) -> _models.Replica: + """Get a replica for a Container App Revision. + + Get a replica for a Container App Revision. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param revision_name: Name of the Container App Revision. Required. + :type revision_name: str + :param replica_name: Name of the Container App Revision Replica. Required. + :type replica_name: str + :return: Replica. The Replica is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Replica + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.Replica] = kwargs.pop("cls", None) + + _request = build_container_apps_revision_replicas_get_replica_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + revision_name=revision_name, + replica_name=replica_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Replica, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def list_replicas( + self, resource_group_name: str, container_app_name: str, revision_name: str, **kwargs: Any + ) -> _models.ReplicaCollection: + """List replicas for a Container App Revision. + + List replicas for a Container App Revision. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param revision_name: Name of the Container App Revision. Required. + :type revision_name: str + :return: ReplicaCollection. The ReplicaCollection is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ReplicaCollection + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ReplicaCollection] = kwargs.pop("cls", None) + + _request = build_container_apps_revision_replicas_list_replicas_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + revision_name=revision_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ReplicaCollection, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class DotNetComponentsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`dot_net_components` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get(self, resource_group_name: str, environment_name: str, name: str, **kwargs: Any) -> _models.DotNetComponent: + """Get a .NET Component. + + Get a .NET Component. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the .NET Component. Required. + :type name: str + :return: DotNetComponent. The DotNetComponent is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DotNetComponent + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DotNetComponent] = kwargs.pop("cls", None) + + _request = build_dot_net_components_get_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + name=name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DotNetComponent, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _create_or_update_initial( + self, + resource_group_name: str, + environment_name: str, + name: str, + dot_net_component_envelope: Union[_models.DotNetComponent, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(dot_net_component_envelope, (IOBase, bytes)): + _content = dot_net_component_envelope + else: + _content = json.dumps(dot_net_component_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_dot_net_components_create_or_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + name=name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + dot_net_component_envelope: _models.DotNetComponent, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.DotNetComponent]: + """Creates or updates a .NET Component. + + Creates or updates a .NET Component in a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the .NET Component. Required. + :type name: str + :param dot_net_component_envelope: Configuration details of the .NET Component. Required. + :type dot_net_component_envelope: ~azure.mgmt.appcontainers.models.DotNetComponent + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns DotNetComponent. The DotNetComponent is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.DotNetComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + dot_net_component_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.DotNetComponent]: + """Creates or updates a .NET Component. + + Creates or updates a .NET Component in a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the .NET Component. Required. + :type name: str + :param dot_net_component_envelope: Configuration details of the .NET Component. Required. + :type dot_net_component_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns DotNetComponent. The DotNetComponent is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.DotNetComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + dot_net_component_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.DotNetComponent]: + """Creates or updates a .NET Component. + + Creates or updates a .NET Component in a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the .NET Component. Required. + :type name: str + :param dot_net_component_envelope: Configuration details of the .NET Component. Required. + :type dot_net_component_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns DotNetComponent. The DotNetComponent is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.DotNetComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + dot_net_component_envelope: Union[_models.DotNetComponent, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.DotNetComponent]: + """Creates or updates a .NET Component. + + Creates or updates a .NET Component in a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the .NET Component. Required. + :type name: str + :param dot_net_component_envelope: Configuration details of the .NET Component. Is one of the + following types: DotNetComponent, JSON, IO[bytes] Required. + :type dot_net_component_envelope: ~azure.mgmt.appcontainers.models.DotNetComponent or JSON or + IO[bytes] + :return: An instance of LROPoller that returns DotNetComponent. The DotNetComponent is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.DotNetComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DotNetComponent] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + environment_name=environment_name, + name=name, + dot_net_component_envelope=dot_net_component_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.DotNetComponent, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.DotNetComponent].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.DotNetComponent]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _update_initial( + self, + resource_group_name: str, + environment_name: str, + name: str, + dot_net_component_envelope: Union[_models.DotNetComponent, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(dot_net_component_envelope, (IOBase, bytes)): + _content = dot_net_component_envelope + else: + _content = json.dumps(dot_net_component_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_dot_net_components_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + name=name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + dot_net_component_envelope: _models.DotNetComponent, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.DotNetComponent]: + """Update properties of a .NET Component. + + Patches a .NET Component using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the .NET Component. Required. + :type name: str + :param dot_net_component_envelope: Configuration details of the .NET Component. Required. + :type dot_net_component_envelope: ~azure.mgmt.appcontainers.models.DotNetComponent + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns DotNetComponent. The DotNetComponent is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.DotNetComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + dot_net_component_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.DotNetComponent]: + """Update properties of a .NET Component. + + Patches a .NET Component using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the .NET Component. Required. + :type name: str + :param dot_net_component_envelope: Configuration details of the .NET Component. Required. + :type dot_net_component_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns DotNetComponent. The DotNetComponent is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.DotNetComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + dot_net_component_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.DotNetComponent]: + """Update properties of a .NET Component. + + Patches a .NET Component using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the .NET Component. Required. + :type name: str + :param dot_net_component_envelope: Configuration details of the .NET Component. Required. + :type dot_net_component_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns DotNetComponent. The DotNetComponent is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.DotNetComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + dot_net_component_envelope: Union[_models.DotNetComponent, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.DotNetComponent]: + """Update properties of a .NET Component. + + Patches a .NET Component using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the .NET Component. Required. + :type name: str + :param dot_net_component_envelope: Configuration details of the .NET Component. Is one of the + following types: DotNetComponent, JSON, IO[bytes] Required. + :type dot_net_component_envelope: ~azure.mgmt.appcontainers.models.DotNetComponent or JSON or + IO[bytes] + :return: An instance of LROPoller that returns DotNetComponent. The DotNetComponent is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.DotNetComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DotNetComponent] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.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, + environment_name=environment_name, + name=name, + dot_net_component_envelope=dot_net_component_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.DotNetComponent, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.DotNetComponent].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.DotNetComponent]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _delete_initial( + self, resource_group_name: str, environment_name: str, name: str, **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_dot_net_components_delete_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + name=name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: 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]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete( + self, resource_group_name: str, environment_name: str, name: str, **kwargs: Any + ) -> LROPoller[None]: + """Delete a .NET Component. + + Delete a .NET Component. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the .NET Component. Required. + :type name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + environment_name=environment_name, + name=name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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, environment_name: str, **kwargs: Any + ) -> ItemPaged["_models.DotNetComponent"]: + """Get the .NET Components for a managed environment. + + Get the .NET Components for a managed environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :return: An iterator like instance of DotNetComponent + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.DotNetComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.DotNetComponent]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_dot_net_components_list_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.DotNetComponent], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class JavaComponentsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`java_components` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get(self, resource_group_name: str, environment_name: str, name: str, **kwargs: Any) -> _models.JavaComponent: + """Get a Java Component. + + Get a Java Component. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the Java Component. Required. + :type name: str + :return: JavaComponent. The JavaComponent is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.JavaComponent + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.JavaComponent] = kwargs.pop("cls", None) + + _request = build_java_components_get_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + name=name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.JavaComponent, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _create_or_update_initial( + self, + resource_group_name: str, + environment_name: str, + name: str, + java_component_envelope: Union[_models.JavaComponent, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(java_component_envelope, (IOBase, bytes)): + _content = java_component_envelope + else: + _content = json.dumps(java_component_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_java_components_create_or_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + name=name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + java_component_envelope: _models.JavaComponent, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.JavaComponent]: + """Creates or updates a Java Component. + + Creates or updates a Java Component in a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the Java Component. Required. + :type name: str + :param java_component_envelope: Configuration details of the Java Component. Required. + :type java_component_envelope: ~azure.mgmt.appcontainers.models.JavaComponent + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns JavaComponent. The JavaComponent is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.JavaComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + java_component_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.JavaComponent]: + """Creates or updates a Java Component. + + Creates or updates a Java Component in a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the Java Component. Required. + :type name: str + :param java_component_envelope: Configuration details of the Java Component. Required. + :type java_component_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns JavaComponent. The JavaComponent is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.JavaComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + java_component_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.JavaComponent]: + """Creates or updates a Java Component. + + Creates or updates a Java Component in a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the Java Component. Required. + :type name: str + :param java_component_envelope: Configuration details of the Java Component. Required. + :type java_component_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns JavaComponent. The JavaComponent is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.JavaComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + java_component_envelope: Union[_models.JavaComponent, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.JavaComponent]: + """Creates or updates a Java Component. + + Creates or updates a Java Component in a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the Java Component. Required. + :type name: str + :param java_component_envelope: Configuration details of the Java Component. Is one of the + following types: JavaComponent, JSON, IO[bytes] Required. + :type java_component_envelope: ~azure.mgmt.appcontainers.models.JavaComponent or JSON or + IO[bytes] + :return: An instance of LROPoller that returns JavaComponent. The JavaComponent is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.JavaComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.JavaComponent] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + environment_name=environment_name, + name=name, + java_component_envelope=java_component_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.JavaComponent, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.JavaComponent].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.JavaComponent]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _update_initial( + self, + resource_group_name: str, + environment_name: str, + name: str, + java_component_envelope: Union[_models.JavaComponent, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(java_component_envelope, (IOBase, bytes)): + _content = java_component_envelope + else: + _content = json.dumps(java_component_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_java_components_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + name=name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + java_component_envelope: _models.JavaComponent, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.JavaComponent]: + """Update properties of a Java Component. + + Patches a Java Component using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the Java Component. Required. + :type name: str + :param java_component_envelope: Configuration details of the Java Component. Required. + :type java_component_envelope: ~azure.mgmt.appcontainers.models.JavaComponent + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns JavaComponent. The JavaComponent is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.JavaComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + java_component_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.JavaComponent]: + """Update properties of a Java Component. + + Patches a Java Component using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the Java Component. Required. + :type name: str + :param java_component_envelope: Configuration details of the Java Component. Required. + :type java_component_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns JavaComponent. The JavaComponent is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.JavaComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + java_component_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.JavaComponent]: + """Update properties of a Java Component. + + Patches a Java Component using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the Java Component. Required. + :type name: str + :param java_component_envelope: Configuration details of the Java Component. Required. + :type java_component_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns JavaComponent. The JavaComponent is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.JavaComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + java_component_envelope: Union[_models.JavaComponent, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.JavaComponent]: + """Update properties of a Java Component. + + Patches a Java Component using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the Java Component. Required. + :type name: str + :param java_component_envelope: Configuration details of the Java Component. Is one of the + following types: JavaComponent, JSON, IO[bytes] Required. + :type java_component_envelope: ~azure.mgmt.appcontainers.models.JavaComponent or JSON or + IO[bytes] + :return: An instance of LROPoller that returns JavaComponent. The JavaComponent is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.JavaComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.JavaComponent] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.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, + environment_name=environment_name, + name=name, + java_component_envelope=java_component_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.JavaComponent, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.JavaComponent].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.JavaComponent]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _delete_initial( + self, resource_group_name: str, environment_name: str, name: str, **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_java_components_delete_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + name=name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: 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]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete( + self, resource_group_name: str, environment_name: str, name: str, **kwargs: Any + ) -> LROPoller[None]: + """Delete a Java Component. + + Delete a Java Component. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the Java Component. Required. + :type name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + environment_name=environment_name, + name=name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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, environment_name: str, **kwargs: Any + ) -> ItemPaged["_models.JavaComponent"]: + """Get the Java Components for a managed environment. + + Get the Java Components for a managed environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :return: An iterator like instance of JavaComponent + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.JavaComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.JavaComponent]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_java_components_list_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.JavaComponent], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class LogicAppsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`logic_apps` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, resource_group_name: str, container_app_name: str, logic_app_name: str, **kwargs: Any + ) -> _models.LogicApp: + """Gets a logic app extension resource. + + Gets a logic app extension resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param logic_app_name: Name of the Logic App, the extension resource. Required. + :type logic_app_name: str + :return: LogicApp. The LogicApp is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.LogicApp + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.LogicApp] = kwargs.pop("cls", None) + + _request = build_logic_apps_get_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + logic_app_name=logic_app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.LogicApp, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def create_or_update( + self, + resource_group_name: str, + container_app_name: str, + logic_app_name: str, + resource: _models.LogicApp, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.LogicApp: + """Create or update a Logic App extension resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param logic_app_name: Name of the Logic App, the extension resource. Required. + :type logic_app_name: str + :param resource: Logic app resource properties. Required. + :type resource: ~azure.mgmt.appcontainers.models.LogicApp + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: LogicApp. The LogicApp is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.LogicApp + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + container_app_name: str, + logic_app_name: str, + resource: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.LogicApp: + """Create or update a Logic App extension resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param logic_app_name: Name of the Logic App, the extension resource. Required. + :type logic_app_name: str + :param resource: Logic app resource properties. Required. + :type resource: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: LogicApp. The LogicApp is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.LogicApp + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + container_app_name: str, + logic_app_name: str, + resource: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.LogicApp: + """Create or update a Logic App extension resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param logic_app_name: Name of the Logic App, the extension resource. Required. + :type logic_app_name: str + :param resource: Logic app resource properties. 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: LogicApp. The LogicApp is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.LogicApp + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def create_or_update( + self, + resource_group_name: str, + container_app_name: str, + logic_app_name: str, + resource: Union[_models.LogicApp, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.LogicApp: + """Create or update a Logic App extension resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param logic_app_name: Name of the Logic App, the extension resource. Required. + :type logic_app_name: str + :param resource: Logic app resource properties. Is one of the following types: LogicApp, JSON, + IO[bytes] Required. + :type resource: ~azure.mgmt.appcontainers.models.LogicApp or JSON or IO[bytes] + :return: LogicApp. The LogicApp is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.LogicApp + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.LogicApp] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(resource, (IOBase, bytes)): + _content = resource + else: + _content = json.dumps(resource, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_logic_apps_create_or_update_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + logic_app_name=logic_app_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.LogicApp, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def delete( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, container_app_name: str, logic_app_name: str, **kwargs: Any + ) -> None: + """Deletes a Logic App extension resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param logic_app_name: Name of the Logic App, the extension resource. Required. + :type logic_app_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_logic_apps_delete_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + logic_app_name=logic_app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = 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) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @overload + def deploy_workflow_artifacts( + self, + resource_group_name: str, + container_app_name: str, + logic_app_name: str, + workflow_artifacts: Optional[_models.WorkflowArtifacts] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> None: + """Creates or updates the artifacts for the logic app. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param logic_app_name: Name of the Logic App, the extension resource. Required. + :type logic_app_name: str + :param workflow_artifacts: Application settings and files of the workflow. Default value is + None. + :type workflow_artifacts: ~azure.mgmt.appcontainers.models.WorkflowArtifacts + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def deploy_workflow_artifacts( + self, + resource_group_name: str, + container_app_name: str, + logic_app_name: str, + workflow_artifacts: Optional[JSON] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> None: + """Creates or updates the artifacts for the logic app. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param logic_app_name: Name of the Logic App, the extension resource. Required. + :type logic_app_name: str + :param workflow_artifacts: Application settings and files of the workflow. Default value is + None. + :type workflow_artifacts: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def deploy_workflow_artifacts( + self, + resource_group_name: str, + container_app_name: str, + logic_app_name: str, + workflow_artifacts: Optional[IO[bytes]] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> None: + """Creates or updates the artifacts for the logic app. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param logic_app_name: Name of the Logic App, the extension resource. Required. + :type logic_app_name: str + :param workflow_artifacts: Application settings and files of the workflow. Default value is + None. + :type workflow_artifacts: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def deploy_workflow_artifacts( # pylint: disable=inconsistent-return-statements + self, + resource_group_name: str, + container_app_name: str, + logic_app_name: str, + workflow_artifacts: Optional[Union[_models.WorkflowArtifacts, JSON, IO[bytes]]] = None, + **kwargs: Any + ) -> None: + """Creates or updates the artifacts for the logic app. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param logic_app_name: Name of the Logic App, the extension resource. Required. + :type logic_app_name: str + :param workflow_artifacts: Application settings and files of the workflow. Is one of the + following types: WorkflowArtifacts, JSON, IO[bytes] Default value is None. + :type workflow_artifacts: ~azure.mgmt.appcontainers.models.WorkflowArtifacts or JSON or + IO[bytes] + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if workflow_artifacts else None + cls: ClsType[None] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" if workflow_artifacts else None + _content = None + if isinstance(workflow_artifacts, (IOBase, bytes)): + _content = workflow_artifacts + else: + if workflow_artifacts is not None: + _content = json.dumps(workflow_artifacts, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + else: + _content = None + + _request = build_logic_apps_deploy_workflow_artifacts_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + logic_app_name=logic_app_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list_workflows_connections( + self, resource_group_name: str, container_app_name: str, logic_app_name: str, **kwargs: Any + ) -> _models.WorkflowEnvelope: + """Gets logic app's connections. + + Gets logic app's connections. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param logic_app_name: Name of the Logic App, the extension resource. Required. + :type logic_app_name: str + :return: WorkflowEnvelope. The WorkflowEnvelope is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.WorkflowEnvelope + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.WorkflowEnvelope] = kwargs.pop("cls", None) + + _request = build_logic_apps_list_workflows_connections_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + logic_app_name=logic_app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.WorkflowEnvelope, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def invoke( + self, + resource_group_name: str, + container_app_name: str, + logic_app_name: str, + *, + x_ms_logic_apps_proxy_path: str, + x_ms_logic_apps_proxy_method: Union[str, _models.LogicAppsProxyMethod], + **kwargs: Any + ) -> _models.Object: + """Proxies a the API call to the logic app backed by the container app. + + Proxies a the API call to the logic app backed by the container app. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param logic_app_name: Name of the Logic App, the extension resource. Required. + :type logic_app_name: str + :keyword x_ms_logic_apps_proxy_path: The proxy path for the API call. Required. + :paramtype x_ms_logic_apps_proxy_path: str + :keyword x_ms_logic_apps_proxy_method: The proxy method for the API call. Known values are: + "GET" and "POST". Required. + :paramtype x_ms_logic_apps_proxy_method: str or + ~azure.mgmt.appcontainers.models.LogicAppsProxyMethod + :return: Object. The Object is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Object + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.Object] = kwargs.pop("cls", None) + + _request = build_logic_apps_invoke_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + logic_app_name=logic_app_name, + subscription_id=self._config.subscription_id, + x_ms_logic_apps_proxy_path=x_ms_logic_apps_proxy_path, + x_ms_logic_apps_proxy_method=x_ms_logic_apps_proxy_method, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Object, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def get_workflow( + self, resource_group_name: str, container_app_name: str, logic_app_name: str, workflow_name: str, **kwargs: Any + ) -> _models.WorkflowEnvelope: + """Get workflow information by its name. + + Get workflow information by its name. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param logic_app_name: Name of the Logic App, the extension resource. Required. + :type logic_app_name: str + :param workflow_name: Workflow name. Required. + :type workflow_name: str + :return: WorkflowEnvelope. The WorkflowEnvelope is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.WorkflowEnvelope + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.WorkflowEnvelope] = kwargs.pop("cls", None) + + _request = build_logic_apps_get_workflow_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + logic_app_name=logic_app_name, + workflow_name=workflow_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.WorkflowEnvelope, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def list_workflows( + self, resource_group_name: str, container_app_name: str, logic_app_name: str, **kwargs: Any + ) -> ItemPaged["_models.WorkflowEnvelope"]: + """List the workflows for a logic app. + + List the workflows for a logic app. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param logic_app_name: Name of the Logic App, the extension resource. Required. + :type logic_app_name: str + :return: An iterator like instance of WorkflowEnvelope + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.WorkflowEnvelope] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.WorkflowEnvelope]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_logic_apps_list_workflows_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + logic_app_name=logic_app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.WorkflowEnvelope], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class ContainerAppsAuthConfigsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`container_apps_auth_configs` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, resource_group_name: str, container_app_name: str, auth_config_name: str, **kwargs: Any + ) -> _models.AuthConfig: + """Get a AuthConfig of a Container App. + + Get a AuthConfig of a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param auth_config_name: Name of the Container App AuthConfig. Required. + :type auth_config_name: str + :return: AuthConfig. The AuthConfig is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.AuthConfig + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.AuthConfig] = kwargs.pop("cls", None) + + _request = build_container_apps_auth_configs_get_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + auth_config_name=auth_config_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.AuthConfig, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def create_or_update( + self, + resource_group_name: str, + container_app_name: str, + auth_config_name: str, + auth_config_envelope: _models.AuthConfig, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AuthConfig: + """Create or update the AuthConfig for a Container App. + + Create or update the AuthConfig for a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param auth_config_name: Name of the Container App AuthConfig. Required. + :type auth_config_name: str + :param auth_config_envelope: Properties used to create a Container App AuthConfig. Required. + :type auth_config_envelope: ~azure.mgmt.appcontainers.models.AuthConfig + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: AuthConfig. The AuthConfig is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.AuthConfig + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + container_app_name: str, + auth_config_name: str, + auth_config_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AuthConfig: + """Create or update the AuthConfig for a Container App. + + Create or update the AuthConfig for a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param auth_config_name: Name of the Container App AuthConfig. Required. + :type auth_config_name: str + :param auth_config_envelope: Properties used to create a Container App AuthConfig. Required. + :type auth_config_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: AuthConfig. The AuthConfig is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.AuthConfig + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + container_app_name: str, + auth_config_name: str, + auth_config_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AuthConfig: + """Create or update the AuthConfig for a Container App. + + Create or update the AuthConfig for a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param auth_config_name: Name of the Container App AuthConfig. Required. + :type auth_config_name: str + :param auth_config_envelope: Properties used to create a Container App AuthConfig. Required. + :type auth_config_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: AuthConfig. The AuthConfig is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.AuthConfig + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def create_or_update( + self, + resource_group_name: str, + container_app_name: str, + auth_config_name: str, + auth_config_envelope: Union[_models.AuthConfig, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.AuthConfig: + """Create or update the AuthConfig for a Container App. + + Create or update the AuthConfig for a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param auth_config_name: Name of the Container App AuthConfig. Required. + :type auth_config_name: str + :param auth_config_envelope: Properties used to create a Container App AuthConfig. Is one of + the following types: AuthConfig, JSON, IO[bytes] Required. + :type auth_config_envelope: ~azure.mgmt.appcontainers.models.AuthConfig or JSON or IO[bytes] + :return: AuthConfig. The AuthConfig is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.AuthConfig + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.AuthConfig] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(auth_config_envelope, (IOBase, bytes)): + _content = auth_config_envelope + else: + _content = json.dumps(auth_config_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_container_apps_auth_configs_create_or_update_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + auth_config_name=auth_config_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.AuthConfig, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def delete( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, container_app_name: str, auth_config_name: str, **kwargs: Any + ) -> None: + """Delete a Container App AuthConfig. + + Delete a Container App AuthConfig. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param auth_config_name: Name of the Container App AuthConfig. Required. + :type auth_config_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_container_apps_auth_configs_delete_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + auth_config_name=auth_config_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = 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) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list_by_container_app( + self, resource_group_name: str, container_app_name: str, **kwargs: Any + ) -> ItemPaged["_models.AuthConfig"]: + """Get the Container App AuthConfigs in a given resource group. + + Get the Container App AuthConfigs in a given resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :return: An iterator like instance of AuthConfig + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.AuthConfig] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.AuthConfig]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_container_apps_auth_configs_list_by_container_app_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.AuthConfig], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class BuildersOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`builders` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get(self, resource_group_name: str, builder_name: str, **kwargs: Any) -> _models.BuilderResource: + """Get a BuilderResource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :return: BuilderResource. The BuilderResource is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.BuilderResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) + + _request = build_builders_get_request( + resource_group_name=resource_group_name, + builder_name=builder_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.BuilderResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _create_or_update_initial( + self, + resource_group_name: str, + builder_name: str, + builder_envelope: Union[_models.BuilderResource, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(builder_envelope, (IOBase, bytes)): + _content = builder_envelope + else: + _content = json.dumps(builder_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_builders_create_or_update_request( + resource_group_name=resource_group_name, + builder_name=builder_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + builder_name: str, + builder_envelope: _models.BuilderResource, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.BuilderResource]: + """Create or update a BuilderResource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :param builder_envelope: Resource create parameters. Required. + :type builder_envelope: ~azure.mgmt.appcontainers.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 BuilderResource. The BuilderResource is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.BuilderResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + builder_name: str, + builder_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.BuilderResource]: + """Create or update a BuilderResource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :param builder_envelope: Resource create parameters. Required. + :type builder_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns BuilderResource. The BuilderResource is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.BuilderResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + builder_name: str, + builder_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.BuilderResource]: + """Create or update a BuilderResource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :param builder_envelope: Resource create parameters. Required. + :type builder_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns BuilderResource. The BuilderResource is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.BuilderResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_create_or_update( + self, + resource_group_name: str, + builder_name: str, + builder_envelope: Union[_models.BuilderResource, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.BuilderResource]: + """Create or update a BuilderResource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :param builder_envelope: Resource create parameters. Is one of the following types: + BuilderResource, JSON, IO[bytes] Required. + :type builder_envelope: ~azure.mgmt.appcontainers.models.BuilderResource or JSON or IO[bytes] + :return: An instance of LROPoller that returns BuilderResource. The BuilderResource is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.BuilderResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + 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, + builder_name=builder_name, + builder_envelope=builder_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.BuilderResource, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **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 _update_initial( + self, + resource_group_name: str, + builder_name: str, + builder_envelope: Union[_models.BuilderResourceUpdate, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(builder_envelope, (IOBase, bytes)): + _content = builder_envelope + else: + _content = json.dumps(builder_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_builders_update_request( + resource_group_name=resource_group_name, + builder_name=builder_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_update( + self, + resource_group_name: str, + builder_name: str, + builder_envelope: _models.BuilderResourceUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.BuilderResource]: + """Update a BuilderResource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :param builder_envelope: The resource properties to be updated. Required. + :type builder_envelope: ~azure.mgmt.appcontainers.models.BuilderResourceUpdate + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns BuilderResource. The BuilderResource is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.BuilderResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update( + self, + resource_group_name: str, + builder_name: str, + builder_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.BuilderResource]: + """Update a BuilderResource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :param builder_envelope: The resource properties to be updated. Required. + :type builder_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns BuilderResource. The BuilderResource is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.BuilderResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update( + self, + resource_group_name: str, + builder_name: str, + builder_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.BuilderResource]: + """Update a BuilderResource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :param builder_envelope: The resource properties to be updated. Required. + :type builder_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns BuilderResource. The BuilderResource is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.BuilderResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_update( + self, + resource_group_name: str, + builder_name: str, + builder_envelope: Union[_models.BuilderResourceUpdate, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.BuilderResource]: + """Update a BuilderResource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :param builder_envelope: The resource properties to be updated. Is one of the following types: + BuilderResourceUpdate, JSON, IO[bytes] Required. + :type builder_envelope: ~azure.mgmt.appcontainers.models.BuilderResourceUpdate or JSON or + IO[bytes] + :return: An instance of LROPoller that returns BuilderResource. The BuilderResource is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.BuilderResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + 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._update_initial( + resource_group_name=resource_group_name, + builder_name=builder_name, + builder_envelope=builder_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.BuilderResource, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **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(self, resource_group_name: str, builder_name: str, **kwargs: Any) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_builders_delete_request( + resource_group_name=resource_group_name, + builder_name=builder_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: 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]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete(self, resource_group_name: str, builder_name: str, **kwargs: Any) -> LROPoller[None]: + """Delete a BuilderResource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + builder_name=builder_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.BuilderResource"]: + """List BuilderResource resources by resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of BuilderResource + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.BuilderResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.BuilderResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_builders_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.BuilderResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.BuilderResource"]: + """List BuilderResource resources by subscription ID. + + :return: An iterator like instance of BuilderResource + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.BuilderResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.BuilderResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_builders_list_by_subscription_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.BuilderResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class BuildsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`builds` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get(self, resource_group_name: str, builder_name: str, build_name: str, **kwargs: Any) -> _models.BuildResource: + """Get a BuildResource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :param build_name: The name of a build. Required. + :type build_name: str + :return: BuildResource. The BuildResource is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.BuildResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.BuildResource] = kwargs.pop("cls", None) + + _request = build_builds_get_request( + resource_group_name=resource_group_name, + builder_name=builder_name, + build_name=build_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.BuildResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _create_or_update_initial( + self, + resource_group_name: str, + builder_name: str, + build_name: str, + build_envelope: Union[_models.BuildResource, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(build_envelope, (IOBase, bytes)): + _content = build_envelope + else: + _content = json.dumps(build_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_builds_create_or_update_request( + resource_group_name=resource_group_name, + builder_name=builder_name, + build_name=build_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + builder_name: str, + build_name: str, + build_envelope: _models.BuildResource, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.BuildResource]: + """Create a BuildResource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :param build_name: The name of a build. Required. + :type build_name: str + :param build_envelope: Resource create or update parameters. Required. + :type build_envelope: ~azure.mgmt.appcontainers.models.BuildResource + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns BuildResource. The BuildResource is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.BuildResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + builder_name: str, + build_name: str, + build_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.BuildResource]: + """Create a BuildResource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :param build_name: The name of a build. Required. + :type build_name: str + :param build_envelope: Resource create or update parameters. Required. + :type build_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns BuildResource. The BuildResource is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.BuildResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + builder_name: str, + build_name: str, + build_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.BuildResource]: + """Create a BuildResource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :param build_name: The name of a build. Required. + :type build_name: str + :param build_envelope: Resource create or update parameters. Required. + :type build_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns BuildResource. The BuildResource is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.BuildResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_create_or_update( + self, + resource_group_name: str, + builder_name: str, + build_name: str, + build_envelope: Union[_models.BuildResource, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.BuildResource]: + """Create a BuildResource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :param build_name: The name of a build. Required. + :type build_name: str + :param build_envelope: Resource create or update parameters. Is one of the following types: + BuildResource, JSON, IO[bytes] Required. + :type build_envelope: ~azure.mgmt.appcontainers.models.BuildResource or JSON or IO[bytes] + :return: An instance of LROPoller that returns BuildResource. The BuildResource is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.BuildResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.BuildResource] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + builder_name=builder_name, + build_name=build_name, + build_envelope=build_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.BuildResource, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.BuildResource].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.BuildResource]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _delete_initial( + self, resource_group_name: str, builder_name: str, build_name: str, **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_builds_delete_request( + resource_group_name=resource_group_name, + builder_name=builder_name, + build_name=build_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: 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]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete( + self, resource_group_name: str, builder_name: str, build_name: str, **kwargs: Any + ) -> LROPoller[None]: + """Delete a BuildResource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :param build_name: The name of a build. Required. + :type build_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + builder_name=builder_name, + build_name=build_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + +class ConnectedEnvironmentsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`connected_environments` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, resource_group_name: str, connected_environment_name: str, **kwargs: Any + ) -> _models.ConnectedEnvironment: + """Get the properties of an connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :return: ConnectedEnvironment. The ConnectedEnvironment is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironment + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ConnectedEnvironment] = kwargs.pop("cls", None) + + _request = build_connected_environments_get_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ConnectedEnvironment, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _create_or_update_initial( + self, + resource_group_name: str, + connected_environment_name: str, + environment_envelope: Union[_models.ConnectedEnvironment, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(environment_envelope, (IOBase, bytes)): + _content = environment_envelope + else: + _content = json.dumps(environment_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_connected_environments_create_or_update_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + environment_envelope: _models.ConnectedEnvironment, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ConnectedEnvironment]: + """Creates or updates an connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param environment_envelope: Configuration details of the connectedEnvironment. Required. + :type environment_envelope: ~azure.mgmt.appcontainers.models.ConnectedEnvironment + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ConnectedEnvironment. The ConnectedEnvironment + is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + environment_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ConnectedEnvironment]: + """Creates or updates an connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param environment_envelope: Configuration details of the connectedEnvironment. Required. + :type environment_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ConnectedEnvironment. The ConnectedEnvironment + is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + environment_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ConnectedEnvironment]: + """Creates or updates an connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param environment_envelope: Configuration details of the connectedEnvironment. Required. + :type environment_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ConnectedEnvironment. The ConnectedEnvironment + is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + environment_envelope: Union[_models.ConnectedEnvironment, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.ConnectedEnvironment]: + """Creates or updates an connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param environment_envelope: Configuration details of the connectedEnvironment. Is one of the + following types: ConnectedEnvironment, JSON, IO[bytes] Required. + :type environment_envelope: ~azure.mgmt.appcontainers.models.ConnectedEnvironment or JSON or + IO[bytes] + :return: An instance of LROPoller that returns ConnectedEnvironment. The ConnectedEnvironment + is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ConnectedEnvironment] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + environment_envelope=environment_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.ConnectedEnvironment, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.ConnectedEnvironment].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.ConnectedEnvironment]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + @overload + def update( + self, + resource_group_name: str, + connected_environment_name: str, + environment_envelope: Optional[_models.ConnectedEnvironmentPatchResource] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ConnectedEnvironment: + """Update connected Environment's properties. + + Patches a Managed Environment. Only patching of tags is supported currently. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param environment_envelope: Configuration details of the connectedEnvironment. Default value + is None. + :type environment_envelope: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentPatchResource + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ConnectedEnvironment. The ConnectedEnvironment is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironment + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def update( + self, + resource_group_name: str, + connected_environment_name: str, + environment_envelope: Optional[JSON] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ConnectedEnvironment: + """Update connected Environment's properties. + + Patches a Managed Environment. Only patching of tags is supported currently. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param environment_envelope: Configuration details of the connectedEnvironment. Default value + is None. + :type environment_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ConnectedEnvironment. The ConnectedEnvironment is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironment + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def update( + self, + resource_group_name: str, + connected_environment_name: str, + environment_envelope: Optional[IO[bytes]] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ConnectedEnvironment: + """Update connected Environment's properties. + + Patches a Managed Environment. Only patching of tags is supported currently. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param environment_envelope: Configuration details of the connectedEnvironment. Default value + is None. + :type environment_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ConnectedEnvironment. The ConnectedEnvironment is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironment + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def update( + self, + resource_group_name: str, + connected_environment_name: str, + environment_envelope: Optional[Union[_models.ConnectedEnvironmentPatchResource, JSON, IO[bytes]]] = None, + **kwargs: Any + ) -> _models.ConnectedEnvironment: + """Update connected Environment's properties. + + Patches a Managed Environment. Only patching of tags is supported currently. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param environment_envelope: Configuration details of the connectedEnvironment. Is one of the + following types: ConnectedEnvironmentPatchResource, JSON, IO[bytes] Default value is None. + :type environment_envelope: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentPatchResource + or JSON or IO[bytes] + :return: ConnectedEnvironment. The ConnectedEnvironment is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironment + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if environment_envelope else None + cls: ClsType[_models.ConnectedEnvironment] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" if environment_envelope else None + _content = None + if isinstance(environment_envelope, (IOBase, bytes)): + _content = environment_envelope + else: + if environment_envelope is not None: + _content = json.dumps(environment_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + else: + _content = None + + _request = build_connected_environments_update_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ConnectedEnvironment, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _delete_initial( + self, resource_group_name: str, connected_environment_name: str, **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_connected_environments_delete_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete(self, resource_group_name: str, connected_environment_name: str, **kwargs: Any) -> LROPoller[None]: + """Delete an connectedEnvironment. + + Delete an connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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_by_resource_group( + self, resource_group_name: str, **kwargs: Any + ) -> ItemPaged["_models.ConnectedEnvironment"]: + """Get all connectedEnvironments in a resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of ConnectedEnvironment + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.ConnectedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ConnectedEnvironment]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_connected_environments_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ConnectedEnvironment], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.ConnectedEnvironment"]: + """Get all connectedEnvironments for a subscription. + + Get all connectedEnvironments for a subscription. + + :return: An iterator like instance of ConnectedEnvironment + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.ConnectedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ConnectedEnvironment]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_connected_environments_list_by_subscription_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ConnectedEnvironment], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @overload + def check_name_availability( + self, + resource_group_name: str, + connected_environment_name: str, + check_name_availability_request: _models.CheckNameAvailabilityRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.CheckNameAvailabilityResponse: + """Checks the resource connectedEnvironmentName availability. + + Checks if resource connectedEnvironmentName is available. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param check_name_availability_request: The check connectedEnvironmentName availability + request. Required. + :type check_name_availability_request: + ~azure.mgmt.appcontainers.models.CheckNameAvailabilityRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: CheckNameAvailabilityResponse. The CheckNameAvailabilityResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.CheckNameAvailabilityResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def check_name_availability( + self, + resource_group_name: str, + connected_environment_name: str, + check_name_availability_request: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.CheckNameAvailabilityResponse: + """Checks the resource connectedEnvironmentName availability. + + Checks if resource connectedEnvironmentName is available. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param check_name_availability_request: The check connectedEnvironmentName availability + request. Required. + :type check_name_availability_request: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: CheckNameAvailabilityResponse. The CheckNameAvailabilityResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.CheckNameAvailabilityResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def check_name_availability( + self, + resource_group_name: str, + connected_environment_name: str, + check_name_availability_request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.CheckNameAvailabilityResponse: + """Checks the resource connectedEnvironmentName availability. + + Checks if resource connectedEnvironmentName is available. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param check_name_availability_request: The check connectedEnvironmentName availability + request. Required. + :type check_name_availability_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: CheckNameAvailabilityResponse. The CheckNameAvailabilityResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.CheckNameAvailabilityResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def check_name_availability( + self, + resource_group_name: str, + connected_environment_name: str, + check_name_availability_request: Union[_models.CheckNameAvailabilityRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.CheckNameAvailabilityResponse: + """Checks the resource connectedEnvironmentName availability. + + Checks if resource connectedEnvironmentName is available. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param check_name_availability_request: The check connectedEnvironmentName availability + request. Is one of the following types: CheckNameAvailabilityRequest, JSON, IO[bytes] Required. + :type check_name_availability_request: + ~azure.mgmt.appcontainers.models.CheckNameAvailabilityRequest or JSON or IO[bytes] + :return: CheckNameAvailabilityResponse. The CheckNameAvailabilityResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.CheckNameAvailabilityResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.CheckNameAvailabilityResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(check_name_availability_request, (IOBase, bytes)): + _content = check_name_availability_request + else: + _content = json.dumps(check_name_availability_request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_connected_environments_check_name_availability_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.CheckNameAvailabilityResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class CertificatesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`certificates` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, resource_group_name: str, environment_name: str, certificate_name: str, **kwargs: Any + ) -> _models.Certificate: + """Get the specified Certificate. + + Get the specified Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :return: Certificate. The Certificate is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Certificate + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.Certificate] = kwargs.pop("cls", None) + + _request = build_certificates_get_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + certificate_name=certificate_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Certificate, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def create_or_update( + self, + resource_group_name: str, + environment_name: str, + certificate_name: str, + certificate_envelope: Optional[_models.Certificate] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Certificate: + """Create or Update a Certificate. + + Create or Update a Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :param certificate_envelope: Certificate to be created or updated. Default value is None. + :type certificate_envelope: ~azure.mgmt.appcontainers.models.Certificate + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: Certificate. The Certificate is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Certificate + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + environment_name: str, + certificate_name: str, + certificate_envelope: Optional[JSON] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Certificate: + """Create or Update a Certificate. + + Create or Update a Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :param certificate_envelope: Certificate to be created or updated. Default value is None. + :type certificate_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: Certificate. The Certificate is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Certificate + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + environment_name: str, + certificate_name: str, + certificate_envelope: Optional[IO[bytes]] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Certificate: + """Create or Update a Certificate. + + Create or Update a Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :param certificate_envelope: Certificate to be created or updated. Default value is None. + :type certificate_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: Certificate. The Certificate is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Certificate + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def create_or_update( + self, + resource_group_name: str, + environment_name: str, + certificate_name: str, + certificate_envelope: Optional[Union[_models.Certificate, JSON, IO[bytes]]] = None, + **kwargs: Any + ) -> _models.Certificate: + """Create or Update a Certificate. + + Create or Update a Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :param certificate_envelope: Certificate to be created or updated. Is one of the following + types: Certificate, JSON, IO[bytes] Default value is None. + :type certificate_envelope: ~azure.mgmt.appcontainers.models.Certificate or JSON or IO[bytes] + :return: Certificate. The Certificate is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Certificate + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if certificate_envelope else None + cls: ClsType[_models.Certificate] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" if certificate_envelope else None + _content = None + if isinstance(certificate_envelope, (IOBase, bytes)): + _content = certificate_envelope + else: + if certificate_envelope is not None: + _content = json.dumps(certificate_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + else: + _content = None + + _request = build_certificates_create_or_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + certificate_name=certificate_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Certificate, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def update( + self, + resource_group_name: str, + environment_name: str, + certificate_name: str, + certificate_envelope: _models.CertificatePatch, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Certificate: + """Update properties of a certificate. + + Patches a certificate. Currently only patching of tags is supported. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :param certificate_envelope: Properties of a certificate that need to be updated. Required. + :type certificate_envelope: ~azure.mgmt.appcontainers.models.CertificatePatch + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: Certificate. The Certificate is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Certificate + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def update( + self, + resource_group_name: str, + environment_name: str, + certificate_name: str, + certificate_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Certificate: + """Update properties of a certificate. + + Patches a certificate. Currently only patching of tags is supported. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :param certificate_envelope: Properties of a certificate that need to be updated. Required. + :type certificate_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: Certificate. The Certificate is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Certificate + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def update( + self, + resource_group_name: str, + environment_name: str, + certificate_name: str, + certificate_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Certificate: + """Update properties of a certificate. + + Patches a certificate. Currently only patching of tags is supported. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :param certificate_envelope: Properties of a certificate that need to be updated. Required. + :type certificate_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: Certificate. The Certificate is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Certificate + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def update( + self, + resource_group_name: str, + environment_name: str, + certificate_name: str, + certificate_envelope: Union[_models.CertificatePatch, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.Certificate: + """Update properties of a certificate. + + Patches a certificate. Currently only patching of tags is supported. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :param certificate_envelope: Properties of a certificate that need to be updated. Is one of the + following types: CertificatePatch, JSON, IO[bytes] Required. + :type certificate_envelope: ~azure.mgmt.appcontainers.models.CertificatePatch or JSON or + IO[bytes] + :return: Certificate. The Certificate is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Certificate + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.Certificate] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(certificate_envelope, (IOBase, bytes)): + _content = certificate_envelope + else: + _content = json.dumps(certificate_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_certificates_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + certificate_name=certificate_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Certificate, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def delete( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, environment_name: str, certificate_name: str, **kwargs: Any + ) -> None: + """Deletes the specified Certificate. + + Deletes the specified Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_certificates_delete_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + certificate_name=certificate_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = 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) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list(self, resource_group_name: str, environment_name: str, **kwargs: Any) -> ItemPaged["_models.Certificate"]: + """Get the Certificates in a given managed environment. + + Get the Certificates in a given managed environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :return: An iterator like instance of Certificate + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.Certificate] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.Certificate]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_certificates_list_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Certificate], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class ConnectedEnvironmentsDaprComponentsOperations: # pylint: disable=name-too-long + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`connected_environments_dapr_components` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any + ) -> _models.DaprComponent: + """Get a dapr component. + + Get a dapr component. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connected environment. Required. + :type connected_environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :return: DaprComponent. The DaprComponent is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprComponent + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DaprComponent] = kwargs.pop("cls", None) + + _request = build_connected_environments_dapr_components_get_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + component_name=component_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DaprComponent, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _create_or_update_initial( + self, + resource_group_name: str, + connected_environment_name: str, + component_name: str, + dapr_component_envelope: Union[_models.DaprComponent, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(dapr_component_envelope, (IOBase, bytes)): + _content = dapr_component_envelope + else: + _content = json.dumps(dapr_component_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_connected_environments_dapr_components_create_or_update_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + component_name=component_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + component_name: str, + dapr_component_envelope: _models.DaprComponent, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.DaprComponent]: + """Creates or updates a Dapr Component. + + Creates or updates a Dapr Component in a connected environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param dapr_component_envelope: Configuration details of the Dapr Component. Required. + :type dapr_component_envelope: ~azure.mgmt.appcontainers.models.DaprComponent + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns DaprComponent. The DaprComponent is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.DaprComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + component_name: str, + dapr_component_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.DaprComponent]: + """Creates or updates a Dapr Component. + + Creates or updates a Dapr Component in a connected environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param dapr_component_envelope: Configuration details of the Dapr Component. Required. + :type dapr_component_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns DaprComponent. The DaprComponent is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.DaprComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + component_name: str, + dapr_component_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.DaprComponent]: + """Creates or updates a Dapr Component. + + Creates or updates a Dapr Component in a connected environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param dapr_component_envelope: Configuration details of the Dapr Component. Required. + :type dapr_component_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns DaprComponent. The DaprComponent is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.DaprComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + component_name: str, + dapr_component_envelope: Union[_models.DaprComponent, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.DaprComponent]: + """Creates or updates a Dapr Component. + + Creates or updates a Dapr Component in a connected environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param dapr_component_envelope: Configuration details of the Dapr Component. Is one of the + following types: DaprComponent, JSON, IO[bytes] Required. + :type dapr_component_envelope: ~azure.mgmt.appcontainers.models.DaprComponent or JSON or + IO[bytes] + :return: An instance of LROPoller that returns DaprComponent. The DaprComponent is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.DaprComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DaprComponent] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + component_name=component_name, + dapr_component_envelope=dapr_component_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.DaprComponent, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.DaprComponent].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.DaprComponent]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _delete_initial( + self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_connected_environments_dapr_components_delete_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + component_name=component_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: 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]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete( + self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any + ) -> LROPoller[None]: + """Delete a Dapr Component. + + Delete a Dapr Component from a connected environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connected environment. Required. + :type connected_environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + component_name=component_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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, connected_environment_name: str, **kwargs: Any + ) -> ItemPaged["_models.DaprComponent"]: + """Get the Dapr Components for a connected environment. + + Get the Dapr Components for a connected environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connected environment. Required. + :type connected_environment_name: str + :return: An iterator like instance of DaprComponent + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.DaprComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.DaprComponent]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_connected_environments_dapr_components_list_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.DaprComponent], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def list_secrets( + self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any + ) -> _models.DaprSecretsCollection: + """List secrets for a dapr component. + + List secrets for a dapr component. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connected environment. Required. + :type connected_environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :return: DaprSecretsCollection. The DaprSecretsCollection is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprSecretsCollection + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DaprSecretsCollection] = kwargs.pop("cls", None) + + _request = build_connected_environments_dapr_components_list_secrets_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + component_name=component_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DaprSecretsCollection, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class DaprComponentsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`dapr_components` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, resource_group_name: str, environment_name: str, component_name: str, **kwargs: Any + ) -> _models.DaprComponent: + """Get a dapr component. + + Get a dapr component. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :return: DaprComponent. The DaprComponent is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprComponent + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DaprComponent] = kwargs.pop("cls", None) + + _request = build_dapr_components_get_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + component_name=component_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DaprComponent, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def create_or_update( + self, + resource_group_name: str, + environment_name: str, + component_name: str, + dapr_component_envelope: _models.DaprComponent, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.DaprComponent: + """Creates or updates a Dapr Component. + + Creates or updates a Dapr Component in a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param dapr_component_envelope: Configuration details of the Dapr Component. Required. + :type dapr_component_envelope: ~azure.mgmt.appcontainers.models.DaprComponent + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: DaprComponent. The DaprComponent is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprComponent + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + environment_name: str, + component_name: str, + dapr_component_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.DaprComponent: + """Creates or updates a Dapr Component. + + Creates or updates a Dapr Component in a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param dapr_component_envelope: Configuration details of the Dapr Component. Required. + :type dapr_component_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: DaprComponent. The DaprComponent is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprComponent + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + environment_name: str, + component_name: str, + dapr_component_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.DaprComponent: + """Creates or updates a Dapr Component. + + Creates or updates a Dapr Component in a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param dapr_component_envelope: Configuration details of the Dapr Component. Required. + :type dapr_component_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: DaprComponent. The DaprComponent is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprComponent + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def create_or_update( + self, + resource_group_name: str, + environment_name: str, + component_name: str, + dapr_component_envelope: Union[_models.DaprComponent, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.DaprComponent: + """Creates or updates a Dapr Component. + + Creates or updates a Dapr Component in a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param dapr_component_envelope: Configuration details of the Dapr Component. Is one of the + following types: DaprComponent, JSON, IO[bytes] Required. + :type dapr_component_envelope: ~azure.mgmt.appcontainers.models.DaprComponent or JSON or + IO[bytes] + :return: DaprComponent. The DaprComponent is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprComponent + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DaprComponent] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(dapr_component_envelope, (IOBase, bytes)): + _content = dapr_component_envelope + else: + _content = json.dumps(dapr_component_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_dapr_components_create_or_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + component_name=component_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DaprComponent, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def delete( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, environment_name: str, component_name: str, **kwargs: Any + ) -> None: + """Delete a Dapr Component. + + Delete a Dapr Component from a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_dapr_components_delete_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + component_name=component_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = 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) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list( + self, resource_group_name: str, environment_name: str, **kwargs: Any + ) -> ItemPaged["_models.DaprComponent"]: + """Get the Dapr Components for a managed environment. + + Get the Dapr Components for a managed environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :return: An iterator like instance of DaprComponent + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.DaprComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.DaprComponent]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_dapr_components_list_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.DaprComponent], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def list_secrets( + self, resource_group_name: str, environment_name: str, component_name: str, **kwargs: Any + ) -> _models.DaprSecretsCollection: + """List secrets for a dapr component. + + List secrets for a dapr component. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :return: DaprSecretsCollection. The DaprSecretsCollection is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprSecretsCollection + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DaprSecretsCollection] = kwargs.pop("cls", None) + + _request = build_dapr_components_list_secrets_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + component_name=component_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DaprSecretsCollection, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class ConnectedEnvironmentsStoragesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`connected_environments_storages` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, resource_group_name: str, connected_environment_name: str, storage_name: str, **kwargs: Any + ) -> _models.ConnectedEnvironmentStorage: + """Get storage for a connectedEnvironment. + + Get storage for a connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :return: ConnectedEnvironmentStorage. The ConnectedEnvironmentStorage is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ConnectedEnvironmentStorage] = kwargs.pop("cls", None) + + _request = build_connected_environments_storages_get_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + storage_name=storage_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ConnectedEnvironmentStorage, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _create_or_update_initial( + self, + resource_group_name: str, + connected_environment_name: str, + storage_name: str, + storage_envelope: Union[_models.ConnectedEnvironmentStorage, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(storage_envelope, (IOBase, bytes)): + _content = storage_envelope + else: + _content = json.dumps(storage_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_connected_environments_storages_create_or_update_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + storage_name=storage_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + storage_name: str, + storage_envelope: _models.ConnectedEnvironmentStorage, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ConnectedEnvironmentStorage]: + """Create or update storage for a connectedEnvironment. + + Create or update storage for a connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :param storage_envelope: Configuration details of storage. Required. + :type storage_envelope: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ConnectedEnvironmentStorage. The + ConnectedEnvironmentStorage is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + storage_name: str, + storage_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ConnectedEnvironmentStorage]: + """Create or update storage for a connectedEnvironment. + + Create or update storage for a connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :param storage_envelope: Configuration details of storage. Required. + :type storage_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ConnectedEnvironmentStorage. The + ConnectedEnvironmentStorage is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + storage_name: str, + storage_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ConnectedEnvironmentStorage]: + """Create or update storage for a connectedEnvironment. + + Create or update storage for a connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :param storage_envelope: Configuration details of storage. Required. + :type storage_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ConnectedEnvironmentStorage. The + ConnectedEnvironmentStorage is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + storage_name: str, + storage_envelope: Union[_models.ConnectedEnvironmentStorage, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.ConnectedEnvironmentStorage]: + """Create or update storage for a connectedEnvironment. + + Create or update storage for a connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :param storage_envelope: Configuration details of storage. Is one of the following types: + ConnectedEnvironmentStorage, JSON, IO[bytes] Required. + :type storage_envelope: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage or JSON or + IO[bytes] + :return: An instance of LROPoller that returns ConnectedEnvironmentStorage. The + ConnectedEnvironmentStorage is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ConnectedEnvironmentStorage] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + storage_name=storage_name, + storage_envelope=storage_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.ConnectedEnvironmentStorage, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.ConnectedEnvironmentStorage].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.ConnectedEnvironmentStorage]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _delete_initial( + self, resource_group_name: str, connected_environment_name: str, storage_name: str, **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_connected_environments_storages_delete_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + storage_name=storage_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: 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]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete( + self, resource_group_name: str, connected_environment_name: str, storage_name: str, **kwargs: Any + ) -> LROPoller[None]: + """Delete storage for a connectedEnvironment. + + Delete storage for a connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + storage_name=storage_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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, connected_environment_name: str, **kwargs: Any + ) -> _models.ConnectedEnvironmentStoragesCollection: + """Get all storages for a connectedEnvironment. + + Get all storages for a connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :return: ConnectedEnvironmentStoragesCollection. The ConnectedEnvironmentStoragesCollection is + compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStoragesCollection + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ConnectedEnvironmentStoragesCollection] = kwargs.pop("cls", None) + + _request = build_connected_environments_storages_list_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ConnectedEnvironmentStoragesCollection, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class ManagedEnvironmentsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`managed_environments` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get(self, resource_group_name: str, environment_name: str, **kwargs: Any) -> _models.ManagedEnvironment: + """Get the properties of a Managed Environment. + + Get the properties of a Managed Environment used to host container apps. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :return: ManagedEnvironment. The ManagedEnvironment is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironment + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ManagedEnvironment] = kwargs.pop("cls", None) + + _request = build_managed_environments_get_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ManagedEnvironment, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _create_or_update_initial( + self, + resource_group_name: str, + environment_name: str, + environment_envelope: Union[_models.ManagedEnvironment, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(environment_envelope, (IOBase, bytes)): + _content = environment_envelope + else: + _content = json.dumps(environment_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_managed_environments_create_or_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + environment_envelope: _models.ManagedEnvironment, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ManagedEnvironment]: + """Creates or updates a Managed Environment. + + Creates or updates a Managed Environment used to host container apps. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param environment_envelope: Configuration details of the Environment. Required. + :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ManagedEnvironment. The ManagedEnvironment is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + environment_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ManagedEnvironment]: + """Creates or updates a Managed Environment. + + Creates or updates a Managed Environment used to host container apps. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param environment_envelope: Configuration details of the Environment. Required. + :type environment_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ManagedEnvironment. The ManagedEnvironment is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + environment_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ManagedEnvironment]: + """Creates or updates a Managed Environment. + + Creates or updates a Managed Environment used to host container apps. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param environment_envelope: Configuration details of the Environment. Required. + :type environment_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ManagedEnvironment. The ManagedEnvironment is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + environment_envelope: Union[_models.ManagedEnvironment, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.ManagedEnvironment]: + """Creates or updates a Managed Environment. + + Creates or updates a Managed Environment used to host container apps. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param environment_envelope: Configuration details of the Environment. Is one of the following + types: ManagedEnvironment, JSON, IO[bytes] Required. + :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment or JSON or + IO[bytes] + :return: An instance of LROPoller that returns ManagedEnvironment. The ManagedEnvironment is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ManagedEnvironment] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + environment_name=environment_name, + environment_envelope=environment_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.ManagedEnvironment, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.ManagedEnvironment].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.ManagedEnvironment]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _update_initial( + self, + resource_group_name: str, + environment_name: str, + environment_envelope: Union[_models.ManagedEnvironment, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(environment_envelope, (IOBase, bytes)): + _content = environment_envelope + else: + _content = json.dumps(environment_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_managed_environments_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_update( + self, + resource_group_name: str, + environment_name: str, + environment_envelope: _models.ManagedEnvironment, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ManagedEnvironment]: + """Update Managed Environment's properties. + + Patches a Managed Environment using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param environment_envelope: Configuration details of the Environment. Required. + :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ManagedEnvironment. The ManagedEnvironment is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update( + self, + resource_group_name: str, + environment_name: str, + environment_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ManagedEnvironment]: + """Update Managed Environment's properties. + + Patches a Managed Environment using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param environment_envelope: Configuration details of the Environment. Required. + :type environment_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ManagedEnvironment. The ManagedEnvironment is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update( + self, + resource_group_name: str, + environment_name: str, + environment_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ManagedEnvironment]: + """Update Managed Environment's properties. + + Patches a Managed Environment using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param environment_envelope: Configuration details of the Environment. Required. + :type environment_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ManagedEnvironment. The ManagedEnvironment is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_update( + self, + resource_group_name: str, + environment_name: str, + environment_envelope: Union[_models.ManagedEnvironment, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.ManagedEnvironment]: + """Update Managed Environment's properties. + + Patches a Managed Environment using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param environment_envelope: Configuration details of the Environment. Is one of the following + types: ManagedEnvironment, JSON, IO[bytes] Required. + :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment or JSON or + IO[bytes] + :return: An instance of LROPoller that returns ManagedEnvironment. The ManagedEnvironment is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ManagedEnvironment] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.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, + environment_name=environment_name, + environment_envelope=environment_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.ManagedEnvironment, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.ManagedEnvironment].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.ManagedEnvironment]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _delete_initial(self, resource_group_name: str, environment_name: str, **kwargs: Any) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_managed_environments_delete_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete(self, resource_group_name: str, environment_name: str, **kwargs: Any) -> LROPoller[None]: + """Delete a Managed Environment. + + Delete a Managed Environment if it does not have any container apps. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + environment_name=environment_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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_by_resource_group( + self, resource_group_name: str, **kwargs: Any + ) -> ItemPaged["_models.ManagedEnvironment"]: + """Get all the Environments in a resource group. + + Get all the Managed Environments in a resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of ManagedEnvironment + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ManagedEnvironment]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_managed_environments_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ManagedEnvironment], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.ManagedEnvironment"]: + """Get all Environments for a subscription. + + Get all Managed Environments for a subscription. + + :return: An iterator like instance of ManagedEnvironment + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ManagedEnvironment]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_managed_environments_list_by_subscription_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ManagedEnvironment], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def get_auth_token( + self, resource_group_name: str, environment_name: str, **kwargs: Any + ) -> _models.EnvironmentAuthToken: + """Get auth token for a managed environment. + + Checks if resource name is available. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :return: EnvironmentAuthToken. The EnvironmentAuthToken is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.EnvironmentAuthToken + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.EnvironmentAuthToken] = kwargs.pop("cls", None) + + _request = build_managed_environments_get_auth_token_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.EnvironmentAuthToken, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def list_workload_profile_states( + self, resource_group_name: str, environment_name: str, **kwargs: Any + ) -> ItemPaged["_models.WorkloadProfileStates"]: + """Get all workload Profile States for a Managed Environment.. + + Get all workload Profile States for a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :return: An iterator like instance of WorkloadProfileStates + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.WorkloadProfileStates] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.WorkloadProfileStates]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_managed_environments_list_workload_profile_states_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.WorkloadProfileStates], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class ManagedCertificatesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`managed_certificates` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, resource_group_name: str, environment_name: str, managed_certificate_name: str, **kwargs: Any + ) -> _models.ManagedCertificate: + """Get the specified Managed Certificate. + + Get the specified Managed Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param managed_certificate_name: Name of the Managed Certificate. Required. + :type managed_certificate_name: str + :return: ManagedCertificate. The ManagedCertificate is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ManagedCertificate + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ManagedCertificate] = kwargs.pop("cls", None) + + _request = build_managed_certificates_get_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + managed_certificate_name=managed_certificate_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ManagedCertificate, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _create_or_update_initial( + self, + resource_group_name: str, + environment_name: str, + managed_certificate_name: str, + managed_certificate_envelope: Optional[Union[_models.ManagedCertificate, JSON, IO[bytes]]] = None, + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if managed_certificate_envelope else None + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" if managed_certificate_envelope else None + _content = None + if isinstance(managed_certificate_envelope, (IOBase, bytes)): + _content = managed_certificate_envelope + else: + if managed_certificate_envelope is not None: + _content = json.dumps(managed_certificate_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + else: + _content = None + + _request = build_managed_certificates_create_or_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + managed_certificate_name=managed_certificate_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + managed_certificate_name: str, + managed_certificate_envelope: Optional[_models.ManagedCertificate] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ManagedCertificate]: + """Create or Update a Managed Certificate. + + Create or Update a Managed Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param managed_certificate_name: Name of the Managed Certificate. Required. + :type managed_certificate_name: str + :param managed_certificate_envelope: Managed Certificate to be created or updated. Default + value is None. + :type managed_certificate_envelope: ~azure.mgmt.appcontainers.models.ManagedCertificate + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ManagedCertificate. The ManagedCertificate is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedCertificate] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + managed_certificate_name: str, + managed_certificate_envelope: Optional[JSON] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ManagedCertificate]: + """Create or Update a Managed Certificate. + + Create or Update a Managed Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param managed_certificate_name: Name of the Managed Certificate. Required. + :type managed_certificate_name: str + :param managed_certificate_envelope: Managed Certificate to be created or updated. Default + value is None. + :type managed_certificate_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ManagedCertificate. The ManagedCertificate is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedCertificate] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + managed_certificate_name: str, + managed_certificate_envelope: Optional[IO[bytes]] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ManagedCertificate]: + """Create or Update a Managed Certificate. + + Create or Update a Managed Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param managed_certificate_name: Name of the Managed Certificate. Required. + :type managed_certificate_name: str + :param managed_certificate_envelope: Managed Certificate to be created or updated. Default + value is None. + :type managed_certificate_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ManagedCertificate. The ManagedCertificate is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedCertificate] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + managed_certificate_name: str, + managed_certificate_envelope: Optional[Union[_models.ManagedCertificate, JSON, IO[bytes]]] = None, + **kwargs: Any + ) -> LROPoller[_models.ManagedCertificate]: + """Create or Update a Managed Certificate. + + Create or Update a Managed Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param managed_certificate_name: Name of the Managed Certificate. Required. + :type managed_certificate_name: str + :param managed_certificate_envelope: Managed Certificate to be created or updated. Is one of + the following types: ManagedCertificate, JSON, IO[bytes] Default value is None. + :type managed_certificate_envelope: ~azure.mgmt.appcontainers.models.ManagedCertificate or JSON + or IO[bytes] + :return: An instance of LROPoller that returns ManagedCertificate. The ManagedCertificate is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedCertificate] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if managed_certificate_envelope else None + cls: ClsType[_models.ManagedCertificate] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + environment_name=environment_name, + managed_certificate_name=managed_certificate_name, + managed_certificate_envelope=managed_certificate_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.ManagedCertificate, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.ManagedCertificate].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.ManagedCertificate]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + @overload + def update( + self, + resource_group_name: str, + environment_name: str, + managed_certificate_name: str, + managed_certificate_envelope: _models.ManagedCertificatePatch, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ManagedCertificate: + """Update tags of a managed certificate. + + Patches a managed certificate. Oly patching of tags is supported. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param managed_certificate_name: Name of the Managed Certificate. Required. + :type managed_certificate_name: str + :param managed_certificate_envelope: Properties of a managed certificate that need to be + updated. Required. + :type managed_certificate_envelope: ~azure.mgmt.appcontainers.models.ManagedCertificatePatch + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ManagedCertificate. The ManagedCertificate is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ManagedCertificate + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def update( + self, + resource_group_name: str, + environment_name: str, + managed_certificate_name: str, + managed_certificate_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ManagedCertificate: + """Update tags of a managed certificate. + + Patches a managed certificate. Oly patching of tags is supported. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param managed_certificate_name: Name of the Managed Certificate. Required. + :type managed_certificate_name: str + :param managed_certificate_envelope: Properties of a managed certificate that need to be + updated. Required. + :type managed_certificate_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ManagedCertificate. The ManagedCertificate is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ManagedCertificate + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def update( + self, + resource_group_name: str, + environment_name: str, + managed_certificate_name: str, + managed_certificate_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ManagedCertificate: + """Update tags of a managed certificate. + + Patches a managed certificate. Oly patching of tags is supported. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param managed_certificate_name: Name of the Managed Certificate. Required. + :type managed_certificate_name: str + :param managed_certificate_envelope: Properties of a managed certificate that need to be + updated. Required. + :type managed_certificate_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ManagedCertificate. The ManagedCertificate is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ManagedCertificate + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def update( + self, + resource_group_name: str, + environment_name: str, + managed_certificate_name: str, + managed_certificate_envelope: Union[_models.ManagedCertificatePatch, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.ManagedCertificate: + """Update tags of a managed certificate. + + Patches a managed certificate. Oly patching of tags is supported. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param managed_certificate_name: Name of the Managed Certificate. Required. + :type managed_certificate_name: str + :param managed_certificate_envelope: Properties of a managed certificate that need to be + updated. Is one of the following types: ManagedCertificatePatch, JSON, IO[bytes] Required. + :type managed_certificate_envelope: ~azure.mgmt.appcontainers.models.ManagedCertificatePatch or + JSON or IO[bytes] + :return: ManagedCertificate. The ManagedCertificate is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ManagedCertificate + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ManagedCertificate] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(managed_certificate_envelope, (IOBase, bytes)): + _content = managed_certificate_envelope + else: + _content = json.dumps(managed_certificate_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_managed_certificates_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + managed_certificate_name=managed_certificate_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ManagedCertificate, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def delete( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, environment_name: str, managed_certificate_name: str, **kwargs: Any + ) -> None: + """Deletes the specified Managed Certificate. + + Deletes the specified Managed Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param managed_certificate_name: Name of the Managed Certificate. Required. + :type managed_certificate_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_managed_certificates_delete_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + managed_certificate_name=managed_certificate_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = 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) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list( + self, resource_group_name: str, environment_name: str, **kwargs: Any + ) -> ItemPaged["_models.ManagedCertificate"]: + """Get the Managed Certificates in a given managed environment. + + Get the Managed Certificates in a given managed environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :return: An iterator like instance of ManagedCertificate + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.ManagedCertificate] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ManagedCertificate]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_managed_certificates_list_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ManagedCertificate], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class DaprComponentResiliencyPoliciesOperations: # pylint: disable=name-too-long + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`dapr_component_resiliency_policies` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, resource_group_name: str, environment_name: str, component_name: str, name: str, **kwargs: Any + ) -> _models.DaprComponentResiliencyPolicy: + """Get a Dapr component resiliency policy. + + Get a Dapr component resiliency policy. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param name: Name of the Dapr Component Resiliency Policy. Required. + :type name: str + :return: DaprComponentResiliencyPolicy. The DaprComponentResiliencyPolicy is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprComponentResiliencyPolicy + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DaprComponentResiliencyPolicy] = kwargs.pop("cls", None) + + _request = build_dapr_component_resiliency_policies_get_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + component_name=component_name, + name=name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DaprComponentResiliencyPolicy, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def create_or_update( + self, + resource_group_name: str, + environment_name: str, + component_name: str, + name: str, + dapr_component_resiliency_policy_envelope: _models.DaprComponentResiliencyPolicy, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.DaprComponentResiliencyPolicy: + """Creates or updates a Dapr component resiliency policy. + + Creates or updates a resiliency policy for a Dapr component. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param name: Name of the Dapr Component Resiliency Policy. Required. + :type name: str + :param dapr_component_resiliency_policy_envelope: Configuration details of the Dapr Component + Resiliency Policy. Required. + :type dapr_component_resiliency_policy_envelope: + ~azure.mgmt.appcontainers.models.DaprComponentResiliencyPolicy + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: DaprComponentResiliencyPolicy. The DaprComponentResiliencyPolicy is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprComponentResiliencyPolicy + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + environment_name: str, + component_name: str, + name: str, + dapr_component_resiliency_policy_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.DaprComponentResiliencyPolicy: + """Creates or updates a Dapr component resiliency policy. + + Creates or updates a resiliency policy for a Dapr component. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param name: Name of the Dapr Component Resiliency Policy. Required. + :type name: str + :param dapr_component_resiliency_policy_envelope: Configuration details of the Dapr Component + Resiliency Policy. Required. + :type dapr_component_resiliency_policy_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: DaprComponentResiliencyPolicy. The DaprComponentResiliencyPolicy is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprComponentResiliencyPolicy + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + environment_name: str, + component_name: str, + name: str, + dapr_component_resiliency_policy_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.DaprComponentResiliencyPolicy: + """Creates or updates a Dapr component resiliency policy. + + Creates or updates a resiliency policy for a Dapr component. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param name: Name of the Dapr Component Resiliency Policy. Required. + :type name: str + :param dapr_component_resiliency_policy_envelope: Configuration details of the Dapr Component + Resiliency Policy. Required. + :type dapr_component_resiliency_policy_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: DaprComponentResiliencyPolicy. The DaprComponentResiliencyPolicy is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprComponentResiliencyPolicy + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def create_or_update( + self, + resource_group_name: str, + environment_name: str, + component_name: str, + name: str, + dapr_component_resiliency_policy_envelope: Union[_models.DaprComponentResiliencyPolicy, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.DaprComponentResiliencyPolicy: + """Creates or updates a Dapr component resiliency policy. + + Creates or updates a resiliency policy for a Dapr component. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param name: Name of the Dapr Component Resiliency Policy. Required. + :type name: str + :param dapr_component_resiliency_policy_envelope: Configuration details of the Dapr Component + Resiliency Policy. Is one of the following types: DaprComponentResiliencyPolicy, JSON, + IO[bytes] Required. + :type dapr_component_resiliency_policy_envelope: + ~azure.mgmt.appcontainers.models.DaprComponentResiliencyPolicy or JSON or IO[bytes] + :return: DaprComponentResiliencyPolicy. The DaprComponentResiliencyPolicy is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprComponentResiliencyPolicy + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DaprComponentResiliencyPolicy] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(dapr_component_resiliency_policy_envelope, (IOBase, bytes)): + _content = dapr_component_resiliency_policy_envelope + else: + _content = json.dumps(dapr_component_resiliency_policy_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_dapr_component_resiliency_policies_create_or_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + component_name=component_name, + name=name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DaprComponentResiliencyPolicy, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def delete( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, environment_name: str, component_name: str, name: str, **kwargs: Any + ) -> None: + """Delete a Dapr component resiliency policy. + + Delete a resiliency policy for a Dapr component. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param name: Name of the Dapr Component Resiliency Policy. Required. + :type name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_dapr_component_resiliency_policies_delete_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + component_name=component_name, + name=name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = 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) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list( + self, resource_group_name: str, environment_name: str, component_name: str, **kwargs: Any + ) -> ItemPaged["_models.DaprComponentResiliencyPolicy"]: + """Get the resiliency policies for a Dapr component. + + Get the resiliency policies for a Dapr component. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :return: An iterator like instance of DaprComponentResiliencyPolicy + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.DaprComponentResiliencyPolicy] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.DaprComponentResiliencyPolicy]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_dapr_component_resiliency_policies_list_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + component_name=component_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.DaprComponentResiliencyPolicy], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class DaprSubscriptionsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`dapr_subscriptions` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, resource_group_name: str, environment_name: str, name: str, **kwargs: Any + ) -> _models.DaprSubscription: + """Get a dapr subscription. + + Get a dapr subscription. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the Dapr Subscription. Required. + :type name: str + :return: DaprSubscription. The DaprSubscription is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprSubscription + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DaprSubscription] = kwargs.pop("cls", None) + + _request = build_dapr_subscriptions_get_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + name=name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DaprSubscription, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def create_or_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + dapr_subscription_envelope: _models.DaprSubscription, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.DaprSubscription: + """Creates or updates a Dapr subscription. + + Creates or updates a Dapr subscription in a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the Dapr Subscription. Required. + :type name: str + :param dapr_subscription_envelope: Configuration details of the Dapr subscription. Required. + :type dapr_subscription_envelope: ~azure.mgmt.appcontainers.models.DaprSubscription + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: DaprSubscription. The DaprSubscription is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprSubscription + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + dapr_subscription_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.DaprSubscription: + """Creates or updates a Dapr subscription. + + Creates or updates a Dapr subscription in a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the Dapr Subscription. Required. + :type name: str + :param dapr_subscription_envelope: Configuration details of the Dapr subscription. Required. + :type dapr_subscription_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: DaprSubscription. The DaprSubscription is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprSubscription + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + dapr_subscription_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.DaprSubscription: + """Creates or updates a Dapr subscription. + + Creates or updates a Dapr subscription in a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the Dapr Subscription. Required. + :type name: str + :param dapr_subscription_envelope: Configuration details of the Dapr subscription. Required. + :type dapr_subscription_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: DaprSubscription. The DaprSubscription is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprSubscription + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def create_or_update( + self, + resource_group_name: str, + environment_name: str, + name: str, + dapr_subscription_envelope: Union[_models.DaprSubscription, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.DaprSubscription: + """Creates or updates a Dapr subscription. + + Creates or updates a Dapr subscription in a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the Dapr Subscription. Required. + :type name: str + :param dapr_subscription_envelope: Configuration details of the Dapr subscription. Is one of + the following types: DaprSubscription, JSON, IO[bytes] Required. + :type dapr_subscription_envelope: ~azure.mgmt.appcontainers.models.DaprSubscription or JSON or + IO[bytes] + :return: DaprSubscription. The DaprSubscription is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprSubscription + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DaprSubscription] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(dapr_subscription_envelope, (IOBase, bytes)): + _content = dapr_subscription_envelope + else: + _content = json.dumps(dapr_subscription_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_dapr_subscriptions_create_or_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + name=name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DaprSubscription, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def delete( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, environment_name: str, name: str, **kwargs: Any + ) -> None: + """Delete a Dapr subscription. + + Delete a Dapr subscription from a Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param name: Name of the Dapr Subscription. Required. + :type name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_dapr_subscriptions_delete_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + name=name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = 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) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list( + self, resource_group_name: str, environment_name: str, **kwargs: Any + ) -> ItemPaged["_models.DaprSubscription"]: + """Get the Dapr subscriptions for a managed environment. + + Get the Dapr subscriptions for a managed environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :return: An iterator like instance of DaprSubscription + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.DaprSubscription] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.DaprSubscription]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_dapr_subscriptions_list_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.DaprSubscription], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class MaintenanceConfigurationsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`maintenance_configurations` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, resource_group_name: str, environment_name: str, config_name: str, **kwargs: Any + ) -> _models.MaintenanceConfigurationResource: + """Gets the maintenance configuration of a ManagedEnvironment . + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param config_name: Name of the Maintenance Configuration. Required. + :type config_name: str + :return: MaintenanceConfigurationResource. The MaintenanceConfigurationResource is compatible + with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.MaintenanceConfigurationResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.MaintenanceConfigurationResource] = kwargs.pop("cls", None) + + _request = build_maintenance_configurations_get_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + config_name=config_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.MaintenanceConfigurationResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def create_or_update( + self, + resource_group_name: str, + environment_name: str, + config_name: str, + maintenance_configuration_envelope: _models.MaintenanceConfigurationResource, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.MaintenanceConfigurationResource: + """Create or update the maintenance configuration for Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param config_name: Name of the Maintenance Configuration. Required. + :type config_name: str + :param maintenance_configuration_envelope: Parameters to set the maintenance configuration for + ManagedEnvironment . Required. + :type maintenance_configuration_envelope: + ~azure.mgmt.appcontainers.models.MaintenanceConfigurationResource + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: MaintenanceConfigurationResource. The MaintenanceConfigurationResource is compatible + with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.MaintenanceConfigurationResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + environment_name: str, + config_name: str, + maintenance_configuration_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.MaintenanceConfigurationResource: + """Create or update the maintenance configuration for Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param config_name: Name of the Maintenance Configuration. Required. + :type config_name: str + :param maintenance_configuration_envelope: Parameters to set the maintenance configuration for + ManagedEnvironment . Required. + :type maintenance_configuration_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: MaintenanceConfigurationResource. The MaintenanceConfigurationResource is compatible + with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.MaintenanceConfigurationResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + environment_name: str, + config_name: str, + maintenance_configuration_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.MaintenanceConfigurationResource: + """Create or update the maintenance configuration for Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param config_name: Name of the Maintenance Configuration. Required. + :type config_name: str + :param maintenance_configuration_envelope: Parameters to set the maintenance configuration for + ManagedEnvironment . Required. + :type maintenance_configuration_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: MaintenanceConfigurationResource. The MaintenanceConfigurationResource is compatible + with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.MaintenanceConfigurationResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def create_or_update( + self, + resource_group_name: str, + environment_name: str, + config_name: str, + maintenance_configuration_envelope: Union[_models.MaintenanceConfigurationResource, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.MaintenanceConfigurationResource: + """Create or update the maintenance configuration for Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param config_name: Name of the Maintenance Configuration. Required. + :type config_name: str + :param maintenance_configuration_envelope: Parameters to set the maintenance configuration for + ManagedEnvironment . Is one of the following types: MaintenanceConfigurationResource, JSON, + IO[bytes] Required. + :type maintenance_configuration_envelope: + ~azure.mgmt.appcontainers.models.MaintenanceConfigurationResource or JSON or IO[bytes] + :return: MaintenanceConfigurationResource. The MaintenanceConfigurationResource is compatible + with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.MaintenanceConfigurationResource + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.MaintenanceConfigurationResource] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(maintenance_configuration_envelope, (IOBase, bytes)): + _content = maintenance_configuration_envelope + else: + _content = json.dumps(maintenance_configuration_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_maintenance_configurations_create_or_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + config_name=config_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.MaintenanceConfigurationResource, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def delete( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, environment_name: str, config_name: str, **kwargs: Any + ) -> None: + """Deletes the maintenance configuration of a ManagedEnvironment . + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param config_name: Name of the Maintenance Configuration. Required. + :type config_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_maintenance_configurations_delete_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + config_name=config_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = 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) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list( + self, resource_group_name: str, environment_name: str, **kwargs: Any + ) -> ItemPaged["_models.MaintenanceConfigurationResource"]: + """Gets all maintenance configurations in the specified Managed Environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :return: An iterator like instance of MaintenanceConfigurationResource + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.MaintenanceConfigurationResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.MaintenanceConfigurationResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_maintenance_configurations_list_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.MaintenanceConfigurationResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class ManagedEnvironmentsStoragesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`managed_environments_storages` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, resource_group_name: str, environment_name: str, storage_name: str, **kwargs: Any + ) -> _models.ManagedEnvironmentStorage: + """Get storage for a managedEnvironment. + + Get storage for a managedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :return: ManagedEnvironmentStorage. The ManagedEnvironmentStorage is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStorage + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ManagedEnvironmentStorage] = kwargs.pop("cls", None) + + _request = build_managed_environments_storages_get_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + storage_name=storage_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ManagedEnvironmentStorage, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def create_or_update( + self, + resource_group_name: str, + environment_name: str, + storage_name: str, + storage_envelope: _models.ManagedEnvironmentStorage, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ManagedEnvironmentStorage: + """Create or update storage for a managedEnvironment. + + Create or update storage for a managedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :param storage_envelope: Configuration details of storage. Required. + :type storage_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStorage + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ManagedEnvironmentStorage. The ManagedEnvironmentStorage is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStorage + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + environment_name: str, + storage_name: str, + storage_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ManagedEnvironmentStorage: + """Create or update storage for a managedEnvironment. + + Create or update storage for a managedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :param storage_envelope: Configuration details of storage. Required. + :type storage_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ManagedEnvironmentStorage. The ManagedEnvironmentStorage is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStorage + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + environment_name: str, + storage_name: str, + storage_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ManagedEnvironmentStorage: + """Create or update storage for a managedEnvironment. + + Create or update storage for a managedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :param storage_envelope: Configuration details of storage. Required. + :type storage_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ManagedEnvironmentStorage. The ManagedEnvironmentStorage is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStorage + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def create_or_update( + self, + resource_group_name: str, + environment_name: str, + storage_name: str, + storage_envelope: Union[_models.ManagedEnvironmentStorage, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.ManagedEnvironmentStorage: + """Create or update storage for a managedEnvironment. + + Create or update storage for a managedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :param storage_envelope: Configuration details of storage. Is one of the following types: + ManagedEnvironmentStorage, JSON, IO[bytes] Required. + :type storage_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStorage or JSON or + IO[bytes] + :return: ManagedEnvironmentStorage. The ManagedEnvironmentStorage is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStorage + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ManagedEnvironmentStorage] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(storage_envelope, (IOBase, bytes)): + _content = storage_envelope + else: + _content = json.dumps(storage_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_managed_environments_storages_create_or_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + storage_name=storage_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ManagedEnvironmentStorage, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def delete( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, environment_name: str, storage_name: str, **kwargs: Any + ) -> None: + """Delete storage for a managedEnvironment. + + Delete storage for a managedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_managed_environments_storages_delete_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + storage_name=storage_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = 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) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list( + self, resource_group_name: str, environment_name: str, **kwargs: Any + ) -> _models.ManagedEnvironmentStoragesCollection: + """Get all storages for a managedEnvironment. + + Get all storages for a managedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :return: ManagedEnvironmentStoragesCollection. The ManagedEnvironmentStoragesCollection is + compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironmentStoragesCollection + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ManagedEnvironmentStoragesCollection] = kwargs.pop("cls", None) + + _request = build_managed_environments_storages_list_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ManagedEnvironmentStoragesCollection, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class JobsOperations: # pylint: disable=too-many-public-methods + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`jobs` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get(self, resource_group_name: str, job_name: str, **kwargs: Any) -> _models.Job: + """Get the properties of a Container Apps Job. + + Get the properties of a Container Apps Job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :return: Job. The Job is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Job + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.Job] = kwargs.pop("cls", None) + + _request = build_jobs_get_request( + resource_group_name=resource_group_name, + job_name=job_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Job, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _create_or_update_initial( + self, resource_group_name: str, job_name: str, job_envelope: Union[_models.Job, JSON, IO[bytes]], **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(job_envelope, (IOBase, bytes)): + _content = job_envelope + else: + _content = json.dumps(job_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_jobs_create_or_update_request( + resource_group_name=resource_group_name, + job_name=job_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + job_name: str, + job_envelope: _models.Job, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.Job]: + """Create or Update a Container Apps Job. + + Create or Update a Container Apps Job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :param job_envelope: Properties used to create a container apps job. Required. + :type job_envelope: ~azure.mgmt.appcontainers.models.Job + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns Job. The Job is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.Job] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + job_name: str, + job_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.Job]: + """Create or Update a Container Apps Job. + + Create or Update a Container Apps Job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :param job_envelope: Properties used to create a container apps job. Required. + :type job_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns Job. The Job is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.Job] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + job_name: str, + job_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.Job]: + """Create or Update a Container Apps Job. + + Create or Update a Container Apps Job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :param job_envelope: Properties used to create a container apps job. Required. + :type job_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns Job. The Job is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.Job] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_create_or_update( + self, resource_group_name: str, job_name: str, job_envelope: Union[_models.Job, JSON, IO[bytes]], **kwargs: Any + ) -> LROPoller[_models.Job]: + """Create or Update a Container Apps Job. + + Create or Update a Container Apps Job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :param job_envelope: Properties used to create a container apps job. Is one of the following + types: Job, JSON, IO[bytes] Required. + :type job_envelope: ~azure.mgmt.appcontainers.models.Job or JSON or IO[bytes] + :return: An instance of LROPoller that returns Job. The Job is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.Job] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.Job] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + job_name=job_name, + job_envelope=job_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.Job, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.Job].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.Job](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + def _update_initial( + self, + resource_group_name: str, + job_name: str, + job_envelope: Union[_models.JobPatchProperties, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(job_envelope, (IOBase, bytes)): + _content = job_envelope + else: + _content = json.dumps(job_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_jobs_update_request( + resource_group_name=resource_group_name, + job_name=job_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_update( + self, + resource_group_name: str, + job_name: str, + job_envelope: _models.JobPatchProperties, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.Job]: + """Update properties of a Container Apps Job. + + Patches a Container Apps Job using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :param job_envelope: Properties used to create a container apps job. Required. + :type job_envelope: ~azure.mgmt.appcontainers.models.JobPatchProperties + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns Job. The Job is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.Job] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update( + self, + resource_group_name: str, + job_name: str, + job_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.Job]: + """Update properties of a Container Apps Job. + + Patches a Container Apps Job using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :param job_envelope: Properties used to create a container apps job. Required. + :type job_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns Job. The Job is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.Job] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update( + self, + resource_group_name: str, + job_name: str, + job_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.Job]: + """Update properties of a Container Apps Job. + + Patches a Container Apps Job using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :param job_envelope: Properties used to create a container apps job. Required. + :type job_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns Job. The Job is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.Job] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_update( + self, + resource_group_name: str, + job_name: str, + job_envelope: Union[_models.JobPatchProperties, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.Job]: + """Update properties of a Container Apps Job. + + Patches a Container Apps Job using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :param job_envelope: Properties used to create a container apps job. Is one of the following + types: JobPatchProperties, JSON, IO[bytes] Required. + :type job_envelope: ~azure.mgmt.appcontainers.models.JobPatchProperties or JSON or IO[bytes] + :return: An instance of LROPoller that returns Job. The Job is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.Job] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.Job] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.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, + job_name=job_name, + job_envelope=job_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.Job, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.Job].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.Job](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + def _delete_initial(self, resource_group_name: str, job_name: str, **kwargs: Any) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_jobs_delete_request( + resource_group_name=resource_group_name, + job_name=job_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete(self, resource_group_name: str, job_name: str, **kwargs: Any) -> LROPoller[None]: + """Delete a Container Apps Job. + + Delete a Container Apps Job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + job_name=job_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.Job"]: + """Get the Container Apps Jobs in a given resource group. + + Get the Container Apps Jobs in a given resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of Job + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.Job] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.Job]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_jobs_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Job], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.Job"]: + """Get the Container Apps Jobs in a given subscription. + + Get the Container Apps Jobs in a given subscription. + + :return: An iterator like instance of Job + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.Job] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.Job]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_jobs_list_by_subscription_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Job], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + def _start_initial( + self, + resource_group_name: str, + job_name: str, + template: Optional[Union[_models.JobExecutionTemplate, JSON, IO[bytes]]] = None, + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if template else None + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" if template else None + _content = None + if isinstance(template, (IOBase, bytes)): + _content = template + else: + if template is not None: + _content = json.dumps(template, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + else: + _content = None + + _request = build_jobs_start_request( + resource_group_name=resource_group_name, + job_name=job_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_start( + self, + resource_group_name: str, + job_name: str, + template: Optional[_models.JobExecutionTemplate] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.JobExecutionBase]: + """Start a Container Apps Job. + + Start a Container Apps Job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :param template: Properties used to start a job execution. Default value is None. + :type template: ~azure.mgmt.appcontainers.models.JobExecutionTemplate + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns JobExecutionBase. The JobExecutionBase is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.JobExecutionBase] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_start( + self, + resource_group_name: str, + job_name: str, + template: Optional[JSON] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.JobExecutionBase]: + """Start a Container Apps Job. + + Start a Container Apps Job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :param template: Properties used to start a job execution. Default value is None. + :type template: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns JobExecutionBase. The JobExecutionBase is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.JobExecutionBase] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_start( + self, + resource_group_name: str, + job_name: str, + template: Optional[IO[bytes]] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.JobExecutionBase]: + """Start a Container Apps Job. + + Start a Container Apps Job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :param template: Properties used to start a job execution. Default value is None. + :type template: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns JobExecutionBase. The JobExecutionBase is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.JobExecutionBase] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_start( + self, + resource_group_name: str, + job_name: str, + template: Optional[Union[_models.JobExecutionTemplate, JSON, IO[bytes]]] = None, + **kwargs: Any + ) -> LROPoller[_models.JobExecutionBase]: + """Start a Container Apps Job. + + Start a Container Apps Job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :param template: Properties used to start a job execution. Is one of the following types: + JobExecutionTemplate, JSON, IO[bytes] Default value is None. + :type template: ~azure.mgmt.appcontainers.models.JobExecutionTemplate or JSON or IO[bytes] + :return: An instance of LROPoller that returns JobExecutionBase. The JobExecutionBase is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.JobExecutionBase] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if template else None + cls: ClsType[_models.JobExecutionBase] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.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( + resource_group_name=resource_group_name, + job_name=job_name, + template=template, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.JobExecutionBase, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.JobExecutionBase].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.JobExecutionBase]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _stop_multiple_executions_initial( + self, resource_group_name: str, job_name: str, **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_jobs_stop_multiple_executions_request( + resource_group_name=resource_group_name, + job_name=job_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_stop_multiple_executions( + self, resource_group_name: str, job_name: str, **kwargs: Any + ) -> LROPoller[_models.ContainerAppJobExecutions]: + """Terminates execution of a running container apps job. + + Terminates execution of a running container apps job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :return: An instance of LROPoller that returns ContainerAppJobExecutions. The + ContainerAppJobExecutions is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ContainerAppJobExecutions] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ContainerAppJobExecutions] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.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_multiple_executions_initial( + resource_group_name=resource_group_name, + job_name=job_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.ContainerAppJobExecutions, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.ContainerAppJobExecutions].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.ContainerAppJobExecutions]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + @distributed_trace + def list_secrets(self, resource_group_name: str, job_name: str, **kwargs: Any) -> _models.JobSecretsCollection: + """List secrets for a container apps job. + + List secrets for a container apps job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :return: JobSecretsCollection. The JobSecretsCollection is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.JobSecretsCollection + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.JobSecretsCollection] = kwargs.pop("cls", None) + + _request = build_jobs_list_secrets_request( + resource_group_name=resource_group_name, + job_name=job_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.JobSecretsCollection, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _resume_initial(self, resource_group_name: str, job_name: str, **kwargs: Any) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_jobs_resume_request( + resource_group_name=resource_group_name, + job_name=job_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_resume(self, resource_group_name: str, job_name: str, **kwargs: Any) -> LROPoller[_models.Job]: + """Resumes a suspended job. + + Resumes a suspended job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :return: An instance of LROPoller that returns Job. The Job is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.Job] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.Job] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._resume_initial( + resource_group_name=resource_group_name, + job_name=job_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.Job, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.Job].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.Job](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + def _suspend_initial(self, resource_group_name: str, job_name: str, **kwargs: Any) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_jobs_suspend_request( + resource_group_name=resource_group_name, + job_name=job_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_suspend(self, resource_group_name: str, job_name: str, **kwargs: Any) -> LROPoller[_models.Job]: + """Suspends a job. + + Suspends a job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :return: An instance of LROPoller that returns Job. The Job is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.Job] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.Job] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._suspend_initial( + resource_group_name=resource_group_name, + job_name=job_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.Job, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.Job].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.Job](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + def _stop_execution_initial( + self, resource_group_name: str, job_name: str, job_execution_name: str, **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_jobs_stop_execution_request( + resource_group_name=resource_group_name, + job_name=job_name, + job_execution_name=job_execution_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_stop_execution( + self, resource_group_name: str, job_name: str, job_execution_name: str, **kwargs: Any + ) -> LROPoller[None]: + """Terminates execution of a running container apps job. + + Terminates execution of a running container apps job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :param job_execution_name: Job execution name. Required. + :type job_execution_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.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_execution_initial( + resource_group_name=resource_group_name, + job_name=job_name, + job_execution_name=job_execution_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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 proxy_get(self, resource_group_name: str, job_name: str, api_name: str, **kwargs: Any) -> _models.Job: + """Get the properties for a given Container App Job. + + Get the properties of a Container App Job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :param api_name: Proxy API Name for Container App Job. Required. + :type api_name: str + :return: Job. The Job is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Job + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.Job] = kwargs.pop("cls", None) + + _request = build_jobs_proxy_get_request( + resource_group_name=resource_group_name, + job_name=job_name, + api_name=api_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Job, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def list_detectors( + self, resource_group_name: str, job_name: str, **kwargs: Any + ) -> ItemPaged["_models.Diagnostics"]: + """Get the list of diagnostics for a given Container App Job. + + Get the list of diagnostics for a Container App Job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Name of the Container App Job. Required. + :type job_name: str + :return: An iterator like instance of Diagnostics + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.Diagnostics] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.Diagnostics]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_jobs_list_detectors_request( + resource_group_name=resource_group_name, + job_name=job_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Diagnostics], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def get_detector( + self, resource_group_name: str, job_name: str, detector_name: str, **kwargs: Any + ) -> _models.Diagnostics: + """Get the diagnostics data for a given Container App Job. + + Get the diagnostics data for a Container App Job. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Name of the Container App Job. Required. + :type job_name: str + :param detector_name: Proxy API Name for Container App Job. Required. + :type detector_name: str + :return: Diagnostics. The Diagnostics is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Diagnostics + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.Diagnostics] = kwargs.pop("cls", None) + + _request = build_jobs_get_detector_request( + resource_group_name=resource_group_name, + job_name=job_name, + detector_name=detector_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Diagnostics, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class ContainerAppsDiagnosticsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`container_apps_diagnostics` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get_revision( + self, resource_group_name: str, container_app_name: str, revision_name: str, **kwargs: Any + ) -> _models.Revision: + """Get a revision of a Container App. + + Get a revision of a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param revision_name: Name of the detector. Required. + :type revision_name: str + :return: Revision. The Revision is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Revision + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.Revision] = kwargs.pop("cls", None) + + _request = build_container_apps_diagnostics_get_revision_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + revision_name=revision_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Revision, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def list_revisions( + self, resource_group_name: str, container_app_name: str, *, filter: Optional[str] = None, **kwargs: Any + ) -> ItemPaged["_models.Revision"]: + """Get the Revisions for a given Container App. + + A synchronous resource action. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :keyword filter: The filter to apply on the operation. Default value is None. + :paramtype filter: str + :return: An iterator like instance of Revision + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.Revision] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.Revision]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_container_apps_diagnostics_list_revisions_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + filter=filter, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Revision], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def get_root(self, resource_group_name: str, container_app_name: str, **kwargs: Any) -> _models.ContainerApp: + """Get the properties of a Container App. + + Get the properties of a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :return: ContainerApp. The ContainerApp is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ContainerApp + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ContainerApp] = kwargs.pop("cls", None) + + _request = build_container_apps_diagnostics_get_root_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ContainerApp, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def list_detectors( + self, resource_group_name: str, container_app_name: str, **kwargs: Any + ) -> ItemPaged["_models.Diagnostics"]: + """Get the list of diagnostics for a given Container App. + + Get the list of diagnostics for a given Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :return: An iterator like instance of Diagnostics + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.Diagnostics] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.Diagnostics]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_container_apps_diagnostics_list_detectors_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Diagnostics], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def get_detector( + self, resource_group_name: str, container_app_name: str, detector_name: str, **kwargs: Any + ) -> _models.Diagnostics: + """Get a diagnostics result of a Container App. + + Get a diagnostics result of a Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param detector_name: Name of the detector. Required. + :type detector_name: str + :return: Diagnostics. The Diagnostics is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Diagnostics + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.Diagnostics] = kwargs.pop("cls", None) + + _request = build_container_apps_diagnostics_get_detector_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + detector_name=detector_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Diagnostics, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class ManagedEnvironmentsDiagnosticsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`managed_environments_diagnostics` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get_root(self, resource_group_name: str, environment_name: str, **kwargs: Any) -> _models.ManagedEnvironment: + """Get the properties of a Managed Environment. + + Get the properties of a Managed Environment used to host container apps. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :return: ManagedEnvironment. The ManagedEnvironment is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironment + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ManagedEnvironment] = kwargs.pop("cls", None) + + _request = build_managed_environments_diagnostics_get_root_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ManagedEnvironment, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class ContainerAppsBuildsByContainerAppOperations: # pylint: disable=name-too-long + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`container_apps_builds_by_container_app` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def list( + self, resource_group_name: str, container_app_name: str, **kwargs: Any + ) -> ItemPaged["_models.ContainerAppsBuildResource"]: + """List Container Apps Build resources by Container App. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :return: An iterator like instance of ContainerAppsBuildResource + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.ContainerAppsBuildResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ContainerAppsBuildResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_container_apps_builds_by_container_app_list_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ContainerAppsBuildResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class ContainerAppsRevisionFunctionsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`container_apps_revision_functions` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, resource_group_name: str, container_app_name: str, revision_name: str, function_name: str, **kwargs: Any + ) -> _models.ContainerAppsFunction: + """Get a specific function of a Container App Revision. + + Get a specific function of a Container App Revision. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param revision_name: Name of the Container App Revision. Required. + :type revision_name: str + :param function_name: Name of the Function. Required. + :type function_name: str + :return: ContainerAppsFunction. The ContainerAppsFunction is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ContainerAppsFunction + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ContainerAppsFunction] = kwargs.pop("cls", None) + + _request = build_container_apps_revision_functions_get_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + revision_name=revision_name, + function_name=function_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ContainerAppsFunction, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def list( + self, resource_group_name: str, container_app_name: str, revision_name: str, **kwargs: Any + ) -> ItemPaged["_models.ContainerAppsFunction"]: + """List the functions for a given Container App Revision. + + List the functions for a given Container App Revision. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param container_app_name: Name of the Container App. Required. + :type container_app_name: str + :param revision_name: Name of the Container App Revision. Required. + :type revision_name: str + :return: An iterator like instance of ContainerAppsFunction + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.ContainerAppsFunction] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ContainerAppsFunction]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_container_apps_revision_functions_list_request( + resource_group_name=resource_group_name, + container_app_name=container_app_name, + revision_name=revision_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ContainerAppsFunction], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class AppResiliencyOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`app_resiliency` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get(self, resource_group_name: str, app_name: str, name: str, **kwargs: Any) -> _models.AppResiliency: + """Get an application's resiliency policy. + + Get container app resiliency policy. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param app_name: Name of the Container App. Required. + :type app_name: str + :param name: Name of the resiliency policy. Required. + :type name: str + :return: AppResiliency. The AppResiliency is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.AppResiliency + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.AppResiliency] = kwargs.pop("cls", None) + + _request = build_app_resiliency_get_request( + resource_group_name=resource_group_name, + app_name=app_name, + name=name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.AppResiliency, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def create_or_update( + self, + resource_group_name: str, + app_name: str, + name: str, + resiliency_envelope: _models.AppResiliency, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AppResiliency: + """Create or update an application's resiliency policy. + + Create or update container app resiliency policy. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param app_name: Name of the Container App. Required. + :type app_name: str + :param name: Name of the resiliency policy. Required. + :type name: str + :param resiliency_envelope: The resiliency policy to create or update. Required. + :type resiliency_envelope: ~azure.mgmt.appcontainers.models.AppResiliency + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: AppResiliency. The AppResiliency is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.AppResiliency + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + app_name: str, + name: str, + resiliency_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AppResiliency: + """Create or update an application's resiliency policy. + + Create or update container app resiliency policy. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param app_name: Name of the Container App. Required. + :type app_name: str + :param name: Name of the resiliency policy. Required. + :type name: str + :param resiliency_envelope: The resiliency policy to create or update. Required. + :type resiliency_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: AppResiliency. The AppResiliency is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.AppResiliency + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + app_name: str, + name: str, + resiliency_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AppResiliency: + """Create or update an application's resiliency policy. + + Create or update container app resiliency policy. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param app_name: Name of the Container App. Required. + :type app_name: str + :param name: Name of the resiliency policy. Required. + :type name: str + :param resiliency_envelope: The resiliency policy to create or update. Required. + :type resiliency_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: AppResiliency. The AppResiliency is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.AppResiliency + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def create_or_update( + self, + resource_group_name: str, + app_name: str, + name: str, + resiliency_envelope: Union[_models.AppResiliency, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.AppResiliency: + """Create or update an application's resiliency policy. + + Create or update container app resiliency policy. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param app_name: Name of the Container App. Required. + :type app_name: str + :param name: Name of the resiliency policy. Required. + :type name: str + :param resiliency_envelope: The resiliency policy to create or update. Is one of the following + types: AppResiliency, JSON, IO[bytes] Required. + :type resiliency_envelope: ~azure.mgmt.appcontainers.models.AppResiliency or JSON or IO[bytes] + :return: AppResiliency. The AppResiliency is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.AppResiliency + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.AppResiliency] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(resiliency_envelope, (IOBase, bytes)): + _content = resiliency_envelope + else: + _content = json.dumps(resiliency_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_app_resiliency_create_or_update_request( + resource_group_name=resource_group_name, + app_name=app_name, + name=name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.AppResiliency, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def update( + self, + resource_group_name: str, + app_name: str, + name: str, + resiliency_envelope: _models.AppResiliency, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AppResiliency: + """Update an application's resiliency policy. + + Update container app resiliency policy. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param app_name: Name of the Container App. Required. + :type app_name: str + :param name: Name of the resiliency policy. Required. + :type name: str + :param resiliency_envelope: The resiliency policy to update. Required. + :type resiliency_envelope: ~azure.mgmt.appcontainers.models.AppResiliency + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: AppResiliency. The AppResiliency is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.AppResiliency + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def update( + self, + resource_group_name: str, + app_name: str, + name: str, + resiliency_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AppResiliency: + """Update an application's resiliency policy. + + Update container app resiliency policy. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param app_name: Name of the Container App. Required. + :type app_name: str + :param name: Name of the resiliency policy. Required. + :type name: str + :param resiliency_envelope: The resiliency policy to update. Required. + :type resiliency_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: AppResiliency. The AppResiliency is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.AppResiliency + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def update( + self, + resource_group_name: str, + app_name: str, + name: str, + resiliency_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AppResiliency: + """Update an application's resiliency policy. + + Update container app resiliency policy. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param app_name: Name of the Container App. Required. + :type app_name: str + :param name: Name of the resiliency policy. Required. + :type name: str + :param resiliency_envelope: The resiliency policy to update. Required. + :type resiliency_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: AppResiliency. The AppResiliency is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.AppResiliency + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def update( + self, + resource_group_name: str, + app_name: str, + name: str, + resiliency_envelope: Union[_models.AppResiliency, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.AppResiliency: + """Update an application's resiliency policy. + + Update container app resiliency policy. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param app_name: Name of the Container App. Required. + :type app_name: str + :param name: Name of the resiliency policy. Required. + :type name: str + :param resiliency_envelope: The resiliency policy to update. Is one of the following types: + AppResiliency, JSON, IO[bytes] Required. + :type resiliency_envelope: ~azure.mgmt.appcontainers.models.AppResiliency or JSON or IO[bytes] + :return: AppResiliency. The AppResiliency is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.AppResiliency + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.AppResiliency] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(resiliency_envelope, (IOBase, bytes)): + _content = resiliency_envelope + else: + _content = json.dumps(resiliency_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_app_resiliency_update_request( + resource_group_name=resource_group_name, + app_name=app_name, + name=name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.AppResiliency, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def delete( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, app_name: str, name: str, **kwargs: Any + ) -> None: + """Delete an application's resiliency policy. + + Delete container app resiliency policy. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param app_name: Name of the Container App. Required. + :type app_name: str + :param name: Name of the resiliency policy. Required. + :type name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_app_resiliency_delete_request( + resource_group_name=resource_group_name, + app_name=app_name, + name=name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = 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) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list(self, resource_group_name: str, app_name: str, **kwargs: Any) -> ItemPaged["_models.AppResiliency"]: + """List an application's resiliency policies. + + List container app resiliency policies. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param app_name: Name of the Container App. Required. + :type app_name: str + :return: An iterator like instance of AppResiliency + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.AppResiliency] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.AppResiliency]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_app_resiliency_list_request( + resource_group_name=resource_group_name, + app_name=app_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.AppResiliency], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class BuildsByBuilderResourceOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`builds_by_builder_resource` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def list(self, resource_group_name: str, builder_name: str, **kwargs: Any) -> ItemPaged["_models.BuildResource"]: + """List BuildResource resources by BuilderResource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :return: An iterator like instance of BuildResource + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.BuildResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.BuildResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_builds_by_builder_resource_list_request( + resource_group_name=resource_group_name, + builder_name=builder_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.BuildResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class BuildAuthTokenOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`build_auth_token` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def list(self, resource_group_name: str, builder_name: str, build_name: str, **kwargs: Any) -> _models.BuildToken: + """Gets the token used to connect to the endpoint where source code can be uploaded for a build. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param builder_name: The name of the builder. Required. + :type builder_name: str + :param build_name: The name of a build. Required. + :type build_name: str + :return: BuildToken. The BuildToken is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.BuildToken + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.BuildToken] = kwargs.pop("cls", None) + + _request = build_build_auth_token_list_request( + resource_group_name=resource_group_name, + builder_name=builder_name, + build_name=build_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.BuildToken, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class ConnectedEnvironmentsCertificatesOperations: # pylint: disable=name-too-long + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`connected_environments_certificates` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, resource_group_name: str, connected_environment_name: str, certificate_name: str, **kwargs: Any + ) -> _models.Certificate: + """Get the specified Certificate. + + Get the specified Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the Connected Environment. Required. + :type connected_environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :return: Certificate. The Certificate is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Certificate + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.Certificate] = kwargs.pop("cls", None) + + _request = build_connected_environments_certificates_get_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + certificate_name=certificate_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Certificate, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _create_or_update_initial( + self, + resource_group_name: str, + connected_environment_name: str, + certificate_name: str, + certificate_envelope: Optional[Union[_models.Certificate, JSON, IO[bytes]]] = None, + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if certificate_envelope else None + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" if certificate_envelope else None + _content = None + if isinstance(certificate_envelope, (IOBase, bytes)): + _content = certificate_envelope + else: + if certificate_envelope is not None: + _content = json.dumps(certificate_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + else: + _content = None + + _request = build_connected_environments_certificates_create_or_update_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + certificate_name=certificate_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + certificate_name: str, + certificate_envelope: Optional[_models.Certificate] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.Certificate]: + """Create or Update a Certificate. + + Create or Update a Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the Connected Environment. Required. + :type connected_environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :param certificate_envelope: Certificate to be created or updated. Default value is None. + :type certificate_envelope: ~azure.mgmt.appcontainers.models.Certificate + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns Certificate. The Certificate is compatible with + MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.Certificate] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + certificate_name: str, + certificate_envelope: Optional[JSON] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.Certificate]: + """Create or Update a Certificate. + + Create or Update a Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the Connected Environment. Required. + :type connected_environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :param certificate_envelope: Certificate to be created or updated. Default value is None. + :type certificate_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns Certificate. The Certificate is compatible with + MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.Certificate] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + certificate_name: str, + certificate_envelope: Optional[IO[bytes]] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.Certificate]: + """Create or Update a Certificate. + + Create or Update a Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the Connected Environment. Required. + :type connected_environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :param certificate_envelope: Certificate to be created or updated. Default value is None. + :type certificate_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns Certificate. The Certificate is compatible with + MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.Certificate] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + certificate_name: str, + certificate_envelope: Optional[Union[_models.Certificate, JSON, IO[bytes]]] = None, + **kwargs: Any + ) -> LROPoller[_models.Certificate]: + """Create or Update a Certificate. + + Create or Update a Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the Connected Environment. Required. + :type connected_environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :param certificate_envelope: Certificate to be created or updated. Is one of the following + types: Certificate, JSON, IO[bytes] Default value is None. + :type certificate_envelope: ~azure.mgmt.appcontainers.models.Certificate or JSON or IO[bytes] + :return: An instance of LROPoller that returns Certificate. The Certificate is compatible with + MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.Certificate] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if certificate_envelope else None + cls: ClsType[_models.Certificate] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + certificate_name=certificate_name, + certificate_envelope=certificate_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.Certificate, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.Certificate].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.Certificate]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _update_initial( + self, + resource_group_name: str, + connected_environment_name: str, + certificate_name: str, + certificate_envelope: Union[_models.CertificatePatch, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(certificate_envelope, (IOBase, bytes)): + _content = certificate_envelope + else: + _content = json.dumps(certificate_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_connected_environments_certificates_update_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + certificate_name=certificate_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_update( + self, + resource_group_name: str, + connected_environment_name: str, + certificate_name: str, + certificate_envelope: _models.CertificatePatch, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.Certificate]: + """Update properties of a certificate. + + Patches a certificate. Currently only patching of tags is supported. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the Connected Environment. Required. + :type connected_environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :param certificate_envelope: Properties of a certificate that need to be updated. Required. + :type certificate_envelope: ~azure.mgmt.appcontainers.models.CertificatePatch + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns Certificate. The Certificate is compatible with + MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.Certificate] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update( + self, + resource_group_name: str, + connected_environment_name: str, + certificate_name: str, + certificate_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.Certificate]: + """Update properties of a certificate. + + Patches a certificate. Currently only patching of tags is supported. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the Connected Environment. Required. + :type connected_environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :param certificate_envelope: Properties of a certificate that need to be updated. Required. + :type certificate_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns Certificate. The Certificate is compatible with + MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.Certificate] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update( + self, + resource_group_name: str, + connected_environment_name: str, + certificate_name: str, + certificate_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.Certificate]: + """Update properties of a certificate. + + Patches a certificate. Currently only patching of tags is supported. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the Connected Environment. Required. + :type connected_environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :param certificate_envelope: Properties of a certificate that need to be updated. Required. + :type certificate_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns Certificate. The Certificate is compatible with + MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.Certificate] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_update( + self, + resource_group_name: str, + connected_environment_name: str, + certificate_name: str, + certificate_envelope: Union[_models.CertificatePatch, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.Certificate]: + """Update properties of a certificate. + + Patches a certificate. Currently only patching of tags is supported. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the Connected Environment. Required. + :type connected_environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :param certificate_envelope: Properties of a certificate that need to be updated. Is one of the + following types: CertificatePatch, JSON, IO[bytes] Required. + :type certificate_envelope: ~azure.mgmt.appcontainers.models.CertificatePatch or JSON or + IO[bytes] + :return: An instance of LROPoller that returns Certificate. The Certificate is compatible with + MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.Certificate] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.Certificate] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.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, + connected_environment_name=connected_environment_name, + certificate_name=certificate_name, + certificate_envelope=certificate_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.Certificate, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.Certificate].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.Certificate]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _delete_initial( + self, resource_group_name: str, connected_environment_name: str, certificate_name: str, **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_connected_environments_certificates_delete_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + certificate_name=certificate_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: 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]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete( + self, resource_group_name: str, connected_environment_name: str, certificate_name: str, **kwargs: Any + ) -> LROPoller[None]: + """Deletes the specified Certificate. + + Deletes the specified Certificate. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the Connected Environment. Required. + :type connected_environment_name: str + :param certificate_name: Name of the Certificate. Required. + :type certificate_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + certificate_name=certificate_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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, connected_environment_name: str, **kwargs: Any + ) -> ItemPaged["_models.Certificate"]: + """Get the Certificates in a given connected environment. + + Get the Certificates in a given connected environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the Connected Environment. Required. + :type connected_environment_name: str + :return: An iterator like instance of Certificate + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.Certificate] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.Certificate]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_connected_environments_certificates_list_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Certificate], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class NamespacesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`namespaces` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @overload + def check_name_availability( + self, + resource_group_name: str, + environment_name: str, + check_name_availability_request: _models.CheckNameAvailabilityRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.CheckNameAvailabilityResponse: + """Checks the resource name availability. + + Checks if resource name is available. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param check_name_availability_request: The check name availability request. Required. + :type check_name_availability_request: + ~azure.mgmt.appcontainers.models.CheckNameAvailabilityRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: CheckNameAvailabilityResponse. The CheckNameAvailabilityResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.CheckNameAvailabilityResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def check_name_availability( + self, + resource_group_name: str, + environment_name: str, + check_name_availability_request: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.CheckNameAvailabilityResponse: + """Checks the resource name availability. + + Checks if resource name is available. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param check_name_availability_request: The check name availability request. Required. + :type check_name_availability_request: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: CheckNameAvailabilityResponse. The CheckNameAvailabilityResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.CheckNameAvailabilityResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def check_name_availability( + self, + resource_group_name: str, + environment_name: str, + check_name_availability_request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.CheckNameAvailabilityResponse: + """Checks the resource name availability. + + Checks if resource name is available. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param check_name_availability_request: The check name availability request. Required. + :type check_name_availability_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: CheckNameAvailabilityResponse. The CheckNameAvailabilityResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.CheckNameAvailabilityResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def check_name_availability( + self, + resource_group_name: str, + environment_name: str, + check_name_availability_request: Union[_models.CheckNameAvailabilityRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.CheckNameAvailabilityResponse: + """Checks the resource name availability. + + Checks if resource name is available. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param check_name_availability_request: The check name availability request. Is one of the + following types: CheckNameAvailabilityRequest, JSON, IO[bytes] Required. + :type check_name_availability_request: + ~azure.mgmt.appcontainers.models.CheckNameAvailabilityRequest or JSON or IO[bytes] + :return: CheckNameAvailabilityResponse. The CheckNameAvailabilityResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.CheckNameAvailabilityResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.CheckNameAvailabilityResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(check_name_availability_request, (IOBase, bytes)): + _content = check_name_availability_request + else: + _content = json.dumps(check_name_availability_request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_namespaces_check_name_availability_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.CheckNameAvailabilityResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class ManagedEnvironmentPrivateLinkResourcesOperations: # pylint: disable=name-too-long + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`managed_environment_private_link_resources` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def list( + self, resource_group_name: str, environment_name: str, **kwargs: Any + ) -> ItemPaged["_models.PrivateLinkResource"]: + """List private link resources for a given managed environment. + + List private link resources for a given managed environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :return: An iterator like instance of PrivateLinkResource + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.PrivateLinkResource] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.PrivateLinkResource]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_managed_environment_private_link_resources_list_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.PrivateLinkResource], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class ManagedEnvironmentPrivateEndpointConnectionsOperations: # pylint: disable=name-too-long + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`managed_environment_private_endpoint_connections` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, resource_group_name: str, environment_name: str, private_endpoint_connection_name: str, **kwargs: Any + ) -> _models.PrivateEndpointConnection: + """Get a private endpoint connection for a given managed environment. + + Get a private endpoint connection for a given managed environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param private_endpoint_connection_name: Name of the Private Endpoint Connection. Required. + :type private_endpoint_connection_name: str + :return: PrivateEndpointConnection. The PrivateEndpointConnection is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.PrivateEndpointConnection + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.PrivateEndpointConnection] = kwargs.pop("cls", None) + + _request = build_managed_environment_private_endpoint_connections_get_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + private_endpoint_connection_name=private_endpoint_connection_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.PrivateEndpointConnection, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _create_or_update_initial( + self, + resource_group_name: str, + environment_name: str, + private_endpoint_connection_name: str, + private_endpoint_connection_envelope: Union[_models.PrivateEndpointConnection, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(private_endpoint_connection_envelope, (IOBase, bytes)): + _content = private_endpoint_connection_envelope + else: + _content = json.dumps(private_endpoint_connection_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_managed_environment_private_endpoint_connections_create_or_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + private_endpoint_connection_name=private_endpoint_connection_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + private_endpoint_connection_name: str, + private_endpoint_connection_envelope: _models.PrivateEndpointConnection, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.PrivateEndpointConnection]: + """Update the state of a private endpoint connection for a given managed environment. + + Update the state of a private endpoint connection for a given managed environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param private_endpoint_connection_name: Name of the Private Endpoint Connection. Required. + :type private_endpoint_connection_name: str + :param private_endpoint_connection_envelope: The resource of private endpoint and its + properties. Required. + :type private_endpoint_connection_envelope: + ~azure.mgmt.appcontainers.models.PrivateEndpointConnection + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns PrivateEndpointConnection. The + PrivateEndpointConnection is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.PrivateEndpointConnection] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + private_endpoint_connection_name: str, + private_endpoint_connection_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.PrivateEndpointConnection]: + """Update the state of a private endpoint connection for a given managed environment. + + Update the state of a private endpoint connection for a given managed environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param private_endpoint_connection_name: Name of the Private Endpoint Connection. Required. + :type private_endpoint_connection_name: str + :param private_endpoint_connection_envelope: The resource of private endpoint and its + properties. Required. + :type private_endpoint_connection_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns PrivateEndpointConnection. The + PrivateEndpointConnection is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.PrivateEndpointConnection] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + private_endpoint_connection_name: str, + private_endpoint_connection_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.PrivateEndpointConnection]: + """Update the state of a private endpoint connection for a given managed environment. + + Update the state of a private endpoint connection for a given managed environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param private_endpoint_connection_name: Name of the Private Endpoint Connection. Required. + :type private_endpoint_connection_name: str + :param private_endpoint_connection_envelope: The resource of private endpoint and its + properties. Required. + :type private_endpoint_connection_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns PrivateEndpointConnection. The + PrivateEndpointConnection is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.PrivateEndpointConnection] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_create_or_update( + self, + resource_group_name: str, + environment_name: str, + private_endpoint_connection_name: str, + private_endpoint_connection_envelope: Union[_models.PrivateEndpointConnection, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.PrivateEndpointConnection]: + """Update the state of a private endpoint connection for a given managed environment. + + Update the state of a private endpoint connection for a given managed environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param private_endpoint_connection_name: Name of the Private Endpoint Connection. Required. + :type private_endpoint_connection_name: str + :param private_endpoint_connection_envelope: The resource of private endpoint and its + properties. Is one of the following types: PrivateEndpointConnection, JSON, IO[bytes] Required. + :type private_endpoint_connection_envelope: + ~azure.mgmt.appcontainers.models.PrivateEndpointConnection or JSON or IO[bytes] + :return: An instance of LROPoller that returns PrivateEndpointConnection. The + PrivateEndpointConnection is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.PrivateEndpointConnection] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.PrivateEndpointConnection] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + environment_name=environment_name, + private_endpoint_connection_name=private_endpoint_connection_name, + private_endpoint_connection_envelope=private_endpoint_connection_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.PrivateEndpointConnection, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.PrivateEndpointConnection].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.PrivateEndpointConnection]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _delete_initial( + self, resource_group_name: str, environment_name: str, private_endpoint_connection_name: str, **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_managed_environment_private_endpoint_connections_delete_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + private_endpoint_connection_name=private_endpoint_connection_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: 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]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete( + self, resource_group_name: str, environment_name: str, private_endpoint_connection_name: str, **kwargs: Any + ) -> LROPoller[None]: + """Delete a private endpoint connection for a given managed environment. + + Delete a private endpoint connection for a given managed environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param private_endpoint_connection_name: Name of the Private Endpoint Connection. Required. + :type private_endpoint_connection_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + environment_name=environment_name, + private_endpoint_connection_name=private_endpoint_connection_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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, environment_name: str, **kwargs: Any + ) -> ItemPaged["_models.PrivateEndpointConnection"]: + """List private endpoint connections for a given managed environment. + + List private endpoint connections for a given managed environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :return: An iterator like instance of PrivateEndpointConnection + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.PrivateEndpointConnection] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.PrivateEndpointConnection]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_managed_environment_private_endpoint_connections_list_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.PrivateEndpointConnection], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class HttpRouteConfigOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`http_route_config` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, resource_group_name: str, environment_name: str, http_route_name: str, **kwargs: Any + ) -> _models.HttpRouteConfig: + """Get the specified Managed Http Route Config. + + Get the specified Managed Http Route Config. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param http_route_name: Name of the Http Route Config. Required. + :type http_route_name: str + :return: HttpRouteConfig. The HttpRouteConfig is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.HttpRouteConfig + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.HttpRouteConfig] = kwargs.pop("cls", None) + + _request = build_http_route_config_get_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + http_route_name=http_route_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.HttpRouteConfig, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def create_or_update( + self, + resource_group_name: str, + environment_name: str, + http_route_name: str, + http_route_config_envelope: Optional[_models.HttpRouteConfig] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.HttpRouteConfig: + """Create or Update a Http Route Config. + + Create or Update a Http Route Config. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param http_route_name: Name of the Http Route Config. Required. + :type http_route_name: str + :param http_route_config_envelope: Http Route config to be created or updated. Default value is + None. + :type http_route_config_envelope: ~azure.mgmt.appcontainers.models.HttpRouteConfig + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: HttpRouteConfig. The HttpRouteConfig is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.HttpRouteConfig + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + environment_name: str, + http_route_name: str, + http_route_config_envelope: Optional[JSON] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.HttpRouteConfig: + """Create or Update a Http Route Config. + + Create or Update a Http Route Config. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param http_route_name: Name of the Http Route Config. Required. + :type http_route_name: str + :param http_route_config_envelope: Http Route config to be created or updated. Default value is + None. + :type http_route_config_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: HttpRouteConfig. The HttpRouteConfig is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.HttpRouteConfig + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + resource_group_name: str, + environment_name: str, + http_route_name: str, + http_route_config_envelope: Optional[IO[bytes]] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.HttpRouteConfig: + """Create or Update a Http Route Config. + + Create or Update a Http Route Config. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param http_route_name: Name of the Http Route Config. Required. + :type http_route_name: str + :param http_route_config_envelope: Http Route config to be created or updated. Default value is + None. + :type http_route_config_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: HttpRouteConfig. The HttpRouteConfig is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.HttpRouteConfig + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def create_or_update( + self, + resource_group_name: str, + environment_name: str, + http_route_name: str, + http_route_config_envelope: Optional[Union[_models.HttpRouteConfig, JSON, IO[bytes]]] = None, + **kwargs: Any + ) -> _models.HttpRouteConfig: + """Create or Update a Http Route Config. + + Create or Update a Http Route Config. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :param http_route_name: Name of the Http Route Config. Required. + :type http_route_name: str + :param http_route_config_envelope: Http Route config to be created or updated. Is one of the + following types: HttpRouteConfig, JSON, IO[bytes] Default value is None. + :type http_route_config_envelope: ~azure.mgmt.appcontainers.models.HttpRouteConfig or JSON or + IO[bytes] + :return: HttpRouteConfig. The HttpRouteConfig is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.HttpRouteConfig + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if http_route_config_envelope else None + cls: ClsType[_models.HttpRouteConfig] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" if http_route_config_envelope else None + _content = None + if isinstance(http_route_config_envelope, (IOBase, bytes)): + _content = http_route_config_envelope + else: + if http_route_config_envelope is not None: + _content = json.dumps(http_route_config_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + else: + _content = None + + _request = build_http_route_config_create_or_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + http_route_name=http_route_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.HttpRouteConfig, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def update( + self, + resource_group_name: str, + environment_name: str, + http_route_name: str, + http_route_config_envelope: _models.HttpRouteConfig, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.HttpRouteConfig: + """Update tags of a manged http route object. + + Patches an http route config resource. Only patching of tags is supported. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param http_route_name: Name of the Http Route Config Resource. Required. + :type http_route_name: str + :param http_route_config_envelope: Properties of http route config that need to be updated. + Required. + :type http_route_config_envelope: ~azure.mgmt.appcontainers.models.HttpRouteConfig + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: HttpRouteConfig. The HttpRouteConfig is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.HttpRouteConfig + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def update( + self, + resource_group_name: str, + environment_name: str, + http_route_name: str, + http_route_config_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.HttpRouteConfig: + """Update tags of a manged http route object. + + Patches an http route config resource. Only patching of tags is supported. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param http_route_name: Name of the Http Route Config Resource. Required. + :type http_route_name: str + :param http_route_config_envelope: Properties of http route config that need to be updated. + Required. + :type http_route_config_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: HttpRouteConfig. The HttpRouteConfig is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.HttpRouteConfig + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def update( + self, + resource_group_name: str, + environment_name: str, + http_route_name: str, + http_route_config_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.HttpRouteConfig: + """Update tags of a manged http route object. + + Patches an http route config resource. Only patching of tags is supported. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param http_route_name: Name of the Http Route Config Resource. Required. + :type http_route_name: str + :param http_route_config_envelope: Properties of http route config that need to be updated. + Required. + :type http_route_config_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: HttpRouteConfig. The HttpRouteConfig is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.HttpRouteConfig + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def update( + self, + resource_group_name: str, + environment_name: str, + http_route_name: str, + http_route_config_envelope: Union[_models.HttpRouteConfig, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.HttpRouteConfig: + """Update tags of a manged http route object. + + Patches an http route config resource. Only patching of tags is supported. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param http_route_name: Name of the Http Route Config Resource. Required. + :type http_route_name: str + :param http_route_config_envelope: Properties of http route config that need to be updated. Is + one of the following types: HttpRouteConfig, JSON, IO[bytes] Required. + :type http_route_config_envelope: ~azure.mgmt.appcontainers.models.HttpRouteConfig or JSON or + IO[bytes] + :return: HttpRouteConfig. The HttpRouteConfig is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.HttpRouteConfig + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.HttpRouteConfig] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(http_route_config_envelope, (IOBase, bytes)): + _content = http_route_config_envelope + else: + _content = json.dumps(http_route_config_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_http_route_config_update_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + http_route_name=http_route_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.HttpRouteConfig, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _delete_initial( + self, resource_group_name: str, environment_name: str, http_route_name: str, **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_http_route_config_delete_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + http_route_name=http_route_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: 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]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete( + self, resource_group_name: str, environment_name: str, http_route_name: str, **kwargs: Any + ) -> LROPoller[None]: + """Deletes the specified Managed Http Route. + + Deletes the specified Managed Http Route. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param http_route_name: Name of the Http Route Config Resource. Required. + :type http_route_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + environment_name=environment_name, + http_route_name=http_route_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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, environment_name: str, **kwargs: Any + ) -> ItemPaged["_models.HttpRouteConfig"]: + """Get the Managed Http Routes in a given managed environment. + + Get the Managed Http Routes in a given managed environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the managed environment. Required. + :type environment_name: str + :return: An iterator like instance of HttpRouteConfig + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.HttpRouteConfig] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.HttpRouteConfig]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_http_route_config_list_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.HttpRouteConfig], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class JobsExecutionsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`jobs_executions` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def list( + self, resource_group_name: str, job_name: str, *, filter: Optional[str] = None, **kwargs: Any + ) -> ItemPaged["_models.JobExecution"]: + """Get a Container Apps Job's executions. + + Get a Container Apps Job's executions. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :keyword filter: The filter to apply on the operation. Default value is None. + :paramtype filter: str + :return: An iterator like instance of JobExecution + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.JobExecution] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.JobExecution]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_jobs_executions_list_request( + resource_group_name=resource_group_name, + job_name=job_name, + subscription_id=self._config.subscription_id, + filter=filter, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.JobExecution], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class ManagedEnvironmentDiagnosticsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`managed_environment_diagnostics` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def list_detectors( + self, resource_group_name: str, environment_name: str, **kwargs: Any + ) -> _models.DiagnosticsCollection: + """Get the list of diagnostics for a given Managed Environment. + + Get the list of diagnostics for a Managed Environment used to host container apps. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :return: DiagnosticsCollection. The DiagnosticsCollection is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DiagnosticsCollection + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DiagnosticsCollection] = kwargs.pop("cls", None) + + _request = build_managed_environment_diagnostics_list_detectors_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DiagnosticsCollection, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def get_detector( + self, resource_group_name: str, environment_name: str, detector_name: str, **kwargs: Any + ) -> _models.Diagnostics: + """Get the diagnostics data for a given Managed Environment. + + Get the diagnostics data for a Managed Environment used to host container apps. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param detector_name: Name of the detector. Required. + :type detector_name: str + :return: Diagnostics. The Diagnostics is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.Diagnostics + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.Diagnostics] = kwargs.pop("cls", None) + + _request = build_managed_environment_diagnostics_get_detector_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + detector_name=detector_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Diagnostics, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class AvailableWorkloadProfilesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`available_workload_profiles` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get(self, location: str, **kwargs: Any) -> ItemPaged["_models.AvailableWorkloadProfile"]: + """Get available workload profiles by location. + + Get all available workload profiles for a location. + + :param location: The location name. Required. + :type location: str + :return: An iterator like instance of AvailableWorkloadProfile + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.AvailableWorkloadProfile] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.AvailableWorkloadProfile]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_available_workload_profiles_get_request( + location=location, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.AvailableWorkloadProfile], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class BillingMetersOperations: """ + .. warning:: + **DO NOT** instantiate this class directly. - models = _models + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`billing_meters` attribute. + """ def __init__(self, *args, **kwargs) -> None: input_args = list(args) @@ -76,18 +28435,220 @@ def __init__(self, *args, **kwargs) -> None: self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace - def list(self, **kwargs: Any) -> ItemPaged["_models.OperationDetail"]: - """Lists all of the available RP operations. + def get(self, location: str, **kwargs: Any) -> _models.BillingMeterCollection: + """Get billing meters by location. - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.OperationDetail] + Get all billingMeters for a location. + + :param location: The location name. Required. + :type location: str + :return: BillingMeterCollection. The BillingMeterCollection is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.BillingMeterCollection + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.BillingMeterCollection] = kwargs.pop("cls", None) + + _request = build_billing_meters_get_request( + location=location, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.BillingMeterCollection, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class UsagesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`usages` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def list(self, location: str, **kwargs: Any) -> ItemPaged["_models.Usage"]: + """Gets, for the specified location, the current resource usage information as well as the limits + under the subscription. + + :param location: The location name. Required. + :type location: str + :return: An iterator like instance of Usage + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.Usage] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.Usage]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_usages_list_request( + location=location, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Usage], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class ManagedEnvironmentUsagesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`managed_environment_usages` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def list(self, resource_group_name: str, environment_name: str, **kwargs: Any) -> ItemPaged["_models.Usage"]: + """Gets the current usage information as well as the limits for environment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :return: An iterator like instance of Usage + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.Usage] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + _params = kwargs.pop("params", {}) or {} - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) + cls: ClsType[List[_models.Usage]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -100,12 +28661,20 @@ def list(self, **kwargs: Any) -> ItemPaged["_models.OperationDetail"]: def prepare_request(next_link=None): if not next_link: - _request = build_list_request( - api_version=api_version, + _request = build_managed_environment_usages_list_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, headers=_headers, params=_params, ) - _request.url = self._client.format_url(_request.url) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) else: # make call to next link with the client's api-version @@ -120,16 +28689,24 @@ def prepare_request(next_link=None): _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + return _request def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Usage], + deserialized.get("value", []), + ) if cls: list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) + return deserialized.get("nextLink") or None, iter(list_of_elem) def get_next(next_link=None): _request = prepare_request(next_link) @@ -142,12 +28719,157 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( + error = _failsafe_deserialize( _models.DefaultErrorResponse, - pipeline_response, + response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response return ItemPaged(get_next, extract_data) + + +class _ContainerAppsAPIClientOperationsMixin( + ClientMixinABC[PipelineClient[HttpRequest, HttpResponse], ContainerAppsAPIClientConfiguration] +): + + @distributed_trace + def get_custom_domain_verification_id(self, **kwargs: Any) -> str: + """Get the verification id of a subscription used for verifying custom domains. + + :return: str + :rtype: str + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[str] = kwargs.pop("cls", None) + + _request = build_container_apps_api_get_custom_domain_verification_id_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(str, response.text()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def job_execution( + self, resource_group_name: str, job_name: str, job_execution_name: str, **kwargs: Any + ) -> _models.JobExecution: + """Get details of a single job execution. + + Get details of a single job execution. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param job_name: Job Name. Required. + :type job_name: str + :param job_execution_name: Job execution name. Required. + :type job_execution_name: str + :return: JobExecution. The JobExecution is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.JobExecution + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.JobExecution] = kwargs.pop("cls", None) + + _request = build_container_apps_api_job_execution_request( + resource_group_name=resource_group_name, + job_name=job_name, + job_execution_name=job_execution_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.JobExecution, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_patch.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_patch.py index f7dd32510333..87676c65a8f0 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_patch.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_patch.py @@ -1,14 +1,15 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------- """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 + +__all__: list[str] = [] # Add all objects you want publicly available to users at this package level def patch_sdk(): diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_usages_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_usages_operations.py deleted file mode 100644 index c36be2a754f4..000000000000 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_usages_operations.py +++ /dev/null @@ -1,166 +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 collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -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 .._configuration import ContainerAppsAPIClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_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", "2026-01-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.App/locations/{location}/usages" - ) - path_format_arguments = { - "location": _SERIALIZER.url("location", location, "str", pattern=r"^[-\w\._]+$"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_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 UsagesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`usages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list(self, location: str, **kwargs: Any) -> ItemPaged["_models.Usage"]: - """Gets, for the specified location, the current resource usage information as well as the limits - under the subscription. - - :param location: The location for which resource usage is queried. Required. - :type location: str - :return: An iterator like instance of either Usage or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.Usage] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ListUsagesResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ListUsagesResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.DefaultErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/code_report_typespec.json b/sdk/appcontainers/azure-mgmt-appcontainers/code_report_typespec.json new file mode 100644 index 000000000000..500cd8bd0a60 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/code_report_typespec.json @@ -0,0 +1,97163 @@ +{ + "azure.mgmt.appcontainers": { + "class_nodes": { + "ContainerAppsAPIClient": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "credential": { + "default": null, + "param_type": "positional_or_keyword" + }, + "subscription_id": { + "default": null, + "param_type": "positional_or_keyword" + }, + "base_url": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "cloud_setting": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "close": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_custom_domain_verification_id": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "job_execution": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_execution_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "send_request": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "request": { + "default": null, + "param_type": "positional_or_keyword" + }, + "stream": { + "default": "bool", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "client_side_validation": { + "attr_type": false + }, + "operations": { + "attr_type": "Operations" + }, + "container_apps_session_pools": { + "attr_type": "ContainerAppsSessionPoolsOperations" + }, + "container_apps_source_controls": { + "attr_type": "ContainerAppsSourceControlsOperations" + }, + "container_apps": { + "attr_type": "ContainerAppsOperations" + }, + "container_apps_builds": { + "attr_type": "ContainerAppsBuildsOperations" + }, + "container_apps_functions": { + "attr_type": "ContainerAppsFunctionsOperations" + }, + "container_apps_revisions": { + "attr_type": "ContainerAppsRevisionsOperations" + }, + "functions_extension": { + "attr_type": "FunctionsExtensionOperations" + }, + "container_apps_label_history": { + "attr_type": "ContainerAppsLabelHistoryOperations" + }, + "container_apps_patches": { + "attr_type": "ContainerAppsPatchesOperations" + }, + "container_apps_revision_replicas": { + "attr_type": "ContainerAppsRevisionReplicasOperations" + }, + "dot_net_components": { + "attr_type": "DotNetComponentsOperations" + }, + "java_components": { + "attr_type": "JavaComponentsOperations" + }, + "logic_apps": { + "attr_type": "LogicAppsOperations" + }, + "container_apps_auth_configs": { + "attr_type": "ContainerAppsAuthConfigsOperations" + }, + "builders": { + "attr_type": "BuildersOperations" + }, + "builds": { + "attr_type": "BuildsOperations" + }, + "connected_environments": { + "attr_type": "ConnectedEnvironmentsOperations" + }, + "certificates": { + "attr_type": "CertificatesOperations" + }, + "connected_environments_dapr_components": { + "attr_type": "ConnectedEnvironmentsDaprComponentsOperations" + }, + "dapr_components": { + "attr_type": "DaprComponentsOperations" + }, + "connected_environments_storages": { + "attr_type": "ConnectedEnvironmentsStoragesOperations" + }, + "managed_environments": { + "attr_type": "ManagedEnvironmentsOperations" + }, + "managed_certificates": { + "attr_type": "ManagedCertificatesOperations" + }, + "dapr_component_resiliency_policies": { + "attr_type": "DaprComponentResiliencyPoliciesOperations" + }, + "dapr_subscriptions": { + "attr_type": "DaprSubscriptionsOperations" + }, + "maintenance_configurations": { + "attr_type": "MaintenanceConfigurationsOperations" + }, + "managed_environments_storages": { + "attr_type": "ManagedEnvironmentsStoragesOperations" + }, + "jobs": { + "attr_type": "JobsOperations" + }, + "container_apps_diagnostics": { + "attr_type": "ContainerAppsDiagnosticsOperations" + }, + "managed_environments_diagnostics": { + "attr_type": "ManagedEnvironmentsDiagnosticsOperations" + }, + "container_apps_builds_by_container_app": { + "attr_type": "ContainerAppsBuildsByContainerAppOperations" + }, + "container_apps_revision_functions": { + "attr_type": "ContainerAppsRevisionFunctionsOperations" + }, + "app_resiliency": { + "attr_type": "AppResiliencyOperations" + }, + "builds_by_builder_resource": { + "attr_type": "BuildsByBuilderResourceOperations" + }, + "build_auth_token": { + "attr_type": "BuildAuthTokenOperations" + }, + "connected_environments_certificates": { + "attr_type": "ConnectedEnvironmentsCertificatesOperations" + }, + "namespaces": { + "attr_type": "NamespacesOperations" + }, + "managed_environment_private_link_resources": { + "attr_type": "ManagedEnvironmentPrivateLinkResourcesOperations" + }, + "managed_environment_private_endpoint_connections": { + "attr_type": "ManagedEnvironmentPrivateEndpointConnectionsOperations" + }, + "http_route_config": { + "attr_type": "HttpRouteConfigOperations" + }, + "jobs_executions": { + "attr_type": "JobsExecutionsOperations" + }, + "managed_environment_diagnostics": { + "attr_type": "ManagedEnvironmentDiagnosticsOperations" + }, + "available_workload_profiles": { + "attr_type": "AvailableWorkloadProfilesOperations" + }, + "billing_meters": { + "attr_type": "BillingMetersOperations" + }, + "usages": { + "attr_type": "UsagesOperations" + }, + "managed_environment_usages": { + "attr_type": "ManagedEnvironmentUsagesOperations" + }, + "url": { + "attr_type": "format_url" + } + } + } + }, + "function_nodes": {} + }, + "azure.mgmt.appcontainers.operations": { + "class_nodes": { + "AppResiliencyOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resiliency_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resiliency_envelope": { + "type": "AppResiliency", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resiliency_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resiliency_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resiliency_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resiliency_envelope": { + "type": "AppResiliency", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resiliency_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resiliency_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "AvailableWorkloadProfilesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "BillingMetersOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "BuildAuthTokenOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "build_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "BuildersOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_envelope": { + "type": "BuilderResource", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_envelope": { + "type": "BuilderResourceUpdate", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "BuildsByBuilderResourceOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "BuildsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "build_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "build_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "build_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "build_envelope": { + "type": "BuildResource", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "build_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "build_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "build_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "build_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "build_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "build_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "CertificatesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "Optional[Certificate]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "Optional[JSON]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "Optional[IO[bytes]]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "CertificatePatch", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "ConnectedEnvironmentsCertificatesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "Optional[Certificate]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "Optional[JSON]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "Optional[IO[bytes]]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "CertificatePatch", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ConnectedEnvironmentsDaprComponentsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_envelope": { + "type": "DaprComponent", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_secrets": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ConnectedEnvironmentsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "ConnectedEnvironment", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "check_name_availability": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "check_name_availability_request": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "check_name_availability_request": { + "type": "CheckNameAvailabilityRequest", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "check_name_availability_request": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "check_name_availability_request": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "Optional[ConnectedEnvironmentPatchResource]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "Optional[JSON]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "Optional[IO[bytes]]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "ConnectedEnvironmentsStoragesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_envelope": { + "type": "ConnectedEnvironmentStorage", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsAuthConfigsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_envelope": { + "type": "AuthConfig", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_container_app": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsBuildsByContainerAppOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsBuildsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "build_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "build_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsDiagnosticsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_detector": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "detector_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_revision": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_root": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_detectors": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_revisions": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "filter": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsFunctionsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "function_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsLabelHistoryOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "delete_label_history": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "label_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_label_history": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "label_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_label_history": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "filter": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_envelope": { + "type": "ContainerApp", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_start": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_stop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_envelope": { + "type": "ContainerApp", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_auth_token": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_custom_host_name_analysis": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "custom_hostname": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_secrets": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsPatchesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_apply": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "patch_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "patch_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_skip_configure": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "patch_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "patch_skip_config": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "patch_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "patch_skip_config": { + "type": "PatchSkipConfig", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "patch_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "patch_skip_config": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "patch_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "patch_skip_config": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "patch_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_container_app": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "filter": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsRevisionFunctionsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "function_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsRevisionReplicasOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_replica": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "replica_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_replicas": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsRevisionsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "activate_revision": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deactivate_revision": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_revision": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_revisions": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "filter": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "restart_revision": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsSessionPoolsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_envelope": { + "type": "SessionPool", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_envelope": { + "type": "SessionPoolUpdatableProperties", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "fetch_mcp_server_credentials": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "rotate_mcp_server_credentials": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsSourceControlsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "x_ms_github_auxiliary": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_envelope": { + "type": "SourceControl", + "default": null, + "param_type": "positional_or_keyword" + }, + "x_ms_github_auxiliary": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "x_ms_github_auxiliary": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "x_ms_github_auxiliary": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "x_ms_github_auxiliary": { + "default": "none", + "param_type": "keyword_only" + }, + "ignore_workflow_deletion_failure": { + "default": "none", + "param_type": "keyword_only" + }, + "delete_workflow": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_container_app": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "DaprComponentResiliencyPoliciesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_resiliency_policy_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_resiliency_policy_envelope": { + "type": "DaprComponentResiliencyPolicy", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_resiliency_policy_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_resiliency_policy_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "DaprComponentsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_envelope": { + "type": "DaprComponent", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_secrets": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "DaprSubscriptionsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_subscription_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_subscription_envelope": { + "type": "DaprSubscription", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_subscription_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_subscription_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "DotNetComponentsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "dot_net_component_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dot_net_component_envelope": { + "type": "DotNetComponent", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dot_net_component_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dot_net_component_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "dot_net_component_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dot_net_component_envelope": { + "type": "DotNetComponent", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dot_net_component_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dot_net_component_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "FunctionsExtensionOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "invoke_functions_host": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "function_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "HttpRouteConfigOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_config_envelope": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_config_envelope": { + "type": "Optional[HttpRouteConfig]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_config_envelope": { + "type": "Optional[JSON]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_config_envelope": { + "type": "Optional[IO[bytes]]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_config_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_config_envelope": { + "type": "HttpRouteConfig", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_config_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_config_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "JavaComponentsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "java_component_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "java_component_envelope": { + "type": "JavaComponent", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "java_component_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "java_component_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "java_component_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "java_component_envelope": { + "type": "JavaComponent", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "java_component_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "java_component_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "JobsExecutionsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "filter": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "JobsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_envelope": { + "type": "Job", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_resume": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_start": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "template": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "template": { + "type": "Optional[JobExecutionTemplate]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "template": { + "type": "Optional[JSON]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "template": { + "type": "Optional[IO[bytes]]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_stop_execution": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_execution_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_stop_multiple_executions": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_suspend": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_envelope": { + "type": "JobPatchProperties", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_detector": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "detector_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_detectors": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_secrets": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "proxy_get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "api_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "LogicAppsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "type": "LogicApp", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deploy_workflow_artifacts": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "workflow_artifacts": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "workflow_artifacts": { + "type": "Optional[WorkflowArtifacts]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "workflow_artifacts": { + "type": "Optional[JSON]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "workflow_artifacts": { + "type": "Optional[IO[bytes]]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_workflow": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "workflow_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "invoke": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "x_ms_logic_apps_proxy_path": { + "default": null, + "param_type": "keyword_only" + }, + "x_ms_logic_apps_proxy_method": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_workflows": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_workflows_connections": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "MaintenanceConfigurationsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "config_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "maintenance_configuration_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "config_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "maintenance_configuration_envelope": { + "type": "MaintenanceConfigurationResource", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "config_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "maintenance_configuration_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "config_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "maintenance_configuration_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "config_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "config_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ManagedCertificatesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_envelope": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_envelope": { + "type": "Optional[ManagedCertificate]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_envelope": { + "type": "Optional[JSON]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_envelope": { + "type": "Optional[IO[bytes]]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_envelope": { + "type": "ManagedCertificatePatch", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "ManagedEnvironmentDiagnosticsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_detector": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "detector_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_detectors": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ManagedEnvironmentPrivateEndpointConnectionsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_envelope": { + "type": "PrivateEndpointConnection", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ManagedEnvironmentPrivateLinkResourcesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ManagedEnvironmentUsagesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ManagedEnvironmentsDiagnosticsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_root": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ManagedEnvironmentsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "ManagedEnvironment", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "ManagedEnvironment", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_auth_token": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_workload_profile_states": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ManagedEnvironmentsStoragesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_envelope": { + "type": "ManagedEnvironmentStorage", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "NamespacesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "check_name_availability": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "check_name_availability_request": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "check_name_availability_request": { + "type": "CheckNameAvailabilityRequest", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "check_name_availability_request": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "check_name_availability_request": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "Operations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "UsagesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + } + }, + "function_nodes": {} + }, + "azure.mgmt.appcontainers.models": { + "class_nodes": { + "AccessMode": { + "type": "Enum", + "methods": {}, + "properties": { + "READ_ONLY": "READ_ONLY", + "READ_WRITE": "READ_WRITE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "Action": { + "type": "Enum", + "methods": {}, + "properties": { + "ALLOW": "ALLOW", + "DENY": "DENY", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ActiveRevisionsMode": { + "type": "Enum", + "methods": {}, + "properties": { + "LABELS": "LABELS", + "MULTIPLE": "MULTIPLE", + "SINGLE": "SINGLE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "Affinity": { + "type": "Enum", + "methods": {}, + "properties": { + "NONE": "NONE", + "STICKY": "STICKY", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "AllowedAudiencesValidation": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "allowed_audiences": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "allowed_audiences": "Optional" + } + }, + "AllowedPrincipals": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "groups": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "identities": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "groups": "Optional", + "identities": "Optional" + } + }, + "AppInsightsConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "connection_string": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "connection_string": "Optional" + } + }, + "AppLogsConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "destination": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "log_analytics_configuration": { + "type": "Optional[_models.LogAnalyticsConfiguration]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "destination": "Optional", + "log_analytics_configuration": "Optional" + } + }, + "AppProtocol": { + "type": "Enum", + "methods": {}, + "properties": { + "GRPC": "GRPC", + "HTTP": "HTTP", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "AppRegistration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "app_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "app_secret_setting_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "app_id": "Optional", + "app_secret_setting_name": "Optional" + } + }, + "AppResiliency": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.AppResiliencyProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "AppResiliencyProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "timeout_policy": { + "type": "Optional[_models.TimeoutPolicy]", + "default": null, + "param_type": "keyword_only" + }, + "http_retry_policy": { + "type": "Optional[_models.HttpRetryPolicy]", + "default": null, + "param_type": "keyword_only" + }, + "tcp_retry_policy": { + "type": "Optional[_models.TcpRetryPolicy]", + "default": null, + "param_type": "keyword_only" + }, + "circuit_breaker_policy": { + "type": "Optional[_models.CircuitBreakerPolicy]", + "default": null, + "param_type": "keyword_only" + }, + "http_connection_pool": { + "type": "Optional[_models.HttpConnectionPool]", + "default": null, + "param_type": "keyword_only" + }, + "tcp_connection_pool": { + "type": "Optional[_models.TcpConnectionPool]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "timeout_policy": "Optional", + "http_retry_policy": "Optional", + "tcp_retry_policy": "Optional", + "circuit_breaker_policy": "Optional", + "http_connection_pool": "Optional", + "tcp_connection_pool": "Optional" + } + }, + "Apple": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "enabled": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "registration": { + "type": "Optional[_models.AppleRegistration]", + "default": null, + "param_type": "keyword_only" + }, + "login": { + "type": "Optional[_models.LoginScopes]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enabled": "Optional", + "registration": "Optional", + "login": "Optional" + } + }, + "AppleRegistration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "client_secret_setting_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "client_id": "Optional", + "client_secret_setting_name": "Optional" + } + }, + "Applicability": { + "type": "Enum", + "methods": {}, + "properties": { + "CUSTOM": "CUSTOM", + "LOCATION_DEFAULT": "LOCATION_DEFAULT", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "AuthConfig": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.AuthConfigProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "AuthConfigProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "platform": { + "type": "Optional[_models.AuthPlatform]", + "default": null, + "param_type": "keyword_only" + }, + "global_validation": { + "type": "Optional[_models.GlobalValidation]", + "default": null, + "param_type": "keyword_only" + }, + "identity_providers": { + "type": "Optional[_models.IdentityProviders]", + "default": null, + "param_type": "keyword_only" + }, + "login": { + "type": "Optional[_models.Login]", + "default": null, + "param_type": "keyword_only" + }, + "http_settings": { + "type": "Optional[_models.HttpSettings]", + "default": null, + "param_type": "keyword_only" + }, + "encryption_settings": { + "type": "Optional[_models.EncryptionSettings]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "platform": "Optional", + "global_validation": "Optional", + "identity_providers": "Optional", + "login": "Optional", + "http_settings": "Optional", + "encryption_settings": "Optional" + } + }, + "AuthPlatform": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "enabled": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "runtime_version": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enabled": "Optional", + "runtime_version": "Optional" + } + }, + "AvailableWorkloadProfile": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "properties": { + "type": "Optional[_models.AvailableWorkloadProfileProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "location": "Optional", + "properties": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "AvailableWorkloadProfileProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "category": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "applicability": { + "type": "Optional[Union[str, _models.Applicability]]", + "default": null, + "param_type": "keyword_only" + }, + "cores": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "memory_gi_b": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "gpus": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "display_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "category": "Optional", + "applicability": "Optional", + "cores": "Optional", + "memory_gi_b": "Optional", + "gpus": "Optional", + "display_name": "Optional" + } + }, + "AzureActiveDirectory": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "enabled": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "registration": { + "type": "Optional[_models.AzureActiveDirectoryRegistration]", + "default": null, + "param_type": "keyword_only" + }, + "login": { + "type": "Optional[_models.AzureActiveDirectoryLogin]", + "default": null, + "param_type": "keyword_only" + }, + "validation": { + "type": "Optional[_models.AzureActiveDirectoryValidation]", + "default": null, + "param_type": "keyword_only" + }, + "is_auto_provisioned": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enabled": "Optional", + "registration": "Optional", + "login": "Optional", + "validation": "Optional", + "is_auto_provisioned": "Optional" + } + }, + "AzureActiveDirectoryLogin": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "login_parameters": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "disable_www_authenticate": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "login_parameters": "Optional", + "disable_www_authenticate": "Optional" + } + }, + "AzureActiveDirectoryRegistration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "open_id_issuer": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "client_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "client_secret_setting_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "client_secret_certificate_thumbprint": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "client_secret_certificate_subject_alternative_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "client_secret_certificate_issuer": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "open_id_issuer": "Optional", + "client_id": "Optional", + "client_secret_setting_name": "Optional", + "client_secret_certificate_thumbprint": "Optional", + "client_secret_certificate_subject_alternative_name": "Optional", + "client_secret_certificate_issuer": "Optional" + } + }, + "AzureActiveDirectoryValidation": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "jwt_claim_checks": { + "type": "Optional[_models.JwtClaimChecks]", + "default": null, + "param_type": "keyword_only" + }, + "allowed_audiences": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "default_authorization_policy": { + "type": "Optional[_models.DefaultAuthorizationPolicy]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "jwt_claim_checks": "Optional", + "allowed_audiences": "Optional", + "default_authorization_policy": "Optional" + } + }, + "AzureCredentials": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "client_secret": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "tenant_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "kind": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "subscription_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "client_id": "Optional", + "client_secret": "Optional", + "tenant_id": "Optional", + "kind": "Optional", + "subscription_id": "Optional" + } + }, + "AzureFileProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "account_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "account_key": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "account_key_vault_properties": { + "type": "Optional[_models.SecretKeyVaultProperties]", + "default": null, + "param_type": "keyword_only" + }, + "access_mode": { + "type": "Optional[Union[str, _models.AccessMode]]", + "default": null, + "param_type": "keyword_only" + }, + "share_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "account_name": "Optional", + "account_key": "Optional", + "account_key_vault_properties": "Optional", + "access_mode": "Optional", + "share_name": "Optional" + } + }, + "AzureStaticWebApps": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "enabled": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "registration": { + "type": "Optional[_models.AzureStaticWebAppsRegistration]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enabled": "Optional", + "registration": "Optional" + } + }, + "AzureStaticWebAppsRegistration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "client_id": "Optional" + } + }, + "BaseContainer": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "image": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "image_type": { + "type": "Optional[Union[str, _models.ImageType]]", + "default": null, + "param_type": "keyword_only" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "command": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "args": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "env": { + "type": "Optional[list[_models.EnvironmentVar]]", + "default": null, + "param_type": "keyword_only" + }, + "resources": { + "type": "Optional[_models.ContainerResources]", + "default": null, + "param_type": "keyword_only" + }, + "volume_mounts": { + "type": "Optional[list[_models.VolumeMount]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "image": "Optional", + "image_type": "Optional", + "name": "Optional", + "command": "Optional", + "args": "Optional", + "env": "Optional", + "resources": "Optional", + "volume_mounts": "Optional" + } + }, + "BillingMeter": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "properties": { + "type": "Optional[_models.BillingMeterProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "location": "Optional", + "properties": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "BillingMeterCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "type": "list[_models.BillingMeter]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": "list" + } + }, + "BillingMeterProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "category": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "meter_type": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "display_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "category": "Optional", + "meter_type": "Optional", + "display_name": "Optional" + } + }, + "BindingType": { + "type": "Enum", + "methods": {}, + "properties": { + "AUTO": "AUTO", + "DISABLED": "DISABLED", + "SNI_ENABLED": "SNI_ENABLED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "BlobStorageTokenStore": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "sas_url_setting_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "blob_container_uri": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "client_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "managed_identity_resource_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "sas_url_setting_name": "Optional", + "blob_container_uri": "Optional", + "client_id": "Optional", + "managed_identity_resource_id": "Optional" + } + }, + "BuildConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "base_os": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "platform": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "platform_version": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "environment_variables": { + "type": "Optional[list[_models.EnvironmentVariable]]", + "default": null, + "param_type": "keyword_only" + }, + "pre_build_steps": { + "type": "Optional[list[_models.PreBuildStep]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "base_os": "Optional", + "platform": "Optional", + "platform_version": "Optional", + "environment_variables": "Optional", + "pre_build_steps": "Optional" + } + }, + "BuildProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "destination_container_registry": { + "type": "Optional[_models.ContainerRegistryWithCustomImage]", + "default": null, + "param_type": "keyword_only" + }, + "configuration": { + "type": "Optional[_models.BuildConfiguration]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "provisioning_state": "Optional", + "build_status": "Optional", + "destination_container_registry": "Optional", + "configuration": "Optional", + "upload_endpoint": "Optional", + "log_stream_endpoint": "Optional", + "token_endpoint": "Optional" + } + }, + "BuildProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "CREATING": "CREATING", + "DELETING": "DELETING", + "FAILED": "FAILED", + "SUCCEEDED": "SUCCEEDED", + "UPDATING": "UPDATING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "BuildResource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.BuildProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "BuildStatus": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "FAILED": "FAILED", + "IN_PROGRESS": "IN_PROGRESS", + "NOT_STARTED": "NOT_STARTED", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "BuildToken": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "token": "Optional", + "expires": "Optional" + } + }, + "BuilderProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_id": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "container_registries": { + "type": "Optional[list[_models.ContainerRegistry]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "provisioning_state": "Optional", + "environment_id": null, + "container_registries": "Optional" + } + }, + "BuilderProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "CREATING": "CREATING", + "DELETING": "DELETING", + "FAILED": "FAILED", + "SUCCEEDED": "SUCCEEDED", + "UPDATING": "UPDATING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "BuilderResource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "properties": { + "type": "Optional[_models.BuilderProperties]", + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "type": "Optional[_models.ManagedServiceIdentity]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "identity": "Optional", + "tags": "Optional", + "location": null, + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "BuilderResourceUpdate": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "identity": { + "type": "Optional[_models.ManagedServiceIdentity]", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "properties": { + "type": "Optional[_models.BuilderResourceUpdateProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "identity": "Optional", + "tags": "Optional", + "properties": "Optional" + } + }, + "BuilderResourceUpdateProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "environment_id": "Optional" + } + }, + "Certificate": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "properties": { + "type": "Optional[_models.CertificateProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "tags": "Optional", + "location": null, + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "CertificateKeyVaultProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "identity": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "key_vault_url": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "identity": "Optional", + "key_vault_url": "Optional" + } + }, + "CertificatePatch": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "tags": "Optional" + } + }, + "CertificateProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_key_vault_properties": { + "type": "Optional[_models.CertificateKeyVaultProperties]", + "default": null, + "param_type": "keyword_only" + }, + "password": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "value": { + "type": "Optional[bytes]", + "default": null, + "param_type": "keyword_only" + }, + "certificate_type": { + "type": "Optional[Union[str, _models.CertificateType]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "provisioning_state": "Optional", + "deployment_errors": "Optional", + "certificate_key_vault_properties": "Optional", + "password": "Optional", + "subject_name": "Optional", + "subject_alternative_names": "Optional", + "value": "Optional", + "issuer": "Optional", + "issue_date": "Optional", + "expiration_date": "Optional", + "thumbprint": "Optional", + "valid": "Optional", + "public_key_hash": "Optional", + "certificate_type": "Optional" + } + }, + "CertificateProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "DELETE_FAILED": "DELETE_FAILED", + "DELETING": "DELETING", + "FAILED": "FAILED", + "PENDING": "PENDING", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "CertificateType": { + "type": "Enum", + "methods": {}, + "properties": { + "IMAGE_PULL_TRUSTED_CA": "IMAGE_PULL_TRUSTED_CA", + "SERVER_SSL_CERTIFICATE": "SERVER_SSL_CERTIFICATE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "CheckNameAvailabilityReason": { + "type": "Enum", + "methods": {}, + "properties": { + "ALREADY_EXISTS": "ALREADY_EXISTS", + "INVALID": "INVALID", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "CheckNameAvailabilityRequest": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "type": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "type": "Optional" + } + }, + "CheckNameAvailabilityResponse": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name_available": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "reason": { + "type": "Optional[Union[str, _models.CheckNameAvailabilityReason]]", + "default": null, + "param_type": "keyword_only" + }, + "message": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name_available": "Optional", + "reason": "Optional", + "message": "Optional" + } + }, + "CircuitBreakerPolicy": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "consecutive_errors": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "interval_in_seconds": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "max_ejection_percent": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "consecutive_errors": "Optional", + "interval_in_seconds": "Optional", + "max_ejection_percent": "Optional" + } + }, + "ClientRegistration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "client_secret_setting_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "client_id": "Optional", + "client_secret_setting_name": "Optional" + } + }, + "Configuration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "secrets": { + "type": "Optional[list[_models.Secret]]", + "default": null, + "param_type": "keyword_only" + }, + "active_revisions_mode": { + "type": "Optional[Union[str, _models.ActiveRevisionsMode]]", + "default": null, + "param_type": "keyword_only" + }, + "target_label": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "ingress": { + "type": "Optional[_models.Ingress]", + "default": null, + "param_type": "keyword_only" + }, + "registries": { + "type": "Optional[list[_models.RegistryCredentials]]", + "default": null, + "param_type": "keyword_only" + }, + "dapr": { + "type": "Optional[_models.Dapr]", + "default": null, + "param_type": "keyword_only" + }, + "runtime": { + "type": "Optional[_models.Runtime]", + "default": null, + "param_type": "keyword_only" + }, + "max_inactive_revisions": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "revision_transition_threshold": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "service": { + "type": "Optional[_models.Service]", + "default": null, + "param_type": "keyword_only" + }, + "identity_settings": { + "type": "Optional[list[_models.IdentitySettings]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "secrets": "Optional", + "active_revisions_mode": "Optional", + "target_label": "Optional", + "ingress": "Optional", + "registries": "Optional", + "dapr": "Optional", + "runtime": "Optional", + "max_inactive_revisions": "Optional", + "revision_transition_threshold": "Optional", + "service": "Optional", + "identity_settings": "Optional" + } + }, + "ConnectedEnvironment": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "properties": { + "type": "Optional[_models.ConnectedEnvironmentProperties]", + "default": null, + "param_type": "keyword_only" + }, + "extended_location": { + "type": "Optional[_models.ExtendedLocation]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "extended_location": "Optional", + "tags": "Optional", + "location": null, + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "ConnectedEnvironmentPatchResource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "tags": "Optional" + } + }, + "ConnectedEnvironmentProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "static_ip": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "dapr_ai_connection_string": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "custom_domain_configuration": { + "type": "Optional[_models.CustomDomainConfiguration]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "provisioning_state": "Optional", + "deployment_errors": "Optional", + "default_domain": "Optional", + "static_ip": "Optional", + "dapr_ai_connection_string": "Optional", + "custom_domain_configuration": "Optional" + } + }, + "ConnectedEnvironmentProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "FAILED": "FAILED", + "INFRASTRUCTURE_SETUP_COMPLETE": "INFRASTRUCTURE_SETUP_COMPLETE", + "INFRASTRUCTURE_SETUP_IN_PROGRESS": "INFRASTRUCTURE_SETUP_IN_PROGRESS", + "INITIALIZATION_IN_PROGRESS": "INITIALIZATION_IN_PROGRESS", + "SCHEDULED_FOR_DELETE": "SCHEDULED_FOR_DELETE", + "SUCCEEDED": "SUCCEEDED", + "WAITING": "WAITING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ConnectedEnvironmentStorage": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.ConnectedEnvironmentStorageProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "ConnectedEnvironmentStorageProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "azure_file": { + "type": "Optional[_models.AzureFileProperties]", + "default": null, + "param_type": "keyword_only" + }, + "smb": { + "type": "Optional[_models.SmbStorage]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "provisioning_state": "Optional", + "deployment_errors": "Optional", + "azure_file": "Optional", + "smb": "Optional" + } + }, + "ConnectedEnvironmentStorageProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "DELETING": "DELETING", + "FAILED": "FAILED", + "IN_PROGRESS": "IN_PROGRESS", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ConnectedEnvironmentStoragesCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "type": "list[_models.ConnectedEnvironmentStorage]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": "list" + } + }, + "Container": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "image": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "image_type": { + "type": "Optional[Union[str, _models.ImageType]]", + "default": null, + "param_type": "keyword_only" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "command": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "args": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "env": { + "type": "Optional[list[_models.EnvironmentVar]]", + "default": null, + "param_type": "keyword_only" + }, + "resources": { + "type": "Optional[_models.ContainerResources]", + "default": null, + "param_type": "keyword_only" + }, + "volume_mounts": { + "type": "Optional[list[_models.VolumeMount]]", + "default": null, + "param_type": "keyword_only" + }, + "probes": { + "type": "Optional[list[_models.ContainerAppProbe]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "image": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "image_type": { + "type": "Optional[Union[str, _models.ImageType]]", + "default": null, + "param_type": "keyword_only" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "command": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "args": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "env": { + "type": "Optional[list[_models.EnvironmentVar]]", + "default": null, + "param_type": "keyword_only" + }, + "resources": { + "type": "Optional[_models.ContainerResources]", + "default": null, + "param_type": "keyword_only" + }, + "volume_mounts": { + "type": "Optional[list[_models.VolumeMount]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "probes": "Optional", + "image": "Optional", + "image_type": "Optional", + "name": "Optional", + "command": "Optional", + "args": "Optional", + "env": "Optional", + "resources": "Optional", + "volume_mounts": "Optional" + } + }, + "ContainerApp": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "properties": { + "type": "Optional[_models.ContainerAppProperties]", + "default": null, + "param_type": "keyword_only" + }, + "extended_location": { + "type": "Optional[_models.ExtendedLocation]", + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "type": "Optional[_models.ManagedServiceIdentity]", + "default": null, + "param_type": "keyword_only" + }, + "managed_by": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "kind": { + "type": "Optional[Union[str, _models.Kind]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "extended_location": "Optional", + "identity": "Optional", + "managed_by": "Optional", + "kind": "Optional", + "tags": "Optional", + "location": null, + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "ContainerAppAuthToken": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "properties": { + "type": "Optional[_models.ContainerAppAuthTokenProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "tags": "Optional", + "location": null, + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "ContainerAppAuthTokenProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "token": "Optional", + "expires": "Optional" + } + }, + "ContainerAppContainerRunningState": { + "type": "Enum", + "methods": {}, + "properties": { + "RUNNING": "RUNNING", + "TERMINATED": "TERMINATED", + "WAITING": "WAITING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerAppJobExecutions": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "type": "list[_models.JobExecution]", + "default": null, + "param_type": "keyword_only" + }, + "next_link": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": "list", + "next_link": "Optional" + } + }, + "ContainerAppProbe": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "failure_threshold": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "http_get": { + "type": "Optional[_models.ContainerAppProbeHttpGet]", + "default": null, + "param_type": "keyword_only" + }, + "initial_delay_seconds": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "period_seconds": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "success_threshold": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "tcp_socket": { + "type": "Optional[_models.ContainerAppProbeTcpSocket]", + "default": null, + "param_type": "keyword_only" + }, + "termination_grace_period_seconds": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "timeout_seconds": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "type": { + "type": "Optional[Union[str, _models.Type]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "failure_threshold": "Optional", + "http_get": "Optional", + "initial_delay_seconds": "Optional", + "period_seconds": "Optional", + "success_threshold": "Optional", + "tcp_socket": "Optional", + "termination_grace_period_seconds": "Optional", + "timeout_seconds": "Optional", + "type": "Optional" + } + }, + "ContainerAppProbeHttpGet": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "port": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "host": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "http_headers": { + "type": "Optional[list[_models.ContainerAppProbeHttpGetHttpHeadersItem]]", + "default": null, + "param_type": "keyword_only" + }, + "path": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "scheme": { + "type": "Optional[Union[str, _models.Scheme]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "host": "Optional", + "http_headers": "Optional", + "path": "Optional", + "port": null, + "scheme": "Optional" + } + }, + "ContainerAppProbeHttpGetHttpHeadersItem": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "value": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": null, + "value": null + } + }, + "ContainerAppProbeTcpSocket": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "port": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "host": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "host": "Optional", + "port": null + } + }, + "ContainerAppProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_environment_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "environment_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "workload_profile_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "patching_configuration": { + "type": "Optional[_models.ContainerAppPropertiesPatchingConfiguration]", + "default": null, + "param_type": "keyword_only" + }, + "configuration": { + "type": "Optional[_models.Configuration]", + "default": null, + "param_type": "keyword_only" + }, + "template": { + "type": "Optional[_models.Template]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "provisioning_state": "Optional", + "running_status": "Optional", + "deployment_errors": "Optional", + "managed_environment_id": "Optional", + "environment_id": "Optional", + "workload_profile_name": "Optional", + "patching_configuration": "Optional", + "latest_revision_name": "Optional", + "latest_ready_revision_name": "Optional", + "latest_revision_fqdn": "Optional", + "custom_domain_verification_id": "Optional", + "configuration": "Optional", + "template": "Optional", + "outbound_ip_addresses": "Optional", + "event_stream_endpoint": "Optional" + } + }, + "ContainerAppPropertiesPatchingConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "patching_mode": { + "type": "Optional[Union[str, _models.PatchingMode]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "patching_mode": "Optional" + } + }, + "ContainerAppProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "DELETING": "DELETING", + "FAILED": "FAILED", + "IN_PROGRESS": "IN_PROGRESS", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerAppReplicaRunningState": { + "type": "Enum", + "methods": {}, + "properties": { + "NOT_RUNNING": "NOT_RUNNING", + "RUNNING": "RUNNING", + "UNKNOWN": "UNKNOWN", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerAppRunningStatus": { + "type": "Enum", + "methods": {}, + "properties": { + "PROGRESSING": "PROGRESSING", + "READY": "READY", + "RUNNING": "RUNNING", + "STOPPED": "STOPPED", + "SUSPENDED": "SUSPENDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerAppSecret": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "value": "Optional", + "identity": "Optional", + "key_vault_url": "Optional" + } + }, + "ContainerAppsBuildConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "base_os": "Optional", + "platform": "Optional", + "platform_version": "Optional", + "environment_variables": "Optional", + "pre_build_steps": "Optional" + } + }, + "ContainerAppsBuildProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "provisioning_state": "Optional", + "build_status": "Optional", + "destination_container_registry": "Optional", + "configuration": "Optional", + "log_stream_endpoint": "Optional" + } + }, + "ContainerAppsBuildResource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.ContainerAppsBuildProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "ContainerAppsFunction": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.ContainerAppsFunctionProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "ContainerAppsFunctionProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "invoke_url_template": "Optional", + "trigger_type": "Optional", + "language": "Optional", + "is_disabled": "Optional" + } + }, + "ContainerAppsPatchResource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.PatchProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "ContainerExecutionStatus": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "code": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "additional_information": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "status": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "code": "Optional", + "additional_information": "Optional", + "status": "Optional" + } + }, + "ContainerRegistry": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "container_registry_server": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "identity_resource_id": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "container_registry_server": null, + "identity_resource_id": null + } + }, + "ContainerRegistryWithCustomImage": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "server": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "image": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "server": null, + "image": "Optional" + } + }, + "ContainerResources": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "cpu": { + "type": "Optional[float]", + "default": null, + "param_type": "keyword_only" + }, + "memory": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "gpu": { + "type": "Optional[float]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "cpu": "Optional", + "memory": "Optional", + "ephemeral_storage": "Optional", + "gpu": "Optional" + } + }, + "ContainerType": { + "type": "Enum", + "methods": {}, + "properties": { + "CUSTOM_CONTAINER": "CUSTOM_CONTAINER", + "NODE_LTS": "NODE_LTS", + "PYTHON_LTS": "PYTHON_LTS", + "SHELL": "SHELL", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "CookieExpiration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "convention": { + "type": "Optional[Union[str, _models.CookieExpirationConvention]]", + "default": null, + "param_type": "keyword_only" + }, + "time_to_expiration": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "convention": "Optional", + "time_to_expiration": "Optional" + } + }, + "CookieExpirationConvention": { + "type": "Enum", + "methods": {}, + "properties": { + "FIXED_TIME": "FIXED_TIME", + "IDENTITY_PROVIDER_DERIVED": "IDENTITY_PROVIDER_DERIVED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "CorsPolicy": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "allowed_origins": { + "type": "list[str]", + "default": null, + "param_type": "keyword_only" + }, + "allowed_methods": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "allowed_headers": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "expose_headers": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "max_age": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "allow_credentials": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "allowed_origins": "list", + "allowed_methods": "Optional", + "allowed_headers": "Optional", + "expose_headers": "Optional", + "max_age": "Optional", + "allow_credentials": "Optional" + } + }, + "CreatedByType": { + "type": "Enum", + "methods": {}, + "properties": { + "APPLICATION": "APPLICATION", + "KEY": "KEY", + "MANAGED_IDENTITY": "MANAGED_IDENTITY", + "USER": "USER", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "CustomContainerTemplate": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "registry_credentials": { + "type": "Optional[_models.SessionRegistryCredentials]", + "default": null, + "param_type": "keyword_only" + }, + "containers": { + "type": "Optional[list[_models.SessionContainer]]", + "default": null, + "param_type": "keyword_only" + }, + "ingress": { + "type": "Optional[_models.SessionIngress]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "registry_credentials": "Optional", + "containers": "Optional", + "ingress": "Optional" + } + }, + "CustomDomain": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "binding_type": { + "type": "Optional[Union[str, _models.BindingType]]", + "default": null, + "param_type": "keyword_only" + }, + "certificate_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": null, + "binding_type": "Optional", + "certificate_id": "Optional" + } + }, + "CustomDomainConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "dns_suffix": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "certificate_key_vault_properties": { + "type": "Optional[_models.CertificateKeyVaultProperties]", + "default": null, + "param_type": "keyword_only" + }, + "certificate_value": { + "type": "Optional[bytes]", + "default": null, + "param_type": "keyword_only" + }, + "certificate_password": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "custom_domain_verification_id": "Optional", + "dns_suffix": "Optional", + "certificate_key_vault_properties": "Optional", + "certificate_value": "Optional", + "certificate_password": "Optional", + "expiration_date": "Optional", + "thumbprint": "Optional", + "subject_name": "Optional" + } + }, + "CustomHostnameAnalysisResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "c_name_records": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "txt_records": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "a_records": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "alternate_c_name_records": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "alternate_txt_records": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "host_name": "Optional", + "is_hostname_already_verified": "Optional", + "custom_domain_verification_test": "Optional", + "custom_domain_verification_failure_info": "Optional", + "has_conflict_on_managed_environment": "Optional", + "conflict_with_environment_custom_domain": "Optional", + "conflicting_container_app_resource_id": "Optional", + "c_name_records": "Optional", + "txt_records": "Optional", + "a_records": "Optional", + "alternate_c_name_records": "Optional", + "alternate_txt_records": "Optional" + } + }, + "CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "details": { + "type": "Optional[list[_models.CustomHostnameAnalysisResultCustomDomainVerificationFailureInfoDetailsItem]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "code": "Optional", + "message": "Optional", + "target": "Optional", + "details": "Optional" + } + }, + "CustomHostnameAnalysisResultCustomDomainVerificationFailureInfoDetailsItem": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "code": "Optional", + "message": "Optional", + "target": "Optional" + } + }, + "CustomOpenIdConnectProvider": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "enabled": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "registration": { + "type": "Optional[_models.OpenIdConnectRegistration]", + "default": null, + "param_type": "keyword_only" + }, + "login": { + "type": "Optional[_models.OpenIdConnectLogin]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enabled": "Optional", + "registration": "Optional", + "login": "Optional" + } + }, + "CustomScaleRule": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "type": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "metadata": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "auth": { + "type": "Optional[list[_models.ScaleRuleAuth]]", + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "type": "Optional", + "metadata": "Optional", + "auth": "Optional", + "identity": "Optional" + } + }, + "Dapr": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "enabled": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "app_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "app_protocol": { + "type": "Optional[Union[str, _models.AppProtocol]]", + "default": null, + "param_type": "keyword_only" + }, + "app_port": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "http_read_buffer_size": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "http_max_request_size": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "log_level": { + "type": "Optional[Union[str, _models.LogLevel]]", + "default": null, + "param_type": "keyword_only" + }, + "enable_api_logging": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "app_health": { + "type": "Optional[_models.DaprAppHealth]", + "default": null, + "param_type": "keyword_only" + }, + "max_concurrency": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enabled": "Optional", + "app_id": "Optional", + "app_protocol": "Optional", + "app_port": "Optional", + "http_read_buffer_size": "Optional", + "http_max_request_size": "Optional", + "log_level": "Optional", + "enable_api_logging": "Optional", + "app_health": "Optional", + "max_concurrency": "Optional" + } + }, + "DaprAppHealth": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "enabled": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "path": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "probe_interval_seconds": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "probe_timeout_milliseconds": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "threshold": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enabled": "Optional", + "path": "Optional", + "probe_interval_seconds": "Optional", + "probe_timeout_milliseconds": "Optional", + "threshold": "Optional" + } + }, + "DaprComponent": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.DaprComponentProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "DaprComponentProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "component_type": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "version": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "ignore_errors": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "init_timeout": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "secrets": { + "type": "Optional[list[_models.Secret]]", + "default": null, + "param_type": "keyword_only" + }, + "secret_store_component": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "metadata": { + "type": "Optional[list[_models.DaprMetadata]]", + "default": null, + "param_type": "keyword_only" + }, + "scopes": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "service_component_bind": { + "type": "Optional[list[_models.DaprComponentServiceBinding]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "component_type": "Optional", + "version": "Optional", + "ignore_errors": "Optional", + "init_timeout": "Optional", + "secrets": "Optional", + "secret_store_component": "Optional", + "metadata": "Optional", + "scopes": "Optional", + "service_component_bind": "Optional", + "provisioning_state": "Optional", + "deployment_errors": "Optional" + } + }, + "DaprComponentProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "DELETING": "DELETING", + "FAILED": "FAILED", + "IN_PROGRESS": "IN_PROGRESS", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "DaprComponentResiliencyPolicy": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.DaprComponentResiliencyPolicyProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "consecutive_errors": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "timeout_in_seconds": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "interval_in_seconds": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "consecutive_errors": "Optional", + "timeout_in_seconds": "Optional", + "interval_in_seconds": "Optional" + } + }, + "DaprComponentResiliencyPolicyConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "http_retry_policy": { + "type": "Optional[_models.DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration]", + "default": null, + "param_type": "keyword_only" + }, + "timeout_policy": { + "type": "Optional[_models.DaprComponentResiliencyPolicyTimeoutPolicyConfiguration]", + "default": null, + "param_type": "keyword_only" + }, + "circuit_breaker_policy": { + "type": "Optional[_models.DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "http_retry_policy": "Optional", + "timeout_policy": "Optional", + "circuit_breaker_policy": "Optional" + } + }, + "DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "initial_delay_in_milliseconds": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "max_interval_in_milliseconds": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "initial_delay_in_milliseconds": "Optional", + "max_interval_in_milliseconds": "Optional" + } + }, + "DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "max_retries": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "retry_back_off": { + "type": "Optional[_models.DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "max_retries": "Optional", + "retry_back_off": "Optional" + } + }, + "DaprComponentResiliencyPolicyProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "inbound_policy": { + "type": "Optional[_models.DaprComponentResiliencyPolicyConfiguration]", + "default": null, + "param_type": "keyword_only" + }, + "outbound_policy": { + "type": "Optional[_models.DaprComponentResiliencyPolicyConfiguration]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "inbound_policy": "Optional", + "outbound_policy": "Optional" + } + }, + "DaprComponentResiliencyPolicyTimeoutPolicyConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "response_timeout_in_seconds": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "response_timeout_in_seconds": "Optional" + } + }, + "DaprComponentServiceBinding": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "service_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "metadata": { + "type": "Optional[_models.DaprServiceBindMetadata]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "service_id": "Optional", + "metadata": "Optional" + } + }, + "DaprConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "version": "Optional" + } + }, + "DaprMetadata": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "value": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "secret_ref": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "value": "Optional", + "secret_ref": "Optional" + } + }, + "DaprSecret": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "value": "Optional" + } + }, + "DaprSecretsCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "type": "list[_models.DaprSecret]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": "list" + } + }, + "DaprServiceBindMetadata": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "value": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "value": "Optional" + } + }, + "DaprSubscription": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.DaprSubscriptionProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "DaprSubscriptionBulkSubscribeOptions": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "enabled": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "max_messages_count": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "max_await_duration_ms": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enabled": "Optional", + "max_messages_count": "Optional", + "max_await_duration_ms": "Optional" + } + }, + "DaprSubscriptionProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "pubsub_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "topic": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "dead_letter_topic": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "routes": { + "type": "Optional[_models.DaprSubscriptionRoutes]", + "default": null, + "param_type": "keyword_only" + }, + "scopes": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "metadata": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "bulk_subscribe": { + "type": "Optional[_models.DaprSubscriptionBulkSubscribeOptions]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "pubsub_name": "Optional", + "topic": "Optional", + "dead_letter_topic": "Optional", + "routes": "Optional", + "scopes": "Optional", + "metadata": "Optional", + "bulk_subscribe": "Optional" + } + }, + "DaprSubscriptionRouteRule": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "match": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "path": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "match": "Optional", + "path": "Optional" + } + }, + "DaprSubscriptionRoutes": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "rules": { + "type": "Optional[list[_models.DaprSubscriptionRouteRule]]", + "default": null, + "param_type": "keyword_only" + }, + "default": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "rules": "Optional", + "default": "Optional" + } + }, + "DataDogConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "site": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "key": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "site": "Optional", + "key": "Optional" + } + }, + "DefaultAuthorizationPolicy": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "allowed_principals": { + "type": "Optional[_models.AllowedPrincipals]", + "default": null, + "param_type": "keyword_only" + }, + "allowed_applications": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "allowed_principals": "Optional", + "allowed_applications": "Optional" + } + }, + "DefaultErrorResponse": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "error": "Optional" + } + }, + "DefaultErrorResponseError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "details": { + "type": "Optional[list[_models.DefaultErrorResponseErrorDetailsItem]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "code": "Optional", + "message": "Optional", + "target": "Optional", + "details": "Optional", + "innererror": "Optional" + } + }, + "DefaultErrorResponseErrorDetailsItem": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "code": "Optional", + "message": "Optional", + "target": "Optional" + } + }, + "DestinationsConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "data_dog_configuration": { + "type": "Optional[_models.DataDogConfiguration]", + "default": null, + "param_type": "keyword_only" + }, + "otlp_configurations": { + "type": "Optional[list[_models.OtlpConfiguration]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "data_dog_configuration": "Optional", + "otlp_configurations": "Optional" + } + }, + "DetectionStatus": { + "type": "Enum", + "methods": {}, + "properties": { + "FAILED": "FAILED", + "REGISTRY_LOGIN_FAILED": "REGISTRY_LOGIN_FAILED", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "DiagnosticDataProviderMetadata": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "provider_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "property_bag": { + "type": "Optional[list[_models.DiagnosticDataProviderMetadataPropertyBagItem]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "provider_name": "Optional", + "property_bag": "Optional" + } + }, + "DiagnosticDataProviderMetadataPropertyBagItem": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "value": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "value": "Optional" + } + }, + "DiagnosticDataTableResponseColumn": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "column_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "data_type": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "column_type": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "column_name": "Optional", + "data_type": "Optional", + "column_type": "Optional" + } + }, + "DiagnosticDataTableResponseObject": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "table_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "columns": { + "type": "Optional[list[_models.DiagnosticDataTableResponseColumn]]", + "default": null, + "param_type": "keyword_only" + }, + "rows": { + "type": "Optional[list[Any]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "table_name": "Optional", + "columns": "Optional", + "rows": "Optional" + } + }, + "DiagnosticRendering": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "type": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "title": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "description": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "is_visible": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "type": "Optional", + "title": "Optional", + "description": "Optional", + "is_visible": "Optional" + } + }, + "DiagnosticSupportTopic": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "pes_id": "Optional" + } + }, + "Diagnostics": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.DiagnosticsProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "DiagnosticsCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "type": "list[_models.Diagnostics]", + "default": null, + "param_type": "keyword_only" + }, + "next_link": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": "list", + "next_link": "Optional" + } + }, + "DiagnosticsDataApiResponse": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "table": { + "type": "Optional[_models.DiagnosticDataTableResponseObject]", + "default": null, + "param_type": "keyword_only" + }, + "rendering_properties": { + "type": "Optional[_models.DiagnosticRendering]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "table": "Optional", + "rendering_properties": "Optional" + } + }, + "DiagnosticsDefinition": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "support_topic_list": { + "type": "Optional[list[_models.DiagnosticSupportTopic]]", + "default": null, + "param_type": "keyword_only" + }, + "analysis_types": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "name": "Optional", + "description": "Optional", + "author": "Optional", + "category": "Optional", + "support_topic_list": "Optional", + "analysis_types": "Optional", + "type": "Optional", + "score": "Optional" + } + }, + "DiagnosticsProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "metadata": { + "type": "Optional[_models.DiagnosticsDefinition]", + "default": null, + "param_type": "keyword_only" + }, + "dataset": { + "type": "Optional[list[_models.DiagnosticsDataApiResponse]]", + "default": null, + "param_type": "keyword_only" + }, + "status": { + "type": "Optional[_models.DiagnosticsStatus]", + "default": null, + "param_type": "keyword_only" + }, + "data_provider_metadata": { + "type": "Optional[_models.DiagnosticDataProviderMetadata]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "metadata": "Optional", + "dataset": "Optional", + "status": "Optional", + "data_provider_metadata": "Optional" + } + }, + "DiagnosticsStatus": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "message": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "status_id": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "message": "Optional", + "status_id": "Optional" + } + }, + "DiskEncryptionConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "key_vault_configuration": { + "type": "Optional[_models.DiskEncryptionConfigurationKeyVaultConfiguration]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "key_vault_configuration": "Optional" + } + }, + "DiskEncryptionConfigurationKeyVaultConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "key_url": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "auth": { + "type": "Optional[_models.DiskEncryptionConfigurationKeyVaultConfigurationAuth]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "key_url": "Optional", + "auth": "Optional" + } + }, + "DiskEncryptionConfigurationKeyVaultConfigurationAuth": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "identity": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "identity": "Optional" + } + }, + "DnsVerificationTestResult": { + "type": "Enum", + "methods": {}, + "properties": { + "FAILED": "FAILED", + "PASSED": "PASSED", + "SKIPPED": "SKIPPED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "DotNetComponent": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.DotNetComponentProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "DotNetComponentConfigurationProperty": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "property_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "value": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "property_name": "Optional", + "value": "Optional" + } + }, + "DotNetComponentProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "component_type": { + "type": "Optional[Union[str, _models.DotNetComponentType]]", + "default": null, + "param_type": "keyword_only" + }, + "configurations": { + "type": "Optional[list[_models.DotNetComponentConfigurationProperty]]", + "default": null, + "param_type": "keyword_only" + }, + "service_binds": { + "type": "Optional[list[_models.DotNetComponentServiceBind]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "component_type": "Optional", + "provisioning_state": "Optional", + "configurations": "Optional", + "service_binds": "Optional" + } + }, + "DotNetComponentProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "DELETING": "DELETING", + "FAILED": "FAILED", + "IN_PROGRESS": "IN_PROGRESS", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "DotNetComponentServiceBind": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "service_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "service_id": "Optional" + } + }, + "DotNetComponentType": { + "type": "Enum", + "methods": {}, + "properties": { + "ASPIRE_DASHBOARD": "ASPIRE_DASHBOARD", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "DynamicPoolConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "lifecycle_configuration": { + "type": "Optional[_models.LifecycleConfiguration]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "lifecycle_configuration": "Optional" + } + }, + "EncryptionSettings": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_auth_encryption_secret_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "container_app_auth_signing_secret_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "container_app_auth_encryption_secret_name": "Optional", + "container_app_auth_signing_secret_name": "Optional" + } + }, + "EnvironmentAuthToken": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "properties": { + "type": "Optional[_models.EnvironmentAuthTokenProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "tags": "Optional", + "location": null, + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "EnvironmentAuthTokenProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "token": "Optional", + "expires": "Optional" + } + }, + "EnvironmentProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "FAILED": "FAILED", + "INFRASTRUCTURE_SETUP_COMPLETE": "INFRASTRUCTURE_SETUP_COMPLETE", + "INFRASTRUCTURE_SETUP_IN_PROGRESS": "INFRASTRUCTURE_SETUP_IN_PROGRESS", + "INITIALIZATION_IN_PROGRESS": "INITIALIZATION_IN_PROGRESS", + "SCHEDULED_FOR_DELETE": "SCHEDULED_FOR_DELETE", + "SUCCEEDED": "SUCCEEDED", + "UPGRADE_FAILED": "UPGRADE_FAILED", + "UPGRADE_REQUESTED": "UPGRADE_REQUESTED", + "WAITING": "WAITING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "EnvironmentVar": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "value": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "secret_ref": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "value": "Optional", + "secret_ref": "Optional" + } + }, + "EnvironmentVariable": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "value": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": null, + "value": null + } + }, + "ErrorAdditionalInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "type": "Optional", + "info": "Optional" + } + }, + "ErrorDetail": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "code": "Optional", + "message": "Optional", + "target": "Optional", + "details": "Optional", + "additional_info": "Optional" + } + }, + "ErrorEntity": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "extended_code": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "message_template": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "parameters": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "inner_errors": { + "type": "Optional[list[_models.ErrorEntity]]", + "default": null, + "param_type": "keyword_only" + }, + "details": { + "type": "Optional[list[_models.ErrorEntity]]", + "default": null, + "param_type": "keyword_only" + }, + "target": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "code": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "message": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "extended_code": "Optional", + "message_template": "Optional", + "parameters": "Optional", + "inner_errors": "Optional", + "details": "Optional", + "target": "Optional", + "code": "Optional", + "message": "Optional" + } + }, + "ErrorResponse": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "error": { + "type": "Optional[_models.ErrorDetail]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "error": "Optional" + } + }, + "ExecutionStatus": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "replicas": { + "type": "Optional[list[_models.ReplicaExecutionStatus]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "replicas": "Optional" + } + }, + "ExtendedLocation": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "type": { + "type": "Optional[Union[str, _models.ExtendedLocationTypes]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "type": "Optional" + } + }, + "ExtendedLocationTypes": { + "type": "Enum", + "methods": {}, + "properties": { + "CUSTOM_LOCATION": "CUSTOM_LOCATION", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "Facebook": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "enabled": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "registration": { + "type": "Optional[_models.AppRegistration]", + "default": null, + "param_type": "keyword_only" + }, + "graph_api_version": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "login": { + "type": "Optional[_models.LoginScopes]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enabled": "Optional", + "registration": "Optional", + "graph_api_version": "Optional", + "login": "Optional" + } + }, + "ForwardProxy": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "convention": { + "type": "Optional[Union[str, _models.ForwardProxyConvention]]", + "default": null, + "param_type": "keyword_only" + }, + "custom_host_header_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "custom_proto_header_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "convention": "Optional", + "custom_host_header_name": "Optional", + "custom_proto_header_name": "Optional" + } + }, + "ForwardProxyConvention": { + "type": "Enum", + "methods": {}, + "properties": { + "CUSTOM": "CUSTOM", + "NO_PROXY": "NO_PROXY", + "STANDARD": "STANDARD", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "GitHub": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "enabled": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "registration": { + "type": "Optional[_models.ClientRegistration]", + "default": null, + "param_type": "keyword_only" + }, + "login": { + "type": "Optional[_models.LoginScopes]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enabled": "Optional", + "registration": "Optional", + "login": "Optional" + } + }, + "GithubActionConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "registry_info": { + "type": "Optional[_models.RegistryInfo]", + "default": null, + "param_type": "keyword_only" + }, + "azure_credentials": { + "type": "Optional[_models.AzureCredentials]", + "default": null, + "param_type": "keyword_only" + }, + "context_path": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "dockerfile_path": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "github_personal_access_token": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "image": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "publish_type": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "os": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "runtime_stack": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "runtime_version": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "build_environment_variables": { + "type": "Optional[list[_models.EnvironmentVariable]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "registry_info": "Optional", + "azure_credentials": "Optional", + "context_path": "Optional", + "dockerfile_path": "Optional", + "github_personal_access_token": "Optional", + "image": "Optional", + "publish_type": "Optional", + "os": "Optional", + "runtime_stack": "Optional", + "runtime_version": "Optional", + "build_environment_variables": "Optional" + } + }, + "GlobalValidation": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "unauthenticated_client_action": { + "type": "Optional[Union[str, _models.UnauthenticatedClientActionV2]]", + "default": null, + "param_type": "keyword_only" + }, + "redirect_to_provider": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "excluded_paths": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "unauthenticated_client_action": "Optional", + "redirect_to_provider": "Optional", + "excluded_paths": "Optional" + } + }, + "Google": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "enabled": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "registration": { + "type": "Optional[_models.ClientRegistration]", + "default": null, + "param_type": "keyword_only" + }, + "login": { + "type": "Optional[_models.LoginScopes]", + "default": null, + "param_type": "keyword_only" + }, + "validation": { + "type": "Optional[_models.AllowedAudiencesValidation]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enabled": "Optional", + "registration": "Optional", + "login": "Optional", + "validation": "Optional" + } + }, + "Header": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "value": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "key": "Optional", + "value": "Optional" + } + }, + "HeaderMatch": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "header": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "match": { + "type": "Optional[_models.HeaderMatchMatch]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "header": "Optional", + "match": "Optional" + } + }, + "HeaderMatchMatch": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "exact_match": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "prefix_match": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "suffix_match": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "regex_match": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "exact_match": "Optional", + "prefix_match": "Optional", + "suffix_match": "Optional", + "regex_match": "Optional" + } + }, + "HttpConnectionPool": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "http1_max_pending_requests": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "http2_max_requests": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "http1_max_pending_requests": "Optional", + "http2_max_requests": "Optional" + } + }, + "HttpGet": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "url": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "file_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "headers": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "url": null, + "file_name": "Optional", + "headers": "Optional" + } + }, + "HttpRetryPolicy": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "max_retries": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "retry_back_off": { + "type": "Optional[_models.HttpRetryPolicyRetryBackOff]", + "default": null, + "param_type": "keyword_only" + }, + "matches": { + "type": "Optional[_models.HttpRetryPolicyMatches]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "max_retries": "Optional", + "retry_back_off": "Optional", + "matches": "Optional" + } + }, + "HttpRetryPolicyMatches": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "headers": { + "type": "Optional[list[_models.HeaderMatch]]", + "default": null, + "param_type": "keyword_only" + }, + "http_status_codes": { + "type": "Optional[list[int]]", + "default": null, + "param_type": "keyword_only" + }, + "errors": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "headers": "Optional", + "http_status_codes": "Optional", + "errors": "Optional" + } + }, + "HttpRetryPolicyRetryBackOff": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "initial_delay_in_milliseconds": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "max_interval_in_milliseconds": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "initial_delay_in_milliseconds": "Optional", + "max_interval_in_milliseconds": "Optional" + } + }, + "HttpRoute": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "match": { + "type": "Optional[_models.HttpRouteMatch]", + "default": null, + "param_type": "keyword_only" + }, + "action": { + "type": "Optional[_models.HttpRouteAction]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "match": "Optional", + "action": "Optional" + } + }, + "HttpRouteAction": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "prefix_rewrite": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "prefix_rewrite": "Optional" + } + }, + "HttpRouteConfig": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.HttpRouteConfigProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "HttpRouteConfigProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "custom_domains": { + "type": "Optional[list[_models.CustomDomain]]", + "default": null, + "param_type": "keyword_only" + }, + "rules": { + "type": "Optional[list[_models.HttpRouteRule]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "provisioning_state": "Optional", + "provisioning_errors": "Optional", + "fqdn": "Optional", + "custom_domains": "Optional", + "rules": "Optional" + } + }, + "HttpRouteMatch": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "prefix": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "path": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "path_separated_prefix": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "case_sensitive": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "prefix": "Optional", + "path": "Optional", + "path_separated_prefix": "Optional", + "case_sensitive": "Optional" + } + }, + "HttpRouteProvisioningErrors": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "timestamp": "Optional", + "message": "Optional" + } + }, + "HttpRouteProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "DELETING": "DELETING", + "FAILED": "FAILED", + "PENDING": "PENDING", + "SUCCEEDED": "SUCCEEDED", + "UPDATING": "UPDATING", + "WAITING": "WAITING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "HttpRouteRule": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "targets": { + "type": "Optional[list[_models.HttpRouteTarget]]", + "default": null, + "param_type": "keyword_only" + }, + "routes": { + "type": "Optional[list[_models.HttpRoute]]", + "default": null, + "param_type": "keyword_only" + }, + "description": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "targets": "Optional", + "routes": "Optional", + "description": "Optional" + } + }, + "HttpRouteTarget": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "revision": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "label": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "weight": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "container_app": null, + "revision": "Optional", + "label": "Optional", + "weight": "Optional" + } + }, + "HttpScaleRule": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "metadata": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "auth": { + "type": "Optional[list[_models.ScaleRuleAuth]]", + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "metadata": "Optional", + "auth": "Optional", + "identity": "Optional" + } + }, + "HttpSettings": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "require_https": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "routes": { + "type": "Optional[_models.HttpSettingsRoutes]", + "default": null, + "param_type": "keyword_only" + }, + "forward_proxy": { + "type": "Optional[_models.ForwardProxy]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "require_https": "Optional", + "routes": "Optional", + "forward_proxy": "Optional" + } + }, + "HttpSettingsRoutes": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "api_prefix": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "api_prefix": "Optional" + } + }, + "IdentityProviders": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "azure_active_directory": { + "type": "Optional[_models.AzureActiveDirectory]", + "default": null, + "param_type": "keyword_only" + }, + "facebook": { + "type": "Optional[_models.Facebook]", + "default": null, + "param_type": "keyword_only" + }, + "git_hub": { + "type": "Optional[_models.GitHub]", + "default": null, + "param_type": "keyword_only" + }, + "google": { + "type": "Optional[_models.Google]", + "default": null, + "param_type": "keyword_only" + }, + "twitter": { + "type": "Optional[_models.Twitter]", + "default": null, + "param_type": "keyword_only" + }, + "apple": { + "type": "Optional[_models.Apple]", + "default": null, + "param_type": "keyword_only" + }, + "azure_static_web_apps": { + "type": "Optional[_models.AzureStaticWebApps]", + "default": null, + "param_type": "keyword_only" + }, + "custom_open_id_connect_providers": { + "type": "Optional[dict[str, _models.CustomOpenIdConnectProvider]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "azure_active_directory": "Optional", + "facebook": "Optional", + "git_hub": "Optional", + "google": "Optional", + "twitter": "Optional", + "apple": "Optional", + "azure_static_web_apps": "Optional", + "custom_open_id_connect_providers": "Optional" + } + }, + "IdentitySettings": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "identity": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "lifecycle": { + "type": "Optional[Union[str, _models.IdentitySettingsLifeCycle]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "identity": null, + "lifecycle": "Optional" + } + }, + "IdentitySettingsLifeCycle": { + "type": "Enum", + "methods": {}, + "properties": { + "ALL": "ALL", + "INIT": "INIT", + "MAIN": "MAIN", + "NONE": "NONE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ImageType": { + "type": "Enum", + "methods": {}, + "properties": { + "CLOUD_BUILD": "CLOUD_BUILD", + "CONTAINER_IMAGE": "CONTAINER_IMAGE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "Ingress": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "external": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "target_port": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "exposed_port": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "transport": { + "type": "Optional[Union[str, _models.IngressTransportMethod]]", + "default": null, + "param_type": "keyword_only" + }, + "traffic": { + "type": "Optional[list[_models.TrafficWeight]]", + "default": null, + "param_type": "keyword_only" + }, + "custom_domains": { + "type": "Optional[list[_models.CustomDomain]]", + "default": null, + "param_type": "keyword_only" + }, + "allow_insecure": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "ip_security_restrictions": { + "type": "Optional[list[_models.IpSecurityRestrictionRule]]", + "default": null, + "param_type": "keyword_only" + }, + "sticky_sessions": { + "type": "Optional[_models.IngressStickySessions]", + "default": null, + "param_type": "keyword_only" + }, + "client_certificate_mode": { + "type": "Optional[Union[str, _models.IngressClientCertificateMode]]", + "default": null, + "param_type": "keyword_only" + }, + "cors_policy": { + "type": "Optional[_models.CorsPolicy]", + "default": null, + "param_type": "keyword_only" + }, + "additional_port_mappings": { + "type": "Optional[list[_models.IngressPortMapping]]", + "default": null, + "param_type": "keyword_only" + }, + "target_port_http_scheme": { + "type": "Optional[Union[str, _models.IngressTargetPortHttpScheme]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "fqdn": "Optional", + "external": "Optional", + "target_port": "Optional", + "exposed_port": "Optional", + "transport": "Optional", + "traffic": "Optional", + "custom_domains": "Optional", + "allow_insecure": "Optional", + "ip_security_restrictions": "Optional", + "sticky_sessions": "Optional", + "client_certificate_mode": "Optional", + "cors_policy": "Optional", + "additional_port_mappings": "Optional", + "target_port_http_scheme": "Optional" + } + }, + "IngressClientCertificateMode": { + "type": "Enum", + "methods": {}, + "properties": { + "ACCEPT": "ACCEPT", + "IGNORE": "IGNORE", + "REQUIRE": "REQUIRE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "IngressConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "workload_profile_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "termination_grace_period_seconds": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "header_count_limit": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "request_idle_timeout": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "workload_profile_name": "Optional", + "termination_grace_period_seconds": "Optional", + "header_count_limit": "Optional", + "request_idle_timeout": "Optional" + } + }, + "IngressPortMapping": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "external": { + "type": "bool", + "default": null, + "param_type": "keyword_only" + }, + "target_port": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "exposed_port": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "external": null, + "target_port": null, + "exposed_port": "Optional" + } + }, + "IngressStickySessions": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "affinity": { + "type": "Optional[Union[str, _models.Affinity]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "affinity": "Optional" + } + }, + "IngressTargetPortHttpScheme": { + "type": "Enum", + "methods": {}, + "properties": { + "HTTP": "HTTP", + "HTTPS": "HTTPS", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "IngressTransportMethod": { + "type": "Enum", + "methods": {}, + "properties": { + "AUTO": "AUTO", + "HTTP": "HTTP", + "HTTP2": "HTTP2", + "TCP": "TCP", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "InitContainer": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "image": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "image_type": { + "type": "Optional[Union[str, _models.ImageType]]", + "default": null, + "param_type": "keyword_only" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "command": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "args": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "env": { + "type": "Optional[list[_models.EnvironmentVar]]", + "default": null, + "param_type": "keyword_only" + }, + "resources": { + "type": "Optional[_models.ContainerResources]", + "default": null, + "param_type": "keyword_only" + }, + "volume_mounts": { + "type": "Optional[list[_models.VolumeMount]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "image": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "image_type": { + "type": "Optional[Union[str, _models.ImageType]]", + "default": null, + "param_type": "keyword_only" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "command": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "args": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "env": { + "type": "Optional[list[_models.EnvironmentVar]]", + "default": null, + "param_type": "keyword_only" + }, + "resources": { + "type": "Optional[_models.ContainerResources]", + "default": null, + "param_type": "keyword_only" + }, + "volume_mounts": { + "type": "Optional[list[_models.VolumeMount]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "image": "Optional", + "image_type": "Optional", + "name": "Optional", + "command": "Optional", + "args": "Optional", + "env": "Optional", + "resources": "Optional", + "volume_mounts": "Optional" + } + }, + "IpSecurityRestrictionRule": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "ip_address_range": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "action": { + "type": "Union[str, _models.Action]", + "default": null, + "param_type": "keyword_only" + }, + "description": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": null, + "description": "Optional", + "ip_address_range": null, + "action": "Union" + } + }, + "JavaComponent": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.JavaComponentProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "JavaComponentConfigurationProperty": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "property_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "value": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "property_name": "Optional", + "value": "Optional" + } + }, + "JavaComponentIngress": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "fqdn": "Optional" + } + }, + "JavaComponentProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "component_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "configurations": { + "type": "Optional[list[_models.JavaComponentConfigurationProperty]]", + "default": null, + "param_type": "keyword_only" + }, + "scale": { + "type": "Optional[_models.JavaComponentPropertiesScale]", + "default": null, + "param_type": "keyword_only" + }, + "service_binds": { + "type": "Optional[list[_models.JavaComponentServiceBind]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "component_type": null, + "provisioning_state": "Optional", + "configurations": "Optional", + "scale": "Optional", + "service_binds": "Optional" + } + }, + "JavaComponentPropertiesScale": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "min_replicas": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "max_replicas": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "min_replicas": "Optional", + "max_replicas": "Optional" + } + }, + "JavaComponentProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "DELETING": "DELETING", + "FAILED": "FAILED", + "IN_PROGRESS": "IN_PROGRESS", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "JavaComponentServiceBind": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "service_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "service_id": "Optional" + } + }, + "JavaComponentType": { + "type": "Enum", + "methods": {}, + "properties": { + "NACOS": "NACOS", + "SPRING_BOOT_ADMIN": "SPRING_BOOT_ADMIN", + "SPRING_CLOUD_CONFIG": "SPRING_CLOUD_CONFIG", + "SPRING_CLOUD_EUREKA": "SPRING_CLOUD_EUREKA", + "SPRING_CLOUD_GATEWAY": "SPRING_CLOUD_GATEWAY", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "Job": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "properties": { + "type": "Optional[_models.JobProperties]", + "default": null, + "param_type": "keyword_only" + }, + "extended_location": { + "type": "Optional[_models.ExtendedLocation]", + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "type": "Optional[_models.ManagedServiceIdentity]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "extended_location": "Optional", + "identity": "Optional", + "tags": "Optional", + "location": null, + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "JobConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "trigger_type": { + "type": "Union[str, _models.TriggerType]", + "default": null, + "param_type": "keyword_only" + }, + "replica_timeout": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "secrets": { + "type": "Optional[list[_models.Secret]]", + "default": null, + "param_type": "keyword_only" + }, + "replica_retry_limit": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "manual_trigger_config": { + "type": "Optional[_models.JobConfigurationManualTriggerConfig]", + "default": null, + "param_type": "keyword_only" + }, + "schedule_trigger_config": { + "type": "Optional[_models.JobConfigurationScheduleTriggerConfig]", + "default": null, + "param_type": "keyword_only" + }, + "event_trigger_config": { + "type": "Optional[_models.JobConfigurationEventTriggerConfig]", + "default": null, + "param_type": "keyword_only" + }, + "registries": { + "type": "Optional[list[_models.RegistryCredentials]]", + "default": null, + "param_type": "keyword_only" + }, + "identity_settings": { + "type": "Optional[list[_models.IdentitySettings]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "secrets": "Optional", + "trigger_type": "Union", + "replica_timeout": null, + "replica_retry_limit": "Optional", + "manual_trigger_config": "Optional", + "schedule_trigger_config": "Optional", + "event_trigger_config": "Optional", + "registries": "Optional", + "identity_settings": "Optional" + } + }, + "JobConfigurationEventTriggerConfig": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "replica_completion_count": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "parallelism": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "scale": { + "type": "Optional[_models.JobScale]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "replica_completion_count": "Optional", + "parallelism": "Optional", + "scale": "Optional" + } + }, + "JobConfigurationManualTriggerConfig": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "replica_completion_count": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "parallelism": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "replica_completion_count": "Optional", + "parallelism": "Optional" + } + }, + "JobConfigurationScheduleTriggerConfig": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "cron_expression": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "replica_completion_count": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "parallelism": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "replica_completion_count": "Optional", + "cron_expression": null, + "parallelism": "Optional" + } + }, + "JobExecution": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.JobExecutionProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "JobExecutionBase": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "id": "Optional" + } + }, + "JobExecutionContainer": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "image": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "command": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "args": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "env": { + "type": "Optional[list[_models.EnvironmentVar]]", + "default": null, + "param_type": "keyword_only" + }, + "resources": { + "type": "Optional[_models.ContainerResources]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "image": "Optional", + "name": "Optional", + "command": "Optional", + "args": "Optional", + "env": "Optional", + "resources": "Optional" + } + }, + "JobExecutionProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "start_time": { + "type": "Optional[datetime]", + "default": null, + "param_type": "keyword_only" + }, + "end_time": { + "type": "Optional[datetime]", + "default": null, + "param_type": "keyword_only" + }, + "template": { + "type": "Optional[_models.JobExecutionTemplate]", + "default": null, + "param_type": "keyword_only" + }, + "detailed_status": { + "type": "Optional[_models.ExecutionStatus]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "status": "Optional", + "start_time": "Optional", + "end_time": "Optional", + "template": "Optional", + "detailed_status": "Optional", + "reason": "Optional", + "message": "Optional" + } + }, + "JobExecutionRunningState": { + "type": "Enum", + "methods": {}, + "properties": { + "DEGRADED": "DEGRADED", + "FAILED": "FAILED", + "PROCESSING": "PROCESSING", + "RUNNING": "RUNNING", + "STOPPED": "STOPPED", + "SUCCEEDED": "SUCCEEDED", + "UNKNOWN": "UNKNOWN", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "JobExecutionTemplate": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "containers": { + "type": "Optional[list[_models.JobExecutionContainer]]", + "default": null, + "param_type": "keyword_only" + }, + "init_containers": { + "type": "Optional[list[_models.JobExecutionContainer]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "containers": "Optional", + "init_containers": "Optional" + } + }, + "JobPatchProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "extended_location": { + "type": "Optional[_models.ExtendedLocation]", + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "type": "Optional[_models.ManagedServiceIdentity]", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "properties": { + "type": "Optional[_models.JobPatchPropertiesProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "extended_location": "Optional", + "identity": "Optional", + "tags": "Optional", + "properties": "Optional" + } + }, + "JobPatchPropertiesProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "configuration": { + "type": "Optional[_models.JobConfiguration]", + "default": null, + "param_type": "keyword_only" + }, + "template": { + "type": "Optional[_models.JobTemplate]", + "default": null, + "param_type": "keyword_only" + }, + "outbound_ip_addresses": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "event_stream_endpoint": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "environment_id": "Optional", + "configuration": "Optional", + "template": "Optional", + "outbound_ip_addresses": "Optional", + "event_stream_endpoint": "Optional" + } + }, + "JobProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "workload_profile_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "configuration": { + "type": "Optional[_models.JobConfiguration]", + "default": null, + "param_type": "keyword_only" + }, + "template": { + "type": "Optional[_models.JobTemplate]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "provisioning_state": "Optional", + "running_state": "Optional", + "environment_id": "Optional", + "workload_profile_name": "Optional", + "configuration": "Optional", + "template": "Optional", + "outbound_ip_addresses": "Optional", + "event_stream_endpoint": "Optional" + } + }, + "JobProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "DELETING": "DELETING", + "FAILED": "FAILED", + "IN_PROGRESS": "IN_PROGRESS", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "JobRunningState": { + "type": "Enum", + "methods": {}, + "properties": { + "PROGRESSING": "PROGRESSING", + "READY": "READY", + "SUSPENDED": "SUSPENDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "JobScale": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "polling_interval": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "min_executions": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "max_executions": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "rules": { + "type": "Optional[list[_models.JobScaleRule]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "polling_interval": "Optional", + "min_executions": "Optional", + "max_executions": "Optional", + "rules": "Optional" + } + }, + "JobScaleRule": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "type": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "metadata": { + "type": "Optional[Any]", + "default": null, + "param_type": "keyword_only" + }, + "auth": { + "type": "Optional[list[_models.ScaleRuleAuth]]", + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "type": "Optional", + "metadata": "Optional", + "auth": "Optional", + "identity": "Optional" + } + }, + "JobSecretsCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "type": "list[_models.Secret]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": "list" + } + }, + "JobTemplate": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "init_containers": { + "type": "Optional[list[_models.InitContainer]]", + "default": null, + "param_type": "keyword_only" + }, + "containers": { + "type": "Optional[list[_models.Container]]", + "default": null, + "param_type": "keyword_only" + }, + "volumes": { + "type": "Optional[list[_models.Volume]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "init_containers": "Optional", + "containers": "Optional", + "volumes": "Optional" + } + }, + "JwtClaimChecks": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "allowed_groups": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "allowed_client_applications": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "allowed_groups": "Optional", + "allowed_client_applications": "Optional" + } + }, + "KedaConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "version": "Optional" + } + }, + "Kind": { + "type": "Enum", + "methods": {}, + "properties": { + "FUNCTIONAPP": "FUNCTIONAPP", + "WORKFLOWAPP": "WORKFLOWAPP", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "LabelHistory": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.LabelHistoryProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "LabelHistoryProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "records": "Optional" + } + }, + "LabelHistoryRecordItem": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "revision": "Optional", + "start": "Optional", + "stop": "Optional", + "status": "Optional" + } + }, + "Level": { + "type": "Enum", + "methods": {}, + "properties": { + "DEBUG": "DEBUG", + "ERROR": "ERROR", + "INFO": "INFO", + "OFF": "OFF", + "TRACE": "TRACE", + "WARN": "WARN", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "LifecycleConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "lifecycle_type": { + "type": "Optional[Union[str, _models.LifecycleType]]", + "default": null, + "param_type": "keyword_only" + }, + "cooldown_period_in_seconds": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "max_alive_period_in_seconds": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "lifecycle_type": "Optional", + "cooldown_period_in_seconds": "Optional", + "max_alive_period_in_seconds": "Optional" + } + }, + "LifecycleType": { + "type": "Enum", + "methods": {}, + "properties": { + "ON_CONTAINER_EXIT": "ON_CONTAINER_EXIT", + "TIMED": "TIMED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "LogAnalyticsConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "customer_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "shared_key": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "dynamic_json_columns": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "customer_id": "Optional", + "shared_key": "Optional", + "dynamic_json_columns": "Optional" + } + }, + "LogLevel": { + "type": "Enum", + "methods": {}, + "properties": { + "DEBUG": "DEBUG", + "ERROR": "ERROR", + "INFO": "INFO", + "WARN": "WARN", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "LoggerSetting": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "logger": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "level": { + "type": "Union[str, _models.Level]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "logger": null, + "level": "Union" + } + }, + "LogicApp": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.LogicAppProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "LogicAppProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "LogicAppsProxyMethod": { + "type": "Enum", + "methods": {}, + "properties": { + "GET": "GET", + "POST": "POST", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "Login": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "routes": { + "type": "Optional[_models.LoginRoutes]", + "default": null, + "param_type": "keyword_only" + }, + "token_store": { + "type": "Optional[_models.TokenStore]", + "default": null, + "param_type": "keyword_only" + }, + "preserve_url_fragments_for_logins": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "allowed_external_redirect_urls": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "cookie_expiration": { + "type": "Optional[_models.CookieExpiration]", + "default": null, + "param_type": "keyword_only" + }, + "nonce": { + "type": "Optional[_models.Nonce]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "routes": "Optional", + "token_store": "Optional", + "preserve_url_fragments_for_logins": "Optional", + "allowed_external_redirect_urls": "Optional", + "cookie_expiration": "Optional", + "nonce": "Optional" + } + }, + "LoginRoutes": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "logout_endpoint": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "logout_endpoint": "Optional" + } + }, + "LoginScopes": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "scopes": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "scopes": "Optional" + } + }, + "LogsConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "destinations": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "destinations": "Optional" + } + }, + "MaintenanceConfigurationResource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.ScheduledEntries]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "ManagedCertificate": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "properties": { + "type": "Optional[_models.ManagedCertificateProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "tags": "Optional", + "location": null, + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "ManagedCertificateDomainControlValidation": { + "type": "Enum", + "methods": {}, + "properties": { + "CNAME": "CNAME", + "HTTP": "HTTP", + "TXT": "TXT", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ManagedCertificatePatch": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "tags": "Optional" + } + }, + "ManagedCertificateProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "subject_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "domain_control_validation": { + "type": "Optional[Union[str, _models.ManagedCertificateDomainControlValidation]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "provisioning_state": "Optional", + "subject_name": "Optional", + "error": "Optional", + "domain_control_validation": "Optional", + "validation_token": "Optional" + } + }, + "ManagedEnvironment": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "properties": { + "type": "Optional[_models.ManagedEnvironmentProperties]", + "default": null, + "param_type": "keyword_only" + }, + "kind": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "type": "Optional[_models.ManagedServiceIdentity]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "kind": "Optional", + "identity": "Optional", + "tags": "Optional", + "location": null, + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "ManagedEnvironmentProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_ai_instrumentation_key": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "dapr_ai_connection_string": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "vnet_configuration": { + "type": "Optional[_models.VnetConfiguration]", + "default": null, + "param_type": "keyword_only" + }, + "app_logs_configuration": { + "type": "Optional[_models.AppLogsConfiguration]", + "default": null, + "param_type": "keyword_only" + }, + "app_insights_configuration": { + "type": "Optional[_models.AppInsightsConfiguration]", + "default": null, + "param_type": "keyword_only" + }, + "open_telemetry_configuration": { + "type": "Optional[_models.OpenTelemetryConfiguration]", + "default": null, + "param_type": "keyword_only" + }, + "zone_redundant": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "availability_zones": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "custom_domain_configuration": { + "type": "Optional[_models.CustomDomainConfiguration]", + "default": null, + "param_type": "keyword_only" + }, + "workload_profiles": { + "type": "Optional[list[_models.WorkloadProfile]]", + "default": null, + "param_type": "keyword_only" + }, + "keda_configuration": { + "type": "Optional[_models.KedaConfiguration]", + "default": null, + "param_type": "keyword_only" + }, + "dapr_configuration": { + "type": "Optional[_models.DaprConfiguration]", + "default": null, + "param_type": "keyword_only" + }, + "infrastructure_resource_group": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "peer_authentication": { + "type": "Optional[_models.ManagedEnvironmentPropertiesPeerAuthentication]", + "default": null, + "param_type": "keyword_only" + }, + "peer_traffic_configuration": { + "type": "Optional[_models.ManagedEnvironmentPropertiesPeerTrafficConfiguration]", + "default": null, + "param_type": "keyword_only" + }, + "ingress_configuration": { + "type": "Optional[_models.IngressConfiguration]", + "default": null, + "param_type": "keyword_only" + }, + "public_network_access": { + "type": "Optional[Union[str, _models.PublicNetworkAccess]]", + "default": null, + "param_type": "keyword_only" + }, + "disk_encryption_configuration": { + "type": "Optional[_models.DiskEncryptionConfiguration]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "provisioning_state": "Optional", + "dapr_ai_instrumentation_key": "Optional", + "dapr_ai_connection_string": "Optional", + "vnet_configuration": "Optional", + "deployment_errors": "Optional", + "default_domain": "Optional", + "private_link_default_domain": "Optional", + "static_ip": "Optional", + "app_logs_configuration": "Optional", + "app_insights_configuration": "Optional", + "open_telemetry_configuration": "Optional", + "zone_redundant": "Optional", + "availability_zones": "Optional", + "custom_domain_configuration": "Optional", + "event_stream_endpoint": "Optional", + "workload_profiles": "Optional", + "keda_configuration": "Optional", + "dapr_configuration": "Optional", + "infrastructure_resource_group": "Optional", + "peer_authentication": "Optional", + "peer_traffic_configuration": "Optional", + "ingress_configuration": "Optional", + "private_endpoint_connections": "Optional", + "public_network_access": "Optional", + "disk_encryption_configuration": "Optional" + } + }, + "ManagedEnvironmentPropertiesPeerAuthentication": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mtls": { + "type": "Optional[_models.Mtls]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "mtls": "Optional" + } + }, + "ManagedEnvironmentPropertiesPeerTrafficConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "encryption": { + "type": "Optional[_models.ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryption]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "encryption": "Optional" + } + }, + "ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryption": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "enabled": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enabled": "Optional" + } + }, + "ManagedEnvironmentStorage": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.ManagedEnvironmentStorageProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "ManagedEnvironmentStorageProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "azure_file": { + "type": "Optional[_models.AzureFileProperties]", + "default": null, + "param_type": "keyword_only" + }, + "nfs_azure_file": { + "type": "Optional[_models.NfsAzureFileProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "azure_file": "Optional", + "nfs_azure_file": "Optional" + } + }, + "ManagedEnvironmentStoragesCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "type": "list[_models.ManagedEnvironmentStorage]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": "list" + } + }, + "ManagedIdentitySetting": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "identity": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "lifecycle": { + "type": "Optional[Union[str, _models.IdentitySettingsLifeCycle]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "identity": null, + "lifecycle": "Optional" + } + }, + "ManagedServiceIdentity": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "type": { + "type": "Union[str, _models.ManagedServiceIdentityType]", + "default": null, + "param_type": "keyword_only" + }, + "user_assigned_identities": { + "type": "Optional[dict[str, _models.UserAssignedIdentity]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "principal_id": "Optional", + "tenant_id": "Optional", + "type": "Union", + "user_assigned_identities": "Optional" + } + }, + "ManagedServiceIdentityType": { + "type": "Enum", + "methods": {}, + "properties": { + "NONE": "NONE", + "SYSTEM_ASSIGNED": "SYSTEM_ASSIGNED", + "SYSTEM_ASSIGNED_USER_ASSIGNED": "SYSTEM_ASSIGNED_USER_ASSIGNED", + "USER_ASSIGNED": "USER_ASSIGNED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "McpServerCredential": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "api_key": "Optional" + } + }, + "McpServerSettings": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "is_mcp_server_enabled": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "is_mcp_server_api_key_disabled": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "is_mcp_server_enabled": "Optional", + "is_mcp_server_api_key_disabled": "Optional", + "mcp_server_endpoint": "Optional" + } + }, + "MetricsConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "include_keda": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "destinations": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "include_keda": "Optional", + "destinations": "Optional" + } + }, + "Mtls": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "enabled": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enabled": "Optional" + } + }, + "NacosComponent": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "configurations": { + "type": "Optional[list[_models.JavaComponentConfigurationProperty]]", + "default": null, + "param_type": "keyword_only" + }, + "scale": { + "type": "Optional[_models.JavaComponentPropertiesScale]", + "default": null, + "param_type": "keyword_only" + }, + "service_binds": { + "type": "Optional[list[_models.JavaComponentServiceBind]]", + "default": null, + "param_type": "keyword_only" + }, + "ingress": { + "type": "Optional[_models.JavaComponentIngress]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "component_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "configurations": { + "type": "Optional[list[_models.JavaComponentConfigurationProperty]]", + "default": null, + "param_type": "keyword_only" + }, + "scale": { + "type": "Optional[_models.JavaComponentPropertiesScale]", + "default": null, + "param_type": "keyword_only" + }, + "service_binds": { + "type": "Optional[list[_models.JavaComponentServiceBind]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "ingress": "Optional", + "component_type": null, + "provisioning_state": "Optional", + "configurations": "Optional", + "scale": "Optional", + "service_binds": "Optional" + } + }, + "NfsAzureFileProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "server": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "access_mode": { + "type": "Optional[Union[str, _models.AccessMode]]", + "default": null, + "param_type": "keyword_only" + }, + "share_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "server": "Optional", + "access_mode": "Optional", + "share_name": "Optional" + } + }, + "Nonce": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "validate_nonce": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "nonce_expiration_interval": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "validate_nonce": "Optional", + "nonce_expiration_interval": "Optional" + } + }, + "Object": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "OpenIdConnectClientCredential": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "method": { + "type": "Optional[Literal[ClientSecretPost]]", + "default": null, + "param_type": "keyword_only" + }, + "client_secret_setting_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "method": "Optional", + "client_secret_setting_name": "Optional" + } + }, + "OpenIdConnectConfig": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "authorization_endpoint": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "token_endpoint": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "issuer": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "certification_uri": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "well_known_open_id_configuration": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "authorization_endpoint": "Optional", + "token_endpoint": "Optional", + "issuer": "Optional", + "certification_uri": "Optional", + "well_known_open_id_configuration": "Optional" + } + }, + "OpenIdConnectLogin": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name_claim_type": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "scopes": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name_claim_type": "Optional", + "scopes": "Optional" + } + }, + "OpenIdConnectRegistration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "client_credential": { + "type": "Optional[_models.OpenIdConnectClientCredential]", + "default": null, + "param_type": "keyword_only" + }, + "open_id_connect_configuration": { + "type": "Optional[_models.OpenIdConnectConfig]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "client_id": "Optional", + "client_credential": "Optional", + "open_id_connect_configuration": "Optional" + } + }, + "OpenTelemetryConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "destinations_configuration": { + "type": "Optional[_models.DestinationsConfiguration]", + "default": null, + "param_type": "keyword_only" + }, + "traces_configuration": { + "type": "Optional[_models.TracesConfiguration]", + "default": null, + "param_type": "keyword_only" + }, + "logs_configuration": { + "type": "Optional[_models.LogsConfiguration]", + "default": null, + "param_type": "keyword_only" + }, + "metrics_configuration": { + "type": "Optional[_models.MetricsConfiguration]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "destinations_configuration": "Optional", + "traces_configuration": "Optional", + "logs_configuration": "Optional", + "metrics_configuration": "Optional" + } + }, + "OperationDetail": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "is_data_action": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "display": { + "type": "Optional[_models.OperationDisplay]", + "default": null, + "param_type": "keyword_only" + }, + "origin": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "is_data_action": "Optional", + "display": "Optional", + "origin": "Optional" + } + }, + "OperationDisplay": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "provider": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "resource": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "operation": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "description": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "provider": "Optional", + "resource": "Optional", + "operation": "Optional", + "description": "Optional" + } + }, + "OtlpConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "endpoint": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "insecure": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "headers": { + "type": "Optional[list[_models.Header]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "endpoint": "Optional", + "insecure": "Optional", + "headers": "Optional" + } + }, + "PatchApplyStatus": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "CREATING_REVISION": "CREATING_REVISION", + "IMAGE_PUSH_PULL_FAILED": "IMAGE_PUSH_PULL_FAILED", + "MANUALLY_SKIPPED": "MANUALLY_SKIPPED", + "NOT_STARTED": "NOT_STARTED", + "REBASE_FAILED": "REBASE_FAILED", + "REBASE_IN_PROGRESS": "REBASE_IN_PROGRESS", + "REVISION_CREATION_FAILED": "REVISION_CREATION_FAILED", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "PatchDetails": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "target_container_name": null, + "target_image": null, + "last_detection_time": "datetime", + "detection_status": "Union", + "new_image_name": "Optional", + "new_layer": "Optional", + "old_layer": "Optional", + "patch_type": "Optional" + } + }, + "PatchDetailsNewLayer": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "framework_and_version": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "os_and_version": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "framework_and_version": "Optional", + "os_and_version": "Optional" + } + }, + "PatchDetailsOldLayer": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "framework_and_version": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "os_and_version": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "framework_and_version": "Optional", + "os_and_version": "Optional" + } + }, + "PatchProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "target_environment_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "target_container_app_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "target_revision_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "target_environment_id": "Optional", + "target_container_app_id": "Optional", + "target_revision_id": "Optional", + "patch_apply_status": "Optional", + "created_at": "Optional", + "last_modified_at": "Optional", + "patch_details": "Optional" + } + }, + "PatchSkipConfig": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "skip": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "skip": "Optional" + } + }, + "PatchType": { + "type": "Enum", + "methods": {}, + "properties": { + "FRAMEWORK_AND_OS_SECURITY": "FRAMEWORK_AND_OS_SECURITY", + "FRAMEWORK_SECURITY": "FRAMEWORK_SECURITY", + "OS_SECURITY": "OS_SECURITY", + "OTHER": "OTHER", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "PatchingMode": { + "type": "Enum", + "methods": {}, + "properties": { + "AUTOMATIC": "AUTOMATIC", + "DISABLED": "DISABLED", + "MANUAL": "MANUAL", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "PoolManagementType": { + "type": "Enum", + "methods": {}, + "properties": { + "DYNAMIC": "DYNAMIC", + "MANUAL": "MANUAL", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "PreBuildStep": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "description": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "scripts": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "http_get": { + "type": "Optional[_models.HttpGet]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "description": "Optional", + "scripts": "Optional", + "http_get": "Optional" + } + }, + "PrivateEndpoint": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional" + } + }, + "PrivateEndpointConnection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.PrivateEndpointConnectionProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "PrivateEndpointConnectionProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "private_link_service_connection_state": { + "type": "_models.PrivateLinkServiceConnectionState", + "default": null, + "param_type": "keyword_only" + }, + "private_endpoint": { + "type": "Optional[_models.PrivateEndpoint]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "group_ids": "Optional", + "private_endpoint": "Optional", + "private_link_service_connection_state": null, + "provisioning_state": "Optional" + } + }, + "PrivateEndpointConnectionProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "DELETING": "DELETING", + "FAILED": "FAILED", + "PENDING": "PENDING", + "SUCCEEDED": "SUCCEEDED", + "UPDATING": "UPDATING", + "WAITING": "WAITING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "PrivateEndpointServiceConnectionStatus": { + "type": "Enum", + "methods": {}, + "properties": { + "APPROVED": "APPROVED", + "DISCONNECTED": "DISCONNECTED", + "PENDING": "PENDING", + "REJECTED": "REJECTED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "PrivateLinkResource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.PrivateLinkResourceProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "PrivateLinkResourceProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "required_zone_names": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "group_id": "Optional", + "required_members": "Optional", + "required_zone_names": "Optional" + } + }, + "PrivateLinkServiceConnectionState": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "status": { + "type": "Optional[Union[str, _models.PrivateEndpointServiceConnectionStatus]]", + "default": null, + "param_type": "keyword_only" + }, + "description": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "actions_required": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "status": "Optional", + "description": "Optional", + "actions_required": "Optional" + } + }, + "ProxyResource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "PublicNetworkAccess": { + "type": "Enum", + "methods": {}, + "properties": { + "DISABLED": "DISABLED", + "ENABLED": "ENABLED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "QueueScaleRule": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "account_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "queue_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "queue_length": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "auth": { + "type": "Optional[list[_models.ScaleRuleAuth]]", + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "account_name": "Optional", + "queue_name": "Optional", + "queue_length": "Optional", + "auth": "Optional", + "identity": "Optional" + } + }, + "RegistryCredentials": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "server": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "username": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "password_secret_ref": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "server": "Optional", + "username": "Optional", + "password_secret_ref": "Optional", + "identity": "Optional" + } + }, + "RegistryInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "registry_url": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "registry_user_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "registry_password": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "registry_url": "Optional", + "registry_user_name": "Optional", + "registry_password": "Optional" + } + }, + "Replica": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.ReplicaProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "ReplicaCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "type": "list[_models.Replica]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": "list" + } + }, + "ReplicaContainer": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "container_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "ready": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "started": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "restart_count": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "container_id": "Optional", + "ready": "Optional", + "started": "Optional", + "restart_count": "Optional", + "running_state": "Optional", + "running_state_details": "Optional", + "log_stream_endpoint": "Optional", + "exec_endpoint": "Optional", + "debug_endpoint": "Optional" + } + }, + "ReplicaExecutionStatus": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "containers": { + "type": "Optional[list[_models.ContainerExecutionStatus]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "containers": "Optional" + } + }, + "ReplicaProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "containers": { + "type": "Optional[list[_models.ReplicaContainer]]", + "default": null, + "param_type": "keyword_only" + }, + "init_containers": { + "type": "Optional[list[_models.ReplicaContainer]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "created_time": "Optional", + "running_state": "Optional", + "running_state_details": "Optional", + "containers": "Optional", + "init_containers": "Optional" + } + }, + "Resource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "ResourceTags": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "tags": "Optional" + } + }, + "Revision": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.RevisionProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "RevisionHealthState": { + "type": "Enum", + "methods": {}, + "properties": { + "HEALTHY": "HEALTHY", + "NONE": "NONE", + "UNHEALTHY": "UNHEALTHY", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "RevisionProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "created_time": "Optional", + "last_active_time": "Optional", + "fqdn": "Optional", + "template": "Optional", + "active": "Optional", + "replicas": "Optional", + "traffic_weight": "Optional", + "labels": "Optional", + "provisioning_error": "Optional", + "health_state": "Optional", + "provisioning_state": "Optional", + "running_state": "Optional" + } + }, + "RevisionProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "DEPROVISIONED": "DEPROVISIONED", + "DEPROVISIONING": "DEPROVISIONING", + "FAILED": "FAILED", + "PROVISIONED": "PROVISIONED", + "PROVISIONING": "PROVISIONING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "RevisionRunningState": { + "type": "Enum", + "methods": {}, + "properties": { + "DEGRADED": "DEGRADED", + "FAILED": "FAILED", + "PROCESSING": "PROCESSING", + "RUNNING": "RUNNING", + "STOPPED": "STOPPED", + "UNKNOWN": "UNKNOWN", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "Runtime": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "java": { + "type": "Optional[_models.RuntimeJava]", + "default": null, + "param_type": "keyword_only" + }, + "dotnet": { + "type": "Optional[_models.RuntimeDotnet]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "java": "Optional", + "dotnet": "Optional" + } + }, + "RuntimeDotnet": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "auto_configure_data_protection": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "auto_configure_data_protection": "Optional" + } + }, + "RuntimeJava": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "enable_metrics": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "java_agent": { + "type": "Optional[_models.RuntimeJavaJavaAgent]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enable_metrics": "Optional", + "java_agent": "Optional" + } + }, + "RuntimeJavaJavaAgent": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "enabled": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "logging": { + "type": "Optional[_models.RuntimeJavaJavaAgentLogging]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enabled": "Optional", + "logging": "Optional" + } + }, + "RuntimeJavaJavaAgentLogging": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "logger_settings": { + "type": "Optional[list[_models.LoggerSetting]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "logger_settings": "Optional" + } + }, + "Scale": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "min_replicas": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "max_replicas": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "cooldown_period": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "polling_interval": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "rules": { + "type": "Optional[list[_models.ScaleRule]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "min_replicas": "Optional", + "max_replicas": "Optional", + "cooldown_period": "Optional", + "polling_interval": "Optional", + "rules": "Optional" + } + }, + "ScaleConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "max_concurrent_sessions": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "ready_session_instances": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "max_concurrent_sessions": "Optional", + "ready_session_instances": "Optional" + } + }, + "ScaleRule": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "azure_queue": { + "type": "Optional[_models.QueueScaleRule]", + "default": null, + "param_type": "keyword_only" + }, + "custom": { + "type": "Optional[_models.CustomScaleRule]", + "default": null, + "param_type": "keyword_only" + }, + "http": { + "type": "Optional[_models.HttpScaleRule]", + "default": null, + "param_type": "keyword_only" + }, + "tcp": { + "type": "Optional[_models.TcpScaleRule]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "azure_queue": "Optional", + "custom": "Optional", + "http": "Optional", + "tcp": "Optional" + } + }, + "ScaleRuleAuth": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "secret_ref": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "trigger_parameter": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "secret_ref": "Optional", + "trigger_parameter": "Optional" + } + }, + "ScgRoute": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "id": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "uri": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "predicates": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "filters": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "order": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": null, + "uri": null, + "predicates": "Optional", + "filters": "Optional", + "order": "Optional" + } + }, + "ScheduledEntries": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "scheduled_entries": { + "type": "list[_models.ScheduledEntry]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "scheduled_entries": "list" + } + }, + "ScheduledEntry": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "week_day": { + "type": "Union[str, _models.WeekDay]", + "default": null, + "param_type": "keyword_only" + }, + "start_hour_utc": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "duration_hours": { + "type": "int", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "week_day": "Union", + "start_hour_utc": null, + "duration_hours": null + } + }, + "Scheme": { + "type": "Enum", + "methods": {}, + "properties": { + "HTTP": "HTTP", + "HTTPS": "HTTPS", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "Secret": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "value": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "key_vault_url": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "value": "Optional", + "identity": "Optional", + "key_vault_url": "Optional" + } + }, + "SecretKeyVaultProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "identity": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "key_vault_url": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "identity": "Optional", + "key_vault_url": "Optional" + } + }, + "SecretVolumeItem": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "secret_ref": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "path": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "secret_ref": "Optional", + "path": "Optional" + } + }, + "SecretsCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "type": "list[_models.ContainerAppSecret]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": "list" + } + }, + "Service": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "type": null + } + }, + "ServiceBind": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "service_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "client_type": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "customized_keys": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "service_id": "Optional", + "name": "Optional", + "client_type": "Optional", + "customized_keys": "Optional" + } + }, + "SessionContainer": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "image": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "command": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "args": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "env": { + "type": "Optional[list[_models.EnvironmentVar]]", + "default": null, + "param_type": "keyword_only" + }, + "resources": { + "type": "Optional[_models.SessionContainerResources]", + "default": null, + "param_type": "keyword_only" + }, + "probes": { + "type": "Optional[list[_models.SessionProbe]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "image": "Optional", + "name": "Optional", + "command": "Optional", + "args": "Optional", + "env": "Optional", + "resources": "Optional", + "probes": "Optional" + } + }, + "SessionContainerResources": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "cpu": { + "type": "Optional[float]", + "default": null, + "param_type": "keyword_only" + }, + "memory": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "cpu": "Optional", + "memory": "Optional" + } + }, + "SessionIngress": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "target_port": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "target_port": "Optional" + } + }, + "SessionNetworkConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "status": { + "type": "Optional[Union[str, _models.SessionNetworkStatus]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "status": "Optional" + } + }, + "SessionNetworkStatus": { + "type": "Enum", + "methods": {}, + "properties": { + "EGRESS_DISABLED": "EGRESS_DISABLED", + "EGRESS_ENABLED": "EGRESS_ENABLED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SessionPool": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "properties": { + "type": "Optional[_models.SessionPoolProperties]", + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "type": "Optional[_models.ManagedServiceIdentity]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "identity": "Optional", + "tags": "Optional", + "location": null, + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "SessionPoolProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "container_type": { + "type": "Optional[Union[str, _models.ContainerType]]", + "default": null, + "param_type": "keyword_only" + }, + "pool_management_type": { + "type": "Optional[Union[str, _models.PoolManagementType]]", + "default": null, + "param_type": "keyword_only" + }, + "scale_configuration": { + "type": "Optional[_models.ScaleConfiguration]", + "default": null, + "param_type": "keyword_only" + }, + "secrets": { + "type": "Optional[list[_models.SessionPoolSecret]]", + "default": null, + "param_type": "keyword_only" + }, + "dynamic_pool_configuration": { + "type": "Optional[_models.DynamicPoolConfiguration]", + "default": null, + "param_type": "keyword_only" + }, + "custom_container_template": { + "type": "Optional[_models.CustomContainerTemplate]", + "default": null, + "param_type": "keyword_only" + }, + "session_network_configuration": { + "type": "Optional[_models.SessionNetworkConfiguration]", + "default": null, + "param_type": "keyword_only" + }, + "managed_identity_settings": { + "type": "Optional[list[_models.ManagedIdentitySetting]]", + "default": null, + "param_type": "keyword_only" + }, + "mcp_server_settings": { + "type": "Optional[_models.McpServerSettings]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "environment_id": "Optional", + "container_type": "Optional", + "pool_management_type": "Optional", + "node_count": "Optional", + "scale_configuration": "Optional", + "secrets": "Optional", + "dynamic_pool_configuration": "Optional", + "custom_container_template": "Optional", + "session_network_configuration": "Optional", + "template_update_status": "Optional", + "pool_management_endpoint": "Optional", + "provisioning_state": "Optional", + "managed_identity_settings": "Optional", + "mcp_server_settings": "Optional" + } + }, + "SessionPoolProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "DELETING": "DELETING", + "FAILED": "FAILED", + "IN_PROGRESS": "IN_PROGRESS", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SessionPoolSecret": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "value": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "value": "Optional" + } + }, + "SessionPoolUpdatableProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "type": "Optional[_models.ManagedServiceIdentity]", + "default": null, + "param_type": "keyword_only" + }, + "properties": { + "type": "Optional[_models.SessionPoolUpdatablePropertiesProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "tags": "Optional", + "identity": "Optional", + "properties": "Optional" + } + }, + "SessionPoolUpdatablePropertiesProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "scale_configuration": { + "type": "Optional[_models.ScaleConfiguration]", + "default": null, + "param_type": "keyword_only" + }, + "secrets": { + "type": "Optional[list[_models.SessionPoolSecret]]", + "default": null, + "param_type": "keyword_only" + }, + "dynamic_pool_configuration": { + "type": "Optional[_models.DynamicPoolConfiguration]", + "default": null, + "param_type": "keyword_only" + }, + "custom_container_template": { + "type": "Optional[_models.CustomContainerTemplate]", + "default": null, + "param_type": "keyword_only" + }, + "session_network_configuration": { + "type": "Optional[_models.SessionNetworkConfiguration]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "scale_configuration": "Optional", + "secrets": "Optional", + "dynamic_pool_configuration": "Optional", + "custom_container_template": "Optional", + "session_network_configuration": "Optional" + } + }, + "SessionProbe": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "type": { + "type": "Optional[Union[str, _models.SessionProbeType]]", + "default": null, + "param_type": "keyword_only" + }, + "http_get": { + "type": "Optional[_models.SessionProbeHttpGet]", + "default": null, + "param_type": "keyword_only" + }, + "tcp_socket": { + "type": "Optional[_models.SessionProbeTcpSocket]", + "default": null, + "param_type": "keyword_only" + }, + "failure_threshold": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "initial_delay_seconds": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "period_seconds": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "success_threshold": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "termination_grace_period_seconds": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "timeout_seconds": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "type": "Optional", + "http_get": "Optional", + "tcp_socket": "Optional", + "failure_threshold": "Optional", + "initial_delay_seconds": "Optional", + "period_seconds": "Optional", + "success_threshold": "Optional", + "termination_grace_period_seconds": "Optional", + "timeout_seconds": "Optional" + } + }, + "SessionProbeHttpGet": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "port": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "host": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "http_headers": { + "type": "Optional[list[_models.SessionProbeHttpGetHttpHeadersItem]]", + "default": null, + "param_type": "keyword_only" + }, + "path": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "scheme": { + "type": "Optional[Union[str, _models.Scheme]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "host": "Optional", + "http_headers": "Optional", + "path": "Optional", + "port": null, + "scheme": "Optional" + } + }, + "SessionProbeHttpGetHttpHeadersItem": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "value": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": null, + "value": null + } + }, + "SessionProbeTcpSocket": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "port": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "host": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "host": "Optional", + "port": null + } + }, + "SessionProbeType": { + "type": "Enum", + "methods": {}, + "properties": { + "LIVENESS": "LIVENESS", + "STARTUP": "STARTUP", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SessionRegistryCredentials": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "server": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "username": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "password_secret_ref": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "server": "Optional", + "username": "Optional", + "password_secret_ref": "Optional", + "identity": "Optional" + } + }, + "SmbStorage": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "host": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "share_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "username": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "domain": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "password": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "access_mode": { + "type": "Optional[Union[str, _models.AccessMode]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "host": "Optional", + "share_name": "Optional", + "username": "Optional", + "domain": "Optional", + "password": "Optional", + "access_mode": "Optional" + } + }, + "SourceControl": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.SourceControlProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "SourceControlOperationState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "FAILED": "FAILED", + "IN_PROGRESS": "IN_PROGRESS", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SourceControlProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "repo_url": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "branch": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "github_action_configuration": { + "type": "Optional[_models.GithubActionConfiguration]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "operation_state": "Optional", + "repo_url": "Optional", + "branch": "Optional", + "github_action_configuration": "Optional" + } + }, + "SpringBootAdminComponent": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "configurations": { + "type": "Optional[list[_models.JavaComponentConfigurationProperty]]", + "default": null, + "param_type": "keyword_only" + }, + "scale": { + "type": "Optional[_models.JavaComponentPropertiesScale]", + "default": null, + "param_type": "keyword_only" + }, + "service_binds": { + "type": "Optional[list[_models.JavaComponentServiceBind]]", + "default": null, + "param_type": "keyword_only" + }, + "ingress": { + "type": "Optional[_models.JavaComponentIngress]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "component_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "configurations": { + "type": "Optional[list[_models.JavaComponentConfigurationProperty]]", + "default": null, + "param_type": "keyword_only" + }, + "scale": { + "type": "Optional[_models.JavaComponentPropertiesScale]", + "default": null, + "param_type": "keyword_only" + }, + "service_binds": { + "type": "Optional[list[_models.JavaComponentServiceBind]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "ingress": "Optional", + "component_type": null, + "provisioning_state": "Optional", + "configurations": "Optional", + "scale": "Optional", + "service_binds": "Optional" + } + }, + "SpringCloudConfigComponent": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "configurations": { + "type": "Optional[list[_models.JavaComponentConfigurationProperty]]", + "default": null, + "param_type": "keyword_only" + }, + "scale": { + "type": "Optional[_models.JavaComponentPropertiesScale]", + "default": null, + "param_type": "keyword_only" + }, + "service_binds": { + "type": "Optional[list[_models.JavaComponentServiceBind]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "component_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "configurations": { + "type": "Optional[list[_models.JavaComponentConfigurationProperty]]", + "default": null, + "param_type": "keyword_only" + }, + "scale": { + "type": "Optional[_models.JavaComponentPropertiesScale]", + "default": null, + "param_type": "keyword_only" + }, + "service_binds": { + "type": "Optional[list[_models.JavaComponentServiceBind]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "component_type": null, + "provisioning_state": "Optional", + "configurations": "Optional", + "scale": "Optional", + "service_binds": "Optional" + } + }, + "SpringCloudEurekaComponent": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "configurations": { + "type": "Optional[list[_models.JavaComponentConfigurationProperty]]", + "default": null, + "param_type": "keyword_only" + }, + "scale": { + "type": "Optional[_models.JavaComponentPropertiesScale]", + "default": null, + "param_type": "keyword_only" + }, + "service_binds": { + "type": "Optional[list[_models.JavaComponentServiceBind]]", + "default": null, + "param_type": "keyword_only" + }, + "ingress": { + "type": "Optional[_models.JavaComponentIngress]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "component_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "configurations": { + "type": "Optional[list[_models.JavaComponentConfigurationProperty]]", + "default": null, + "param_type": "keyword_only" + }, + "scale": { + "type": "Optional[_models.JavaComponentPropertiesScale]", + "default": null, + "param_type": "keyword_only" + }, + "service_binds": { + "type": "Optional[list[_models.JavaComponentServiceBind]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "ingress": "Optional", + "component_type": null, + "provisioning_state": "Optional", + "configurations": "Optional", + "scale": "Optional", + "service_binds": "Optional" + } + }, + "SpringCloudGatewayComponent": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "configurations": { + "type": "Optional[list[_models.JavaComponentConfigurationProperty]]", + "default": null, + "param_type": "keyword_only" + }, + "scale": { + "type": "Optional[_models.JavaComponentPropertiesScale]", + "default": null, + "param_type": "keyword_only" + }, + "service_binds": { + "type": "Optional[list[_models.JavaComponentServiceBind]]", + "default": null, + "param_type": "keyword_only" + }, + "ingress": { + "type": "Optional[_models.JavaComponentIngress]", + "default": null, + "param_type": "keyword_only" + }, + "spring_cloud_gateway_routes": { + "type": "Optional[list[_models.ScgRoute]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "component_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "configurations": { + "type": "Optional[list[_models.JavaComponentConfigurationProperty]]", + "default": null, + "param_type": "keyword_only" + }, + "scale": { + "type": "Optional[_models.JavaComponentPropertiesScale]", + "default": null, + "param_type": "keyword_only" + }, + "service_binds": { + "type": "Optional[list[_models.JavaComponentServiceBind]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "ingress": "Optional", + "spring_cloud_gateway_routes": "Optional", + "component_type": null, + "provisioning_state": "Optional", + "configurations": "Optional", + "scale": "Optional", + "service_binds": "Optional" + } + }, + "Status": { + "type": "Enum", + "methods": {}, + "properties": { + "FAILED": "FAILED", + "STARTING": "STARTING", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "StorageType": { + "type": "Enum", + "methods": {}, + "properties": { + "AZURE_FILE": "AZURE_FILE", + "EMPTY_DIR": "EMPTY_DIR", + "NFS_AZURE_FILE": "NFS_AZURE_FILE", + "SECRET": "SECRET", + "SMB": "SMB", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SystemData": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "created_by": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "created_by_type": { + "type": "Optional[Union[str, _models.CreatedByType]]", + "default": null, + "param_type": "keyword_only" + }, + "created_at": { + "type": "Optional[datetime]", + "default": null, + "param_type": "keyword_only" + }, + "last_modified_by": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "last_modified_by_type": { + "type": "Optional[Union[str, _models.CreatedByType]]", + "default": null, + "param_type": "keyword_only" + }, + "last_modified_at": { + "type": "Optional[datetime]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "created_by": "Optional", + "created_by_type": "Optional", + "created_at": "Optional", + "last_modified_by": "Optional", + "last_modified_by_type": "Optional", + "last_modified_at": "Optional" + } + }, + "TcpConnectionPool": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "max_connections": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "max_connections": "Optional" + } + }, + "TcpRetryPolicy": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "max_connect_attempts": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "max_connect_attempts": "Optional" + } + }, + "TcpScaleRule": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "metadata": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "auth": { + "type": "Optional[list[_models.ScaleRuleAuth]]", + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "metadata": "Optional", + "auth": "Optional", + "identity": "Optional" + } + }, + "Template": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_suffix": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "termination_grace_period_seconds": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "init_containers": { + "type": "Optional[list[_models.InitContainer]]", + "default": null, + "param_type": "keyword_only" + }, + "containers": { + "type": "Optional[list[_models.Container]]", + "default": null, + "param_type": "keyword_only" + }, + "scale": { + "type": "Optional[_models.Scale]", + "default": null, + "param_type": "keyword_only" + }, + "volumes": { + "type": "Optional[list[_models.Volume]]", + "default": null, + "param_type": "keyword_only" + }, + "service_binds": { + "type": "Optional[list[_models.ServiceBind]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "revision_suffix": "Optional", + "termination_grace_period_seconds": "Optional", + "init_containers": "Optional", + "containers": "Optional", + "scale": "Optional", + "volumes": "Optional", + "service_binds": "Optional" + } + }, + "TemplatePoolStatus": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "expected_count": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "ready_count": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "pending_count": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "image_pull_fail_count": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "crash_count": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "allocated_count": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "expected_count": "Optional", + "ready_count": "Optional", + "pending_count": "Optional", + "image_pull_fail_count": "Optional", + "crash_count": "Optional", + "allocated_count": "Optional" + } + }, + "TemplateStatus": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "details": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "created_time": { + "type": "Optional[datetime]", + "default": null, + "param_type": "keyword_only" + }, + "status": { + "type": "Optional[_models.TemplatePoolStatus]", + "default": null, + "param_type": "keyword_only" + }, + "containers": { + "type": "Optional[list[_models.SessionContainer]]", + "default": null, + "param_type": "keyword_only" + }, + "ingress": { + "type": "Optional[_models.SessionIngress]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "details": "Optional", + "created_time": "Optional", + "status": "Optional", + "containers": "Optional", + "ingress": "Optional" + } + }, + "TemplateUpdateStatus": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "active_template": { + "type": "Optional[_models.TemplateStatus]", + "default": null, + "param_type": "keyword_only" + }, + "desired_template": { + "type": "Optional[_models.TemplateStatus]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "active_template": "Optional", + "desired_template": "Optional" + } + }, + "TimeoutPolicy": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "response_timeout_in_seconds": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "connection_timeout_in_seconds": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "response_timeout_in_seconds": "Optional", + "connection_timeout_in_seconds": "Optional" + } + }, + "TokenStore": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "enabled": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "token_refresh_extension_hours": { + "type": "Optional[float]", + "default": null, + "param_type": "keyword_only" + }, + "azure_blob_storage": { + "type": "Optional[_models.BlobStorageTokenStore]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enabled": "Optional", + "token_refresh_extension_hours": "Optional", + "azure_blob_storage": "Optional" + } + }, + "TracesConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "include_dapr": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "destinations": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "include_dapr": "Optional", + "destinations": "Optional" + } + }, + "TrackedResource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "tags": "Optional", + "location": null, + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "TrafficWeight": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "weight": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "latest_revision": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "label": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "revision_name": "Optional", + "weight": "Optional", + "latest_revision": "Optional", + "label": "Optional" + } + }, + "TriggerType": { + "type": "Enum", + "methods": {}, + "properties": { + "EVENT": "EVENT", + "MANUAL": "MANUAL", + "SCHEDULE": "SCHEDULE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "Twitter": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "enabled": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "registration": { + "type": "Optional[_models.TwitterRegistration]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enabled": "Optional", + "registration": "Optional" + } + }, + "TwitterRegistration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "consumer_key": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "consumer_secret_setting_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "consumer_key": "Optional", + "consumer_secret_setting_name": "Optional" + } + }, + "Type": { + "type": "Enum", + "methods": {}, + "properties": { + "LIVENESS": "LIVENESS", + "READINESS": "READINESS", + "STARTUP": "STARTUP", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "UnauthenticatedClientActionV2": { + "type": "Enum", + "methods": {}, + "properties": { + "ALLOW_ANONYMOUS": "ALLOW_ANONYMOUS", + "REDIRECT_TO_LOGIN_PAGE": "REDIRECT_TO_LOGIN_PAGE", + "RETURN401": "RETURN401", + "RETURN403": "RETURN403", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "Usage": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "current_value": { + "type": "float", + "default": null, + "param_type": "keyword_only" + }, + "limit": { + "type": "float", + "default": null, + "param_type": "keyword_only" + }, + "name": { + "type": "_models.UsageName", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "unit": "Literal", + "current_value": null, + "limit": null, + "name": null + } + }, + "UsageName": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "localized_value": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": "Optional", + "localized_value": "Optional" + } + }, + "UserAssignedIdentity": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "principal_id": "Optional", + "client_id": "Optional" + } + }, + "VnetConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "internal": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "infrastructure_subnet_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "docker_bridge_cidr": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "platform_reserved_cidr": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "platform_reserved_dns_ip": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "internal": "Optional", + "infrastructure_subnet_id": "Optional", + "docker_bridge_cidr": "Optional", + "platform_reserved_cidr": "Optional", + "platform_reserved_dns_ip": "Optional" + } + }, + "Volume": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "storage_type": { + "type": "Optional[Union[str, _models.StorageType]]", + "default": null, + "param_type": "keyword_only" + }, + "storage_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "secrets": { + "type": "Optional[list[_models.SecretVolumeItem]]", + "default": null, + "param_type": "keyword_only" + }, + "mount_options": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "storage_type": "Optional", + "storage_name": "Optional", + "secrets": "Optional", + "mount_options": "Optional" + } + }, + "VolumeMount": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "volume_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "mount_path": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "sub_path": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "volume_name": "Optional", + "mount_path": "Optional", + "sub_path": "Optional" + } + }, + "WeekDay": { + "type": "Enum", + "methods": {}, + "properties": { + "FRIDAY": "FRIDAY", + "MONDAY": "MONDAY", + "SATURDAY": "SATURDAY", + "SUNDAY": "SUNDAY", + "THURSDAY": "THURSDAY", + "TUESDAY": "TUESDAY", + "WEDNESDAY": "WEDNESDAY", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "WorkflowArtifacts": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "app_settings": { + "type": "Optional[Any]", + "default": null, + "param_type": "keyword_only" + }, + "files": { + "type": "Optional[Any]", + "default": null, + "param_type": "keyword_only" + }, + "files_to_delete": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "app_settings": "Optional", + "files": "Optional", + "files_to_delete": "Optional" + } + }, + "WorkflowEnvelope": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.WorkflowEnvelopeProperties]", + "default": null, + "param_type": "keyword_only" + }, + "kind": { + "type": "Optional[Union[str, _models.WorkflowKind]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "kind": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "WorkflowEnvelopeProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "files": { + "type": "Optional[Any]", + "default": null, + "param_type": "keyword_only" + }, + "flow_state": { + "type": "Optional[Union[str, _models.WorkflowState]]", + "default": null, + "param_type": "keyword_only" + }, + "health": { + "type": "Optional[_models.WorkflowHealth]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "files": "Optional", + "flow_state": "Optional", + "health": "Optional" + } + }, + "WorkflowHealth": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "state": { + "type": "Union[str, _models.WorkflowHealthState]", + "default": null, + "param_type": "keyword_only" + }, + "error": { + "type": "Optional[_models.ErrorEntity]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "state": "Union", + "error": "Optional" + } + }, + "WorkflowHealthState": { + "type": "Enum", + "methods": {}, + "properties": { + "HEALTHY": "HEALTHY", + "NOT_SPECIFIED": "NOT_SPECIFIED", + "UNHEALTHY": "UNHEALTHY", + "UNKNOWN": "UNKNOWN", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "WorkflowKind": { + "type": "Enum", + "methods": {}, + "properties": { + "AGENTIC": "AGENTIC", + "STATEFUL": "STATEFUL", + "STATELESS": "STATELESS", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "WorkflowState": { + "type": "Enum", + "methods": {}, + "properties": { + "COMPLETED": "COMPLETED", + "DELETED": "DELETED", + "DISABLED": "DISABLED", + "ENABLED": "ENABLED", + "NOT_SPECIFIED": "NOT_SPECIFIED", + "SUSPENDED": "SUSPENDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "WorkloadProfile": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "workload_profile_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "enable_fips": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "minimum_count": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "maximum_count": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": null, + "enable_fips": "Optional", + "workload_profile_type": null, + "minimum_count": "Optional", + "maximum_count": "Optional" + } + }, + "WorkloadProfileStates": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.WorkloadProfileStatesProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "WorkloadProfileStatesProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "minimum_count": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "maximum_count": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "current_count": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "minimum_count": "Optional", + "maximum_count": "Optional", + "current_count": "Optional" + } + } + }, + "function_nodes": {} + }, + "azure.mgmt.appcontainers.aio": { + "class_nodes": { + "ContainerAppsAPIClient": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "credential": { + "default": null, + "param_type": "positional_or_keyword" + }, + "subscription_id": { + "default": null, + "param_type": "positional_or_keyword" + }, + "base_url": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "cloud_setting": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "close": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get_custom_domain_verification_id": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "job_execution": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_execution_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "send_request": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "request": { + "default": null, + "param_type": "positional_or_keyword" + }, + "stream": { + "default": "bool", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "client_side_validation": { + "attr_type": false + }, + "operations": { + "attr_type": "Operations" + }, + "container_apps_session_pools": { + "attr_type": "ContainerAppsSessionPoolsOperations" + }, + "container_apps_source_controls": { + "attr_type": "ContainerAppsSourceControlsOperations" + }, + "container_apps": { + "attr_type": "ContainerAppsOperations" + }, + "container_apps_builds": { + "attr_type": "ContainerAppsBuildsOperations" + }, + "container_apps_functions": { + "attr_type": "ContainerAppsFunctionsOperations" + }, + "container_apps_revisions": { + "attr_type": "ContainerAppsRevisionsOperations" + }, + "functions_extension": { + "attr_type": "FunctionsExtensionOperations" + }, + "container_apps_label_history": { + "attr_type": "ContainerAppsLabelHistoryOperations" + }, + "container_apps_patches": { + "attr_type": "ContainerAppsPatchesOperations" + }, + "container_apps_revision_replicas": { + "attr_type": "ContainerAppsRevisionReplicasOperations" + }, + "dot_net_components": { + "attr_type": "DotNetComponentsOperations" + }, + "java_components": { + "attr_type": "JavaComponentsOperations" + }, + "logic_apps": { + "attr_type": "LogicAppsOperations" + }, + "container_apps_auth_configs": { + "attr_type": "ContainerAppsAuthConfigsOperations" + }, + "builders": { + "attr_type": "BuildersOperations" + }, + "builds": { + "attr_type": "BuildsOperations" + }, + "connected_environments": { + "attr_type": "ConnectedEnvironmentsOperations" + }, + "certificates": { + "attr_type": "CertificatesOperations" + }, + "connected_environments_dapr_components": { + "attr_type": "ConnectedEnvironmentsDaprComponentsOperations" + }, + "dapr_components": { + "attr_type": "DaprComponentsOperations" + }, + "connected_environments_storages": { + "attr_type": "ConnectedEnvironmentsStoragesOperations" + }, + "managed_environments": { + "attr_type": "ManagedEnvironmentsOperations" + }, + "managed_certificates": { + "attr_type": "ManagedCertificatesOperations" + }, + "dapr_component_resiliency_policies": { + "attr_type": "DaprComponentResiliencyPoliciesOperations" + }, + "dapr_subscriptions": { + "attr_type": "DaprSubscriptionsOperations" + }, + "maintenance_configurations": { + "attr_type": "MaintenanceConfigurationsOperations" + }, + "managed_environments_storages": { + "attr_type": "ManagedEnvironmentsStoragesOperations" + }, + "jobs": { + "attr_type": "JobsOperations" + }, + "container_apps_diagnostics": { + "attr_type": "ContainerAppsDiagnosticsOperations" + }, + "managed_environments_diagnostics": { + "attr_type": "ManagedEnvironmentsDiagnosticsOperations" + }, + "container_apps_builds_by_container_app": { + "attr_type": "ContainerAppsBuildsByContainerAppOperations" + }, + "container_apps_revision_functions": { + "attr_type": "ContainerAppsRevisionFunctionsOperations" + }, + "app_resiliency": { + "attr_type": "AppResiliencyOperations" + }, + "builds_by_builder_resource": { + "attr_type": "BuildsByBuilderResourceOperations" + }, + "build_auth_token": { + "attr_type": "BuildAuthTokenOperations" + }, + "connected_environments_certificates": { + "attr_type": "ConnectedEnvironmentsCertificatesOperations" + }, + "namespaces": { + "attr_type": "NamespacesOperations" + }, + "managed_environment_private_link_resources": { + "attr_type": "ManagedEnvironmentPrivateLinkResourcesOperations" + }, + "managed_environment_private_endpoint_connections": { + "attr_type": "ManagedEnvironmentPrivateEndpointConnectionsOperations" + }, + "http_route_config": { + "attr_type": "HttpRouteConfigOperations" + }, + "jobs_executions": { + "attr_type": "JobsExecutionsOperations" + }, + "managed_environment_diagnostics": { + "attr_type": "ManagedEnvironmentDiagnosticsOperations" + }, + "available_workload_profiles": { + "attr_type": "AvailableWorkloadProfilesOperations" + }, + "billing_meters": { + "attr_type": "BillingMetersOperations" + }, + "usages": { + "attr_type": "UsagesOperations" + }, + "managed_environment_usages": { + "attr_type": "ManagedEnvironmentUsagesOperations" + } + } + } + }, + "function_nodes": {} + }, + "azure.mgmt.appcontainers.aio.operations": { + "class_nodes": { + "AppResiliencyOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resiliency_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resiliency_envelope": { + "type": "AppResiliency", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resiliency_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resiliency_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resiliency_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resiliency_envelope": { + "type": "AppResiliency", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resiliency_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resiliency_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "AvailableWorkloadProfilesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "BillingMetersOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "BuildAuthTokenOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "build_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "BuildersOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_envelope": { + "type": "BuilderResource", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_envelope": { + "type": "BuilderResourceUpdate", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "BuildsByBuilderResourceOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "BuildsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "build_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "build_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "build_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "build_envelope": { + "type": "BuildResource", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "build_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "build_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "build_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "build_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "build_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "build_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "CertificatesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "Optional[Certificate]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "Optional[JSON]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "Optional[IO[bytes]]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "CertificatePatch", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "ConnectedEnvironmentsCertificatesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "Optional[Certificate]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "Optional[JSON]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "Optional[IO[bytes]]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "CertificatePatch", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ConnectedEnvironmentsDaprComponentsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_envelope": { + "type": "DaprComponent", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_secrets": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "ConnectedEnvironmentsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "ConnectedEnvironment", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "check_name_availability": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "check_name_availability_request": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "check_name_availability_request": { + "type": "CheckNameAvailabilityRequest", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "check_name_availability_request": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "check_name_availability_request": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "Optional[ConnectedEnvironmentPatchResource]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "Optional[JSON]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "Optional[IO[bytes]]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "ConnectedEnvironmentsStoragesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_envelope": { + "type": "ConnectedEnvironmentStorage", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsAuthConfigsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_envelope": { + "type": "AuthConfig", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_by_container_app": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsBuildsByContainerAppOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsBuildsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "build_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "build_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsDiagnosticsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_detector": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "detector_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get_revision": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get_root": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_detectors": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_revisions": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "filter": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsFunctionsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "function_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsLabelHistoryOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "delete_label_history": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "label_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get_label_history": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "label_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_label_history": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "filter": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_envelope": { + "type": "ContainerApp", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_start": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_stop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_envelope": { + "type": "ContainerApp", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get_auth_token": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_custom_host_name_analysis": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "custom_hostname": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_secrets": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsPatchesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_apply": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "patch_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "patch_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_skip_configure": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "patch_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "patch_skip_config": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "patch_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "patch_skip_config": { + "type": "PatchSkipConfig", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "patch_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "patch_skip_config": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "patch_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "patch_skip_config": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "patch_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_by_container_app": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "filter": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsRevisionFunctionsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "function_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsRevisionReplicasOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_replica": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "replica_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_replicas": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsRevisionsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "activate_revision": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "deactivate_revision": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get_revision": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_revisions": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "filter": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "restart_revision": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsSessionPoolsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_envelope": { + "type": "SessionPool", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_envelope": { + "type": "SessionPoolUpdatableProperties", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "fetch_mcp_server_credentials": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "rotate_mcp_server_credentials": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsSourceControlsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "x_ms_github_auxiliary": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_envelope": { + "type": "SourceControl", + "default": null, + "param_type": "positional_or_keyword" + }, + "x_ms_github_auxiliary": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "x_ms_github_auxiliary": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "x_ms_github_auxiliary": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "x_ms_github_auxiliary": { + "default": "none", + "param_type": "keyword_only" + }, + "ignore_workflow_deletion_failure": { + "default": "none", + "param_type": "keyword_only" + }, + "delete_workflow": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_by_container_app": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "DaprComponentResiliencyPoliciesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_resiliency_policy_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_resiliency_policy_envelope": { + "type": "DaprComponentResiliencyPolicy", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_resiliency_policy_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_resiliency_policy_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "DaprComponentsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_envelope": { + "type": "DaprComponent", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_secrets": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "DaprSubscriptionsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_subscription_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_subscription_envelope": { + "type": "DaprSubscription", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_subscription_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_subscription_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "DotNetComponentsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "dot_net_component_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dot_net_component_envelope": { + "type": "DotNetComponent", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dot_net_component_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dot_net_component_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "dot_net_component_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dot_net_component_envelope": { + "type": "DotNetComponent", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dot_net_component_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dot_net_component_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "FunctionsExtensionOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "invoke_functions_host": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "function_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "HttpRouteConfigOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_config_envelope": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_config_envelope": { + "type": "Optional[HttpRouteConfig]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_config_envelope": { + "type": "Optional[JSON]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_config_envelope": { + "type": "Optional[IO[bytes]]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_config_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_config_envelope": { + "type": "HttpRouteConfig", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_config_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_config_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "JavaComponentsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "java_component_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "java_component_envelope": { + "type": "JavaComponent", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "java_component_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "java_component_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "java_component_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "java_component_envelope": { + "type": "JavaComponent", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "java_component_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "java_component_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "JobsExecutionsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "filter": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "JobsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_envelope": { + "type": "Job", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_resume": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_start": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "template": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "template": { + "type": "Optional[JobExecutionTemplate]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "template": { + "type": "Optional[JSON]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "template": { + "type": "Optional[IO[bytes]]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_stop_execution": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_execution_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_stop_multiple_executions": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_suspend": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_envelope": { + "type": "JobPatchProperties", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get_detector": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "detector_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_detectors": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_secrets": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "proxy_get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "api_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "LogicAppsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "type": "LogicApp", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "deploy_workflow_artifacts": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "workflow_artifacts": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "workflow_artifacts": { + "type": "Optional[WorkflowArtifacts]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "workflow_artifacts": { + "type": "Optional[JSON]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "workflow_artifacts": { + "type": "Optional[IO[bytes]]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get_workflow": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "workflow_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "invoke": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "x_ms_logic_apps_proxy_path": { + "default": null, + "param_type": "keyword_only" + }, + "x_ms_logic_apps_proxy_method": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_workflows": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_workflows_connections": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "MaintenanceConfigurationsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "config_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "maintenance_configuration_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "config_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "maintenance_configuration_envelope": { + "type": "MaintenanceConfigurationResource", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "config_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "maintenance_configuration_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "config_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "maintenance_configuration_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "config_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "config_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ManagedCertificatesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_envelope": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_envelope": { + "type": "Optional[ManagedCertificate]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_envelope": { + "type": "Optional[JSON]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_envelope": { + "type": "Optional[IO[bytes]]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_envelope": { + "type": "ManagedCertificatePatch", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "ManagedEnvironmentDiagnosticsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_detector": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "detector_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_detectors": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "ManagedEnvironmentPrivateEndpointConnectionsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_envelope": { + "type": "PrivateEndpointConnection", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ManagedEnvironmentPrivateLinkResourcesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ManagedEnvironmentUsagesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ManagedEnvironmentsDiagnosticsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_root": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "ManagedEnvironmentsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "ManagedEnvironment", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "ManagedEnvironment", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get_auth_token": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_workload_profile_states": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ManagedEnvironmentsStoragesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_envelope": { + "type": "ManagedEnvironmentStorage", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_envelope": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "NamespacesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "check_name_availability": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "check_name_availability_request": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "check_name_availability_request": { + "type": "CheckNameAvailabilityRequest", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "check_name_availability_request": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "check_name_availability_request": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "Operations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "UsagesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + } + }, + "function_nodes": {} + } +} \ No newline at end of file diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/app_resiliency_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/app_resiliency_create_or_update.py new file mode 100644 index 000000000000..9b078c86852d --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/app_resiliency_create_or_update.py @@ -0,0 +1,61 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python app_resiliency_create_or_update.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.app_resiliency.create_or_update( + resource_group_name="rg", + app_name="testcontainerApp0", + name="resiliency-policy-1", + resiliency_envelope={ + "properties": { + "circuitBreakerPolicy": {"consecutiveErrors": 5, "intervalInSeconds": 10, "maxEjectionPercent": 50}, + "httpConnectionPool": {"http1MaxPendingRequests": 1024, "http2MaxRequests": 1024}, + "httpRetryPolicy": { + "matches": { + "errors": ["5xx", "connect-failure", "reset", "retriable-headers", "retriable-status-codes"], + "headers": [{"header": "X-Content-Type", "match": {"prefixMatch": "GOATS"}}], + "httpStatusCodes": [502, 503], + }, + "maxRetries": 5, + "retryBackOff": {"initialDelayInMilliseconds": 1000, "maxIntervalInMilliseconds": 10000}, + }, + "tcpConnectionPool": {"maxConnections": 100}, + "tcpRetryPolicy": {"maxConnectAttempts": 3}, + "timeoutPolicy": {"connectionTimeoutInSeconds": 5, "responseTimeoutInSeconds": 15}, + } + }, + ) + print(response) + + +# x-ms-original-file: 2025-10-02-preview/AppResiliency_CreateOrUpdate.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/app_resiliency_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/app_resiliency_delete.py new file mode 100644 index 000000000000..e6ad02596c47 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/app_resiliency_delete.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python app_resiliency_delete.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + client.app_resiliency.delete( + resource_group_name="rg", + app_name="testcontainerApp0", + name="resiliency-policy-1", + ) + + +# x-ms-original-file: 2025-10-02-preview/AppResiliency_Delete.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/app_resiliency_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/app_resiliency_get.py new file mode 100644 index 000000000000..4c6f3e79e6c8 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/app_resiliency_get.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python app_resiliency_get.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.app_resiliency.get( + resource_group_name="rg", + app_name="testcontainerApp0", + name="resiliency-policy-1", + ) + print(response) + + +# x-ms-original-file: 2025-10-02-preview/AppResiliency_Get.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/app_resiliency_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/app_resiliency_list.py new file mode 100644 index 000000000000..d1f199cb1af1 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/app_resiliency_list.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python app_resiliency_list.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.app_resiliency.list( + resource_group_name="rg", + app_name="testcontainerApp0", + ) + for item in response: + print(item) + + +# x-ms-original-file: 2025-10-02-preview/AppResiliency_List.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/app_resiliency_patch.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/app_resiliency_patch.py new file mode 100644 index 000000000000..f7931734c5f6 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/app_resiliency_patch.py @@ -0,0 +1,46 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python app_resiliency_patch.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.app_resiliency.update( + resource_group_name="rg", + app_name="testcontainerApp0", + name="resiliency-policy-1", + resiliency_envelope={ + "properties": {"timeoutPolicy": {"connectionTimeoutInSeconds": 40, "responseTimeoutInSeconds": 30}} + }, + ) + print(response) + + +# x-ms-original-file: 2025-10-02-preview/AppResiliency_Patch.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_blob_storage_token_store_client_id_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_blob_storage_token_store_client_id_create_or_update.py new file mode 100644 index 000000000000..381e0c57c2e1 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_blob_storage_token_store_client_id_create_or_update.py @@ -0,0 +1,64 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python auth_configs_blob_storage_token_store_client_id_create_or_update.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.container_apps_auth_configs.create_or_update( + resource_group_name="rg1", + container_app_name="myapp", + auth_config_name="current", + auth_config_envelope={ + "properties": { + "encryptionSettings": { + "containerAppAuthEncryptionSecretName": "testEncryptionSecretName", + "containerAppAuthSigningSecretName": "testSigningSecretName", + }, + "globalValidation": {"unauthenticatedClientAction": "AllowAnonymous"}, + "identityProviders": { + "facebook": {"registration": {"appId": "123", "appSecretSettingName": "facebook-secret"}} + }, + "login": { + "tokenStore": { + "azureBlobStorage": { + "blobContainerUri": "https://test.blob.core.windows.net/container1", + "clientId": "00000000-0000-0000-0000-000000000000", + } + } + }, + "platform": {"enabled": True}, + } + }, + ) + print(response) + + +# x-ms-original-file: 2025-10-02-preview/AuthConfigs_BlobStorageTokenStore_ClientId_CreateOrUpdate.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_blob_storage_token_store_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_blob_storage_token_store_create_or_update.py new file mode 100644 index 000000000000..67c06e3bc8c3 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_blob_storage_token_store_create_or_update.py @@ -0,0 +1,65 @@ +# pylint: disable=line-too-long,useless-suppression +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python auth_configs_blob_storage_token_store_create_or_update.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.container_apps_auth_configs.create_or_update( + resource_group_name="rg1", + container_app_name="myapp", + auth_config_name="current", + auth_config_envelope={ + "properties": { + "encryptionSettings": { + "containerAppAuthEncryptionSecretName": "testEncryptionSecretName", + "containerAppAuthSigningSecretName": "testSigningSecretName", + }, + "globalValidation": {"unauthenticatedClientAction": "AllowAnonymous"}, + "identityProviders": { + "facebook": {"registration": {"appId": "123", "appSecretSettingName": "facebook-secret"}} + }, + "login": { + "tokenStore": { + "azureBlobStorage": { + "blobContainerUri": "https://test.blob.core.windows.net/container1", + "managedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + } + } + }, + "platform": {"enabled": True}, + } + }, + ) + print(response) + + +# x-ms-original-file: 2025-10-02-preview/AuthConfigs_BlobStorageTokenStore_CreateOrUpdate.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_create_or_update.py index 20023b03f7ca..5893b21c3cf1 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_create_or_update.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="651f8027-33e8-4ec4-97b4-f6e9f3dc8744", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_apps_auth_configs.create_or_update( @@ -52,6 +51,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/AuthConfigs_CreateOrUpdate.json +# x-ms-original-file: 2025-10-02-preview/AuthConfigs_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_delete.py index 0a0a7262544b..2d0a3a884e84 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="651f8027-33e8-4ec4-97b4-f6e9f3dc8744", + subscription_id="SUBSCRIPTION_ID", ) client.container_apps_auth_configs.delete( @@ -38,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/AuthConfigs_Delete.json +# x-ms-original-file: 2025-10-02-preview/AuthConfigs_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_get.py index 7e094b36fe79..858425f4f7ec 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="651f8027-33e8-4ec4-97b4-f6e9f3dc8744", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_apps_auth_configs.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/AuthConfigs_Get.json +# x-ms-original-file: 2025-10-02-preview/AuthConfigs_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_list_by_container.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_list_by_container.py index 87f614e20866..9bf098024847 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_list_by_container.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/auth_configs_list_by_container.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="651f8027-33e8-4ec4-97b4-f6e9f3dc8744", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_apps_auth_configs.list_by_container_app( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/AuthConfigs_ListByContainer.json +# x-ms-original-file: 2025-10-02-preview/AuthConfigs_ListByContainer.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/available_workload_profiles_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/available_workload_profiles_get.py index eba82513b476..2fdc6f3d1cf8 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/available_workload_profiles_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/available_workload_profiles_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.available_workload_profiles.get( @@ -38,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/AvailableWorkloadProfiles_Get.json +# x-ms-original-file: 2025-10-02-preview/AvailableWorkloadProfiles_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/billing_meters_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/billing_meters_get.py index b9e7fc3a0e1c..3f88406c793e 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/billing_meters_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/billing_meters_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.billing_meters.get( @@ -37,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/BillingMeters_Get.json +# x-ms-original-file: 2025-10-02-preview/BillingMeters_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builders_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builders_create_or_update.py new file mode 100644 index 000000000000..4e44caf92f29 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builders_create_or_update.py @@ -0,0 +1,66 @@ +# pylint: disable=line-too-long,useless-suppression +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python builders_create_or_update.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.builders.begin_create_or_update( + resource_group_name="rg", + builder_name="testBuilder", + builder_envelope={ + "identity": { + "type": "SystemAssigned,UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {} + }, + }, + "location": "eastus", + "properties": { + "containerRegistries": [ + { + "containerRegistryServer": "test.azurecr.io", + "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + }, + { + "containerRegistryServer": "test2.azurecr.io", + "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + }, + ], + "environmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv", + }, + "tags": {"company": "Microsoft"}, + }, + ).result() + print(response) + + +# x-ms-original-file: 2025-10-02-preview/Builders_CreateOrUpdate.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builders_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builders_delete.py new file mode 100644 index 000000000000..3ff803cc68c2 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builders_delete.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python builders_delete.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + client.builders.begin_delete( + resource_group_name="rg", + builder_name="testBuilder", + ).result() + + +# x-ms-original-file: 2025-10-02-preview/Builders_Delete.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builders_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builders_get.py new file mode 100644 index 000000000000..0326dd7d2b45 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builders_get.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python builders_get.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.builders.get( + resource_group_name="rg", + builder_name="testBuilder", + ) + print(response) + + +# x-ms-original-file: 2025-10-02-preview/Builders_Get.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builders_list_by_resource_group.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builders_list_by_resource_group.py new file mode 100644 index 000000000000..e8b5e8978583 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builders_list_by_resource_group.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python builders_list_by_resource_group.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.builders.list_by_resource_group( + resource_group_name="rg", + ) + for item in response: + print(item) + + +# x-ms-original-file: 2025-10-02-preview/Builders_ListByResourceGroup.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builders_list_by_subscription.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builders_list_by_subscription.py new file mode 100644 index 000000000000..9d0520b9769b --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builders_list_by_subscription.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python builders_list_by_subscription.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.builders.list_by_subscription() + for item in response: + print(item) + + +# x-ms-original-file: 2025-10-02-preview/Builders_ListBySubscription.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builders_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builders_update.py new file mode 100644 index 000000000000..66c526b38146 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builders_update.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python builders_update.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.builders.begin_update( + resource_group_name="rg", + builder_name="testBuilder", + builder_envelope={"tags": {"mytag1": "myvalue1"}}, + ).result() + print(response) + + +# x-ms-original-file: 2025-10-02-preview/Builders_Update.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builds_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builds_create_or_update.py new file mode 100644 index 000000000000..93ecaf15d055 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builds_create_or_update.py @@ -0,0 +1,70 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python builds_create_or_update.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.builds.begin_create_or_update( + resource_group_name="rg", + builder_name="testBuilder", + build_name="testBuild-123456789az", + build_envelope={ + "properties": { + "configuration": { + "baseOs": "DebianBullseye", + "environmentVariables": [{"name": "foo1", "value": "bar1"}, {"name": "foo2", "value": "bar2"}], + "platform": "dotnetcore", + "platformVersion": "7.0", + "preBuildSteps": [ + { + "description": "First pre build step.", + "httpGet": { + "fileName": "output.txt", + "headers": ["foo", "bar"], + "url": "https://microsoft.com", + }, + "scripts": ["echo 'hello'", "echo 'world'"], + }, + { + "description": "Second pre build step.", + "httpGet": {"fileName": "output.txt", "headers": ["foo"], "url": "https://microsoft.com"}, + "scripts": ["echo 'hello'", "echo 'again'"], + }, + ], + }, + "destinationContainerRegistry": {"image": "test.azurecr.io/repo:tag", "server": "test.azurecr.io"}, + } + }, + ).result() + print(response) + + +# x-ms-original-file: 2025-10-02-preview/Builds_CreateOrUpdate.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builds_create_or_update_no_config.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builds_create_or_update_no_config.py new file mode 100644 index 000000000000..4a73f6cd3f4e --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builds_create_or_update_no_config.py @@ -0,0 +1,77 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python builds_create_or_update_no_config.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.builds.begin_create_or_update( + resource_group_name="rg", + builder_name="testBuilder", + build_name="testBuild", + build_envelope={ + "id": "str", + "name": "str", + "properties": { + "buildStatus": "str", + "configuration": { + "baseOs": "str", + "environmentVariables": [{"name": "str", "value": "str"}], + "platform": "str", + "platformVersion": "str", + "preBuildSteps": [ + { + "description": "str", + "httpGet": {"url": "str", "fileName": "str", "headers": ["str"]}, + "scripts": ["str"], + } + ], + }, + "destinationContainerRegistry": {"server": "str", "image": "str"}, + "logStreamEndpoint": "str", + "provisioningState": "str", + "tokenEndpoint": "str", + "uploadEndpoint": "str", + }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "type": "str", + }, + ).result() + print(response) + + +# x-ms-original-file: 2025-10-02-preview/Builds_CreateOrUpdate_NoConfig.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builds_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builds_delete.py new file mode 100644 index 000000000000..28dd91d9a012 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builds_delete.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python builds_delete.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + client.builds.begin_delete( + resource_group_name="rg", + builder_name="testBuilder", + build_name="testBuild", + ).result() + + +# x-ms-original-file: 2025-10-02-preview/Builds_Delete.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builds_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builds_get.py new file mode 100644 index 000000000000..b3576e629e43 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builds_get.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python builds_get.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.builds.get( + resource_group_name="rg", + builder_name="testBuilder", + build_name="testBuild", + ) + print(response) + + +# x-ms-original-file: 2025-10-02-preview/Builds_Get.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builds_list_auth_token.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builds_list_auth_token.py new file mode 100644 index 000000000000..56e81fec5639 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builds_list_auth_token.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python builds_list_auth_token.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.build_auth_token.list( + resource_group_name="rg", + builder_name="testBuilder", + build_name="testBuild", + ) + print(response) + + +# x-ms-original-file: 2025-10-02-preview/Builds_ListAuthToken.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builds_list_by_builder_resource.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builds_list_by_builder_resource.py new file mode 100644 index 000000000000..cda712d56f6e --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/builds_list_by_builder_resource.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python builds_list_by_builder_resource.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.builds_by_builder_resource.list( + resource_group_name="rg", + builder_name="testBuilder", + ) + for item in response: + print(item) + + +# x-ms-original-file: 2025-10-02-preview/Builds_ListByBuilderResource.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_create_or_update.py index 1b7f189b9a71..a561de4d2297 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_create_or_update.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.certificates.create_or_update( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Certificate_CreateOrUpdate.json +# x-ms-original-file: 2025-10-02-preview/Certificate_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_create_or_update_from_key_vault.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_create_or_update_from_key_vault.py index 6e89f63b8200..17b7693c4815 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_create_or_update_from_key_vault.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_create_or_update_from_key_vault.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.certificates.create_or_update( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Certificate_CreateOrUpdate_FromKeyVault.json +# x-ms-original-file: 2025-10-02-preview/Certificate_CreateOrUpdate_FromKeyVault.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_delete.py index 05b0f95f3ddd..cd264a611550 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) client.certificates.delete( @@ -38,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Certificate_Delete.json +# x-ms-original-file: 2025-10-02-preview/Certificate_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_get.py index c6a094379dd6..ddd0b386cf0a 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificate_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.certificates.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Certificate_Get.json +# x-ms-original-file: 2025-10-02-preview/Certificate_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificates_check_name_availability.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificates_check_name_availability.py index 1177f653026d..2cea51e11fdf 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificates_check_name_availability.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificates_check_name_availability.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.namespaces.check_name_availability( @@ -42,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Certificates_CheckNameAvailability.json +# x-ms-original-file: 2025-10-02-preview/Certificates_CheckNameAvailability.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificates_list_by_managed_environment.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificates_list_by_managed_environment.py index 53f6e63d6285..d9f2803f8b49 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificates_list_by_managed_environment.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificates_list_by_managed_environment.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.certificates.list( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Certificates_ListByManagedEnvironment.json +# x-ms-original-file: 2025-10-02-preview/Certificates_ListByManagedEnvironment.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificates_patch.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificates_patch.py index afc9dc4bedae..3be4b9fbff42 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificates_patch.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/certificates_patch.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.certificates.update( @@ -40,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Certificates_Patch.json +# x-ms-original-file: 2025-10-02-preview/Certificates_Patch.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificate_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificate_create_or_update.py index 03d9c95fff11..794cc039a455 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificate_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificate_create_or_update.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.connected_environments_certificates.begin_create_or_update( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironmentsCertificate_CreateOrUpdate.json +# x-ms-original-file: 2025-10-02-preview/ConnectedEnvironmentsCertificate_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificate_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificate_delete.py index 44e36d3def7b..a061d84a9f3a 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificate_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificate_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) client.connected_environments_certificates.begin_delete( @@ -38,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironmentsCertificate_Delete.json +# x-ms-original-file: 2025-10-02-preview/ConnectedEnvironmentsCertificate_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificate_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificate_get.py index 24ffadc63e90..5a02a8aa69a1 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificate_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificate_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.connected_environments_certificates.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironmentsCertificate_Get.json +# x-ms-original-file: 2025-10-02-preview/ConnectedEnvironmentsCertificate_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificates_check_name_availability.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificates_check_name_availability.py index c802cfa785b2..94a4254bd147 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificates_check_name_availability.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificates_check_name_availability.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.connected_environments.check_name_availability( @@ -42,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironmentsCertificates_CheckNameAvailability.json +# x-ms-original-file: 2025-10-02-preview/ConnectedEnvironmentsCertificates_CheckNameAvailability.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificates_list_by_connected_environment.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificates_list_by_connected_environment.py index 663790f3ade9..e554b3d246d9 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificates_list_by_connected_environment.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificates_list_by_connected_environment.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.connected_environments_certificates.list( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json +# x-ms-original-file: 2025-10-02-preview/ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificates_patch.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificates_patch.py index 63f455f47236..93527c3a47f7 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificates_patch.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_certificates_patch.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.connected_environments_certificates.begin_update( @@ -40,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironmentsCertificates_Patch.json +# x-ms-original-file: 2025-10-02-preview/ConnectedEnvironmentsCertificates_Patch.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_create_or_update.py index 77008b279a76..fabdbcdaf8ed 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_create_or_update.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.connected_environments.begin_create_or_update( @@ -50,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironments_CreateOrUpdate.json +# x-ms-original-file: 2025-10-02-preview/ConnectedEnvironments_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_create_or_update.py index edfe74aa50cb..e51b9812de38 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_create_or_update.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.connected_environments_dapr_components.begin_create_or_update( @@ -48,6 +48,13 @@ def main(): ], "scopes": ["container-app-1", "container-app-2"], "secrets": [{"name": "masterkey", "value": "keyvalue"}], + "serviceComponentBind": [ + { + "metadata": {"name": "daprcomponentBind", "value": "redis-bind"}, + "name": "statestore", + "serviceId": "/subscriptions/9f7371f1-b593-4c3c-84e2-9167806ad358/resourceGroups/ca-syn2-group/providers/Microsoft.App/containerapps/cappredis", + } + ], "version": "v1", } }, @@ -55,6 +62,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json +# x-ms-original-file: 2025-10-02-preview/ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_delete.py index 76c7f571e7a4..75576d8199b8 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) client.connected_environments_dapr_components.begin_delete( @@ -38,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironmentsDaprComponents_Delete.json +# x-ms-original-file: 2025-10-02-preview/ConnectedEnvironmentsDaprComponents_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_get.py index 0902ee663e17..992c4fe9f35c 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.connected_environments_dapr_components.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironmentsDaprComponents_Get.json +# x-ms-original-file: 2025-10-02-preview/ConnectedEnvironmentsDaprComponents_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_list.py index ad4ecace8076..1c454a344de5 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_list.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_list.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.connected_environments_dapr_components.list( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironmentsDaprComponents_List.json +# x-ms-original-file: 2025-10-02-preview/ConnectedEnvironmentsDaprComponents_List.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_list_secrets.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_list_secrets.py index 76d65bddfe4b..f53d78b9df75 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_list_secrets.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_dapr_components_list_secrets.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.connected_environments_dapr_components.list_secrets( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironmentsDaprComponents_ListSecrets.json +# x-ms-original-file: 2025-10-02-preview/ConnectedEnvironmentsDaprComponents_ListSecrets.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_delete.py index 3537e2ab6337..338c5bdd430f 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) client.connected_environments.begin_delete( @@ -37,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironments_Delete.json +# x-ms-original-file: 2025-10-02-preview/ConnectedEnvironments_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_get.py index d8240c49720d..05f8c1c0e802 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.connected_environments.get( @@ -38,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironments_Get.json +# x-ms-original-file: 2025-10-02-preview/ConnectedEnvironments_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_list_by_resource_group.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_list_by_resource_group.py index 91629dc8e694..4db03a3c5c9a 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_list_by_resource_group.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_list_by_resource_group.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.connected_environments.list_by_resource_group( @@ -38,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironments_ListByResourceGroup.json +# x-ms-original-file: 2025-10-02-preview/ConnectedEnvironments_ListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_list_by_subscription.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_list_by_subscription.py index 072ae5464d5f..d614cf456647 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_list_by_subscription.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_list_by_subscription.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.connected_environments.list_by_subscription() @@ -36,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironments_ListBySubscription.json +# x-ms-original-file: 2025-10-02-preview/ConnectedEnvironments_ListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_patch.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_patch.py index 686aafd8d725..4595b2885eb8 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_patch.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_patch.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,17 +27,16 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.connected_environments.update( resource_group_name="examplerg", connected_environment_name="testenv", - environment_envelope={"tags": {"tag1": "value1", "tag2": "value2"}}, ) print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironments_Patch.json +# x-ms-original-file: 2025-10-02-preview/ConnectedEnvironments_Patch.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_storages_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_storages_create_or_update.py index 3773736c377c..6576bdd365c7 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_storages_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_storages_create_or_update.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.connected_environments_storages.begin_create_or_update( @@ -49,6 +48,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironmentsStorages_CreateOrUpdate.json +# x-ms-original-file: 2025-10-02-preview/ConnectedEnvironmentsStorages_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_storages_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_storages_delete.py index 8b0d2985aa6e..75e870292f97 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_storages_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_storages_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) client.connected_environments_storages.begin_delete( @@ -38,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironmentsStorages_Delete.json +# x-ms-original-file: 2025-10-02-preview/ConnectedEnvironmentsStorages_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_storages_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_storages_get.py index 46b2b6beda71..81224cb9607e 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_storages_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_storages_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.connected_environments_storages.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironmentsStorages_Get.json +# x-ms-original-file: 2025-10-02-preview/ConnectedEnvironmentsStorages_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_storages_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_storages_list.py index 136ffa1c573b..0a25b87bc88c 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_storages_list.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/connected_environments_storages_list.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.connected_environments_storages.list( @@ -38,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ConnectedEnvironmentsStorages_List.json +# x-ms-original-file: 2025-10-02-preview/ConnectedEnvironmentsStorages_List.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_builds_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_builds_delete.py new file mode 100644 index 000000000000..972183712340 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_builds_delete.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python container_apps_builds_delete.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + client.container_apps_builds.begin_delete( + resource_group_name="rg", + container_app_name="testCapp", + build_name="testBuild", + ).result() + + +# x-ms-original-file: 2025-10-02-preview/ContainerAppsBuilds_Delete.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_builds_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_builds_get.py new file mode 100644 index 000000000000..35de79acbfbd --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_builds_get.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python container_apps_builds_get.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.container_apps_builds.get( + resource_group_name="rg", + container_app_name="testCapp", + build_name="testBuild", + ) + print(response) + + +# x-ms-original-file: 2025-10-02-preview/ContainerAppsBuilds_Get.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_builds_list_by_container_app.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_builds_list_by_container_app.py new file mode 100644 index 000000000000..836ebe6860ee --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_builds_list_by_container_app.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python container_apps_builds_list_by_container_app.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.container_apps_builds_by_container_app.list( + resource_group_name="rg", + container_app_name="testCapp", + ) + for item in response: + print(item) + + +# x-ms-original-file: 2025-10-02-preview/ContainerAppsBuilds_ListByContainerApp.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_check_name_availability.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_check_name_availability.py index 0a7dc9eeb0af..dce7d9c3e825 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_check_name_availability.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_check_name_availability.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.namespaces.check_name_availability( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerApps_CheckNameAvailability.json +# x-ms-original-file: 2025-10-02-preview/ContainerApps_CheckNameAvailability.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_create_or_update.py index 0d49ccea2892..356ba83b118e 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_create_or_update.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,12 +28,12 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_apps.begin_create_or_update( resource_group_name="rg", - container_app_name="testcontainerapp0", + container_app_name="testcontainerApp0", container_app_envelope={ "identity": { "type": "SystemAssigned,UserAssigned", @@ -111,18 +111,30 @@ def main(): ], "stickySessions": {"affinity": "sticky"}, "targetPort": 3000, - "traffic": [{"label": "production", "revisionName": "testcontainerapp0-ab1234", "weight": 100}], + "traffic": [{"label": "production", "revisionName": "testcontainerApp0-ab1234", "weight": 100}], }, "maxInactiveRevisions": 10, - "runtime": {"java": {"enableMetrics": True}}, + "revisionTransitionThreshold": 100, + "runtime": { + "dotnet": {"autoConfigureDataProtection": True}, + "java": { + "enableMetrics": True, + "javaAgent": { + "enabled": True, + "logging": { + "loggerSettings": [{"level": "debug", "logger": "org.springframework.boot"}] + }, + }, + }, + }, "service": {"type": "redis"}, }, "environmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", "template": { "containers": [ { - "image": "repo/testcontainerapp0:v1", - "name": "testcontainerapp0", + "image": "repo/testcontainerApp0:v1", + "name": "testcontainerApp0", "probes": [ { "httpGet": { @@ -145,9 +157,9 @@ def main(): { "args": ["-c", "while true; do echo hello; sleep 10;done"], "command": ["/bin/sh"], - "image": "repo/testcontainerapp0:v4", + "image": "repo/testcontainerApp0:v4", "name": "testinitcontainerApp0", - "resources": {"cpu": 0.5, "memory": "1Gi"}, + "resources": {"cpu": 0.2, "gpu": 1, "memory": "100Mi"}, } ], "scale": { @@ -185,6 +197,8 @@ def main(): }, "serviceBinds": [ { + "clientType": "dotnet", + "customizedKeys": {"DesiredKey": "defaultKey"}, "name": "redisService", "serviceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/redisService", } @@ -201,6 +215,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerApps_CreateOrUpdate.json +# x-ms-original-file: 2025-10-02-preview/ContainerApps_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_create_or_update_connected_environment.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_create_or_update_connected_environment.py new file mode 100644 index 000000000000..e62f89c136cf --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_create_or_update_connected_environment.py @@ -0,0 +1,164 @@ +# pylint: disable=line-too-long,useless-suppression +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python container_apps_create_or_update_connected_environment.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.container_apps.begin_create_or_update( + resource_group_name="rg", + container_app_name="testcontainerApp0", + container_app_envelope={ + "extendedLocation": { + "name": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation", + "type": "CustomLocation", + }, + "location": "East US", + "properties": { + "configuration": { + "dapr": { + "appPort": 3000, + "appProtocol": "http", + "enableApiLogging": True, + "enabled": True, + "httpMaxRequestSize": 10, + "httpReadBufferSize": 30, + "logLevel": "debug", + }, + "ingress": { + "additionalPortMappings": [ + {"external": True, "targetPort": 1234}, + {"exposedPort": 3456, "external": False, "targetPort": 2345}, + ], + "clientCertificateMode": "accept", + "corsPolicy": { + "allowCredentials": True, + "allowedHeaders": ["HEADER1", "HEADER2"], + "allowedMethods": ["GET", "POST"], + "allowedOrigins": ["https://a.test.com", "https://b.test.com"], + "exposeHeaders": ["HEADER3", "HEADER4"], + "maxAge": 1234, + }, + "customDomains": [ + { + "bindingType": "SniEnabled", + "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/connectedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com", + "name": "www.my-name.com", + }, + { + "bindingType": "SniEnabled", + "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/connectedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com", + "name": "www.my-other-name.com", + }, + ], + "external": True, + "ipSecurityRestrictions": [ + { + "action": "Allow", + "description": "Allowing all IP's within the subnet below to access containerapp", + "ipAddressRange": "192.168.1.1/32", + "name": "Allow work IP A subnet", + }, + { + "action": "Allow", + "description": "Allowing all IP's within the subnet below to access containerapp", + "ipAddressRange": "192.168.1.1/8", + "name": "Allow work IP B subnet", + }, + ], + "stickySessions": {"affinity": "sticky"}, + "targetPort": 3000, + "traffic": [{"label": "production", "revisionName": "testcontainerApp0-ab1234", "weight": 100}], + }, + "maxInactiveRevisions": 10, + "revisionTransitionThreshold": 100, + "runtime": { + "dotnet": {"autoConfigureDataProtection": True}, + "java": { + "enableMetrics": True, + "javaAgent": { + "enabled": True, + "logging": { + "loggerSettings": [{"level": "debug", "logger": "org.springframework.boot"}] + }, + }, + }, + }, + }, + "environmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/connectedEnvironments/demokube", + "template": { + "containers": [ + { + "image": "repo/testcontainerApp0:v1", + "name": "testcontainerApp0", + "probes": [ + { + "httpGet": { + "httpHeaders": [{"name": "Custom-Header", "value": "Awesome"}], + "path": "/health", + "port": 8080, + }, + "initialDelaySeconds": 3, + "periodSeconds": 3, + "type": "Liveness", + } + ], + } + ], + "initContainers": [ + { + "args": ["-c", "while true; do echo hello; sleep 10;done"], + "command": ["/bin/sh"], + "image": "repo/testcontainerApp0:v4", + "name": "testinitcontainerApp0", + "resources": {"cpu": 0.2, "memory": "100Mi"}, + } + ], + "scale": { + "cooldownPeriod": 350, + "maxReplicas": 5, + "minReplicas": 1, + "pollingInterval": 35, + "rules": [ + { + "custom": {"metadata": {"concurrentRequests": "50"}, "type": "http"}, + "name": "httpscalingrule", + } + ], + }, + }, + }, + }, + ).result() + print(response) + + +# x-ms-original-file: 2025-10-02-preview/ContainerApps_CreateOrUpdate_ConnectedEnvironment.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_delete.py index 8b07a8308b82..a160c24d727a 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,15 +27,15 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) client.container_apps.begin_delete( resource_group_name="rg", - container_app_name="testworkerapp0", + container_app_name="testWorkerApp0", ).result() -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerApps_Delete.json +# x-ms-original-file: 2025-10-02-preview/ContainerApps_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_diagnostics_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_diagnostics_get.py index a68be73f90a7..84a41b3c6f61 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_diagnostics_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_diagnostics_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="f07f3711-b45e-40fe-a941-4e6d93f851e6", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_apps_diagnostics.get_detector( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerAppsDiagnostics_Get.json +# x-ms-original-file: 2025-10-02-preview/ContainerAppsDiagnostics_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_diagnostics_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_diagnostics_list.py index 51e1a20cf2fc..7d4f24aa8d94 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_diagnostics_list.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_diagnostics_list.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="f07f3711-b45e-40fe-a941-4e6d93f851e6", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_apps_diagnostics.list_detectors( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerAppsDiagnostics_List.json +# x-ms-original-file: 2025-10-02-preview/ContainerAppsDiagnostics_List.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_functions_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_functions_get.py new file mode 100644 index 000000000000..ce7b6f3ef3bb --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_functions_get.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python container_apps_functions_get.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.container_apps_functions.get( + resource_group_name="myResourceGroup", + container_app_name="myContainerApp", + function_name="HttpExample", + ) + print(response) + + +# x-ms-original-file: 2025-10-02-preview/ContainerAppsFunctions_Get.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_functions_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_functions_list.py new file mode 100644 index 000000000000..c730daf89fba --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_functions_list.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python container_apps_functions_list.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.container_apps_functions.list( + resource_group_name="myResourceGroup", + container_app_name="myContainerApp", + ) + for item in response: + print(item) + + +# x-ms-original-file: 2025-10-02-preview/ContainerAppsFunctions_List.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_get.py index ddf3501b26f2..387dbb8cdb71 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,16 +27,16 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_apps.get( resource_group_name="rg", - container_app_name="testcontainerapp0", + container_app_name="testcontainerApp0", ) print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerApps_Get.json +# x-ms-original-file: 2025-10-02-preview/ContainerApps_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_get1.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_get1.py new file mode 100644 index 000000000000..98d7ba7b2ccc --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_get1.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python container_apps_get1.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.container_apps_diagnostics.get_root( + resource_group_name="rg", + container_app_name="testcontainerApp0", + ) + print(response) + + +# x-ms-original-file: 2025-10-02-preview/ContainerApps_Get1.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_get_auth_token.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_get_auth_token.py index ef97f6040791..31844dde80c6 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_get_auth_token.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_get_auth_token.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,16 +27,16 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="651f8027-33e8-4ec4-97b4-f6e9f3dc8744", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_apps.get_auth_token( resource_group_name="rg", - container_app_name="testcontainerapp0", + container_app_name="testcontainerApp0", ) print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerApps_GetAuthToken.json +# x-ms-original-file: 2025-10-02-preview/ContainerApps_GetAuthToken.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_kind_function_app_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_kind_function_app_create_or_update.py index b8a977f5277b..9136504a033b 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_kind_function_app_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_kind_function_app_create_or_update.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_apps.begin_create_or_update( @@ -68,6 +68,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerApps_Kind_FunctionApp_CreateOrUpdate.json +# x-ms-original-file: 2025-10-02-preview/ContainerApps_Kind_FunctionApp_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_kind_workflow_app_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_kind_workflow_app_create_or_update.py index 229a40f40e29..580d4a6d4fcc 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_kind_workflow_app_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_kind_workflow_app_create_or_update.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_apps.begin_create_or_update( @@ -60,6 +60,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerApps_Kind_WorkflowApp_CreateOrUpdate.json +# x-ms-original-file: 2025-10-02-preview/ContainerApps_Kind_WorkflowApp_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_list_by_resource_group.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_list_by_resource_group.py index 5906eebffc8f..82376bddc15a 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_list_by_resource_group.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_list_by_resource_group.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_apps.list_by_resource_group( @@ -38,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerApps_ListByResourceGroup.json +# x-ms-original-file: 2025-10-02-preview/ContainerApps_ListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_list_by_subscription.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_list_by_subscription.py index a3225c450d1c..1c2fba48c761 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_list_by_subscription.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_list_by_subscription.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_apps.list_by_subscription() @@ -36,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerApps_ListBySubscription.json +# x-ms-original-file: 2025-10-02-preview/ContainerApps_ListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_list_custom_host_name_analysis.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_list_custom_host_name_analysis.py index 1e201abc3668..578887f94c47 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_list_custom_host_name_analysis.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_list_custom_host_name_analysis.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,16 +27,16 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_apps.list_custom_host_name_analysis( resource_group_name="rg", - container_app_name="testcontainerapp0", + container_app_name="testcontainerApp0", ) print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerApps_ListCustomHostNameAnalysis.json +# x-ms-original-file: 2025-10-02-preview/ContainerApps_ListCustomHostNameAnalysis.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_list_secrets.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_list_secrets.py index d78e033a026e..aec98cd9329d 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_list_secrets.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_list_secrets.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,16 +27,16 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_apps.list_secrets( resource_group_name="rg", - container_app_name="testcontainerapp0", + container_app_name="testcontainerApp0", ) print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerApps_ListSecrets.json +# x-ms-original-file: 2025-10-02-preview/ContainerApps_ListSecrets.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_managed_by_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_managed_by_create_or_update.py index 5944fef8d45f..355c8ee3fcad 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_managed_by_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_managed_by_create_or_update.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,12 +28,12 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_apps.begin_create_or_update( resource_group_name="rg", - container_app_name="testcontainerappmanagedby", + container_app_name="testcontainerAppManagedBy", container_app_envelope={ "location": "East US", "managedBy": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.AppPlatform/Spring/springapp", @@ -43,7 +43,7 @@ def main(): "exposedPort": 4000, "external": True, "targetPort": 3000, - "traffic": [{"revisionName": "testcontainerappmanagedby-ab1234", "weight": 100}], + "traffic": [{"revisionName": "testcontainerAppManagedBy-ab1234", "weight": 100}], "transport": "tcp", } }, @@ -51,8 +51,8 @@ def main(): "template": { "containers": [ { - "image": "repo/testcontainerappmanagedby:v1", - "name": "testcontainerappmanagedby", + "image": "repo/testcontainerAppManagedBy:v1", + "name": "testcontainerAppManagedBy", "probes": [ { "initialDelaySeconds": 3, @@ -77,6 +77,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerApps_ManagedBy_CreateOrUpdate.json +# x-ms-original-file: 2025-10-02-preview/ContainerApps_ManagedBy_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_patch.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_patch.py index f5b6c1676bd1..b17188e95823 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_patch.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_patch.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,12 +28,12 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_apps.begin_update( resource_group_name="rg", - container_app_name="testcontainerapp0", + container_app_name="testcontainerApp0", container_app_envelope={ "location": "East US", "properties": { @@ -85,17 +85,29 @@ def main(): ], "stickySessions": {"affinity": "sticky"}, "targetPort": 3000, - "traffic": [{"label": "production", "revisionName": "testcontainerapp0-ab1234", "weight": 100}], + "traffic": [{"label": "production", "revisionName": "testcontainerApp0-ab1234", "weight": 100}], }, "maxInactiveRevisions": 10, - "runtime": {"java": {"enableMetrics": True}}, + "revisionTransitionThreshold": 100, + "runtime": { + "dotnet": {"autoConfigureDataProtection": True}, + "java": { + "enableMetrics": True, + "javaAgent": { + "enabled": True, + "logging": { + "loggerSettings": [{"level": "debug", "logger": "org.springframework.boot"}] + }, + }, + }, + }, "service": {"type": "redis"}, }, "template": { "containers": [ { - "image": "repo/testcontainerapp0:v1", - "name": "testcontainerapp0", + "image": "repo/testcontainerApp0:v1", + "name": "testcontainerApp0", "probes": [ { "httpGet": { @@ -112,9 +124,9 @@ def main(): ], "initContainers": [ { - "image": "repo/testcontainerapp0:v4", + "image": "repo/testcontainerApp0:v4", "name": "testinitcontainerApp0", - "resources": {"cpu": 0.5, "memory": "1Gi"}, + "resources": {"cpu": 0.2, "memory": "100Mi"}, } ], "scale": { @@ -131,6 +143,8 @@ def main(): }, "serviceBinds": [ { + "clientType": "dotnet", + "customizedKeys": {"DesiredKey": "defaultKey"}, "name": "service", "serviceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/service", } @@ -143,6 +157,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerApps_Patch.json +# x-ms-original-file: 2025-10-02-preview/ContainerApps_Patch.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_patches_apply.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_patches_apply.py new file mode 100644 index 000000000000..b9dbb6d1a8b6 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_patches_apply.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python container_apps_patches_apply.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.container_apps_patches.begin_apply( + resource_group_name="rg", + container_app_name="test-app", + patch_name="testPatch-25fe4b", + ).result() + print(response) + + +# x-ms-original-file: 2025-10-02-preview/ContainerAppsPatches_Apply.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_patches_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_patches_delete.py new file mode 100644 index 000000000000..3b8680a1c4ba --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_patches_delete.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python container_apps_patches_delete.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + client.container_apps_patches.begin_delete( + resource_group_name="rg", + container_app_name="test-app", + patch_name="testPatch-25fe4b", + ).result() + + +# x-ms-original-file: 2025-10-02-preview/ContainerAppsPatches_Delete.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_patches_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_patches_get.py new file mode 100644 index 000000000000..8e9e8609d11a --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_patches_get.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python container_apps_patches_get.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.container_apps_patches.get( + resource_group_name="rg", + container_app_name="test-app", + patch_name="testPatch-25fe4b", + ) + print(response) + + +# x-ms-original-file: 2025-10-02-preview/ContainerAppsPatches_Get.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_patches_list_by_container_app.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_patches_list_by_container_app.py new file mode 100644 index 000000000000..fa00194faa60 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_patches_list_by_container_app.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python container_apps_patches_list_by_container_app.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.container_apps_patches.list_by_container_app( + resource_group_name="rg", + container_app_name="test-app", + ) + for item in response: + print(item) + + +# x-ms-original-file: 2025-10-02-preview/ContainerAppsPatches_ListByContainerApp.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_patches_skip_configure.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_patches_skip_configure.py new file mode 100644 index 000000000000..640920c3d574 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_patches_skip_configure.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python container_apps_patches_skip_configure.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + client.container_apps_patches.begin_skip_configure( + resource_group_name="rg", + container_app_name="test-app", + patch_name="testPatch-25fe4b", + patch_skip_config={"skip": True}, + ).result() + + +# x-ms-original-file: 2025-10-02-preview/ContainerAppsPatches_Skip_Configure.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_revision_functions_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_revision_functions_get.py new file mode 100644 index 000000000000..69bd717a8633 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_revision_functions_get.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python container_apps_revision_functions_get.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.container_apps_revision_functions.get( + resource_group_name="myResourceGroup", + container_app_name="myContainerApp", + revision_name="myContainerApp-abc123", + function_name="HttpExample", + ) + print(response) + + +# x-ms-original-file: 2025-10-02-preview/ContainerAppsRevisionFunctions_Get.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_revision_functions_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_revision_functions_list.py new file mode 100644 index 000000000000..963c42b47b31 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_revision_functions_list.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python container_apps_revision_functions_list.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.container_apps_revision_functions.list( + resource_group_name="myResourceGroup", + container_app_name="myContainerApp", + revision_name="myContainerApp-abc123", + ) + for item in response: + print(item) + + +# x-ms-original-file: 2025-10-02-preview/ContainerAppsRevisionFunctions_List.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_source_to_cloud_app_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_source_to_cloud_app_create_or_update.py new file mode 100644 index 000000000000..16ac77abe143 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_source_to_cloud_app_create_or_update.py @@ -0,0 +1,168 @@ +# pylint: disable=line-too-long,useless-suppression +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python container_apps_source_to_cloud_app_create_or_update.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.container_apps.begin_create_or_update( + resource_group_name="rg", + container_app_name="testcontainerApp0", + container_app_envelope={ + "location": "East US", + "properties": { + "configuration": { + "dapr": { + "appPort": 3000, + "appProtocol": "http", + "enableApiLogging": True, + "enabled": True, + "httpMaxRequestSize": 10, + "httpReadBufferSize": 30, + "logLevel": "debug", + }, + "ingress": { + "additionalPortMappings": [ + {"external": True, "targetPort": 1234}, + {"exposedPort": 3456, "external": False, "targetPort": 2345}, + ], + "clientCertificateMode": "accept", + "corsPolicy": { + "allowCredentials": True, + "allowedHeaders": ["HEADER1", "HEADER2"], + "allowedMethods": ["GET", "POST"], + "allowedOrigins": ["https://a.test.com", "https://b.test.com"], + "exposeHeaders": ["HEADER3", "HEADER4"], + "maxAge": 1234, + }, + "customDomains": [ + { + "bindingType": "SniEnabled", + "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com", + "name": "www.my-name.com", + }, + { + "bindingType": "SniEnabled", + "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com", + "name": "www.my-other-name.com", + }, + ], + "external": True, + "ipSecurityRestrictions": [ + { + "action": "Allow", + "description": "Allowing all IP's within the subnet below to access containerapp", + "ipAddressRange": "192.168.1.1/32", + "name": "Allow work IP A subnet", + }, + { + "action": "Allow", + "description": "Allowing all IP's within the subnet below to access containerapp", + "ipAddressRange": "192.168.1.1/8", + "name": "Allow work IP B subnet", + }, + ], + "stickySessions": {"affinity": "sticky"}, + "targetPort": 3000, + "traffic": [{"label": "production", "revisionName": "testcontainerApp0-ab1234", "weight": 100}], + }, + "maxInactiveRevisions": 10, + "revisionTransitionThreshold": 100, + "service": {"type": "redis"}, + }, + "environmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", + "patchingConfiguration": {"patchingMode": "Automatic"}, + "template": { + "containers": [ + { + "image": "", + "imageType": "CloudBuild", + "name": "testcontainerApp0", + "probes": [ + { + "httpGet": { + "httpHeaders": [{"name": "Custom-Header", "value": "Awesome"}], + "path": "/health", + "port": 8080, + }, + "initialDelaySeconds": 3, + "periodSeconds": 3, + "type": "Liveness", + } + ], + "volumeMounts": [ + {"mountPath": "/mnt/path1", "subPath": "subPath1", "volumeName": "azurefile"}, + {"mountPath": "/mnt/path2", "subPath": "subPath2", "volumeName": "nfsazurefile"}, + ], + } + ], + "initContainers": [ + { + "args": ["-c", "while true; do echo hello; sleep 10;done"], + "command": ["/bin/sh"], + "image": "repo/testcontainerApp0:v4", + "name": "testinitcontainerApp0", + "resources": {"cpu": 0.2, "memory": "100Mi"}, + } + ], + "scale": { + "cooldownPeriod": 350, + "maxReplicas": 5, + "minReplicas": 1, + "pollingInterval": 35, + "rules": [ + { + "custom": {"metadata": {"concurrentRequests": "50"}, "type": "http"}, + "name": "httpscalingrule", + } + ], + }, + "serviceBinds": [ + { + "clientType": "dotnet", + "customizedKeys": {"DesiredKey": "defaultKey"}, + "name": "redisService", + "serviceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/redisService", + } + ], + "volumes": [ + {"name": "azurefile", "storageName": "storage", "storageType": "AzureFile"}, + {"name": "nfsazurefile", "storageName": "nfsStorage", "storageType": "NfsAzureFile"}, + ], + }, + "workloadProfileName": "My-GP-01", + }, + }, + ).result() + print(response) + + +# x-ms-original-file: 2025-10-02-preview/ContainerApps_SourceToCloudApp_CreateOrUpdate.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_start.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_start.py index d85042cadf32..8631fdf08e1a 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_start.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_start.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,16 +27,16 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_apps.begin_start( resource_group_name="rg", - container_app_name="testworkerapp0", + container_app_name="testWorkerApp0", ).result() print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerApps_Start.json +# x-ms-original-file: 2025-10-02-preview/ContainerApps_Start.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_stop.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_stop.py index a6bad98fc8bd..9d40087f4d5e 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_stop.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_stop.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,16 +27,16 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_apps.begin_stop( resource_group_name="rg", - container_app_name="testworkerApp0", + container_app_name="testWorkerApp0", ).result() print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerApps_Stop.json +# x-ms-original-file: 2025-10-02-preview/ContainerApps_Stop.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_tcp_app_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_tcp_app_create_or_update.py index e0656e17c519..f2ad1f93806a 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_tcp_app_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/container_apps_tcp_app_create_or_update.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,12 +28,12 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_apps.begin_create_or_update( resource_group_name="rg", - container_app_name="testcontainerapptcp", + container_app_name="testcontainerAppTcp", container_app_envelope={ "location": "East US", "properties": { @@ -42,7 +42,7 @@ def main(): "exposedPort": 4000, "external": True, "targetPort": 3000, - "traffic": [{"revisionName": "testcontainerapptcp-ab1234", "weight": 100}], + "traffic": [{"revisionName": "testcontainerAppTcp-ab1234", "weight": 100}], "transport": "tcp", } }, @@ -50,8 +50,8 @@ def main(): "template": { "containers": [ { - "image": "repo/testcontainerapptcp:v1", - "name": "testcontainerapptcp", + "image": "repo/testcontainerAppTcp:v1", + "name": "testcontainerAppTcp", "probes": [ { "initialDelaySeconds": 3, @@ -76,6 +76,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ContainerApps_TcpApp_CreateOrUpdate.json +# x-ms-original-file: 2025-10-02-preview/ContainerApps_TcpApp_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_component_resiliency_policies_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_component_resiliency_policies_delete.py new file mode 100644 index 000000000000..5dee43abc131 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_component_resiliency_policies_delete.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python dapr_component_resiliency_policies_delete.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + client.dapr_component_resiliency_policies.delete( + resource_group_name="examplerg", + environment_name="myenvironment", + component_name="mydaprcomponent", + name="myresiliencypolicy", + ) + + +# x-ms-original-file: 2025-10-02-preview/DaprComponentResiliencyPolicies_Delete.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_component_resiliency_policies_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_component_resiliency_policies_get.py new file mode 100644 index 000000000000..faeac3714b02 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_component_resiliency_policies_get.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python dapr_component_resiliency_policies_get.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.dapr_component_resiliency_policies.get( + resource_group_name="examplerg", + environment_name="myenvironment", + component_name="mydaprcomponent", + name="myresiliencypolicy", + ) + print(response) + + +# x-ms-original-file: 2025-10-02-preview/DaprComponentResiliencyPolicies_Get.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_component_resiliency_policies_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_component_resiliency_policies_list.py new file mode 100644 index 000000000000..15fc59d12fbe --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_component_resiliency_policies_list.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python dapr_component_resiliency_policies_list.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.dapr_component_resiliency_policies.list( + resource_group_name="examplerg", + environment_name="myenvironment", + component_name="mydaprcomponent", + ) + for item in response: + print(item) + + +# x-ms-original-file: 2025-10-02-preview/DaprComponentResiliencyPolicies_List.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_component_resiliency_policy_create_or_update_all_options.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_component_resiliency_policy_create_or_update_all_options.py new file mode 100644 index 000000000000..3c6e7aae5a45 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_component_resiliency_policy_create_or_update_all_options.py @@ -0,0 +1,64 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python dapr_component_resiliency_policy_create_or_update_all_options.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.dapr_component_resiliency_policies.create_or_update( + resource_group_name="examplerg", + environment_name="myenvironment", + component_name="mydaprcomponent", + name="myresiliencypolicy", + dapr_component_resiliency_policy_envelope={ + "properties": { + "inboundPolicy": { + "circuitBreakerPolicy": {"consecutiveErrors": 5, "intervalInSeconds": 4, "timeoutInSeconds": 10}, + "httpRetryPolicy": { + "maxRetries": 15, + "retryBackOff": {"initialDelayInMilliseconds": 2000, "maxIntervalInMilliseconds": 5500}, + }, + "timeoutPolicy": {"responseTimeoutInSeconds": 30}, + }, + "outboundPolicy": { + "circuitBreakerPolicy": {"consecutiveErrors": 3, "intervalInSeconds": 60, "timeoutInSeconds": 20}, + "httpRetryPolicy": { + "maxRetries": 5, + "retryBackOff": {"initialDelayInMilliseconds": 100, "maxIntervalInMilliseconds": 30000}, + }, + "timeoutPolicy": {"responseTimeoutInSeconds": 12}, + }, + } + }, + ) + print(response) + + +# x-ms-original-file: 2025-10-02-preview/DaprComponentResiliencyPolicy_CreateOrUpdate_AllOptions.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_component_resiliency_policy_create_or_update_outbound_only.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_component_resiliency_policy_create_or_update_outbound_only.py new file mode 100644 index 000000000000..56cbb3a440e0 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_component_resiliency_policy_create_or_update_outbound_only.py @@ -0,0 +1,56 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python dapr_component_resiliency_policy_create_or_update_outbound_only.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.dapr_component_resiliency_policies.create_or_update( + resource_group_name="examplerg", + environment_name="myenvironment", + component_name="mydaprcomponent", + name="myresiliencypolicy", + dapr_component_resiliency_policy_envelope={ + "properties": { + "outboundPolicy": { + "circuitBreakerPolicy": {"consecutiveErrors": 3, "intervalInSeconds": 60, "timeoutInSeconds": 20}, + "httpRetryPolicy": { + "maxRetries": 5, + "retryBackOff": {"initialDelayInMilliseconds": 100, "maxIntervalInMilliseconds": 30000}, + }, + "timeoutPolicy": {"responseTimeoutInSeconds": 12}, + } + } + }, + ) + print(response) + + +# x-ms-original-file: 2025-10-02-preview/DaprComponentResiliencyPolicy_CreateOrUpdate_OutboundOnly.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_component_resiliency_policy_create_or_update_sparse_options.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_component_resiliency_policy_create_or_update_sparse_options.py new file mode 100644 index 000000000000..3220831c0503 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_component_resiliency_policy_create_or_update_sparse_options.py @@ -0,0 +1,56 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python dapr_component_resiliency_policy_create_or_update_sparse_options.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.dapr_component_resiliency_policies.create_or_update( + resource_group_name="examplerg", + environment_name="myenvironment", + component_name="mydaprcomponent", + name="myresiliencypolicy", + dapr_component_resiliency_policy_envelope={ + "properties": { + "inboundPolicy": { + "circuitBreakerPolicy": {"consecutiveErrors": 3, "timeoutInSeconds": 20}, + "httpRetryPolicy": { + "maxRetries": 5, + "retryBackOff": {"initialDelayInMilliseconds": 2000, "maxIntervalInMilliseconds": 5500}, + }, + }, + "outboundPolicy": {"timeoutPolicy": {"responseTimeoutInSeconds": 12}}, + } + }, + ) + print(response) + + +# x-ms-original-file: 2025-10-02-preview/DaprComponentResiliencyPolicy_CreateOrUpdate_SparseOptions.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_create_or_update_secret_store_component.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_create_or_update_secret_store_component.py index 3e941dcc47b2..0212f9eb3cf0 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_create_or_update_secret_store_component.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_create_or_update_secret_store_component.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.dapr_components.create_or_update( @@ -48,6 +48,13 @@ def main(): ], "scopes": ["container-app-1", "container-app-2"], "secretStoreComponent": "my-secret-store", + "serviceComponentBind": [ + { + "metadata": {"name": "daprcomponentBind", "value": "redis-bind"}, + "name": "statestore", + "serviceId": "/subscriptions/9f7371f1-b593-4c3c-84e2-9167806ad358/resourceGroups/ca-syn2-group/providers/Microsoft.App/containerapps/cappredis", + } + ], "version": "v1", } }, @@ -55,6 +62,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/DaprComponents_CreateOrUpdate_SecretStoreComponent.json +# x-ms-original-file: 2025-10-02-preview/DaprComponents_CreateOrUpdate_SecretStoreComponent.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_create_or_update_secrets.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_create_or_update_secrets.py index bde2fa2bbda3..1200f4bd6cb8 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_create_or_update_secrets.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_create_or_update_secrets.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.dapr_components.create_or_update( @@ -48,6 +48,13 @@ def main(): ], "scopes": ["container-app-1", "container-app-2"], "secrets": [{"name": "masterkey", "value": "keyvalue"}], + "serviceComponentBind": [ + { + "metadata": {"name": "daprcomponentBind", "value": "redis-bind"}, + "name": "statestore", + "serviceId": "/subscriptions/9f7371f1-b593-4c3c-84e2-9167806ad358/resourceGroups/ca-syn2-group/providers/Microsoft.App/containerapps/cappredis", + } + ], "version": "v1", } }, @@ -55,6 +62,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/DaprComponents_CreateOrUpdate_Secrets.json +# x-ms-original-file: 2025-10-02-preview/DaprComponents_CreateOrUpdate_Secrets.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_delete.py index 56c5bca6f2ca..1c2e46855e9b 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) client.dapr_components.delete( @@ -38,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/DaprComponents_Delete.json +# x-ms-original-file: 2025-10-02-preview/DaprComponents_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_get_secret_store_component.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_get_secret_store_component.py index 560ed2af8a43..ba5739fd330e 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_get_secret_store_component.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_get_secret_store_component.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.dapr_components.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/DaprComponents_Get_SecretStoreComponent.json +# x-ms-original-file: 2025-10-02-preview/DaprComponents_Get_SecretStoreComponent.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_get_secrets.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_get_secrets.py index 14ce4a78e98a..261804743217 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_get_secrets.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_get_secrets.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.dapr_components.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/DaprComponents_Get_Secrets.json +# x-ms-original-file: 2025-10-02-preview/DaprComponents_Get_Secrets.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_list.py index fb3ba4ece258..34c6b7cca0f9 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_list.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_list.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.dapr_components.list( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/DaprComponents_List.json +# x-ms-original-file: 2025-10-02-preview/DaprComponents_List.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_list_secrets.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_list_secrets.py index 0250ff176406..2892f69f24f1 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_list_secrets.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_components_list_secrets.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.dapr_components.list_secrets( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/DaprComponents_ListSecrets.json +# x-ms-original-file: 2025-10-02-preview/DaprComponents_ListSecrets.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_create_or_update_bulk_subscribe_and_scopes.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_create_or_update_bulk_subscribe_and_scopes.py new file mode 100644 index 000000000000..162098f900b3 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_create_or_update_bulk_subscribe_and_scopes.py @@ -0,0 +1,52 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python dapr_subscriptions_create_or_update_bulk_subscribe_and_scopes.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.dapr_subscriptions.create_or_update( + resource_group_name="examplerg", + environment_name="myenvironment", + name="mysubscription", + dapr_subscription_envelope={ + "properties": { + "bulkSubscribe": {"enabled": True, "maxAwaitDurationMs": 500, "maxMessagesCount": 123}, + "pubsubName": "mypubsubcomponent", + "routes": {"default": "/products"}, + "scopes": ["warehouseapp", "customersupportapp"], + "topic": "inventory", + } + }, + ) + print(response) + + +# x-ms-original-file: 2025-10-02-preview/DaprSubscriptions_CreateOrUpdate_BulkSubscribeAndScopes.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_create_or_update_default_route.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_create_or_update_default_route.py new file mode 100644 index 000000000000..f7174d1504d9 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_create_or_update_default_route.py @@ -0,0 +1,46 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python dapr_subscriptions_create_or_update_default_route.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.dapr_subscriptions.create_or_update( + resource_group_name="examplerg", + environment_name="myenvironment", + name="mysubscription", + dapr_subscription_envelope={ + "properties": {"pubsubName": "mypubsubcomponent", "routes": {"default": "/products"}, "topic": "inventory"} + }, + ) + print(response) + + +# x-ms-original-file: 2025-10-02-preview/DaprSubscriptions_CreateOrUpdate_DefaultRoute.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_create_or_update_route_rules_and_metadata.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_create_or_update_route_rules_and_metadata.py new file mode 100644 index 000000000000..6cc84fab1cfa --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_create_or_update_route_rules_and_metadata.py @@ -0,0 +1,57 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python dapr_subscriptions_create_or_update_route_rules_and_metadata.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.dapr_subscriptions.create_or_update( + resource_group_name="examplerg", + environment_name="myenvironment", + name="mysubscription", + dapr_subscription_envelope={ + "properties": { + "metadata": {"foo": "bar", "hello": "world"}, + "pubsubName": "mypubsubcomponent", + "routes": { + "default": "/products", + "rules": [ + {"match": "event.type == 'widget'", "path": "/widgets"}, + {"match": "event.type == 'gadget'", "path": "/gadgets"}, + ], + }, + "topic": "inventory", + } + }, + ) + print(response) + + +# x-ms-original-file: 2025-10-02-preview/DaprSubscriptions_CreateOrUpdate_RouteRulesAndMetadata.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_delete.py new file mode 100644 index 000000000000..792a0ca7c834 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_delete.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python dapr_subscriptions_delete.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + client.dapr_subscriptions.delete( + resource_group_name="examplerg", + environment_name="myenvironment", + name="mysubscription", + ) + + +# x-ms-original-file: 2025-10-02-preview/DaprSubscriptions_Delete.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_get_bulk_subscribe_and_scopes.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_get_bulk_subscribe_and_scopes.py new file mode 100644 index 000000000000..be59b81a290d --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_get_bulk_subscribe_and_scopes.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python dapr_subscriptions_get_bulk_subscribe_and_scopes.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.dapr_subscriptions.get( + resource_group_name="examplerg", + environment_name="myenvironment", + name="mypubsubcomponent", + ) + print(response) + + +# x-ms-original-file: 2025-10-02-preview/DaprSubscriptions_Get_BulkSubscribeAndScopes.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_get_default_route.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_get_default_route.py new file mode 100644 index 000000000000..a43df6fa8087 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_get_default_route.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python dapr_subscriptions_get_default_route.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.dapr_subscriptions.get( + resource_group_name="examplerg", + environment_name="myenvironment", + name="mypubsubcomponent", + ) + print(response) + + +# x-ms-original-file: 2025-10-02-preview/DaprSubscriptions_Get_DefaultRoute.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_get_route_rules_and_metadata.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_get_route_rules_and_metadata.py new file mode 100644 index 000000000000..2ab111bdb14a --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_get_route_rules_and_metadata.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python dapr_subscriptions_get_route_rules_and_metadata.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.dapr_subscriptions.get( + resource_group_name="examplerg", + environment_name="myenvironment", + name="mypubsubcomponent", + ) + print(response) + + +# x-ms-original-file: 2025-10-02-preview/DaprSubscriptions_Get_RouteRulesAndMetadata.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_list.py new file mode 100644 index 000000000000..d4ff0acfa8ac --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dapr_subscriptions_list.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python dapr_subscriptions_list.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.dapr_subscriptions.list( + resource_group_name="examplerg", + environment_name="myenvironment", + ) + for item in response: + print(item) + + +# x-ms-original-file: 2025-10-02-preview/DaprSubscriptions_List.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_create_or_update.py new file mode 100644 index 000000000000..f9c35a20176f --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_create_or_update.py @@ -0,0 +1,49 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python dot_net_components_create_or_update.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.dot_net_components.begin_create_or_update( + resource_group_name="examplerg", + environment_name="myenvironment", + name="mydotnetcomponent", + dot_net_component_envelope={ + "properties": { + "componentType": "AspireDashboard", + "configurations": [{"propertyName": "dashboard-theme", "value": "dark"}], + } + }, + ).result() + print(response) + + +# x-ms-original-file: 2025-10-02-preview/DotNetComponents_CreateOrUpdate.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_create_or_update_service_bind.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_create_or_update_service_bind.py new file mode 100644 index 000000000000..ebbc9a36f5b5 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_create_or_update_service_bind.py @@ -0,0 +1,56 @@ +# pylint: disable=line-too-long,useless-suppression +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python dot_net_components_create_or_update_service_bind.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.dot_net_components.begin_create_or_update( + resource_group_name="examplerg", + environment_name="myenvironment", + name="mydotnetcomponent", + dot_net_component_envelope={ + "properties": { + "componentType": "AspireDashboard", + "configurations": [{"propertyName": "dashboard-theme", "value": "dark"}], + "serviceBinds": [ + { + "name": "yellowcat", + "serviceId": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/dotNetComponents/yellowcat", + } + ], + } + }, + ).result() + print(response) + + +# x-ms-original-file: 2025-10-02-preview/DotNetComponents_CreateOrUpdate_ServiceBind.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_delete.py new file mode 100644 index 000000000000..ce5faabf25d0 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_delete.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python dot_net_components_delete.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + client.dot_net_components.begin_delete( + resource_group_name="examplerg", + environment_name="myenvironment", + name="mydotnetcomponent", + ).result() + + +# x-ms-original-file: 2025-10-02-preview/DotNetComponents_Delete.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_get.py new file mode 100644 index 000000000000..926c408dbbf0 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_get.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python dot_net_components_get.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.dot_net_components.get( + resource_group_name="examplerg", + environment_name="myenvironment", + name="mydotnetcomponent", + ) + print(response) + + +# x-ms-original-file: 2025-10-02-preview/DotNetComponents_Get.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_get_service_bind.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_get_service_bind.py new file mode 100644 index 000000000000..fb3d3eaa2b03 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_get_service_bind.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python dot_net_components_get_service_bind.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.dot_net_components.get( + resource_group_name="examplerg", + environment_name="myenvironment", + name="mydotnetcomponent", + ) + print(response) + + +# x-ms-original-file: 2025-10-02-preview/DotNetComponents_Get_ServiceBind.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_list.py new file mode 100644 index 000000000000..aaeb9fbaee4a --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_list.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python dot_net_components_list.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.dot_net_components.list( + resource_group_name="examplerg", + environment_name="myenvironment", + ) + for item in response: + print(item) + + +# x-ms-original-file: 2025-10-02-preview/DotNetComponents_List.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_list_service_bind.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_list_service_bind.py new file mode 100644 index 000000000000..16437d011d76 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_list_service_bind.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python dot_net_components_list_service_bind.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.dot_net_components.list( + resource_group_name="examplerg", + environment_name="myenvironment", + ) + for item in response: + print(item) + + +# x-ms-original-file: 2025-10-02-preview/DotNetComponents_List_ServiceBind.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_patch.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_patch.py new file mode 100644 index 000000000000..794f3bf53272 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_patch.py @@ -0,0 +1,49 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python dot_net_components_patch.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.dot_net_components.begin_update( + resource_group_name="examplerg", + environment_name="myenvironment", + name="mydotnetcomponent", + dot_net_component_envelope={ + "properties": { + "componentType": "AspireDashboard", + "configurations": [{"propertyName": "dashboard-theme", "value": "dark"}], + } + }, + ).result() + print(response) + + +# x-ms-original-file: 2025-10-02-preview/DotNetComponents_Patch.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_patch_service_bind.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_patch_service_bind.py new file mode 100644 index 000000000000..32dc8ddccb4a --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/dot_net_components_patch_service_bind.py @@ -0,0 +1,56 @@ +# pylint: disable=line-too-long,useless-suppression +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python dot_net_components_patch_service_bind.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.dot_net_components.begin_update( + resource_group_name="examplerg", + environment_name="myenvironment", + name="mydotnetcomponent", + dot_net_component_envelope={ + "properties": { + "componentType": "AspireDashboard", + "configurations": [{"propertyName": "dashboard-theme", "value": "dark"}], + "serviceBinds": [ + { + "name": "yellowcat", + "serviceId": "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/dotNetComponents/yellowcat", + } + ], + } + }, + ).result() + print(response) + + +# x-ms-original-file: 2025-10-02-preview/DotNetComponents_Patch_ServiceBind.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/functions_extension_post.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/functions_extension_post.py new file mode 100644 index 000000000000..96a1ffb73a6b --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/functions_extension_post.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python functions_extension_post.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.functions_extension.invoke_functions_host( + resource_group_name="rg", + container_app_name="testcontainerApp0", + revision_name="testcontainerApp0-pjxhsye", + function_app_name="testcontainerApp0", + ) + print(response) + + +# x-ms-original-file: 2025-10-02-preview/FunctionsExtension_Post.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_create_or_update.py index 419804ea9369..ca303c8cbfd0 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_create_or_update.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.http_route_config.create_or_update( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/HttpRouteConfig_CreateOrUpdate.json +# x-ms-original-file: 2025-10-02-preview/HttpRouteConfig_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_create_or_update_path_sep_prefix.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_create_or_update_path_sep_prefix.py index 934a3e8563b3..15cc7b137736 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_create_or_update_path_sep_prefix.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_create_or_update_path_sep_prefix.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.http_route_config.create_or_update( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/HttpRouteConfig_CreateOrUpdate_PathSepPrefix.json +# x-ms-original-file: 2025-10-02-preview/HttpRouteConfig_CreateOrUpdate_PathSepPrefix.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_create_or_update_prefix.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_create_or_update_prefix.py index 38740f3e384b..6836dc1fd8a0 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_create_or_update_prefix.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_create_or_update_prefix.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.http_route_config.create_or_update( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/HttpRouteConfig_CreateOrUpdatePrefix.json +# x-ms-original-file: 2025-10-02-preview/HttpRouteConfig_CreateOrUpdatePrefix.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_delete.py index f9746a20f9bc..cafb1de619f2 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) client.http_route_config.begin_delete( @@ -38,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/HttpRouteConfig_Delete.json +# x-ms-original-file: 2025-10-02-preview/HttpRouteConfig_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_get.py index fcba88d850c5..5989e05f009f 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.http_route_config.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/HttpRouteConfig_Get.json +# x-ms-original-file: 2025-10-02-preview/HttpRouteConfig_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_list_by_managed_environment.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_list_by_managed_environment.py index 8bc00459c284..9fdd6a05a1ed 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_list_by_managed_environment.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_list_by_managed_environment.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.http_route_config.list( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/HttpRouteConfig_ListByManagedEnvironment.json +# x-ms-original-file: 2025-10-02-preview/HttpRouteConfig_ListByManagedEnvironment.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_patch.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_patch.py index 1f54384cfb19..1d8ae6af506c 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_patch.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/http_route_config_patch.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.http_route_config.update( @@ -50,7 +50,7 @@ def main(): "routes": [ {"action": {"prefixRewrite": "/v1/api"}, "match": {"caseSensitive": True, "path": "/v1"}} ], - "targets": [{"containerApp": "capp-1", "revision": "capp-1--0000001"}], + "targets": [{"containerApp": "capp-1", "revision": "rev-1", "weight": 100}], } ], } @@ -59,6 +59,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/HttpRouteConfig_Patch.json +# x-ms-original-file: 2025-10-02-preview/HttpRouteConfig_Patch.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_create_or_update.py index 9cb7ccd9f204..7c25a09ebc3b 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_create_or_update.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.java_components.begin_create_or_update( @@ -49,6 +48,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/JavaComponents_CreateOrUpdate.json +# x-ms-original-file: 2025-10-02-preview/JavaComponents_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_create_or_update_service_bind.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_create_or_update_service_bind.py index 9573f45a4243..9b206a179292 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_create_or_update_service_bind.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_create_or_update_service_bind.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.java_components.begin_create_or_update( @@ -55,6 +55,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/JavaComponents_CreateOrUpdate_ServiceBind.json +# x-ms-original-file: 2025-10-02-preview/JavaComponents_CreateOrUpdate_ServiceBind.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_delete.py index 034d130dcb73..efdb3cbff85b 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) client.java_components.begin_delete( @@ -38,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/JavaComponents_Delete.json +# x-ms-original-file: 2025-10-02-preview/JavaComponents_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_get.py index 55c6d1b2b5b7..3b35674eb0d8 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.java_components.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/JavaComponents_Get.json +# x-ms-original-file: 2025-10-02-preview/JavaComponents_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_get_service_bind.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_get_service_bind.py index e541e3345b2a..93267e7fadcc 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_get_service_bind.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_get_service_bind.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.java_components.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/JavaComponents_Get_ServiceBind.json +# x-ms-original-file: 2025-10-02-preview/JavaComponents_Get_ServiceBind.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_list.py index ce1d00172b51..370a2efaaba3 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_list.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_list.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.java_components.list( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/JavaComponents_List.json +# x-ms-original-file: 2025-10-02-preview/JavaComponents_List.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_list_service_bind.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_list_service_bind.py index 035b1eb8aa74..15ff7be2c38b 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_list_service_bind.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_list_service_bind.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.java_components.list( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/JavaComponents_List_ServiceBind.json +# x-ms-original-file: 2025-10-02-preview/JavaComponents_List_ServiceBind.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_patch.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_patch.py index f535d6258502..ad95d8ab50de 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_patch.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_patch.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.java_components.begin_update( @@ -49,6 +48,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/JavaComponents_Patch.json +# x-ms-original-file: 2025-10-02-preview/JavaComponents_Patch.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_patch_service_bind.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_patch_service_bind.py index 9aedb195a61c..36e824b5827f 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_patch_service_bind.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/java_components_patch_service_bind.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.java_components.begin_update( @@ -55,6 +55,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/JavaComponents_Patch_ServiceBind.json +# x-ms-original-file: 2025-10-02-preview/JavaComponents_Patch_ServiceBind.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_createor_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_createor_update.py index 4f6155c00c78..0f84f0e1360d 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_createor_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_createor_update.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,122 +28,74 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.jobs.begin_create_or_update( resource_group_name="rg", - job_name="testcontainerappsjob0", + job_name="testcontainerAppsJob0", job_envelope={ - "location": "str", - "configuration": { - "replicaTimeout": 0, - "triggerType": "Manual", - "eventTriggerConfig": { - "parallelism": 0, - "replicaCompletionCount": 0, - "scale": { - "maxExecutions": 100, - "minExecutions": 0, - "pollingInterval": 0, - "rules": [ - { - "auth": [{"secretRef": "str", "triggerParameter": "str"}], - "identity": "str", - "metadata": {}, - "name": "str", - "type": "str", - } - ], - }, - }, - "identitySettings": [{"identity": "str", "lifecycle": "str"}], - "manualTriggerConfig": {"parallelism": 0, "replicaCompletionCount": 0}, - "registries": [{"identity": "str", "passwordSecretRef": "str", "server": "str", "username": "str"}], - "replicaRetryLimit": 0, - "scheduleTriggerConfig": {"cronExpression": "str", "parallelism": 0, "replicaCompletionCount": 0}, - "secrets": [{"identity": "str", "keyVaultUrl": "str", "name": "str", "value": "str"}], - }, - "environmentId": "str", - "eventStreamEndpoint": "str", - "id": "str", "identity": { - "type": "str", - "principalId": "str", - "tenantId": "str", - "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, - }, - "name": "str", - "outboundIpAddresses": ["str"], - "provisioningState": "str", - "systemData": { - "createdAt": "2020-02-20 00:00:00", - "createdBy": "str", - "createdByType": "str", - "lastModifiedAt": "2020-02-20 00:00:00", - "lastModifiedBy": "str", - "lastModifiedByType": "str", + "type": "SystemAssigned,UserAssigned", + "userAssignedIdentities": { + "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity": {} + }, }, - "tags": {"str": "str"}, - "template": { - "containers": [ - { - "args": ["str"], - "command": ["str"], - "env": [{"name": "str", "secretRef": "str", "value": "str"}], - "image": "str", - "name": "str", - "probes": [ - { - "failureThreshold": 0, - "httpGet": { - "port": 0, - "host": "str", - "httpHeaders": [{"name": "str", "value": "str"}], - "path": "str", - "scheme": "str", - }, - "initialDelaySeconds": 0, - "periodSeconds": 0, - "successThreshold": 0, - "tcpSocket": {"port": 0, "host": "str"}, - "terminationGracePeriodSeconds": 0, - "timeoutSeconds": 0, - "type": "str", - } - ], - "resources": {"cpu": 0.0, "ephemeralStorage": "str", "memory": "str"}, - "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], - } - ], - "initContainers": [ - { - "args": ["str"], - "command": ["str"], - "env": [{"name": "str", "secretRef": "str", "value": "str"}], - "image": "str", - "name": "str", - "resources": {"cpu": 0.0, "ephemeralStorage": "str", "memory": "str"}, - "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], - } - ], - "volumes": [ - { - "mountOptions": "str", - "name": "str", - "secrets": [{"path": "str", "secretRef": "str"}], - "storageName": "str", - "storageType": "str", - } - ], + "location": "East US", + "properties": { + "configuration": { + "identitySettings": [ + { + "identity": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity", + "lifecycle": "All", + }, + {"identity": "system", "lifecycle": "Init"}, + ], + "manualTriggerConfig": {"parallelism": 4, "replicaCompletionCount": 1}, + "replicaRetryLimit": 10, + "replicaTimeout": 10, + "triggerType": "Manual", + }, + "environmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", + "template": { + "containers": [ + { + "image": "repo/testcontainerAppsJob0:v1", + "name": "testcontainerAppsJob0", + "probes": [ + { + "httpGet": { + "httpHeaders": [{"name": "Custom-Header", "value": "Awesome"}], + "path": "/health", + "port": 8080, + }, + "initialDelaySeconds": 5, + "periodSeconds": 3, + "type": "Liveness", + } + ], + "volumeMounts": [ + {"mountPath": "/mnt/path1", "subPath": "subPath1", "volumeName": "azurefile"}, + {"mountPath": "/mnt/path2", "subPath": "subPath2", "volumeName": "nfsazurefile"}, + ], + } + ], + "initContainers": [ + { + "args": ["-c", "while true; do echo hello; sleep 10;done"], + "command": ["/bin/sh"], + "image": "repo/testcontainerAppsJob0:v4", + "name": "testinitcontainerAppsJob0", + "resources": {"cpu": 0.2, "gpu": 1, "memory": "100Mi"}, + } + ], + }, }, - "type": "str", - "workloadProfileName": "str", }, ).result() print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Job_CreateorUpdate.json +# x-ms-original-file: 2025-10-02-preview/Job_CreateorUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_createor_update_connected_environment.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_createor_update_connected_environment.py new file mode 100644 index 000000000000..e76032ad8416 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_createor_update_connected_environment.py @@ -0,0 +1,88 @@ +# pylint: disable=line-too-long,useless-suppression +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python job_createor_update_connected_environment.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.jobs.begin_create_or_update( + resource_group_name="rg", + job_name="testcontainerAppsJob0", + job_envelope={ + "extendedLocation": { + "name": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation", + "type": "CustomLocation", + }, + "location": "East US", + "properties": { + "configuration": { + "manualTriggerConfig": {"parallelism": 4, "replicaCompletionCount": 1}, + "replicaRetryLimit": 10, + "replicaTimeout": 10, + "triggerType": "Manual", + }, + "environmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/connectedEnvironments/demokube", + "template": { + "containers": [ + { + "image": "repo/testcontainerAppsJob0:v1", + "name": "testcontainerAppsJob0", + "probes": [ + { + "httpGet": { + "httpHeaders": [{"name": "Custom-Header", "value": "Awesome"}], + "path": "/health", + "port": 8080, + }, + "initialDelaySeconds": 5, + "periodSeconds": 3, + "type": "Liveness", + } + ], + } + ], + "initContainers": [ + { + "args": ["-c", "while true; do echo hello; sleep 10;done"], + "command": ["/bin/sh"], + "image": "repo/testcontainerAppsJob0:v4", + "name": "testinitcontainerAppsJob0", + "resources": {"cpu": 0.2, "memory": "100Mi"}, + } + ], + }, + }, + }, + ).result() + print(response) + + +# x-ms-original-file: 2025-10-02-preview/Job_CreateorUpdate_ConnectedEnvironment.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_createor_update_event_trigger.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_createor_update_event_trigger.py index 4936deff37f0..65c4e15e1cb2 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_createor_update_event_trigger.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_createor_update_event_trigger.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,122 +28,62 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.jobs.begin_create_or_update( resource_group_name="rg", - job_name="testcontainerappsjob0", + job_name="testcontainerAppsJob0", job_envelope={ - "location": "str", - "configuration": { - "replicaTimeout": 0, - "triggerType": "Manual", - "eventTriggerConfig": { - "parallelism": 0, - "replicaCompletionCount": 0, - "scale": { - "maxExecutions": 100, - "minExecutions": 0, - "pollingInterval": 0, - "rules": [ - { - "auth": [{"secretRef": "str", "triggerParameter": "str"}], - "identity": "str", - "metadata": {}, - "name": "str", - "type": "str", - } - ], - }, - }, - "identitySettings": [{"identity": "str", "lifecycle": "str"}], - "manualTriggerConfig": {"parallelism": 0, "replicaCompletionCount": 0}, - "registries": [{"identity": "str", "passwordSecretRef": "str", "server": "str", "username": "str"}], - "replicaRetryLimit": 0, - "scheduleTriggerConfig": {"cronExpression": "str", "parallelism": 0, "replicaCompletionCount": 0}, - "secrets": [{"identity": "str", "keyVaultUrl": "str", "name": "str", "value": "str"}], - }, - "environmentId": "str", - "eventStreamEndpoint": "str", - "id": "str", "identity": { - "type": "str", - "principalId": "str", - "tenantId": "str", - "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, - }, - "name": "str", - "outboundIpAddresses": ["str"], - "provisioningState": "str", - "systemData": { - "createdAt": "2020-02-20 00:00:00", - "createdBy": "str", - "createdByType": "str", - "lastModifiedAt": "2020-02-20 00:00:00", - "lastModifiedBy": "str", - "lastModifiedByType": "str", + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity": {} + }, }, - "tags": {"str": "str"}, - "template": { - "containers": [ - { - "args": ["str"], - "command": ["str"], - "env": [{"name": "str", "secretRef": "str", "value": "str"}], - "image": "str", - "name": "str", - "probes": [ - { - "failureThreshold": 0, - "httpGet": { - "port": 0, - "host": "str", - "httpHeaders": [{"name": "str", "value": "str"}], - "path": "str", - "scheme": "str", - }, - "initialDelaySeconds": 0, - "periodSeconds": 0, - "successThreshold": 0, - "tcpSocket": {"port": 0, "host": "str"}, - "terminationGracePeriodSeconds": 0, - "timeoutSeconds": 0, - "type": "str", - } - ], - "resources": {"cpu": 0.0, "ephemeralStorage": "str", "memory": "str"}, - "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], - } - ], - "initContainers": [ - { - "args": ["str"], - "command": ["str"], - "env": [{"name": "str", "secretRef": "str", "value": "str"}], - "image": "str", - "name": "str", - "resources": {"cpu": 0.0, "ephemeralStorage": "str", "memory": "str"}, - "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], - } - ], - "volumes": [ - { - "mountOptions": "str", - "name": "str", - "secrets": [{"path": "str", "secretRef": "str"}], - "storageName": "str", - "storageType": "str", - } - ], + "location": "East US", + "properties": { + "configuration": { + "eventTriggerConfig": { + "parallelism": 4, + "replicaCompletionCount": 1, + "scale": { + "maxExecutions": 5, + "minExecutions": 1, + "pollingInterval": 40, + "rules": [ + { + "identity": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity", + "metadata": {"topicName": "my-topic"}, + "name": "servicebuscalingrule", + "type": "azure-servicebus", + } + ], + }, + }, + "replicaRetryLimit": 10, + "replicaTimeout": 10, + "triggerType": "Event", + }, + "environmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", + "template": { + "containers": [{"image": "repo/testcontainerAppsJob0:v1", "name": "testcontainerAppsJob0"}], + "initContainers": [ + { + "args": ["-c", "while true; do echo hello; sleep 10;done"], + "command": ["/bin/sh"], + "image": "repo/testcontainerAppsJob0:v4", + "name": "testinitcontainerAppsJob0", + "resources": {"cpu": 0.2, "memory": "100Mi"}, + } + ], + }, }, - "type": "str", - "workloadProfileName": "str", }, ).result() print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Job_CreateorUpdate_EventTrigger.json +# x-ms-original-file: 2025-10-02-preview/Job_CreateorUpdate_EventTrigger.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_delete.py index c9f1d246234c..9298b2dae96c 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,15 +27,15 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) client.jobs.begin_delete( resource_group_name="rg", - job_name="testworkercontainerappsjob0", + job_name="testWorkerContainerAppsJob0", ).result() -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Job_Delete.json +# x-ms-original-file: 2025-10-02-preview/Job_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_execution_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_execution_get.py index 3cf1120022a4..4f24d4e92c3a 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_execution_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_execution_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,17 +27,17 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.job_execution( resource_group_name="rg", - job_name="testcontainerappsjob0", + job_name="testcontainerAppsJob0", job_execution_name="jobExecution1", ) print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Job_Execution_Get.json +# x-ms-original-file: 2025-10-02-preview/Job_Execution_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_executions_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_executions_get.py index d0f86a308abb..008f1345d8a2 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_executions_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_executions_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,17 +27,17 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.jobs_executions.list( resource_group_name="rg", - job_name="testcontainerappsjob0", + job_name="testcontainerAppsJob0", ) for item in response: print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Job_Executions_Get.json +# x-ms-original-file: 2025-10-02-preview/Job_Executions_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_get.py index 187acd927a35..3669f37758a2 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,16 +27,16 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.jobs.get( resource_group_name="rg", - job_name="testcontainerappsjob0", + job_name="testcontainerAppsJob0", ) print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Job_Get.json +# x-ms-original-file: 2025-10-02-preview/Job_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_get_detector.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_get_detector.py index 0b7689203611..3c0129da4a1c 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_get_detector.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_get_detector.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="f07f3711-b45e-40fe-a941-4e6d93f851e6", + subscription_id="SUBSCRIPTION_ID", ) response = client.jobs.get_detector( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Job_GetDetector.json +# x-ms-original-file: 2025-10-02-preview/Job_GetDetector.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_list_detectors.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_list_detectors.py index 2109549b190f..b421c475a82a 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_list_detectors.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_list_detectors.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="f07f3711-b45e-40fe-a941-4e6d93f851e6", + subscription_id="SUBSCRIPTION_ID", ) response = client.jobs.list_detectors( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Job_ListDetectors.json +# x-ms-original-file: 2025-10-02-preview/Job_ListDetectors.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_list_secrets.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_list_secrets.py index c4def9a302bc..aee9cf242e8d 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_list_secrets.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_list_secrets.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,16 +27,16 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.jobs.list_secrets( resource_group_name="rg", - job_name="testcontainerappsjob0", + job_name="testcontainerAppsJob0", ) print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Job_ListSecrets.json +# x-ms-original-file: 2025-10-02-preview/Job_ListSecrets.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_patch.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_patch.py index b1b296071e4c..ab56a3474c93 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_patch.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_patch.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,110 +27,55 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.jobs.begin_update( resource_group_name="rg", - job_name="testcontainerappsjob0", + job_name="testcontainerAppsJob0", job_envelope={ - "identity": { - "type": "str", - "principalId": "str", - "tenantId": "str", - "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, - }, "properties": { "configuration": { - "replicaTimeout": 0, + "manualTriggerConfig": {"parallelism": 4, "replicaCompletionCount": 1}, + "replicaRetryLimit": 10, + "replicaTimeout": 10, "triggerType": "Manual", - "eventTriggerConfig": { - "parallelism": 0, - "replicaCompletionCount": 0, - "scale": { - "maxExecutions": 100, - "minExecutions": 0, - "pollingInterval": 0, - "rules": [ - { - "auth": [{"secretRef": "str", "triggerParameter": "str"}], - "identity": "str", - "metadata": {}, - "name": "str", - "type": "str", - } - ], - }, - }, - "identitySettings": [{"identity": "str", "lifecycle": "str"}], - "manualTriggerConfig": {"parallelism": 0, "replicaCompletionCount": 0}, - "registries": [{"identity": "str", "passwordSecretRef": "str", "server": "str", "username": "str"}], - "replicaRetryLimit": 0, - "scheduleTriggerConfig": {"cronExpression": "str", "parallelism": 0, "replicaCompletionCount": 0}, - "secrets": [{"identity": "str", "keyVaultUrl": "str", "name": "str", "value": "str"}], }, - "environmentId": "str", - "eventStreamEndpoint": "str", - "outboundIpAddresses": ["str"], "template": { "containers": [ { - "args": ["str"], - "command": ["str"], - "env": [{"name": "str", "secretRef": "str", "value": "str"}], - "image": "str", - "name": "str", + "image": "repo/testcontainerAppsJob0:v1", + "name": "testcontainerAppsJob0", "probes": [ { - "failureThreshold": 0, "httpGet": { - "port": 0, - "host": "str", - "httpHeaders": [{"name": "str", "value": "str"}], - "path": "str", - "scheme": "str", + "httpHeaders": [{"name": "Custom-Header", "value": "Awesome"}], + "path": "/health", + "port": 8080, }, - "initialDelaySeconds": 0, - "periodSeconds": 0, - "successThreshold": 0, - "tcpSocket": {"port": 0, "host": "str"}, - "terminationGracePeriodSeconds": 0, - "timeoutSeconds": 0, - "type": "str", + "initialDelaySeconds": 3, + "periodSeconds": 3, + "type": "Liveness", } ], - "resources": {"cpu": 0.0, "ephemeralStorage": "str", "memory": "str"}, - "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], } ], "initContainers": [ { - "args": ["str"], - "command": ["str"], - "env": [{"name": "str", "secretRef": "str", "value": "str"}], - "image": "str", - "name": "str", - "resources": {"cpu": 0.0, "ephemeralStorage": "str", "memory": "str"}, - "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], - } - ], - "volumes": [ - { - "mountOptions": "str", - "name": "str", - "secrets": [{"path": "str", "secretRef": "str"}], - "storageName": "str", - "storageType": "str", + "args": ["-c", "while true; do echo hello; sleep 10;done"], + "command": ["/bin/sh"], + "image": "repo/testcontainerAppsJob0:v4", + "name": "testinitcontainerAppsJob0", + "resources": {"cpu": 0.2, "memory": "100Mi"}, } ], }, - }, - "tags": {"str": "str"}, + } }, ).result() print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Job_Patch.json +# x-ms-original-file: 2025-10-02-preview/Job_Patch.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_proxy_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_proxy_get.py index feaabb19f3af..b10cddd5d969 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_proxy_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_proxy_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,17 +27,17 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.jobs.proxy_get( resource_group_name="rg", - job_name="testcontainerappsjob0", + job_name="testcontainerAppsJob0", api_name="rootApi", ) print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Job_ProxyGet.json +# x-ms-original-file: 2025-10-02-preview/Job_ProxyGet.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_start.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_start.py index bb9ef39b0ddc..59dc9a2ff0cf 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_start.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_start.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,16 +27,16 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.jobs.begin_start( resource_group_name="rg", - job_name="testcontainerappsjob0", + job_name="testcontainerAppsJob0", ).result() print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Job_Start.json +# x-ms-original-file: 2025-10-02-preview/Job_Start.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_stop_execution.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_stop_execution.py index 5bc8b67a61a9..8707055ea5af 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_stop_execution.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_stop_execution.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,16 +27,16 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) client.jobs.begin_stop_execution( resource_group_name="rg", - job_name="testcontainerappsjob0", + job_name="testcontainerAppsJob0", job_execution_name="jobExecution1", ).result() -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Job_Stop_Execution.json +# x-ms-original-file: 2025-10-02-preview/Job_Stop_Execution.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_stop_multiple.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_stop_multiple.py index ad653ff1b639..5515f0e6d186 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_stop_multiple.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/job_stop_multiple.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,16 +27,16 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.jobs.begin_stop_multiple_executions( resource_group_name="rg", - job_name="testcontainerappsjob0", + job_name="testcontainerAppsJob0", ).result() print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Job_Stop_Multiple.json +# x-ms-original-file: 2025-10-02-preview/Job_Stop_Multiple.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/jobs_list_by_resource_group.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/jobs_list_by_resource_group.py index 8dc9771eb849..1df2ea31e7b0 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/jobs_list_by_resource_group.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/jobs_list_by_resource_group.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.jobs.list_by_resource_group( @@ -38,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Jobs_ListByResourceGroup.json +# x-ms-original-file: 2025-10-02-preview/Jobs_ListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/jobs_list_by_subscription.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/jobs_list_by_subscription.py index e195b7b89ed7..5d0d621d182f 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/jobs_list_by_subscription.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/jobs_list_by_subscription.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.jobs.list_by_subscription() @@ -36,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Jobs_ListBySubscription.json +# x-ms-original-file: 2025-10-02-preview/Jobs_ListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/jobs_resume.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/jobs_resume.py new file mode 100644 index 000000000000..99276753b1bb --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/jobs_resume.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python jobs_resume.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.jobs.begin_resume( + resource_group_name="rg", + job_name="testcontainerAppsJob0", + ).result() + print(response) + + +# x-ms-original-file: 2025-10-02-preview/Jobs_Resume.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/jobs_suspend.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/jobs_suspend.py new file mode 100644 index 000000000000..8a087d1d446a --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/jobs_suspend.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python jobs_suspend.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.jobs.begin_suspend( + resource_group_name="rg", + job_name="testcontainerAppsJob0", + ).result() + print(response) + + +# x-ms-original-file: 2025-10-02-preview/Jobs_Suspend.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/label_history_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/label_history_delete.py new file mode 100644 index 000000000000..73b9fed7ce29 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/label_history_delete.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python label_history_delete.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + client.container_apps_label_history.delete_label_history( + resource_group_name="rg", + container_app_name="testContainerApp", + label_name="dev", + ) + + +# x-ms-original-file: 2025-10-02-preview/LabelHistory_Delete.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/label_history_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/label_history_get.py new file mode 100644 index 000000000000..ce7b9a358b10 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/label_history_get.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python label_history_get.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.container_apps_label_history.get_label_history( + resource_group_name="rg", + container_app_name="testContainerApp", + label_name="dev", + ) + print(response) + + +# x-ms-original-file: 2025-10-02-preview/LabelHistory_Get.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/label_history_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/label_history_list.py new file mode 100644 index 000000000000..0075ef136bd6 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/label_history_list.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python label_history_list.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.container_apps_label_history.list_label_history( + resource_group_name="rg", + container_app_name="testContainerApp", + ) + for item in response: + print(item) + + +# x-ms-original-file: 2025-10-02-preview/LabelHistory_List.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_create.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_create.py index 2f5292cefe0d..a8c61c4c0d27 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_create.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_create.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,17 +27,18 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.logic_apps.create_or_update( resource_group_name="examplerg", container_app_name="testcontainerApp0", logic_app_name="testcontainerApp0", + resource={"properties": {}}, ) print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/LogicApps_Create.json +# x-ms-original-file: 2025-10-02-preview/LogicApps_Create.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_delete.py index 5ef544ee508b..bf71a3250cff 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) client.logic_apps.delete( @@ -38,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/LogicApps_Delete.json +# x-ms-original-file: 2025-10-02-preview/LogicApps_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_delete_deploy_workflow_artifacts.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_delete_deploy_workflow_artifacts.py new file mode 100644 index 000000000000..94f329ab727b --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_delete_deploy_workflow_artifacts.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python logic_apps_delete_deploy_workflow_artifacts.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + client.logic_apps.deploy_workflow_artifacts( + resource_group_name="testrg123", + container_app_name="testapp2", + logic_app_name="testapp2", + ) + + +# x-ms-original-file: 2025-10-02-preview/LogicApps_DeleteDeployWorkflowArtifacts.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_get.py index 88e6bc3be2e8..aa68326bdfc5 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.logic_apps.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/LogicApps_Get.json +# x-ms-original-file: 2025-10-02-preview/LogicApps_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_get_workflow.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_get_workflow.py index 098c11ef5abc..36c03abdb152 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_get_workflow.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_get_workflow.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.logic_apps.get_workflow( @@ -40,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/LogicApps_GetWorkflow.json +# x-ms-original-file: 2025-10-02-preview/LogicApps_GetWorkflow.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_list_callback_url.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_list_callback_url.py new file mode 100644 index 000000000000..16c50cecce5f --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_list_callback_url.py @@ -0,0 +1,46 @@ +# pylint: disable=line-too-long,useless-suppression +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python logic_apps_list_callback_url.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.logic_apps.invoke( + resource_group_name="testrg123", + container_app_name="testapp2", + logic_app_name="testapp2", + x_ms_logic_apps_proxy_path="/runtime/webhooks/workflow/api/management/workflows/Stateful1/triggers/When_a_HTTP_request_is_received/listCallbackUrl", + x_ms_logic_apps_proxy_method="POST", + ) + print(response) + + +# x-ms-original-file: 2025-10-02-preview/LogicApps_ListCallbackURL.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_list_connections.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_list_connections.py index 4cbfc2c77ee1..3f948ee01132 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_list_connections.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_list_connections.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.logic_apps.list_workflows_connections( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/LogicApps_ListConnections.json +# x-ms-original-file: 2025-10-02-preview/LogicApps_ListConnections.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_list_workflows.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_list_workflows.py index 086720921937..9c4821121237 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_list_workflows.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_list_workflows.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.logic_apps.list_workflows( @@ -40,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/LogicApps_ListWorkflows.json +# x-ms-original-file: 2025-10-02-preview/LogicApps_ListWorkflows.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_post_deploy_workflow_artifacts.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_post_deploy_workflow_artifacts.py new file mode 100644 index 000000000000..8b4b6fed4c80 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/logic_apps_post_deploy_workflow_artifacts.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python logic_apps_post_deploy_workflow_artifacts.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + client.logic_apps.deploy_workflow_artifacts( + resource_group_name="testrg123", + container_app_name="testapp2", + logic_app_name="testapp2", + ) + + +# x-ms-original-file: 2025-10-02-preview/LogicApps_PostDeployWorkflowArtifacts.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificate_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificate_create_or_update.py index e6c0a82bd009..edc9f3be6511 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificate_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificate_create_or_update.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.managed_certificates.begin_create_or_update( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedCertificate_CreateOrUpdate.json +# x-ms-original-file: 2025-10-02-preview/ManagedCertificate_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificate_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificate_delete.py index 3396a9789efe..0c0e51be164b 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificate_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificate_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) client.managed_certificates.delete( @@ -38,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedCertificate_Delete.json +# x-ms-original-file: 2025-10-02-preview/ManagedCertificate_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificate_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificate_get.py index dd1a312f2fcf..97fe2b18d72f 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificate_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificate_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.managed_certificates.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedCertificate_Get.json +# x-ms-original-file: 2025-10-02-preview/ManagedCertificate_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificates_list_by_managed_environment.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificates_list_by_managed_environment.py index 28ca9ceeb08b..26f4094d6098 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificates_list_by_managed_environment.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificates_list_by_managed_environment.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.managed_certificates.list( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedCertificates_ListByManagedEnvironment.json +# x-ms-original-file: 2025-10-02-preview/ManagedCertificates_ListByManagedEnvironment.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificates_patch.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificates_patch.py index e56212b61644..fb353f0b54f8 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificates_patch.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_certificates_patch.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.managed_certificates.update( @@ -40,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedCertificates_Patch.json +# x-ms-original-file: 2025-10-02-preview/ManagedCertificates_Patch.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_diagnostics_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_diagnostics_get.py index 9edb7e2945a6..c98b0434dd28 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_diagnostics_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_diagnostics_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="f07f3711-b45e-40fe-a941-4e6d93f851e6", + subscription_id="SUBSCRIPTION_ID", ) response = client.managed_environment_diagnostics.get_detector( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironmentDiagnostics_Get.json +# x-ms-original-file: 2025-10-02-preview/ManagedEnvironmentDiagnostics_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_diagnostics_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_diagnostics_list.py index 272d41001852..2243da771f52 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_diagnostics_list.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_diagnostics_list.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="f07f3711-b45e-40fe-a941-4e6d93f851e6", + subscription_id="SUBSCRIPTION_ID", ) response = client.managed_environment_diagnostics.list_detectors( @@ -38,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironmentDiagnostics_List.json +# x-ms-original-file: 2025-10-02-preview/ManagedEnvironmentDiagnostics_List.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_create_or_update.py index 09584840d924..28a562c14da3 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_create_or_update.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.maintenance_configurations.create_or_update( @@ -42,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironment_MaintenanceConfigurations_CreateOrUpdate.json +# x-ms-original-file: 2025-10-02-preview/ManagedEnvironment_MaintenanceConfigurations_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_delete.py index 84063fb21d09..68a30c8666a7 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) client.maintenance_configurations.delete( @@ -38,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironment_MaintenanceConfigurations_Delete.json +# x-ms-original-file: 2025-10-02-preview/ManagedEnvironment_MaintenanceConfigurations_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_get.py index 40c1a2ab5d03..19fda8005f33 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.maintenance_configurations.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironment_MaintenanceConfigurations_Get.json +# x-ms-original-file: 2025-10-02-preview/ManagedEnvironment_MaintenanceConfigurations_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_list.py index 61779abecf2b..bdef8f33d860 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_list.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_maintenance_configurations_list.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.maintenance_configurations.list( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironment_MaintenanceConfigurations_List.json +# x-ms-original-file: 2025-10-02-preview/ManagedEnvironment_MaintenanceConfigurations_List.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_endpoint_connections_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_endpoint_connections_create_or_update.py index c00d9f0d0b44..2c85087bf150 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_endpoint_connections_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_endpoint_connections_create_or_update.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.managed_environment_private_endpoint_connections.begin_create_or_update( @@ -42,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironmentPrivateEndpointConnections_CreateOrUpdate.json +# x-ms-original-file: 2025-10-02-preview/ManagedEnvironmentPrivateEndpointConnections_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_endpoint_connections_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_endpoint_connections_delete.py index d833a1b7c25e..45b5fcefb91a 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_endpoint_connections_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_endpoint_connections_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) client.managed_environment_private_endpoint_connections.begin_delete( @@ -38,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironmentPrivateEndpointConnections_Delete.json +# x-ms-original-file: 2025-10-02-preview/ManagedEnvironmentPrivateEndpointConnections_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_endpoint_connections_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_endpoint_connections_get.py index a8f24ac2940e..57a5506b1a25 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_endpoint_connections_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_endpoint_connections_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.managed_environment_private_endpoint_connections.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironmentPrivateEndpointConnections_Get.json +# x-ms-original-file: 2025-10-02-preview/ManagedEnvironmentPrivateEndpointConnections_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_endpoint_connections_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_endpoint_connections_list.py index ce1dcd9f325e..7156298a4955 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_endpoint_connections_list.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_endpoint_connections_list.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.managed_environment_private_endpoint_connections.list( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironmentPrivateEndpointConnections_List.json +# x-ms-original-file: 2025-10-02-preview/ManagedEnvironmentPrivateEndpointConnections_List.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_link_resources_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_link_resources_list.py index 73c56387033f..40c31b2e540b 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_link_resources_list.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_private_link_resources_list.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.managed_environment_private_link_resources.list( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironmentPrivateLinkResources_List.json +# x-ms-original-file: 2025-10-02-preview/ManagedEnvironmentPrivateLinkResources_List.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_usages_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_usages_list.py index 77c9dd6044e2..03bb8ef116a0 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_usages_list.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environment_usages_list.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="subid", + subscription_id="SUBSCRIPTION_ID", ) response = client.managed_environment_usages.list( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironmentUsages_List.json +# x-ms-original-file: 2025-10-02-preview/ManagedEnvironmentUsages_List.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_create_or_update.py index 40c777a6d844..d870fa27b48c 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_create_or_update.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.managed_environments.begin_create_or_update( @@ -43,19 +43,53 @@ def main(): }, "location": "East US", "properties": { - "appLogsConfiguration": {"logAnalyticsConfiguration": {"customerId": "string", "sharedKey": "string"}}, + "appInsightsConfiguration": { + "connectionString": "InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://eastus-8.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/" + }, + "appLogsConfiguration": { + "logAnalyticsConfiguration": { + "customerId": "string", + "dynamicJsonColumns": True, + "sharedKey": "string", + } + }, + "availabilityZones": ["1", "2", "3"], "customDomainConfiguration": { "certificatePassword": "1234", "certificateValue": "Y2VydA==", "dnsSuffix": "www.my-name.com", }, "daprAIConnectionString": "InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://northcentralus-0.in.applicationinsights.azure.com/", + "diskEncryptionConfiguration": { + "keyVaultConfiguration": { + "auth": { + "identity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-resources/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-identity" + }, + "keyUrl": "https://contoso.vault.azure.net/mykey/19ff8313ca394b89b9e824bbbdc8c521", + } + }, "ingressConfiguration": { "headerCountLimit": 30, "requestIdleTimeout": 5, "terminationGracePeriodSeconds": 3600, "workloadProfileName": "My-CO-01", }, + "openTelemetryConfiguration": { + "destinationsConfiguration": { + "dataDogConfiguration": {"key": "000000000000000000000000", "site": "string"}, + "otlpConfigurations": [ + { + "endpoint": "dashboard.k8s.region.azurecontainerapps.io:80", + "headers": [{"key": "api-key", "value": "xxxxxxxxxxx"}], + "insecure": True, + "name": "dashboard", + } + ], + }, + "logsConfiguration": {"destinations": ["appInsights"]}, + "metricsConfiguration": {"destinations": ["dataDog"], "includeKeda": True}, + "tracesConfiguration": {"destinations": ["appInsights"], "includeDapr": True}, + }, "peerAuthentication": {"mtls": {"enabled": True}}, "peerTrafficConfiguration": {"encryption": {"enabled": True}}, "vnetConfiguration": { @@ -63,6 +97,7 @@ def main(): }, "workloadProfiles": [ { + "enableFips": True, "maximumCount": 12, "minimumCount": 3, "name": "My-GP-01", @@ -89,6 +124,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironments_CreateOrUpdate.json +# x-ms-original-file: 2025-10-02-preview/ManagedEnvironments_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_custom_infrastructure_resource_group_create.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_custom_infrastructure_resource_group_create.py index 370fce8e051d..543df4294277 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_custom_infrastructure_resource_group_create.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_custom_infrastructure_resource_group_create.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.managed_environments.begin_create_or_update( @@ -38,6 +38,7 @@ def main(): "location": "East US", "properties": { "appLogsConfiguration": {"logAnalyticsConfiguration": {"customerId": "string", "sharedKey": "string"}}, + "availabilityZones": ["1", "2", "3"], "customDomainConfiguration": { "certificatePassword": "1234", "certificateValue": "Y2VydA==", @@ -50,6 +51,7 @@ def main(): }, "workloadProfiles": [ { + "enableFips": True, "maximumCount": 12, "minimumCount": 3, "name": "My-GP-01", @@ -76,6 +78,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironments_CustomInfrastructureResourceGroup_Create.json +# x-ms-original-file: 2025-10-02-preview/ManagedEnvironments_CustomInfrastructureResourceGroup_Create.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_delete.py index 629ad226bc19..9ce5d90e62ab 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) client.managed_environments.begin_delete( @@ -37,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironments_Delete.json +# x-ms-original-file: 2025-10-02-preview/ManagedEnvironments_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_get.py index b115358ed0ab..639d508c2372 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,16 +27,16 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) - response = client.managed_environments_diagnostics.get_root( + response = client.managed_environments.get( resource_group_name="examplerg", environment_name="jlaw-demo1", ) print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironments_Get.json +# x-ms-original-file: 2025-10-02-preview/ManagedEnvironments_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_get1.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_get1.py new file mode 100644 index 000000000000..822ade3fd341 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_get1.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python managed_environments_get1.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.managed_environments_diagnostics.get_root( + resource_group_name="examplerg", + environment_name="jlaw-demo1", + ) + print(response) + + +# x-ms-original-file: 2025-10-02-preview/ManagedEnvironments_Get1.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_get_auth_token.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_get_auth_token.py index 387e02d47f6e..a048721f2542 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_get_auth_token.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_get_auth_token.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="651f8027-33e8-4ec4-97b4-f6e9f3dc8744", + subscription_id="SUBSCRIPTION_ID", ) response = client.managed_environments.get_auth_token( @@ -38,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironments_GetAuthToken.json +# x-ms-original-file: 2025-10-02-preview/ManagedEnvironments_GetAuthToken.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_list_by_resource_group.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_list_by_resource_group.py index 42417e724cd5..22ec1d80f4e7 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_list_by_resource_group.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_list_by_resource_group.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.managed_environments.list_by_resource_group( @@ -38,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironments_ListByResourceGroup.json +# x-ms-original-file: 2025-10-02-preview/ManagedEnvironments_ListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_list_by_subscription.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_list_by_subscription.py index afd1cea985f3..8d97af3d7631 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_list_by_subscription.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_list_by_subscription.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.managed_environments.list_by_subscription() @@ -36,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironments_ListBySubscription.json +# x-ms-original-file: 2025-10-02-preview/ManagedEnvironments_ListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_list_workload_profile_states.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_list_workload_profile_states.py index 106a7554eff3..23f6682ca0e9 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_list_workload_profile_states.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_list_workload_profile_states.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.managed_environments.list_workload_profile_states( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironments_ListWorkloadProfileStates.json +# x-ms-original-file: 2025-10-02-preview/ManagedEnvironments_ListWorkloadProfileStates.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_patch.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_patch.py index 676b64db5e5d..d27b431145c5 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_patch.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_patch.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.managed_environments.begin_update( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironments_Patch.json +# x-ms-original-file: 2025-10-02-preview/ManagedEnvironments_Patch.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_create_or_update.py index ee25e1e43cb8..f202ae2596f8 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_create_or_update.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.managed_environments_storages.create_or_update( @@ -49,6 +48,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json +# x-ms-original-file: 2025-10-02-preview/ManagedEnvironmentsStorages_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_create_or_update_nfs_azure_file.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_create_or_update_nfs_azure_file.py index d3fe6e29f2f5..12ead03d4546 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_create_or_update_nfs_azure_file.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_create_or_update_nfs_azure_file.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.managed_environments_storages.create_or_update( @@ -42,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironmentsStorages_CreateOrUpdate_NfsAzureFile.json +# x-ms-original-file: 2025-10-02-preview/ManagedEnvironmentsStorages_CreateOrUpdate_NfsAzureFile.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_delete.py index 976341a6aa6d..be4465475f37 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) client.managed_environments_storages.delete( @@ -38,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironmentsStorages_Delete.json +# x-ms-original-file: 2025-10-02-preview/ManagedEnvironmentsStorages_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_get.py index e7ebfd474255..75d049dd23cc 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.managed_environments_storages.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironmentsStorages_Get.json +# x-ms-original-file: 2025-10-02-preview/ManagedEnvironmentsStorages_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_get_nfs_azure_file.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_get_nfs_azure_file.py index b629a158379c..9cec5cc64009 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_get_nfs_azure_file.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_get_nfs_azure_file.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.managed_environments_storages.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironmentsStorages_Get_NfsAzureFile.json +# x-ms-original-file: 2025-10-02-preview/ManagedEnvironmentsStorages_Get_NfsAzureFile.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_list.py index c29274919ba7..178802b3ce62 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_list.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/managed_environments_storages_list.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="8efdecc5-919e-44eb-b179-915dca89ebf9", + subscription_id="SUBSCRIPTION_ID", ) response = client.managed_environments_storages.list( @@ -38,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/ManagedEnvironmentsStorages_List.json +# x-ms-original-file: 2025-10-02-preview/ManagedEnvironmentsStorages_List.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/operations_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/operations_list.py index ff9462ad52d2..438b4761f74e 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/operations_list.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/operations_list.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -36,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Operations_List.json +# x-ms-original-file: 2025-10-02-preview/Operations_List.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/replicas_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/replicas_get.py index 1e25a7f64d0c..75c21e041495 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/replicas_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/replicas_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="651f8027-33e8-4ec4-97b4-f6e9f3dc8744", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_apps_revision_replicas.get_replica( @@ -40,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Replicas_Get.json +# x-ms-original-file: 2025-10-02-preview/Replicas_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/replicas_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/replicas_list.py index 696175ae3362..19fbbb3f65b2 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/replicas_list.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/replicas_list.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="651f8027-33e8-4ec4-97b4-f6e9f3dc8744", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_apps_revision_replicas.list_replicas( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Replicas_List.json +# x-ms-original-file: 2025-10-02-preview/Replicas_List.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_activate.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_activate.py index 0631f7c15c18..ea3d784acbe8 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_activate.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_activate.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) client.container_apps_revisions.activate_revision( @@ -38,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Revisions_Activate.json +# x-ms-original-file: 2025-10-02-preview/Revisions_Activate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_deactivate.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_deactivate.py index 969e227a9848..cb2a6052d4f6 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_deactivate.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_deactivate.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) client.container_apps_revisions.deactivate_revision( @@ -38,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Revisions_Deactivate.json +# x-ms-original-file: 2025-10-02-preview/Revisions_Deactivate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_get.py index a7554eb743ea..016d34baeb6a 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_apps_revisions.get_revision( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Revisions_Get.json +# x-ms-original-file: 2025-10-02-preview/Revisions_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_get1.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_get1.py new file mode 100644 index 000000000000..1f35d7beb4f7 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_get1.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python revisions_get1.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.container_apps_diagnostics.get_revision( + resource_group_name="rg", + container_app_name="testcontainerApp0", + revision_name="testcontainerApp0-pjxhsye", + ) + print(response) + + +# x-ms-original-file: 2025-10-02-preview/Revisions_Get1.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_list.py index 0fe9b949c21d..2e6a7d35b31f 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_list.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_list.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_apps_revisions.list_revisions( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Revisions_List.json +# x-ms-original-file: 2025-10-02-preview/Revisions_List.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_list1.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_list1.py new file mode 100644 index 000000000000..5b2acb580ae4 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_list1.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python revisions_list1.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.container_apps_diagnostics.list_revisions( + resource_group_name="rg", + container_app_name="testcontainerApp0", + ) + for item in response: + print(item) + + +# x-ms-original-file: 2025-10-02-preview/Revisions_List1.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_restart.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_restart.py index 0f6769192259..63733cbc6123 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_restart.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/revisions_restart.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) client.container_apps_revisions.restart_revision( @@ -38,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Revisions_Restart.json +# x-ms-original-file: 2025-10-02-preview/Revisions_Restart.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_delete.py index 1344dd047984..4c67afce40ca 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) client.container_apps_session_pools.begin_delete( @@ -37,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/SessionPools_Delete.json +# x-ms-original-file: 2025-10-02-preview/SessionPools_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_fetch_mcp_server_credentials.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_fetch_mcp_server_credentials.py new file mode 100644 index 000000000000..bb9405b002ce --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_fetch_mcp_server_credentials.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python session_pools_fetch_mcp_server_credentials.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.container_apps_session_pools.fetch_mcp_server_credentials( + resource_group_name="rg", + session_pool_name="testsessionpool", + ) + print(response) + + +# x-ms-original-file: 2025-10-02-preview/SessionPools_FetchMcpServerCredentials.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_get.py index 16a3b3ddfaed..b3cccac24085 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_apps_session_pools.get( @@ -38,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/SessionPools_Get.json +# x-ms-original-file: 2025-10-02-preview/SessionPools_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_get_in_progress.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_get_in_progress.py new file mode 100644 index 000000000000..ccd31886e74e --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_get_in_progress.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python session_pools_get_in_progress.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.container_apps_session_pools.get( + resource_group_name="rg", + session_pool_name="testsessionpool", + ) + print(response) + + +# x-ms-original-file: 2025-10-02-preview/SessionPools_Get_InProgress.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_lifecycle_on_container_exit_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_lifecycle_on_container_exit_create_or_update.py index e2602554dbee..91ae67e4c542 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_lifecycle_on_container_exit_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_lifecycle_on_container_exit_create_or_update.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_apps_session_pools.begin_create_or_update( @@ -69,6 +69,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/SessionPools_LifecycleOnContainerExit_CreateOrUpdate.json +# x-ms-original-file: 2025-10-02-preview/SessionPools_LifecycleOnContainerExit_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_lifecycle_timed_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_lifecycle_timed_create_or_update.py index f15f8bfe003a..62ca8e02c6b7 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_lifecycle_timed_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_lifecycle_timed_create_or_update.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_apps_session_pools.begin_create_or_update( @@ -56,7 +56,7 @@ def main(): }, }, "dynamicPoolConfiguration": { - "lifecycleConfiguration": {"lifecycleType": "OnContainerExit", "maxAlivePeriodInSeconds": 86400} + "lifecycleConfiguration": {"cooldownPeriodInSeconds": 600, "lifecycleType": "Timed"} }, "environmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", "managedIdentitySettings": [{"identity": "system", "lifecycle": "Main"}], @@ -69,6 +69,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/SessionPools_LifecycleTimed_CreateOrUpdate.json +# x-ms-original-file: 2025-10-02-preview/SessionPools_LifecycleTimed_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_list_by_resource_group.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_list_by_resource_group.py index 04ede2e47d42..ca21e574842c 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_list_by_resource_group.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_list_by_resource_group.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_apps_session_pools.list_by_resource_group( @@ -38,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/SessionPools_ListByResourceGroup.json +# x-ms-original-file: 2025-10-02-preview/SessionPools_ListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_list_by_subscription.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_list_by_subscription.py index 462e4c43dc60..d358185d3360 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_list_by_subscription.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_list_by_subscription.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_apps_session_pools.list_by_subscription() @@ -36,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/SessionPools_ListBySubscription.json +# x-ms-original-file: 2025-10-02-preview/SessionPools_ListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_mcp_server_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_mcp_server_create_or_update.py new file mode 100644 index 000000000000..726f3072b200 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_mcp_server_create_or_update.py @@ -0,0 +1,55 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python session_pools_mcp_server_create_or_update.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.container_apps_session_pools.begin_create_or_update( + resource_group_name="rg", + session_pool_name="testsessionpool", + session_pool_envelope={ + "location": "East US", + "properties": { + "containerType": "Shell", + "dynamicPoolConfiguration": { + "lifecycleConfiguration": {"cooldownPeriodInSeconds": 600, "lifecycleType": "Timed"} + }, + "mcpServerSettings": {"isMcpServerApiKeyDisabled": False, "isMcpServerEnabled": True}, + "poolManagementType": "Dynamic", + "scaleConfiguration": {"maxConcurrentSessions": 50}, + "sessionNetworkConfiguration": {"status": "EgressEnabled"}, + }, + }, + ).result() + print(response) + + +# x-ms-original-file: 2025-10-02-preview/SessionPools_McpServer_CreateOrUpdate.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_patch.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_patch.py index b52ed2d403b9..9fb12060570f 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_patch.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_patch.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_apps_session_pools.begin_update( @@ -48,6 +47,9 @@ def main(): ], "ingress": {"targetPort": 80}, }, + "dynamicPoolConfiguration": { + "lifecycleConfiguration": {"cooldownPeriodInSeconds": 600, "lifecycleType": "Timed"} + }, "scaleConfiguration": {"maxConcurrentSessions": 500, "readySessionInstances": 100}, "sessionNetworkConfiguration": {"status": "EgressEnabled"}, } @@ -56,6 +58,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/SessionPools_Patch.json +# x-ms-original-file: 2025-10-02-preview/SessionPools_Patch.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_rotate_mcp_server_credentials.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_rotate_mcp_server_credentials.py new file mode 100644 index 000000000000..90186b986461 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/session_pools_rotate_mcp_server_credentials.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-appcontainers +# USAGE + python session_pools_rotate_mcp_server_credentials.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ContainerAppsAPIClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.container_apps_session_pools.rotate_mcp_server_credentials( + resource_group_name="rg", + session_pool_name="testsessionpool", + ) + print(response) + + +# x-ms-original-file: 2025-10-02-preview/SessionPools_RotateMcpServerCredentials.json +if __name__ == "__main__": + main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/source_controls_create_or_update.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/source_controls_create_or_update.py index 999850f2e21f..392742b8d8c8 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/source_controls_create_or_update.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/source_controls_create_or_update.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="651f8027-33e8-4ec4-97b4-f6e9f3dc8744", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_apps_source_controls.begin_create_or_update( @@ -45,7 +44,9 @@ def main(): "kind": "feaderated", "tenantId": "", }, + "buildEnvironmentVariables": [{"name": "foo1", "value": "bar1"}, {"name": "foo2", "value": "bar2"}], "contextPath": "./", + "dockerfilePath": "./Dockerfile", "githubPersonalAccessToken": "test", "image": "image/tag", "registryInfo": { @@ -61,6 +62,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/SourceControls_CreateOrUpdate.json +# x-ms-original-file: 2025-10-02-preview/SourceControls_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/source_controls_delete.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/source_controls_delete.py index 0f9aa4ef56b2..94e8792d6ebc 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/source_controls_delete.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/source_controls_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="651f8027-33e8-4ec4-97b4-f6e9f3dc8744", + subscription_id="SUBSCRIPTION_ID", ) client.container_apps_source_controls.begin_delete( @@ -38,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/SourceControls_Delete.json +# x-ms-original-file: 2025-10-02-preview/SourceControls_Delete.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/source_controls_get.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/source_controls_get.py index 78e5ae241c72..9c7723dd71ba 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/source_controls_get.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/source_controls_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="651f8027-33e8-4ec4-97b4-f6e9f3dc8744", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_apps_source_controls.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/SourceControls_Get.json +# x-ms-original-file: 2025-10-02-preview/SourceControls_Get.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/source_controls_list_by_container.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/source_controls_list_by_container.py index b9bb8a325f89..7a305d26c564 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/source_controls_list_by_container.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/source_controls_list_by_container.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="651f8027-33e8-4ec4-97b4-f6e9f3dc8744", + subscription_id="SUBSCRIPTION_ID", ) response = client.container_apps_source_controls.list_by_container_app( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/SourceControls_ListByContainer.json +# x-ms-original-file: 2025-10-02-preview/SourceControls_ListByContainer.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/subscriptions_get_custom_domain_verification_id.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/subscriptions_get_custom_domain_verification_id.py index af6358afcce5..ba16132f3788 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/subscriptions_get_custom_domain_verification_id.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/subscriptions_get_custom_domain_verification_id.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,13 +27,13 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="d27c3573-f76e-4b26-b871-0ccd2203d08c", + subscription_id="SUBSCRIPTION_ID", ) response = client.get_custom_domain_verification_id() print(response) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Subscriptions_GetCustomDomainVerificationId.json +# x-ms-original-file: 2025-10-02-preview/Subscriptions_GetCustomDomainVerificationId.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/usages_list.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/usages_list.py index 43a2b71e9da5..ebf11765b5da 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/usages_list.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_samples/usages_list.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = ContainerAppsAPIClient( credential=DefaultAzureCredential(), - subscription_id="subid", + subscription_id="SUBSCRIPTION_ID", ) response = client.usages.list( @@ -38,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/app/resource-manager/Microsoft.App/ContainerApps/stable/2026-01-01/examples/Usages_List.json +# x-ms-original-file: 2025-10-02-preview/Usages_List.json if __name__ == "__main__": main() diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/conftest.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/conftest.py index d6403655d30d..94edd525393c 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/conftest.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/conftest.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import os diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api.py index 57c5179fa411..5d8d522b2cea 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -20,22 +20,19 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_job_execution(self, resource_group): - response = self.client.job_execution( - resource_group_name=resource_group.name, - job_name="str", - job_execution_name="str", - api_version="2026-01-01", - ) + def test_get_custom_domain_verification_id(self, resource_group): + response = self.client.get_custom_domain_verification_id() # please add some check logic here by yourself # ... @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_get_custom_domain_verification_id(self, resource_group): - response = self.client.get_custom_domain_verification_id( - api_version="2026-01-01", + def test_job_execution(self, resource_group): + response = self.client.job_execution( + resource_group_name=resource_group.name, + job_name="str", + job_execution_name="str", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_app_resiliency_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_app_resiliency_operations.py index 7ef4475f3088..7040980461a4 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_app_resiliency_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_app_resiliency_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -18,6 +18,18 @@ class TestContainerAppsAPIAppResiliencyOperations(AzureMgmtRecordedTestCase): def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient) + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_app_resiliency_get(self, resource_group): + response = self.client.app_resiliency.get( + resource_group_name=resource_group.name, + app_name="str", + name="str", + ) + + # please add some check logic here by yourself + # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_app_resiliency_create_or_update(self, resource_group): @@ -26,26 +38,34 @@ def test_app_resiliency_create_or_update(self, resource_group): app_name="str", name="str", resiliency_envelope={ - "circuitBreakerPolicy": {"consecutiveErrors": 0, "intervalInSeconds": 0, "maxEjectionPercent": 0}, - "httpConnectionPool": {"http1MaxPendingRequests": 0, "http2MaxRequests": 0}, - "httpRetryPolicy": { - "errors": ["str"], - "headers": [ - { - "exactMatch": "str", - "header": "str", - "prefixMatch": "str", - "regexMatch": "str", - "suffixMatch": "str", - } - ], - "httpStatusCodes": [0], - "initialDelayInMilliseconds": 0, - "maxIntervalInMilliseconds": 0, - "maxRetries": 0, - }, "id": "str", "name": "str", + "properties": { + "circuitBreakerPolicy": {"consecutiveErrors": 0, "intervalInSeconds": 0, "maxEjectionPercent": 0}, + "httpConnectionPool": {"http1MaxPendingRequests": 0, "http2MaxRequests": 0}, + "httpRetryPolicy": { + "matches": { + "errors": ["str"], + "headers": [ + { + "header": "str", + "match": { + "exactMatch": "str", + "prefixMatch": "str", + "regexMatch": "str", + "suffixMatch": "str", + }, + } + ], + "httpStatusCodes": [0], + }, + "maxRetries": 0, + "retryBackOff": {"initialDelayInMilliseconds": 0, "maxIntervalInMilliseconds": 0}, + }, + "tcpConnectionPool": {"maxConnections": 0}, + "tcpRetryPolicy": {"maxConnectAttempts": 0}, + "timeoutPolicy": {"connectionTimeoutInSeconds": 0, "responseTimeoutInSeconds": 0}, + }, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -54,12 +74,8 @@ def test_app_resiliency_create_or_update(self, resource_group): "lastModifiedBy": "str", "lastModifiedByType": "str", }, - "tcpConnectionPool": {"maxConnections": 0}, - "tcpRetryPolicy": {"maxConnectAttempts": 0}, - "timeoutPolicy": {"connectionTimeoutInSeconds": 0, "responseTimeoutInSeconds": 0}, "type": "str", }, - api_version="2025-02-02-preview", ) # please add some check logic here by yourself @@ -73,26 +89,34 @@ def test_app_resiliency_update(self, resource_group): app_name="str", name="str", resiliency_envelope={ - "circuitBreakerPolicy": {"consecutiveErrors": 0, "intervalInSeconds": 0, "maxEjectionPercent": 0}, - "httpConnectionPool": {"http1MaxPendingRequests": 0, "http2MaxRequests": 0}, - "httpRetryPolicy": { - "errors": ["str"], - "headers": [ - { - "exactMatch": "str", - "header": "str", - "prefixMatch": "str", - "regexMatch": "str", - "suffixMatch": "str", - } - ], - "httpStatusCodes": [0], - "initialDelayInMilliseconds": 0, - "maxIntervalInMilliseconds": 0, - "maxRetries": 0, - }, "id": "str", "name": "str", + "properties": { + "circuitBreakerPolicy": {"consecutiveErrors": 0, "intervalInSeconds": 0, "maxEjectionPercent": 0}, + "httpConnectionPool": {"http1MaxPendingRequests": 0, "http2MaxRequests": 0}, + "httpRetryPolicy": { + "matches": { + "errors": ["str"], + "headers": [ + { + "header": "str", + "match": { + "exactMatch": "str", + "prefixMatch": "str", + "regexMatch": "str", + "suffixMatch": "str", + }, + } + ], + "httpStatusCodes": [0], + }, + "maxRetries": 0, + "retryBackOff": {"initialDelayInMilliseconds": 0, "maxIntervalInMilliseconds": 0}, + }, + "tcpConnectionPool": {"maxConnections": 0}, + "tcpRetryPolicy": {"maxConnectAttempts": 0}, + "timeoutPolicy": {"connectionTimeoutInSeconds": 0, "responseTimeoutInSeconds": 0}, + }, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -101,12 +125,8 @@ def test_app_resiliency_update(self, resource_group): "lastModifiedBy": "str", "lastModifiedByType": "str", }, - "tcpConnectionPool": {"maxConnections": 0}, - "tcpRetryPolicy": {"maxConnectAttempts": 0}, - "timeoutPolicy": {"connectionTimeoutInSeconds": 0, "responseTimeoutInSeconds": 0}, "type": "str", }, - api_version="2025-02-02-preview", ) # please add some check logic here by yourself @@ -119,20 +139,6 @@ def test_app_resiliency_delete(self, resource_group): resource_group_name=resource_group.name, app_name="str", name="str", - api_version="2025-02-02-preview", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_app_resiliency_get(self, resource_group): - response = self.client.app_resiliency.get( - resource_group_name=resource_group.name, - app_name="str", - name="str", - api_version="2025-02-02-preview", ) # please add some check logic here by yourself @@ -144,7 +150,6 @@ def test_app_resiliency_list(self, resource_group): response = self.client.app_resiliency.list( resource_group_name=resource_group.name, app_name="str", - api_version="2025-02-02-preview", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_app_resiliency_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_app_resiliency_operations_async.py index 90ee2826964d..ff7c2ce51a50 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_app_resiliency_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_app_resiliency_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -19,6 +19,18 @@ class TestContainerAppsAPIAppResiliencyOperationsAsync(AzureMgmtRecordedTestCase def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient, is_async=True) + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_app_resiliency_get(self, resource_group): + response = await self.client.app_resiliency.get( + resource_group_name=resource_group.name, + app_name="str", + name="str", + ) + + # please add some check logic here by yourself + # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_app_resiliency_create_or_update(self, resource_group): @@ -27,26 +39,34 @@ async def test_app_resiliency_create_or_update(self, resource_group): app_name="str", name="str", resiliency_envelope={ - "circuitBreakerPolicy": {"consecutiveErrors": 0, "intervalInSeconds": 0, "maxEjectionPercent": 0}, - "httpConnectionPool": {"http1MaxPendingRequests": 0, "http2MaxRequests": 0}, - "httpRetryPolicy": { - "errors": ["str"], - "headers": [ - { - "exactMatch": "str", - "header": "str", - "prefixMatch": "str", - "regexMatch": "str", - "suffixMatch": "str", - } - ], - "httpStatusCodes": [0], - "initialDelayInMilliseconds": 0, - "maxIntervalInMilliseconds": 0, - "maxRetries": 0, - }, "id": "str", "name": "str", + "properties": { + "circuitBreakerPolicy": {"consecutiveErrors": 0, "intervalInSeconds": 0, "maxEjectionPercent": 0}, + "httpConnectionPool": {"http1MaxPendingRequests": 0, "http2MaxRequests": 0}, + "httpRetryPolicy": { + "matches": { + "errors": ["str"], + "headers": [ + { + "header": "str", + "match": { + "exactMatch": "str", + "prefixMatch": "str", + "regexMatch": "str", + "suffixMatch": "str", + }, + } + ], + "httpStatusCodes": [0], + }, + "maxRetries": 0, + "retryBackOff": {"initialDelayInMilliseconds": 0, "maxIntervalInMilliseconds": 0}, + }, + "tcpConnectionPool": {"maxConnections": 0}, + "tcpRetryPolicy": {"maxConnectAttempts": 0}, + "timeoutPolicy": {"connectionTimeoutInSeconds": 0, "responseTimeoutInSeconds": 0}, + }, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -55,12 +75,8 @@ async def test_app_resiliency_create_or_update(self, resource_group): "lastModifiedBy": "str", "lastModifiedByType": "str", }, - "tcpConnectionPool": {"maxConnections": 0}, - "tcpRetryPolicy": {"maxConnectAttempts": 0}, - "timeoutPolicy": {"connectionTimeoutInSeconds": 0, "responseTimeoutInSeconds": 0}, "type": "str", }, - api_version="2025-02-02-preview", ) # please add some check logic here by yourself @@ -74,26 +90,34 @@ async def test_app_resiliency_update(self, resource_group): app_name="str", name="str", resiliency_envelope={ - "circuitBreakerPolicy": {"consecutiveErrors": 0, "intervalInSeconds": 0, "maxEjectionPercent": 0}, - "httpConnectionPool": {"http1MaxPendingRequests": 0, "http2MaxRequests": 0}, - "httpRetryPolicy": { - "errors": ["str"], - "headers": [ - { - "exactMatch": "str", - "header": "str", - "prefixMatch": "str", - "regexMatch": "str", - "suffixMatch": "str", - } - ], - "httpStatusCodes": [0], - "initialDelayInMilliseconds": 0, - "maxIntervalInMilliseconds": 0, - "maxRetries": 0, - }, "id": "str", "name": "str", + "properties": { + "circuitBreakerPolicy": {"consecutiveErrors": 0, "intervalInSeconds": 0, "maxEjectionPercent": 0}, + "httpConnectionPool": {"http1MaxPendingRequests": 0, "http2MaxRequests": 0}, + "httpRetryPolicy": { + "matches": { + "errors": ["str"], + "headers": [ + { + "header": "str", + "match": { + "exactMatch": "str", + "prefixMatch": "str", + "regexMatch": "str", + "suffixMatch": "str", + }, + } + ], + "httpStatusCodes": [0], + }, + "maxRetries": 0, + "retryBackOff": {"initialDelayInMilliseconds": 0, "maxIntervalInMilliseconds": 0}, + }, + "tcpConnectionPool": {"maxConnections": 0}, + "tcpRetryPolicy": {"maxConnectAttempts": 0}, + "timeoutPolicy": {"connectionTimeoutInSeconds": 0, "responseTimeoutInSeconds": 0}, + }, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -102,12 +126,8 @@ async def test_app_resiliency_update(self, resource_group): "lastModifiedBy": "str", "lastModifiedByType": "str", }, - "tcpConnectionPool": {"maxConnections": 0}, - "tcpRetryPolicy": {"maxConnectAttempts": 0}, - "timeoutPolicy": {"connectionTimeoutInSeconds": 0, "responseTimeoutInSeconds": 0}, "type": "str", }, - api_version="2025-02-02-preview", ) # please add some check logic here by yourself @@ -120,20 +140,6 @@ async def test_app_resiliency_delete(self, resource_group): resource_group_name=resource_group.name, app_name="str", name="str", - api_version="2025-02-02-preview", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_app_resiliency_get(self, resource_group): - response = await self.client.app_resiliency.get( - resource_group_name=resource_group.name, - app_name="str", - name="str", - api_version="2025-02-02-preview", ) # please add some check logic here by yourself @@ -145,7 +151,6 @@ async def test_app_resiliency_list(self, resource_group): response = self.client.app_resiliency.list( resource_group_name=resource_group.name, app_name="str", - api_version="2025-02-02-preview", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_async.py index 196f63685076..c5304cfd8d49 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -21,22 +21,19 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_job_execution(self, resource_group): - response = await self.client.job_execution( - resource_group_name=resource_group.name, - job_name="str", - job_execution_name="str", - api_version="2026-01-01", - ) + async def test_get_custom_domain_verification_id(self, resource_group): + response = await self.client.get_custom_domain_verification_id() # please add some check logic here by yourself # ... @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_get_custom_domain_verification_id(self, resource_group): - response = await self.client.get_custom_domain_verification_id( - api_version="2026-01-01", + async def test_job_execution(self, resource_group): + response = await self.client.job_execution( + resource_group_name=resource_group.name, + job_name="str", + job_execution_name="str", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_available_workload_profiles_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_available_workload_profiles_operations.py index 44b8f0980aea..dbb7e47092d2 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_available_workload_profiles_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_available_workload_profiles_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -23,7 +23,6 @@ def setup_method(self, method): def test_available_workload_profiles_get(self, resource_group): response = self.client.available_workload_profiles.get( location="str", - api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_available_workload_profiles_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_available_workload_profiles_operations_async.py index a5f83926f33a..27ce06474541 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_available_workload_profiles_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_available_workload_profiles_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -24,7 +24,6 @@ def setup_method(self, method): async def test_available_workload_profiles_get(self, resource_group): response = self.client.available_workload_profiles.get( location="str", - api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_billing_meters_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_billing_meters_operations.py index f4c4b8e5552d..4cd27eaafe5f 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_billing_meters_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_billing_meters_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -23,7 +23,6 @@ def setup_method(self, method): def test_billing_meters_get(self, resource_group): response = self.client.billing_meters.get( location="str", - api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_billing_meters_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_billing_meters_operations_async.py index 9bbf889a7815..736202a22fe7 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_billing_meters_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_billing_meters_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -24,7 +24,6 @@ def setup_method(self, method): async def test_billing_meters_get(self, resource_group): response = await self.client.billing_meters.get( location="str", - api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_build_auth_token_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_build_auth_token_operations.py index d035ccb4be43..a038f6ed21ce 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_build_auth_token_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_build_auth_token_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -25,7 +25,6 @@ def test_build_auth_token_list(self, resource_group): resource_group_name=resource_group.name, builder_name="str", build_name="str", - api_version="2025-02-02-preview", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_build_auth_token_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_build_auth_token_operations_async.py index f895422ba13f..ad4eca43053d 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_build_auth_token_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_build_auth_token_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -26,7 +26,6 @@ async def test_build_auth_token_list(self, resource_group): resource_group_name=resource_group.name, builder_name="str", build_name="str", - api_version="2025-02-02-preview", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_builders_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_builders_operations.py index 4ab8d0c3e827..bf35ed7f9ac5 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_builders_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_builders_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -18,34 +18,12 @@ class TestContainerAppsAPIBuildersOperations(AzureMgmtRecordedTestCase): def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_builders_list_by_subscription(self, resource_group): - response = self.client.builders.list_by_subscription( - api_version="2025-02-02-preview", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_builders_list_by_resource_group(self, resource_group): - response = self.client.builders.list_by_resource_group( - resource_group_name=resource_group.name, - api_version="2025-02-02-preview", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_builders_get(self, resource_group): response = self.client.builders.get( resource_group_name=resource_group.name, builder_name="str", - api_version="2025-02-02-preview", ) # please add some check logic here by yourself @@ -59,8 +37,6 @@ def test_builders_begin_create_or_update(self, resource_group): builder_name="str", builder_envelope={ "location": "str", - "containerRegistries": [{"containerRegistryServer": "str", "identityResourceId": "str"}], - "environmentId": "str", "id": "str", "identity": { "type": "str", @@ -69,7 +45,11 @@ def test_builders_begin_create_or_update(self, resource_group): "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, }, "name": "str", - "provisioningState": "str", + "properties": { + "environmentId": "str", + "containerRegistries": [{"containerRegistryServer": "str", "identityResourceId": "str"}], + "provisioningState": "str", + }, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -81,7 +61,6 @@ def test_builders_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-02-02-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -94,16 +73,15 @@ def test_builders_begin_update(self, resource_group): resource_group_name=resource_group.name, builder_name="str", builder_envelope={ - "environmentId": "str", "identity": { "type": "str", "principalId": "str", "tenantId": "str", "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, }, + "properties": {"environmentId": "str"}, "tags": {"str": "str"}, }, - api_version="2025-02-02-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -115,8 +93,25 @@ def test_builders_begin_delete(self, resource_group): response = self.client.builders.begin_delete( resource_group_name=resource_group.name, builder_name="str", - api_version="2025-02-02-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_builders_list_by_resource_group(self, resource_group): + response = self.client.builders.list_by_resource_group( + resource_group_name=resource_group.name, + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_builders_list_by_subscription(self, resource_group): + response = self.client.builders.list_by_subscription() + result = [r for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_builders_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_builders_operations_async.py index e1a54bbceb53..15abc83c0193 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_builders_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_builders_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -19,34 +19,12 @@ class TestContainerAppsAPIBuildersOperationsAsync(AzureMgmtRecordedTestCase): def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient, is_async=True) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_builders_list_by_subscription(self, resource_group): - response = self.client.builders.list_by_subscription( - api_version="2025-02-02-preview", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_builders_list_by_resource_group(self, resource_group): - response = self.client.builders.list_by_resource_group( - resource_group_name=resource_group.name, - api_version="2025-02-02-preview", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_builders_get(self, resource_group): response = await self.client.builders.get( resource_group_name=resource_group.name, builder_name="str", - api_version="2025-02-02-preview", ) # please add some check logic here by yourself @@ -61,8 +39,6 @@ async def test_builders_begin_create_or_update(self, resource_group): builder_name="str", builder_envelope={ "location": "str", - "containerRegistries": [{"containerRegistryServer": "str", "identityResourceId": "str"}], - "environmentId": "str", "id": "str", "identity": { "type": "str", @@ -71,7 +47,11 @@ async def test_builders_begin_create_or_update(self, resource_group): "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, }, "name": "str", - "provisioningState": "str", + "properties": { + "environmentId": "str", + "containerRegistries": [{"containerRegistryServer": "str", "identityResourceId": "str"}], + "provisioningState": "str", + }, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -83,7 +63,6 @@ async def test_builders_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-02-02-preview", ) ).result() # call '.result()' to poll until service return final result @@ -98,16 +77,15 @@ async def test_builders_begin_update(self, resource_group): resource_group_name=resource_group.name, builder_name="str", builder_envelope={ - "environmentId": "str", "identity": { "type": "str", "principalId": "str", "tenantId": "str", "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, }, + "properties": {"environmentId": "str"}, "tags": {"str": "str"}, }, - api_version="2025-02-02-preview", ) ).result() # call '.result()' to poll until service return final result @@ -121,9 +99,26 @@ async def test_builders_begin_delete(self, resource_group): await self.client.builders.begin_delete( resource_group_name=resource_group.name, builder_name="str", - api_version="2025-02-02-preview", ) ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_builders_list_by_resource_group(self, resource_group): + response = self.client.builders.list_by_resource_group( + resource_group_name=resource_group.name, + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_builders_list_by_subscription(self, resource_group): + response = self.client.builders.list_by_subscription() + result = [r async for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_builds_by_builder_resource_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_builds_by_builder_resource_operations.py index 129e5d69c312..1876b7150eee 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_builds_by_builder_resource_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_builds_by_builder_resource_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -24,7 +24,6 @@ def test_builds_by_builder_resource_list(self, resource_group): response = self.client.builds_by_builder_resource.list( resource_group_name=resource_group.name, builder_name="str", - api_version="2025-02-02-preview", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_builds_by_builder_resource_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_builds_by_builder_resource_operations_async.py index bb0ee0bd8702..014828fe0c4e 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_builds_by_builder_resource_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_builds_by_builder_resource_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -25,7 +25,6 @@ async def test_builds_by_builder_resource_list(self, resource_group): response = self.client.builds_by_builder_resource.list( resource_group_name=resource_group.name, builder_name="str", - api_version="2025-02-02-preview", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_builds_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_builds_operations.py index 9b5daedc4607..97c650fb7714 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_builds_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_builds_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -25,7 +25,6 @@ def test_builds_get(self, resource_group): resource_group_name=resource_group.name, builder_name="str", build_name="str", - api_version="2025-02-02-preview", ) # please add some check logic here by yourself @@ -39,25 +38,29 @@ def test_builds_begin_create_or_update(self, resource_group): builder_name="str", build_name="str", build_envelope={ - "buildStatus": "str", - "configuration": { - "baseOs": "str", - "environmentVariables": [{"name": "str", "value": "str"}], - "platform": "str", - "platformVersion": "str", - "preBuildSteps": [ - { - "description": "str", - "httpGet": {"url": "str", "fileName": "str", "headers": ["str"]}, - "scripts": ["str"], - } - ], - }, - "destinationContainerRegistry": {"server": "str", "image": "str"}, "id": "str", - "logStreamEndpoint": "str", "name": "str", - "provisioningState": "str", + "properties": { + "buildStatus": "str", + "configuration": { + "baseOs": "str", + "environmentVariables": [{"name": "str", "value": "str"}], + "platform": "str", + "platformVersion": "str", + "preBuildSteps": [ + { + "description": "str", + "httpGet": {"url": "str", "fileName": "str", "headers": ["str"]}, + "scripts": ["str"], + } + ], + }, + "destinationContainerRegistry": {"server": "str", "image": "str"}, + "logStreamEndpoint": "str", + "provisioningState": "str", + "tokenEndpoint": "str", + "uploadEndpoint": "str", + }, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -66,11 +69,8 @@ def test_builds_begin_create_or_update(self, resource_group): "lastModifiedBy": "str", "lastModifiedByType": "str", }, - "tokenEndpoint": "str", "type": "str", - "uploadEndpoint": "str", }, - api_version="2025-02-02-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -83,7 +83,6 @@ def test_builds_begin_delete(self, resource_group): resource_group_name=resource_group.name, builder_name="str", build_name="str", - api_version="2025-02-02-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_builds_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_builds_operations_async.py index d1330fdc8e39..860307fb236d 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_builds_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_builds_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -26,7 +26,6 @@ async def test_builds_get(self, resource_group): resource_group_name=resource_group.name, builder_name="str", build_name="str", - api_version="2025-02-02-preview", ) # please add some check logic here by yourself @@ -41,25 +40,29 @@ async def test_builds_begin_create_or_update(self, resource_group): builder_name="str", build_name="str", build_envelope={ - "buildStatus": "str", - "configuration": { - "baseOs": "str", - "environmentVariables": [{"name": "str", "value": "str"}], - "platform": "str", - "platformVersion": "str", - "preBuildSteps": [ - { - "description": "str", - "httpGet": {"url": "str", "fileName": "str", "headers": ["str"]}, - "scripts": ["str"], - } - ], - }, - "destinationContainerRegistry": {"server": "str", "image": "str"}, "id": "str", - "logStreamEndpoint": "str", "name": "str", - "provisioningState": "str", + "properties": { + "buildStatus": "str", + "configuration": { + "baseOs": "str", + "environmentVariables": [{"name": "str", "value": "str"}], + "platform": "str", + "platformVersion": "str", + "preBuildSteps": [ + { + "description": "str", + "httpGet": {"url": "str", "fileName": "str", "headers": ["str"]}, + "scripts": ["str"], + } + ], + }, + "destinationContainerRegistry": {"server": "str", "image": "str"}, + "logStreamEndpoint": "str", + "provisioningState": "str", + "tokenEndpoint": "str", + "uploadEndpoint": "str", + }, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -68,11 +71,8 @@ async def test_builds_begin_create_or_update(self, resource_group): "lastModifiedBy": "str", "lastModifiedByType": "str", }, - "tokenEndpoint": "str", "type": "str", - "uploadEndpoint": "str", }, - api_version="2025-02-02-preview", ) ).result() # call '.result()' to poll until service return final result @@ -87,7 +87,6 @@ async def test_builds_begin_delete(self, resource_group): resource_group_name=resource_group.name, builder_name="str", build_name="str", - api_version="2025-02-02-preview", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_certificates_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_certificates_operations.py index b126f48b983b..bf2e193d2656 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_certificates_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_certificates_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -20,24 +20,23 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_certificates_list(self, resource_group): - response = self.client.certificates.list( + def test_certificates_get(self, resource_group): + response = self.client.certificates.get( resource_group_name=resource_group.name, environment_name="str", - api_version="2026-01-01", + certificate_name="str", ) - result = [r for r in response] + # please add some check logic here by yourself # ... @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_certificates_get(self, resource_group): - response = self.client.certificates.get( + def test_certificates_create_or_update(self, resource_group): + response = self.client.certificates.create_or_update( resource_group_name=resource_group.name, environment_name="str", certificate_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -45,12 +44,12 @@ def test_certificates_get(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_certificates_create_or_update(self, resource_group): - response = self.client.certificates.create_or_update( + def test_certificates_update(self, resource_group): + response = self.client.certificates.update( resource_group_name=resource_group.name, environment_name="str", certificate_name="str", - api_version="2026-01-01", + certificate_envelope={"tags": {"str": "str"}}, ) # please add some check logic here by yourself @@ -63,7 +62,6 @@ def test_certificates_delete(self, resource_group): resource_group_name=resource_group.name, environment_name="str", certificate_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -71,14 +69,11 @@ def test_certificates_delete(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_certificates_update(self, resource_group): - response = self.client.certificates.update( + def test_certificates_list(self, resource_group): + response = self.client.certificates.list( resource_group_name=resource_group.name, environment_name="str", - certificate_name="str", - certificate_envelope={"tags": {"str": "str"}}, - api_version="2026-01-01", ) - + result = [r for r in response] # please add some check logic here by yourself # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_certificates_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_certificates_operations_async.py index cf7d98f3f9a6..a199e633a01b 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_certificates_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_certificates_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -21,24 +21,23 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_certificates_list(self, resource_group): - response = self.client.certificates.list( + async def test_certificates_get(self, resource_group): + response = await self.client.certificates.get( resource_group_name=resource_group.name, environment_name="str", - api_version="2026-01-01", + certificate_name="str", ) - result = [r async for r in response] + # please add some check logic here by yourself # ... @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_certificates_get(self, resource_group): - response = await self.client.certificates.get( + async def test_certificates_create_or_update(self, resource_group): + response = await self.client.certificates.create_or_update( resource_group_name=resource_group.name, environment_name="str", certificate_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -46,12 +45,12 @@ async def test_certificates_get(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_certificates_create_or_update(self, resource_group): - response = await self.client.certificates.create_or_update( + async def test_certificates_update(self, resource_group): + response = await self.client.certificates.update( resource_group_name=resource_group.name, environment_name="str", certificate_name="str", - api_version="2026-01-01", + certificate_envelope={"tags": {"str": "str"}}, ) # please add some check logic here by yourself @@ -64,7 +63,6 @@ async def test_certificates_delete(self, resource_group): resource_group_name=resource_group.name, environment_name="str", certificate_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -72,14 +70,11 @@ async def test_certificates_delete(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_certificates_update(self, resource_group): - response = await self.client.certificates.update( + async def test_certificates_list(self, resource_group): + response = self.client.certificates.list( resource_group_name=resource_group.name, environment_name="str", - certificate_name="str", - certificate_envelope={"tags": {"str": "str"}}, - api_version="2026-01-01", ) - + result = [r async for r in response] # please add some check logic here by yourself # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_certificates_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_certificates_operations.py index 45c22e0ae10b..956670016622 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_certificates_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_certificates_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -20,37 +20,36 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_connected_environments_certificates_list(self, resource_group): - response = self.client.connected_environments_certificates.list( + def test_connected_environments_certificates_get(self, resource_group): + response = self.client.connected_environments_certificates.get( resource_group_name=resource_group.name, connected_environment_name="str", - api_version="2026-01-01", + certificate_name="str", ) - result = [r for r in response] + # please add some check logic here by yourself # ... @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_connected_environments_certificates_get(self, resource_group): - response = self.client.connected_environments_certificates.get( + def test_connected_environments_certificates_begin_create_or_update(self, resource_group): + response = self.client.connected_environments_certificates.begin_create_or_update( resource_group_name=resource_group.name, connected_environment_name="str", certificate_name="str", - api_version="2026-01-01", - ) + ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself # ... @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_connected_environments_certificates_begin_create_or_update(self, resource_group): - response = self.client.connected_environments_certificates.begin_create_or_update( + def test_connected_environments_certificates_begin_update(self, resource_group): + response = self.client.connected_environments_certificates.begin_update( resource_group_name=resource_group.name, connected_environment_name="str", certificate_name="str", - api_version="2026-01-01", + certificate_envelope={"tags": {"str": "str"}}, ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -63,7 +62,6 @@ def test_connected_environments_certificates_begin_delete(self, resource_group): resource_group_name=resource_group.name, connected_environment_name="str", certificate_name="str", - api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -71,14 +69,11 @@ def test_connected_environments_certificates_begin_delete(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_connected_environments_certificates_begin_update(self, resource_group): - response = self.client.connected_environments_certificates.begin_update( + def test_connected_environments_certificates_list(self, resource_group): + response = self.client.connected_environments_certificates.list( resource_group_name=resource_group.name, connected_environment_name="str", - certificate_name="str", - certificate_envelope={"tags": {"str": "str"}}, - api_version="2026-01-01", - ).result() # call '.result()' to poll until service return final result - + ) + result = [r for r in response] # please add some check logic here by yourself # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_certificates_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_certificates_operations_async.py index d25318ef2cd5..2d456b96b530 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_certificates_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_certificates_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -19,18 +19,6 @@ class TestContainerAppsAPIConnectedEnvironmentsCertificatesOperationsAsync(Azure def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient, is_async=True) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_connected_environments_certificates_list(self, resource_group): - response = self.client.connected_environments_certificates.list( - resource_group_name=resource_group.name, - connected_environment_name="str", - api_version="2026-01-01", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_connected_environments_certificates_get(self, resource_group): @@ -38,7 +26,6 @@ async def test_connected_environments_certificates_get(self, resource_group): resource_group_name=resource_group.name, connected_environment_name="str", certificate_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -52,7 +39,6 @@ async def test_connected_environments_certificates_begin_create_or_update(self, resource_group_name=resource_group.name, connected_environment_name="str", certificate_name="str", - api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -61,13 +47,13 @@ async def test_connected_environments_certificates_begin_create_or_update(self, @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_connected_environments_certificates_begin_delete(self, resource_group): + async def test_connected_environments_certificates_begin_update(self, resource_group): response = await ( - await self.client.connected_environments_certificates.begin_delete( + await self.client.connected_environments_certificates.begin_update( resource_group_name=resource_group.name, connected_environment_name="str", certificate_name="str", - api_version="2026-01-01", + certificate_envelope={"tags": {"str": "str"}}, ) ).result() # call '.result()' to poll until service return final result @@ -76,16 +62,25 @@ async def test_connected_environments_certificates_begin_delete(self, resource_g @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_connected_environments_certificates_begin_update(self, resource_group): + async def test_connected_environments_certificates_begin_delete(self, resource_group): response = await ( - await self.client.connected_environments_certificates.begin_update( + await self.client.connected_environments_certificates.begin_delete( resource_group_name=resource_group.name, connected_environment_name="str", certificate_name="str", - certificate_envelope={"tags": {"str": "str"}}, - api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_connected_environments_certificates_list(self, resource_group): + response = self.client.connected_environments_certificates.list( + resource_group_name=resource_group.name, + connected_environment_name="str", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_dapr_components_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_dapr_components_operations.py index 2fd93bfbaca0..64034d3b56f2 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_dapr_components_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_dapr_components_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -18,18 +18,6 @@ class TestContainerAppsAPIConnectedEnvironmentsDaprComponentsOperations(AzureMgm def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_connected_environments_dapr_components_list(self, resource_group): - response = self.client.connected_environments_dapr_components.list( - resource_group_name=resource_group.name, - connected_environment_name="str", - api_version="2026-01-01", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_connected_environments_dapr_components_get(self, resource_group): @@ -37,7 +25,6 @@ def test_connected_environments_dapr_components_get(self, resource_group): resource_group_name=resource_group.name, connected_environment_name="str", component_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -51,17 +38,23 @@ def test_connected_environments_dapr_components_begin_create_or_update(self, res connected_environment_name="str", component_name="str", dapr_component_envelope={ - "componentType": "str", - "deploymentErrors": "str", "id": "str", - "ignoreErrors": False, - "initTimeout": "str", - "metadata": [{"name": "str", "secretRef": "str", "value": "str"}], "name": "str", - "provisioningState": "str", - "scopes": ["str"], - "secretStoreComponent": "str", - "secrets": [{"identity": "str", "keyVaultUrl": "str", "name": "str", "value": "str"}], + "properties": { + "componentType": "str", + "deploymentErrors": "str", + "ignoreErrors": bool, + "initTimeout": "str", + "metadata": [{"name": "str", "secretRef": "str", "value": "str"}], + "provisioningState": "str", + "scopes": ["str"], + "secretStoreComponent": "str", + "secrets": [{"identity": "str", "keyVaultUrl": "str", "name": "str", "value": "str"}], + "serviceComponentBind": [ + {"metadata": {"name": "str", "value": "str"}, "name": "str", "serviceId": "str"} + ], + "version": "str", + }, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -71,9 +64,7 @@ def test_connected_environments_dapr_components_begin_create_or_update(self, res "lastModifiedByType": "str", }, "type": "str", - "version": "str", }, - api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -86,12 +77,22 @@ def test_connected_environments_dapr_components_begin_delete(self, resource_grou resource_group_name=resource_group.name, connected_environment_name="str", component_name="str", - api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_connected_environments_dapr_components_list(self, resource_group): + response = self.client.connected_environments_dapr_components.list( + resource_group_name=resource_group.name, + connected_environment_name="str", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_connected_environments_dapr_components_list_secrets(self, resource_group): @@ -99,7 +100,6 @@ def test_connected_environments_dapr_components_list_secrets(self, resource_grou resource_group_name=resource_group.name, connected_environment_name="str", component_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_dapr_components_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_dapr_components_operations_async.py index 46e2cc9e402b..cfa66e17a263 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_dapr_components_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_dapr_components_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -19,18 +19,6 @@ class TestContainerAppsAPIConnectedEnvironmentsDaprComponentsOperationsAsync(Azu def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient, is_async=True) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_connected_environments_dapr_components_list(self, resource_group): - response = self.client.connected_environments_dapr_components.list( - resource_group_name=resource_group.name, - connected_environment_name="str", - api_version="2026-01-01", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_connected_environments_dapr_components_get(self, resource_group): @@ -38,7 +26,6 @@ async def test_connected_environments_dapr_components_get(self, resource_group): resource_group_name=resource_group.name, connected_environment_name="str", component_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -53,17 +40,23 @@ async def test_connected_environments_dapr_components_begin_create_or_update(sel connected_environment_name="str", component_name="str", dapr_component_envelope={ - "componentType": "str", - "deploymentErrors": "str", "id": "str", - "ignoreErrors": False, - "initTimeout": "str", - "metadata": [{"name": "str", "secretRef": "str", "value": "str"}], "name": "str", - "provisioningState": "str", - "scopes": ["str"], - "secretStoreComponent": "str", - "secrets": [{"identity": "str", "keyVaultUrl": "str", "name": "str", "value": "str"}], + "properties": { + "componentType": "str", + "deploymentErrors": "str", + "ignoreErrors": bool, + "initTimeout": "str", + "metadata": [{"name": "str", "secretRef": "str", "value": "str"}], + "provisioningState": "str", + "scopes": ["str"], + "secretStoreComponent": "str", + "secrets": [{"identity": "str", "keyVaultUrl": "str", "name": "str", "value": "str"}], + "serviceComponentBind": [ + {"metadata": {"name": "str", "value": "str"}, "name": "str", "serviceId": "str"} + ], + "version": "str", + }, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -73,9 +66,7 @@ async def test_connected_environments_dapr_components_begin_create_or_update(sel "lastModifiedByType": "str", }, "type": "str", - "version": "str", }, - api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -90,13 +81,23 @@ async def test_connected_environments_dapr_components_begin_delete(self, resourc resource_group_name=resource_group.name, connected_environment_name="str", component_name="str", - api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_connected_environments_dapr_components_list(self, resource_group): + response = self.client.connected_environments_dapr_components.list( + resource_group_name=resource_group.name, + connected_environment_name="str", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_connected_environments_dapr_components_list_secrets(self, resource_group): @@ -104,7 +105,6 @@ async def test_connected_environments_dapr_components_list_secrets(self, resourc resource_group_name=resource_group.name, connected_environment_name="str", component_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_operations.py index f0244917f14f..3c5f66a4ace8 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -18,34 +18,12 @@ class TestContainerAppsAPIConnectedEnvironmentsOperations(AzureMgmtRecordedTestC def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_connected_environments_list_by_subscription(self, resource_group): - response = self.client.connected_environments.list_by_subscription( - api_version="2026-01-01", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_connected_environments_list_by_resource_group(self, resource_group): - response = self.client.connected_environments.list_by_resource_group( - resource_group_name=resource_group.name, - api_version="2026-01-01", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_connected_environments_get(self, resource_group): response = self.client.connected_environments.get( resource_group_name=resource_group.name, connected_environment_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -59,24 +37,26 @@ def test_connected_environments_begin_create_or_update(self, resource_group): connected_environment_name="str", environment_envelope={ "location": "str", - "customDomainConfiguration": { - "certificateKeyVaultProperties": {"identity": "str", "keyVaultUrl": "str"}, - "certificatePassword": "str", - "certificateValue": bytes("bytes", encoding="utf-8"), - "customDomainVerificationId": "str", - "dnsSuffix": "str", - "expirationDate": "2020-02-20 00:00:00", - "subjectName": "str", - "thumbprint": "str", - }, - "daprAIConnectionString": "str", - "defaultDomain": "str", - "deploymentErrors": "str", "extendedLocation": {"name": "str", "type": "str"}, "id": "str", "name": "str", - "provisioningState": "str", - "staticIp": "str", + "properties": { + "customDomainConfiguration": { + "certificateKeyVaultProperties": {"identity": "str", "keyVaultUrl": "str"}, + "certificatePassword": "str", + "certificateValue": bytes("bytes", encoding="utf-8"), + "customDomainVerificationId": "str", + "dnsSuffix": "str", + "expirationDate": "2020-02-20 00:00:00", + "subjectName": "str", + "thumbprint": "str", + }, + "daprAIConnectionString": "str", + "defaultDomain": "str", + "deploymentErrors": "str", + "provisioningState": "str", + "staticIp": "str", + }, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -88,19 +68,28 @@ def test_connected_environments_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_connected_environments_update(self, resource_group): + response = self.client.connected_environments.update( + resource_group_name=resource_group.name, + connected_environment_name="str", + ) + + # please add some check logic here by yourself + # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_connected_environments_begin_delete(self, resource_group): response = self.client.connected_environments.begin_delete( resource_group_name=resource_group.name, connected_environment_name="str", - api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -108,14 +97,19 @@ def test_connected_environments_begin_delete(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_connected_environments_update(self, resource_group): - response = self.client.connected_environments.update( + def test_connected_environments_list_by_resource_group(self, resource_group): + response = self.client.connected_environments.list_by_resource_group( resource_group_name=resource_group.name, - connected_environment_name="str", - environment_envelope={"tags": {"str": "str"}}, - api_version="2026-01-01", ) + result = [r for r in response] + # please add some check logic here by yourself + # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_connected_environments_list_by_subscription(self, resource_group): + response = self.client.connected_environments.list_by_subscription() + result = [r for r in response] # please add some check logic here by yourself # ... @@ -126,7 +120,6 @@ def test_connected_environments_check_name_availability(self, resource_group): resource_group_name=resource_group.name, connected_environment_name="str", check_name_availability_request={"name": "str", "type": "str"}, - api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_operations_async.py index 98ecbef88eaa..dae1c9849d70 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -19,34 +19,12 @@ class TestContainerAppsAPIConnectedEnvironmentsOperationsAsync(AzureMgmtRecorded def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient, is_async=True) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_connected_environments_list_by_subscription(self, resource_group): - response = self.client.connected_environments.list_by_subscription( - api_version="2026-01-01", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_connected_environments_list_by_resource_group(self, resource_group): - response = self.client.connected_environments.list_by_resource_group( - resource_group_name=resource_group.name, - api_version="2026-01-01", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_connected_environments_get(self, resource_group): response = await self.client.connected_environments.get( resource_group_name=resource_group.name, connected_environment_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -61,24 +39,26 @@ async def test_connected_environments_begin_create_or_update(self, resource_grou connected_environment_name="str", environment_envelope={ "location": "str", - "customDomainConfiguration": { - "certificateKeyVaultProperties": {"identity": "str", "keyVaultUrl": "str"}, - "certificatePassword": "str", - "certificateValue": bytes("bytes", encoding="utf-8"), - "customDomainVerificationId": "str", - "dnsSuffix": "str", - "expirationDate": "2020-02-20 00:00:00", - "subjectName": "str", - "thumbprint": "str", - }, - "daprAIConnectionString": "str", - "defaultDomain": "str", - "deploymentErrors": "str", "extendedLocation": {"name": "str", "type": "str"}, "id": "str", "name": "str", - "provisioningState": "str", - "staticIp": "str", + "properties": { + "customDomainConfiguration": { + "certificateKeyVaultProperties": {"identity": "str", "keyVaultUrl": "str"}, + "certificatePassword": "str", + "certificateValue": bytes("bytes", encoding="utf-8"), + "customDomainVerificationId": "str", + "dnsSuffix": "str", + "expirationDate": "2020-02-20 00:00:00", + "subjectName": "str", + "thumbprint": "str", + }, + "daprAIConnectionString": "str", + "defaultDomain": "str", + "deploymentErrors": "str", + "provisioningState": "str", + "staticIp": "str", + }, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -90,13 +70,23 @@ async def test_connected_environments_begin_create_or_update(self, resource_grou "tags": {"str": "str"}, "type": "str", }, - api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_connected_environments_update(self, resource_group): + response = await self.client.connected_environments.update( + resource_group_name=resource_group.name, + connected_environment_name="str", + ) + + # please add some check logic here by yourself + # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_connected_environments_begin_delete(self, resource_group): @@ -104,7 +94,6 @@ async def test_connected_environments_begin_delete(self, resource_group): await self.client.connected_environments.begin_delete( resource_group_name=resource_group.name, connected_environment_name="str", - api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -113,14 +102,19 @@ async def test_connected_environments_begin_delete(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_connected_environments_update(self, resource_group): - response = await self.client.connected_environments.update( + async def test_connected_environments_list_by_resource_group(self, resource_group): + response = self.client.connected_environments.list_by_resource_group( resource_group_name=resource_group.name, - connected_environment_name="str", - environment_envelope={"tags": {"str": "str"}}, - api_version="2026-01-01", ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_connected_environments_list_by_subscription(self, resource_group): + response = self.client.connected_environments.list_by_subscription() + result = [r async for r in response] # please add some check logic here by yourself # ... @@ -131,7 +125,6 @@ async def test_connected_environments_check_name_availability(self, resource_gro resource_group_name=resource_group.name, connected_environment_name="str", check_name_availability_request={"name": "str", "type": "str"}, - api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_storages_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_storages_operations.py index 613e80e16cd9..6ff0a3cdecb8 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_storages_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_storages_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -18,18 +18,6 @@ class TestContainerAppsAPIConnectedEnvironmentsStoragesOperations(AzureMgmtRecor def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_connected_environments_storages_list(self, resource_group): - response = self.client.connected_environments_storages.list( - resource_group_name=resource_group.name, - connected_environment_name="str", - api_version="2026-01-01", - ) - - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_connected_environments_storages_get(self, resource_group): @@ -37,7 +25,6 @@ def test_connected_environments_storages_get(self, resource_group): resource_group_name=resource_group.name, connected_environment_name="str", storage_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -63,6 +50,14 @@ def test_connected_environments_storages_begin_create_or_update(self, resource_g }, "deploymentErrors": "str", "provisioningState": "str", + "smb": { + "accessMode": "str", + "domain": "str", + "host": "str", + "password": "str", + "shareName": "str", + "username": "str", + }, }, "systemData": { "createdAt": "2020-02-20 00:00:00", @@ -74,7 +69,6 @@ def test_connected_environments_storages_begin_create_or_update(self, resource_g }, "type": "str", }, - api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -87,8 +81,18 @@ def test_connected_environments_storages_begin_delete(self, resource_group): resource_group_name=resource_group.name, connected_environment_name="str", storage_name="str", - api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_connected_environments_storages_list(self, resource_group): + response = self.client.connected_environments_storages.list( + resource_group_name=resource_group.name, + connected_environment_name="str", + ) + + # please add some check logic here by yourself + # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_storages_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_storages_operations_async.py index d23db5f0feea..3eedf8298275 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_storages_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_connected_environments_storages_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -19,18 +19,6 @@ class TestContainerAppsAPIConnectedEnvironmentsStoragesOperationsAsync(AzureMgmt def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient, is_async=True) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_connected_environments_storages_list(self, resource_group): - response = await self.client.connected_environments_storages.list( - resource_group_name=resource_group.name, - connected_environment_name="str", - api_version="2026-01-01", - ) - - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_connected_environments_storages_get(self, resource_group): @@ -38,7 +26,6 @@ async def test_connected_environments_storages_get(self, resource_group): resource_group_name=resource_group.name, connected_environment_name="str", storage_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -65,6 +52,14 @@ async def test_connected_environments_storages_begin_create_or_update(self, reso }, "deploymentErrors": "str", "provisioningState": "str", + "smb": { + "accessMode": "str", + "domain": "str", + "host": "str", + "password": "str", + "shareName": "str", + "username": "str", + }, }, "systemData": { "createdAt": "2020-02-20 00:00:00", @@ -76,7 +71,6 @@ async def test_connected_environments_storages_begin_create_or_update(self, reso }, "type": "str", }, - api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -91,9 +85,19 @@ async def test_connected_environments_storages_begin_delete(self, resource_group resource_group_name=resource_group.name, connected_environment_name="str", storage_name="str", - api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_connected_environments_storages_list(self, resource_group): + response = await self.client.connected_environments_storages.list( + resource_group_name=resource_group.name, + connected_environment_name="str", + ) + + # please add some check logic here by yourself + # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_auth_configs_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_auth_configs_operations.py index e5b30340227e..b306404847c7 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_auth_configs_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_auth_configs_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -18,18 +18,6 @@ class TestContainerAppsAPIContainerAppsAuthConfigsOperations(AzureMgmtRecordedTe def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_container_apps_auth_configs_list_by_container_app(self, resource_group): - response = self.client.container_apps_auth_configs.list_by_container_app( - resource_group_name=resource_group.name, - container_app_name="str", - api_version="2026-01-01", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_container_apps_auth_configs_get(self, resource_group): @@ -37,7 +25,6 @@ def test_container_apps_auth_configs_get(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", auth_config_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -51,106 +38,116 @@ def test_container_apps_auth_configs_create_or_update(self, resource_group): container_app_name="str", auth_config_name="str", auth_config_envelope={ - "encryptionSettings": { - "containerAppAuthEncryptionSecretName": "str", - "containerAppAuthSigningSecretName": "str", - }, - "globalValidation": { - "excludedPaths": ["str"], - "redirectToProvider": "str", - "unauthenticatedClientAction": "str", - }, - "httpSettings": { - "forwardProxy": { - "convention": "str", - "customHostHeaderName": "str", - "customProtoHeaderName": "str", - }, - "requireHttps": bool, - "routes": {"apiPrefix": "str"}, - }, "id": "str", - "identityProviders": { - "apple": { - "enabled": bool, - "login": {"scopes": ["str"]}, - "registration": {"clientId": "str", "clientSecretSettingName": "str"}, + "name": "str", + "properties": { + "encryptionSettings": { + "containerAppAuthEncryptionSecretName": "str", + "containerAppAuthSigningSecretName": "str", }, - "azureActiveDirectory": { - "enabled": bool, - "isAutoProvisioned": bool, - "login": {"disableWWWAuthenticate": bool, "loginParameters": ["str"]}, - "registration": { - "clientId": "str", - "clientSecretCertificateIssuer": "str", - "clientSecretCertificateSubjectAlternativeName": "str", - "clientSecretCertificateThumbprint": "str", - "clientSecretSettingName": "str", - "openIdIssuer": "str", - }, - "validation": { - "allowedAudiences": ["str"], - "defaultAuthorizationPolicy": { - "allowedApplications": ["str"], - "allowedPrincipals": {"groups": ["str"], "identities": ["str"]}, - }, - "jwtClaimChecks": {"allowedClientApplications": ["str"], "allowedGroups": ["str"]}, + "globalValidation": { + "excludedPaths": ["str"], + "redirectToProvider": "str", + "unauthenticatedClientAction": "str", + }, + "httpSettings": { + "forwardProxy": { + "convention": "str", + "customHostHeaderName": "str", + "customProtoHeaderName": "str", }, + "requireHttps": bool, + "routes": {"apiPrefix": "str"}, }, - "azureStaticWebApps": {"enabled": bool, "registration": {"clientId": "str"}}, - "customOpenIdConnectProviders": { - "str": { + "identityProviders": { + "apple": { + "enabled": bool, + "login": {"scopes": ["str"]}, + "registration": {"clientId": "str", "clientSecretSettingName": "str"}, + }, + "azureActiveDirectory": { "enabled": bool, - "login": {"nameClaimType": "str", "scopes": ["str"]}, + "isAutoProvisioned": bool, + "login": {"disableWWWAuthenticate": bool, "loginParameters": ["str"]}, "registration": { - "clientCredential": {"clientSecretSettingName": "str", "method": "ClientSecretPost"}, "clientId": "str", - "openIdConnectConfiguration": { - "authorizationEndpoint": "str", - "certificationUri": "str", - "issuer": "str", - "tokenEndpoint": "str", - "wellKnownOpenIdConfiguration": "str", + "clientSecretCertificateIssuer": "str", + "clientSecretCertificateSubjectAlternativeName": "str", + "clientSecretCertificateThumbprint": "str", + "clientSecretSettingName": "str", + "openIdIssuer": "str", + }, + "validation": { + "allowedAudiences": ["str"], + "defaultAuthorizationPolicy": { + "allowedApplications": ["str"], + "allowedPrincipals": {"groups": ["str"], "identities": ["str"]}, }, + "jwtClaimChecks": {"allowedClientApplications": ["str"], "allowedGroups": ["str"]}, }, - } - }, - "facebook": { - "enabled": bool, - "graphApiVersion": "str", - "login": {"scopes": ["str"]}, - "registration": {"appId": "str", "appSecretSettingName": "str"}, - }, - "gitHub": { - "enabled": bool, - "login": {"scopes": ["str"]}, - "registration": {"clientId": "str", "clientSecretSettingName": "str"}, - }, - "google": { - "enabled": bool, - "login": {"scopes": ["str"]}, - "registration": {"clientId": "str", "clientSecretSettingName": "str"}, - "validation": {"allowedAudiences": ["str"]}, - }, - "twitter": { - "enabled": bool, - "registration": {"consumerKey": "str", "consumerSecretSettingName": "str"}, + }, + "azureStaticWebApps": {"enabled": bool, "registration": {"clientId": "str"}}, + "customOpenIdConnectProviders": { + "str": { + "enabled": bool, + "login": {"nameClaimType": "str", "scopes": ["str"]}, + "registration": { + "clientCredential": { + "clientSecretSettingName": "str", + "method": "ClientSecretPost", + }, + "clientId": "str", + "openIdConnectConfiguration": { + "authorizationEndpoint": "str", + "certificationUri": "str", + "issuer": "str", + "tokenEndpoint": "str", + "wellKnownOpenIdConfiguration": "str", + }, + }, + } + }, + "facebook": { + "enabled": bool, + "graphApiVersion": "str", + "login": {"scopes": ["str"]}, + "registration": {"appId": "str", "appSecretSettingName": "str"}, + }, + "gitHub": { + "enabled": bool, + "login": {"scopes": ["str"]}, + "registration": {"clientId": "str", "clientSecretSettingName": "str"}, + }, + "google": { + "enabled": bool, + "login": {"scopes": ["str"]}, + "registration": {"clientId": "str", "clientSecretSettingName": "str"}, + "validation": {"allowedAudiences": ["str"]}, + }, + "twitter": { + "enabled": bool, + "registration": {"consumerKey": "str", "consumerSecretSettingName": "str"}, + }, }, - }, - "login": { - "allowedExternalRedirectUrls": ["str"], - "cookieExpiration": {"convention": "str", "timeToExpiration": "str"}, - "nonce": {"nonceExpirationInterval": "str", "validateNonce": bool}, - "preserveUrlFragmentsForLogins": bool, - "routes": {"logoutEndpoint": "str"}, - "tokenStore": { - "azureBlobStorage": {"sasUrlSettingName": "str"}, - "enabled": bool, - "tokenRefreshExtensionHours": 0.0, + "login": { + "allowedExternalRedirectUrls": ["str"], + "cookieExpiration": {"convention": "str", "timeToExpiration": "str"}, + "nonce": {"nonceExpirationInterval": "str", "validateNonce": bool}, + "preserveUrlFragmentsForLogins": bool, + "routes": {"logoutEndpoint": "str"}, + "tokenStore": { + "azureBlobStorage": { + "blobContainerUri": "str", + "clientId": "str", + "managedIdentityResourceId": "str", + "sasUrlSettingName": "str", + }, + "enabled": bool, + "tokenRefreshExtensionHours": 0.0, + }, }, + "platform": {"enabled": bool, "runtimeVersion": "str"}, }, - "name": "str", - "platform": {"enabled": bool, "runtimeVersion": "str"}, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -161,7 +158,6 @@ def test_container_apps_auth_configs_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -174,8 +170,18 @@ def test_container_apps_auth_configs_delete(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", auth_config_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_container_apps_auth_configs_list_by_container_app(self, resource_group): + response = self.client.container_apps_auth_configs.list_by_container_app( + resource_group_name=resource_group.name, + container_app_name="str", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_auth_configs_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_auth_configs_operations_async.py index 9c8604d7da7a..b45471334b87 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_auth_configs_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_auth_configs_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -19,18 +19,6 @@ class TestContainerAppsAPIContainerAppsAuthConfigsOperationsAsync(AzureMgmtRecor def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient, is_async=True) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_container_apps_auth_configs_list_by_container_app(self, resource_group): - response = self.client.container_apps_auth_configs.list_by_container_app( - resource_group_name=resource_group.name, - container_app_name="str", - api_version="2026-01-01", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_container_apps_auth_configs_get(self, resource_group): @@ -38,7 +26,6 @@ async def test_container_apps_auth_configs_get(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", auth_config_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -52,106 +39,116 @@ async def test_container_apps_auth_configs_create_or_update(self, resource_group container_app_name="str", auth_config_name="str", auth_config_envelope={ - "encryptionSettings": { - "containerAppAuthEncryptionSecretName": "str", - "containerAppAuthSigningSecretName": "str", - }, - "globalValidation": { - "excludedPaths": ["str"], - "redirectToProvider": "str", - "unauthenticatedClientAction": "str", - }, - "httpSettings": { - "forwardProxy": { - "convention": "str", - "customHostHeaderName": "str", - "customProtoHeaderName": "str", - }, - "requireHttps": bool, - "routes": {"apiPrefix": "str"}, - }, "id": "str", - "identityProviders": { - "apple": { - "enabled": bool, - "login": {"scopes": ["str"]}, - "registration": {"clientId": "str", "clientSecretSettingName": "str"}, + "name": "str", + "properties": { + "encryptionSettings": { + "containerAppAuthEncryptionSecretName": "str", + "containerAppAuthSigningSecretName": "str", }, - "azureActiveDirectory": { - "enabled": bool, - "isAutoProvisioned": bool, - "login": {"disableWWWAuthenticate": bool, "loginParameters": ["str"]}, - "registration": { - "clientId": "str", - "clientSecretCertificateIssuer": "str", - "clientSecretCertificateSubjectAlternativeName": "str", - "clientSecretCertificateThumbprint": "str", - "clientSecretSettingName": "str", - "openIdIssuer": "str", - }, - "validation": { - "allowedAudiences": ["str"], - "defaultAuthorizationPolicy": { - "allowedApplications": ["str"], - "allowedPrincipals": {"groups": ["str"], "identities": ["str"]}, - }, - "jwtClaimChecks": {"allowedClientApplications": ["str"], "allowedGroups": ["str"]}, + "globalValidation": { + "excludedPaths": ["str"], + "redirectToProvider": "str", + "unauthenticatedClientAction": "str", + }, + "httpSettings": { + "forwardProxy": { + "convention": "str", + "customHostHeaderName": "str", + "customProtoHeaderName": "str", }, + "requireHttps": bool, + "routes": {"apiPrefix": "str"}, }, - "azureStaticWebApps": {"enabled": bool, "registration": {"clientId": "str"}}, - "customOpenIdConnectProviders": { - "str": { + "identityProviders": { + "apple": { + "enabled": bool, + "login": {"scopes": ["str"]}, + "registration": {"clientId": "str", "clientSecretSettingName": "str"}, + }, + "azureActiveDirectory": { "enabled": bool, - "login": {"nameClaimType": "str", "scopes": ["str"]}, + "isAutoProvisioned": bool, + "login": {"disableWWWAuthenticate": bool, "loginParameters": ["str"]}, "registration": { - "clientCredential": {"clientSecretSettingName": "str", "method": "ClientSecretPost"}, "clientId": "str", - "openIdConnectConfiguration": { - "authorizationEndpoint": "str", - "certificationUri": "str", - "issuer": "str", - "tokenEndpoint": "str", - "wellKnownOpenIdConfiguration": "str", + "clientSecretCertificateIssuer": "str", + "clientSecretCertificateSubjectAlternativeName": "str", + "clientSecretCertificateThumbprint": "str", + "clientSecretSettingName": "str", + "openIdIssuer": "str", + }, + "validation": { + "allowedAudiences": ["str"], + "defaultAuthorizationPolicy": { + "allowedApplications": ["str"], + "allowedPrincipals": {"groups": ["str"], "identities": ["str"]}, }, + "jwtClaimChecks": {"allowedClientApplications": ["str"], "allowedGroups": ["str"]}, }, - } - }, - "facebook": { - "enabled": bool, - "graphApiVersion": "str", - "login": {"scopes": ["str"]}, - "registration": {"appId": "str", "appSecretSettingName": "str"}, - }, - "gitHub": { - "enabled": bool, - "login": {"scopes": ["str"]}, - "registration": {"clientId": "str", "clientSecretSettingName": "str"}, - }, - "google": { - "enabled": bool, - "login": {"scopes": ["str"]}, - "registration": {"clientId": "str", "clientSecretSettingName": "str"}, - "validation": {"allowedAudiences": ["str"]}, - }, - "twitter": { - "enabled": bool, - "registration": {"consumerKey": "str", "consumerSecretSettingName": "str"}, + }, + "azureStaticWebApps": {"enabled": bool, "registration": {"clientId": "str"}}, + "customOpenIdConnectProviders": { + "str": { + "enabled": bool, + "login": {"nameClaimType": "str", "scopes": ["str"]}, + "registration": { + "clientCredential": { + "clientSecretSettingName": "str", + "method": "ClientSecretPost", + }, + "clientId": "str", + "openIdConnectConfiguration": { + "authorizationEndpoint": "str", + "certificationUri": "str", + "issuer": "str", + "tokenEndpoint": "str", + "wellKnownOpenIdConfiguration": "str", + }, + }, + } + }, + "facebook": { + "enabled": bool, + "graphApiVersion": "str", + "login": {"scopes": ["str"]}, + "registration": {"appId": "str", "appSecretSettingName": "str"}, + }, + "gitHub": { + "enabled": bool, + "login": {"scopes": ["str"]}, + "registration": {"clientId": "str", "clientSecretSettingName": "str"}, + }, + "google": { + "enabled": bool, + "login": {"scopes": ["str"]}, + "registration": {"clientId": "str", "clientSecretSettingName": "str"}, + "validation": {"allowedAudiences": ["str"]}, + }, + "twitter": { + "enabled": bool, + "registration": {"consumerKey": "str", "consumerSecretSettingName": "str"}, + }, }, - }, - "login": { - "allowedExternalRedirectUrls": ["str"], - "cookieExpiration": {"convention": "str", "timeToExpiration": "str"}, - "nonce": {"nonceExpirationInterval": "str", "validateNonce": bool}, - "preserveUrlFragmentsForLogins": bool, - "routes": {"logoutEndpoint": "str"}, - "tokenStore": { - "azureBlobStorage": {"sasUrlSettingName": "str"}, - "enabled": bool, - "tokenRefreshExtensionHours": 0.0, + "login": { + "allowedExternalRedirectUrls": ["str"], + "cookieExpiration": {"convention": "str", "timeToExpiration": "str"}, + "nonce": {"nonceExpirationInterval": "str", "validateNonce": bool}, + "preserveUrlFragmentsForLogins": bool, + "routes": {"logoutEndpoint": "str"}, + "tokenStore": { + "azureBlobStorage": { + "blobContainerUri": "str", + "clientId": "str", + "managedIdentityResourceId": "str", + "sasUrlSettingName": "str", + }, + "enabled": bool, + "tokenRefreshExtensionHours": 0.0, + }, }, + "platform": {"enabled": bool, "runtimeVersion": "str"}, }, - "name": "str", - "platform": {"enabled": bool, "runtimeVersion": "str"}, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -162,7 +159,6 @@ async def test_container_apps_auth_configs_create_or_update(self, resource_group }, "type": "str", }, - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -175,8 +171,18 @@ async def test_container_apps_auth_configs_delete(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", auth_config_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_container_apps_auth_configs_list_by_container_app(self, resource_group): + response = self.client.container_apps_auth_configs.list_by_container_app( + resource_group_name=resource_group.name, + container_app_name="str", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_builds_by_container_app_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_builds_by_container_app_operations.py index 8754339fabb3..e150970fe852 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_builds_by_container_app_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_builds_by_container_app_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -24,7 +24,6 @@ def test_container_apps_builds_by_container_app_list(self, resource_group): response = self.client.container_apps_builds_by_container_app.list( resource_group_name=resource_group.name, container_app_name="str", - api_version="2025-02-02-preview", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_builds_by_container_app_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_builds_by_container_app_operations_async.py index dfec2db327be..445c26329fc0 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_builds_by_container_app_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_builds_by_container_app_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -25,7 +25,6 @@ async def test_container_apps_builds_by_container_app_list(self, resource_group) response = self.client.container_apps_builds_by_container_app.list( resource_group_name=resource_group.name, container_app_name="str", - api_version="2025-02-02-preview", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_builds_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_builds_operations.py index d660bc7e2e6c..cf5c51f45d01 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_builds_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_builds_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -25,7 +25,6 @@ def test_container_apps_builds_get(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", build_name="str", - api_version="2025-02-02-preview", ) # please add some check logic here by yourself @@ -38,7 +37,6 @@ def test_container_apps_builds_begin_delete(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", build_name="str", - api_version="2025-02-02-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_builds_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_builds_operations_async.py index 18f91650fe74..305f39d6c889 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_builds_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_builds_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -26,7 +26,6 @@ async def test_container_apps_builds_get(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", build_name="str", - api_version="2025-02-02-preview", ) # please add some check logic here by yourself @@ -40,7 +39,6 @@ async def test_container_apps_builds_begin_delete(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", build_name="str", - api_version="2025-02-02-preview", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_diagnostics_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_diagnostics_operations.py index 002b30276b76..20bff8fbea9c 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_diagnostics_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_diagnostics_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -20,61 +20,56 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_container_apps_diagnostics_list_detectors(self, resource_group): - response = self.client.container_apps_diagnostics.list_detectors( + def test_container_apps_diagnostics_get_revision(self, resource_group): + response = self.client.container_apps_diagnostics.get_revision( resource_group_name=resource_group.name, container_app_name="str", - api_version="2026-01-01", + revision_name="str", ) - result = [r for r in response] + # please add some check logic here by yourself # ... @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_container_apps_diagnostics_get_detector(self, resource_group): - response = self.client.container_apps_diagnostics.get_detector( + def test_container_apps_diagnostics_list_revisions(self, resource_group): + response = self.client.container_apps_diagnostics.list_revisions( resource_group_name=resource_group.name, container_app_name="str", - detector_name="str", - api_version="2026-01-01", ) - + result = [r for r in response] # please add some check logic here by yourself # ... @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_container_apps_diagnostics_list_revisions(self, resource_group): - response = self.client.container_apps_diagnostics.list_revisions( + def test_container_apps_diagnostics_get_root(self, resource_group): + response = self.client.container_apps_diagnostics.get_root( resource_group_name=resource_group.name, container_app_name="str", - api_version="2026-01-01", ) - result = [r for r in response] + # please add some check logic here by yourself # ... @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_container_apps_diagnostics_get_revision(self, resource_group): - response = self.client.container_apps_diagnostics.get_revision( + def test_container_apps_diagnostics_list_detectors(self, resource_group): + response = self.client.container_apps_diagnostics.list_detectors( resource_group_name=resource_group.name, container_app_name="str", - revision_name="str", - api_version="2026-01-01", ) - + result = [r for r in response] # please add some check logic here by yourself # ... @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_container_apps_diagnostics_get_root(self, resource_group): - response = self.client.container_apps_diagnostics.get_root( + def test_container_apps_diagnostics_get_detector(self, resource_group): + response = self.client.container_apps_diagnostics.get_detector( resource_group_name=resource_group.name, container_app_name="str", - api_version="2026-01-01", + detector_name="str", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_diagnostics_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_diagnostics_operations_async.py index b1240f34f2d3..9fa7a184e5a3 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_diagnostics_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_diagnostics_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -21,61 +21,56 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_container_apps_diagnostics_list_detectors(self, resource_group): - response = self.client.container_apps_diagnostics.list_detectors( + async def test_container_apps_diagnostics_get_revision(self, resource_group): + response = await self.client.container_apps_diagnostics.get_revision( resource_group_name=resource_group.name, container_app_name="str", - api_version="2026-01-01", + revision_name="str", ) - result = [r async for r in response] + # please add some check logic here by yourself # ... @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_container_apps_diagnostics_get_detector(self, resource_group): - response = await self.client.container_apps_diagnostics.get_detector( + async def test_container_apps_diagnostics_list_revisions(self, resource_group): + response = self.client.container_apps_diagnostics.list_revisions( resource_group_name=resource_group.name, container_app_name="str", - detector_name="str", - api_version="2026-01-01", ) - + result = [r async for r in response] # please add some check logic here by yourself # ... @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_container_apps_diagnostics_list_revisions(self, resource_group): - response = self.client.container_apps_diagnostics.list_revisions( + async def test_container_apps_diagnostics_get_root(self, resource_group): + response = await self.client.container_apps_diagnostics.get_root( resource_group_name=resource_group.name, container_app_name="str", - api_version="2026-01-01", ) - result = [r async for r in response] + # please add some check logic here by yourself # ... @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_container_apps_diagnostics_get_revision(self, resource_group): - response = await self.client.container_apps_diagnostics.get_revision( + async def test_container_apps_diagnostics_list_detectors(self, resource_group): + response = self.client.container_apps_diagnostics.list_detectors( resource_group_name=resource_group.name, container_app_name="str", - revision_name="str", - api_version="2026-01-01", ) - + result = [r async for r in response] # please add some check logic here by yourself # ... @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_container_apps_diagnostics_get_root(self, resource_group): - response = await self.client.container_apps_diagnostics.get_root( + async def test_container_apps_diagnostics_get_detector(self, resource_group): + response = await self.client.container_apps_diagnostics.get_detector( resource_group_name=resource_group.name, container_app_name="str", - api_version="2026-01-01", + detector_name="str", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_functions_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_functions_operations.py new file mode 100644 index 000000000000..a19a90ca9feb --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_functions_operations.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy + +AZURE_LOCATION = "eastus" + + +@pytest.mark.skip("you may need to update the auto-generated test case before run it") +class TestContainerAppsAPIContainerAppsFunctionsOperations(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(ContainerAppsAPIClient) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_container_apps_functions_get(self, resource_group): + response = self.client.container_apps_functions.get( + resource_group_name=resource_group.name, + container_app_name="str", + function_name="str", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_container_apps_functions_list(self, resource_group): + response = self.client.container_apps_functions.list( + resource_group_name=resource_group.name, + container_app_name="str", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_functions_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_functions_operations_async.py new file mode 100644 index 000000000000..450616e34dc0 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_functions_operations_async.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.appcontainers.aio import ContainerAppsAPIClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer +from devtools_testutils.aio import recorded_by_proxy_async + +AZURE_LOCATION = "eastus" + + +@pytest.mark.skip("you may need to update the auto-generated test case before run it") +class TestContainerAppsAPIContainerAppsFunctionsOperationsAsync(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(ContainerAppsAPIClient, is_async=True) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_container_apps_functions_get(self, resource_group): + response = await self.client.container_apps_functions.get( + resource_group_name=resource_group.name, + container_app_name="str", + function_name="str", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_container_apps_functions_list(self, resource_group): + response = self.client.container_apps_functions.list( + resource_group_name=resource_group.name, + container_app_name="str", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_label_history_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_label_history_operations.py index 6f4e511ec807..7dae9c1a8df7 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_label_history_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_label_history_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -20,24 +20,23 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_container_apps_label_history_list_label_history(self, resource_group): - response = self.client.container_apps_label_history.list_label_history( + def test_container_apps_label_history_get_label_history(self, resource_group): + response = self.client.container_apps_label_history.get_label_history( resource_group_name=resource_group.name, container_app_name="str", - api_version="2025-02-02-preview", + label_name="str", ) - result = [r for r in response] + # please add some check logic here by yourself # ... @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_container_apps_label_history_get_label_history(self, resource_group): - response = self.client.container_apps_label_history.get_label_history( + def test_container_apps_label_history_delete_label_history(self, resource_group): + response = self.client.container_apps_label_history.delete_label_history( resource_group_name=resource_group.name, container_app_name="str", label_name="str", - api_version="2025-02-02-preview", ) # please add some check logic here by yourself @@ -45,13 +44,11 @@ def test_container_apps_label_history_get_label_history(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_container_apps_label_history_delete_label_history(self, resource_group): - response = self.client.container_apps_label_history.delete_label_history( + def test_container_apps_label_history_list_label_history(self, resource_group): + response = self.client.container_apps_label_history.list_label_history( resource_group_name=resource_group.name, container_app_name="str", - label_name="str", - api_version="2025-02-02-preview", ) - + result = [r for r in response] # please add some check logic here by yourself # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_label_history_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_label_history_operations_async.py index 94291d701c13..e8d4be90187a 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_label_history_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_label_history_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -21,24 +21,23 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_container_apps_label_history_list_label_history(self, resource_group): - response = self.client.container_apps_label_history.list_label_history( + async def test_container_apps_label_history_get_label_history(self, resource_group): + response = await self.client.container_apps_label_history.get_label_history( resource_group_name=resource_group.name, container_app_name="str", - api_version="2025-02-02-preview", + label_name="str", ) - result = [r async for r in response] + # please add some check logic here by yourself # ... @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_container_apps_label_history_get_label_history(self, resource_group): - response = await self.client.container_apps_label_history.get_label_history( + async def test_container_apps_label_history_delete_label_history(self, resource_group): + response = await self.client.container_apps_label_history.delete_label_history( resource_group_name=resource_group.name, container_app_name="str", label_name="str", - api_version="2025-02-02-preview", ) # please add some check logic here by yourself @@ -46,13 +45,11 @@ async def test_container_apps_label_history_get_label_history(self, resource_gro @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_container_apps_label_history_delete_label_history(self, resource_group): - response = await self.client.container_apps_label_history.delete_label_history( + async def test_container_apps_label_history_list_label_history(self, resource_group): + response = self.client.container_apps_label_history.list_label_history( resource_group_name=resource_group.name, container_app_name="str", - label_name="str", - api_version="2025-02-02-preview", ) - + result = [r async for r in response] # please add some check logic here by yourself # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_operations.py index a2cd8fd93fc9..1e8d733bb061 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -18,34 +18,12 @@ class TestContainerAppsAPIContainerAppsOperations(AzureMgmtRecordedTestCase): def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_container_apps_list_by_subscription(self, resource_group): - response = self.client.container_apps.list_by_subscription( - api_version="2026-01-01", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_container_apps_list_by_resource_group(self, resource_group): - response = self.client.container_apps.list_by_resource_group( - resource_group_name=resource_group.name, - api_version="2026-01-01", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_container_apps_get(self, resource_group): response = self.client.container_apps.get( resource_group_name=resource_group.name, container_app_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -59,60 +37,6 @@ def test_container_apps_begin_create_or_update(self, resource_group): container_app_name="str", container_app_envelope={ "location": "str", - "configuration": { - "activeRevisionsMode": "Single", - "dapr": { - "appHealth": { - "enabled": bool, - "path": "str", - "probeIntervalSeconds": 0, - "probeTimeoutMilliseconds": 0, - "threshold": 0, - }, - "appId": "str", - "appPort": 0, - "appProtocol": "http", - "enableApiLogging": bool, - "enabled": False, - "httpMaxRequestSize": 0, - "httpReadBufferSize": 0, - "logLevel": "str", - "maxConcurrency": 0, - }, - "identitySettings": [{"identity": "str", "lifecycle": "str"}], - "ingress": { - "additionalPortMappings": [{"external": bool, "targetPort": 0, "exposedPort": 0}], - "allowInsecure": False, - "clientCertificateMode": "str", - "corsPolicy": { - "allowedOrigins": ["str"], - "allowCredentials": bool, - "allowedHeaders": ["str"], - "allowedMethods": ["str"], - "exposeHeaders": ["str"], - "maxAge": 0, - }, - "customDomains": [{"name": "str", "bindingType": "str", "certificateId": "str"}], - "exposedPort": 0, - "external": False, - "fqdn": "str", - "ipSecurityRestrictions": [ - {"action": "str", "ipAddressRange": "str", "name": "str", "description": "str"} - ], - "stickySessions": {"affinity": "str"}, - "targetPort": 0, - "traffic": [{"label": "str", "latestRevision": False, "revisionName": "str", "weight": 0}], - "transport": "auto", - }, - "maxInactiveRevisions": 0, - "registries": [{"identity": "str", "passwordSecretRef": "str", "server": "str", "username": "str"}], - "runtime": {"java": {"enableMetrics": bool}}, - "secrets": [{"identity": "str", "keyVaultUrl": "str", "name": "str", "value": "str"}], - "service": {"type": "str"}, - }, - "customDomainVerificationId": "str", - "environmentId": "str", - "eventStreamEndpoint": "str", "extendedLocation": {"name": "str", "type": "str"}, "id": "str", "identity": { @@ -122,129 +46,192 @@ def test_container_apps_begin_create_or_update(self, resource_group): "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, }, "kind": "str", - "latestReadyRevisionName": "str", - "latestRevisionFqdn": "str", - "latestRevisionName": "str", "managedBy": "str", - "managedEnvironmentId": "str", "name": "str", - "outboundIpAddresses": ["str"], - "provisioningState": "str", - "runningStatus": "str", - "systemData": { - "createdAt": "2020-02-20 00:00:00", - "createdBy": "str", - "createdByType": "str", - "lastModifiedAt": "2020-02-20 00:00:00", - "lastModifiedBy": "str", - "lastModifiedByType": "str", - }, - "tags": {"str": "str"}, - "template": { - "containers": [ - { - "args": ["str"], - "command": ["str"], - "env": [{"name": "str", "secretRef": "str", "value": "str"}], - "image": "str", - "name": "str", - "probes": [ + "properties": { + "configuration": { + "activeRevisionsMode": "str", + "dapr": { + "appHealth": { + "enabled": bool, + "path": "str", + "probeIntervalSeconds": 0, + "probeTimeoutMilliseconds": 0, + "threshold": 0, + }, + "appId": "str", + "appPort": 0, + "appProtocol": "str", + "enableApiLogging": bool, + "enabled": bool, + "httpMaxRequestSize": 0, + "httpReadBufferSize": 0, + "logLevel": "str", + "maxConcurrency": 0, + }, + "identitySettings": [{"identity": "str", "lifecycle": "str"}], + "ingress": { + "additionalPortMappings": [{"external": bool, "targetPort": 0, "exposedPort": 0}], + "allowInsecure": bool, + "clientCertificateMode": "str", + "corsPolicy": { + "allowedOrigins": ["str"], + "allowCredentials": bool, + "allowedHeaders": ["str"], + "allowedMethods": ["str"], + "exposeHeaders": ["str"], + "maxAge": 0, + }, + "customDomains": [{"name": "str", "bindingType": "str", "certificateId": "str"}], + "exposedPort": 0, + "external": bool, + "fqdn": "str", + "ipSecurityRestrictions": [ + {"action": "str", "ipAddressRange": "str", "name": "str", "description": "str"} + ], + "stickySessions": {"affinity": "str"}, + "targetPort": 0, + "targetPortHttpScheme": "str", + "traffic": [{"label": "str", "latestRevision": bool, "revisionName": "str", "weight": 0}], + "transport": "str", + }, + "maxInactiveRevisions": 0, + "registries": [ + {"identity": "str", "passwordSecretRef": "str", "server": "str", "username": "str"} + ], + "revisionTransitionThreshold": 0, + "runtime": { + "dotnet": {"autoConfigureDataProtection": bool}, + "java": { + "enableMetrics": bool, + "javaAgent": { + "enabled": bool, + "logging": {"loggerSettings": [{"level": "str", "logger": "str"}]}, + }, + }, + }, + "secrets": [{"identity": "str", "keyVaultUrl": "str", "name": "str", "value": "str"}], + "service": {"type": "str"}, + "targetLabel": "str", + }, + "customDomainVerificationId": "str", + "deploymentErrors": "str", + "environmentId": "str", + "eventStreamEndpoint": "str", + "latestReadyRevisionName": "str", + "latestRevisionFqdn": "str", + "latestRevisionName": "str", + "managedEnvironmentId": "str", + "outboundIpAddresses": ["str"], + "patchingConfiguration": {"patchingMode": "str"}, + "provisioningState": "str", + "runningStatus": "str", + "template": { + "containers": [ + { + "args": ["str"], + "command": ["str"], + "env": [{"name": "str", "secretRef": "str", "value": "str"}], + "image": "str", + "imageType": "str", + "name": "str", + "probes": [ + { + "failureThreshold": 0, + "httpGet": { + "port": 0, + "host": "str", + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "tcpSocket": {"port": 0, "host": "str"}, + "terminationGracePeriodSeconds": 0, + "timeoutSeconds": 0, + "type": "str", + } + ], + "resources": {"cpu": 0.0, "ephemeralStorage": "str", "gpu": 0.0, "memory": "str"}, + "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], + } + ], + "initContainers": [ + { + "args": ["str"], + "command": ["str"], + "env": [{"name": "str", "secretRef": "str", "value": "str"}], + "image": "str", + "imageType": "str", + "name": "str", + "resources": {"cpu": 0.0, "ephemeralStorage": "str", "gpu": 0.0, "memory": "str"}, + "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], + } + ], + "revisionSuffix": "str", + "scale": { + "cooldownPeriod": 0, + "maxReplicas": 0, + "minReplicas": 0, + "pollingInterval": 0, + "rules": [ { - "failureThreshold": 0, - "httpGet": { - "port": 0, - "host": "str", - "httpHeaders": [{"name": "str", "value": "str"}], - "path": "str", - "scheme": "str", + "azureQueue": { + "accountName": "str", + "auth": [{"secretRef": "str", "triggerParameter": "str"}], + "identity": "str", + "queueLength": 0, + "queueName": "str", + }, + "custom": { + "auth": [{"secretRef": "str", "triggerParameter": "str"}], + "identity": "str", + "metadata": {"str": "str"}, + "type": "str", + }, + "http": { + "auth": [{"secretRef": "str", "triggerParameter": "str"}], + "identity": "str", + "metadata": {"str": "str"}, + }, + "name": "str", + "tcp": { + "auth": [{"secretRef": "str", "triggerParameter": "str"}], + "identity": "str", + "metadata": {"str": "str"}, }, - "initialDelaySeconds": 0, - "periodSeconds": 0, - "successThreshold": 0, - "tcpSocket": {"port": 0, "host": "str"}, - "terminationGracePeriodSeconds": 0, - "timeoutSeconds": 0, - "type": "str", } ], - "resources": {"cpu": 0.0, "ephemeralStorage": "str", "memory": "str"}, - "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], - } - ], - "initContainers": [ - { - "args": ["str"], - "command": ["str"], - "env": [{"name": "str", "secretRef": "str", "value": "str"}], - "image": "str", - "name": "str", - "resources": {"cpu": 0.0, "ephemeralStorage": "str", "memory": "str"}, - "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], - } - ], - "revisionSuffix": "str", - "scale": { - "cooldownPeriod": 0, - "maxReplicas": 10, - "minReplicas": 0, - "pollingInterval": 0, - "rules": [ + }, + "serviceBinds": [ + {"clientType": "str", "customizedKeys": {"str": "str"}, "name": "str", "serviceId": "str"} + ], + "terminationGracePeriodSeconds": 0, + "volumes": [ { - "azureQueue": { - "accountName": "str", - "auth": [{"secretRef": "str", "triggerParameter": "str"}], - "identity": "str", - "queueLength": 0, - "queueName": "str", - }, - "custom": { - "auth": [{"secretRef": "str", "triggerParameter": "str"}], - "identity": "str", - "metadata": {"str": "str"}, - "type": "str", - }, - "http": { - "auth": [{"secretRef": "str", "triggerParameter": "str"}], - "identity": "str", - "metadata": {"str": "str"}, - }, + "mountOptions": "str", "name": "str", - "tcp": { - "auth": [{"secretRef": "str", "triggerParameter": "str"}], - "identity": "str", - "metadata": {"str": "str"}, - }, + "secrets": [{"path": "str", "secretRef": "str"}], + "storageName": "str", + "storageType": "str", } ], }, - "serviceBinds": [{"name": "str", "serviceId": "str"}], - "terminationGracePeriodSeconds": 0, - "volumes": [ - { - "mountOptions": "str", - "name": "str", - "secrets": [{"path": "str", "secretRef": "str"}], - "storageName": "str", - "storageType": "str", - } - ], + "workloadProfileName": "str", }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "tags": {"str": "str"}, "type": "str", - "workloadProfileName": "str", }, - api_version="2026-01-01", - ).result() # call '.result()' to poll until service return final result - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_container_apps_begin_delete(self, resource_group): - response = self.client.container_apps.begin_delete( - resource_group_name=resource_group.name, - container_app_name="str", - api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -258,60 +245,6 @@ def test_container_apps_begin_update(self, resource_group): container_app_name="str", container_app_envelope={ "location": "str", - "configuration": { - "activeRevisionsMode": "Single", - "dapr": { - "appHealth": { - "enabled": bool, - "path": "str", - "probeIntervalSeconds": 0, - "probeTimeoutMilliseconds": 0, - "threshold": 0, - }, - "appId": "str", - "appPort": 0, - "appProtocol": "http", - "enableApiLogging": bool, - "enabled": False, - "httpMaxRequestSize": 0, - "httpReadBufferSize": 0, - "logLevel": "str", - "maxConcurrency": 0, - }, - "identitySettings": [{"identity": "str", "lifecycle": "str"}], - "ingress": { - "additionalPortMappings": [{"external": bool, "targetPort": 0, "exposedPort": 0}], - "allowInsecure": False, - "clientCertificateMode": "str", - "corsPolicy": { - "allowedOrigins": ["str"], - "allowCredentials": bool, - "allowedHeaders": ["str"], - "allowedMethods": ["str"], - "exposeHeaders": ["str"], - "maxAge": 0, - }, - "customDomains": [{"name": "str", "bindingType": "str", "certificateId": "str"}], - "exposedPort": 0, - "external": False, - "fqdn": "str", - "ipSecurityRestrictions": [ - {"action": "str", "ipAddressRange": "str", "name": "str", "description": "str"} - ], - "stickySessions": {"affinity": "str"}, - "targetPort": 0, - "traffic": [{"label": "str", "latestRevision": False, "revisionName": "str", "weight": 0}], - "transport": "auto", - }, - "maxInactiveRevisions": 0, - "registries": [{"identity": "str", "passwordSecretRef": "str", "server": "str", "username": "str"}], - "runtime": {"java": {"enableMetrics": bool}}, - "secrets": [{"identity": "str", "keyVaultUrl": "str", "name": "str", "value": "str"}], - "service": {"type": "str"}, - }, - "customDomainVerificationId": "str", - "environmentId": "str", - "eventStreamEndpoint": "str", "extendedLocation": {"name": "str", "type": "str"}, "id": "str", "identity": { @@ -321,129 +254,232 @@ def test_container_apps_begin_update(self, resource_group): "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, }, "kind": "str", - "latestReadyRevisionName": "str", - "latestRevisionFqdn": "str", - "latestRevisionName": "str", "managedBy": "str", - "managedEnvironmentId": "str", "name": "str", - "outboundIpAddresses": ["str"], - "provisioningState": "str", - "runningStatus": "str", - "systemData": { - "createdAt": "2020-02-20 00:00:00", - "createdBy": "str", - "createdByType": "str", - "lastModifiedAt": "2020-02-20 00:00:00", - "lastModifiedBy": "str", - "lastModifiedByType": "str", - }, - "tags": {"str": "str"}, - "template": { - "containers": [ - { - "args": ["str"], - "command": ["str"], - "env": [{"name": "str", "secretRef": "str", "value": "str"}], - "image": "str", - "name": "str", - "probes": [ + "properties": { + "configuration": { + "activeRevisionsMode": "str", + "dapr": { + "appHealth": { + "enabled": bool, + "path": "str", + "probeIntervalSeconds": 0, + "probeTimeoutMilliseconds": 0, + "threshold": 0, + }, + "appId": "str", + "appPort": 0, + "appProtocol": "str", + "enableApiLogging": bool, + "enabled": bool, + "httpMaxRequestSize": 0, + "httpReadBufferSize": 0, + "logLevel": "str", + "maxConcurrency": 0, + }, + "identitySettings": [{"identity": "str", "lifecycle": "str"}], + "ingress": { + "additionalPortMappings": [{"external": bool, "targetPort": 0, "exposedPort": 0}], + "allowInsecure": bool, + "clientCertificateMode": "str", + "corsPolicy": { + "allowedOrigins": ["str"], + "allowCredentials": bool, + "allowedHeaders": ["str"], + "allowedMethods": ["str"], + "exposeHeaders": ["str"], + "maxAge": 0, + }, + "customDomains": [{"name": "str", "bindingType": "str", "certificateId": "str"}], + "exposedPort": 0, + "external": bool, + "fqdn": "str", + "ipSecurityRestrictions": [ + {"action": "str", "ipAddressRange": "str", "name": "str", "description": "str"} + ], + "stickySessions": {"affinity": "str"}, + "targetPort": 0, + "targetPortHttpScheme": "str", + "traffic": [{"label": "str", "latestRevision": bool, "revisionName": "str", "weight": 0}], + "transport": "str", + }, + "maxInactiveRevisions": 0, + "registries": [ + {"identity": "str", "passwordSecretRef": "str", "server": "str", "username": "str"} + ], + "revisionTransitionThreshold": 0, + "runtime": { + "dotnet": {"autoConfigureDataProtection": bool}, + "java": { + "enableMetrics": bool, + "javaAgent": { + "enabled": bool, + "logging": {"loggerSettings": [{"level": "str", "logger": "str"}]}, + }, + }, + }, + "secrets": [{"identity": "str", "keyVaultUrl": "str", "name": "str", "value": "str"}], + "service": {"type": "str"}, + "targetLabel": "str", + }, + "customDomainVerificationId": "str", + "deploymentErrors": "str", + "environmentId": "str", + "eventStreamEndpoint": "str", + "latestReadyRevisionName": "str", + "latestRevisionFqdn": "str", + "latestRevisionName": "str", + "managedEnvironmentId": "str", + "outboundIpAddresses": ["str"], + "patchingConfiguration": {"patchingMode": "str"}, + "provisioningState": "str", + "runningStatus": "str", + "template": { + "containers": [ + { + "args": ["str"], + "command": ["str"], + "env": [{"name": "str", "secretRef": "str", "value": "str"}], + "image": "str", + "imageType": "str", + "name": "str", + "probes": [ + { + "failureThreshold": 0, + "httpGet": { + "port": 0, + "host": "str", + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "tcpSocket": {"port": 0, "host": "str"}, + "terminationGracePeriodSeconds": 0, + "timeoutSeconds": 0, + "type": "str", + } + ], + "resources": {"cpu": 0.0, "ephemeralStorage": "str", "gpu": 0.0, "memory": "str"}, + "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], + } + ], + "initContainers": [ + { + "args": ["str"], + "command": ["str"], + "env": [{"name": "str", "secretRef": "str", "value": "str"}], + "image": "str", + "imageType": "str", + "name": "str", + "resources": {"cpu": 0.0, "ephemeralStorage": "str", "gpu": 0.0, "memory": "str"}, + "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], + } + ], + "revisionSuffix": "str", + "scale": { + "cooldownPeriod": 0, + "maxReplicas": 0, + "minReplicas": 0, + "pollingInterval": 0, + "rules": [ { - "failureThreshold": 0, - "httpGet": { - "port": 0, - "host": "str", - "httpHeaders": [{"name": "str", "value": "str"}], - "path": "str", - "scheme": "str", + "azureQueue": { + "accountName": "str", + "auth": [{"secretRef": "str", "triggerParameter": "str"}], + "identity": "str", + "queueLength": 0, + "queueName": "str", + }, + "custom": { + "auth": [{"secretRef": "str", "triggerParameter": "str"}], + "identity": "str", + "metadata": {"str": "str"}, + "type": "str", + }, + "http": { + "auth": [{"secretRef": "str", "triggerParameter": "str"}], + "identity": "str", + "metadata": {"str": "str"}, + }, + "name": "str", + "tcp": { + "auth": [{"secretRef": "str", "triggerParameter": "str"}], + "identity": "str", + "metadata": {"str": "str"}, }, - "initialDelaySeconds": 0, - "periodSeconds": 0, - "successThreshold": 0, - "tcpSocket": {"port": 0, "host": "str"}, - "terminationGracePeriodSeconds": 0, - "timeoutSeconds": 0, - "type": "str", } ], - "resources": {"cpu": 0.0, "ephemeralStorage": "str", "memory": "str"}, - "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], - } - ], - "initContainers": [ - { - "args": ["str"], - "command": ["str"], - "env": [{"name": "str", "secretRef": "str", "value": "str"}], - "image": "str", - "name": "str", - "resources": {"cpu": 0.0, "ephemeralStorage": "str", "memory": "str"}, - "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], - } - ], - "revisionSuffix": "str", - "scale": { - "cooldownPeriod": 0, - "maxReplicas": 10, - "minReplicas": 0, - "pollingInterval": 0, - "rules": [ + }, + "serviceBinds": [ + {"clientType": "str", "customizedKeys": {"str": "str"}, "name": "str", "serviceId": "str"} + ], + "terminationGracePeriodSeconds": 0, + "volumes": [ { - "azureQueue": { - "accountName": "str", - "auth": [{"secretRef": "str", "triggerParameter": "str"}], - "identity": "str", - "queueLength": 0, - "queueName": "str", - }, - "custom": { - "auth": [{"secretRef": "str", "triggerParameter": "str"}], - "identity": "str", - "metadata": {"str": "str"}, - "type": "str", - }, - "http": { - "auth": [{"secretRef": "str", "triggerParameter": "str"}], - "identity": "str", - "metadata": {"str": "str"}, - }, + "mountOptions": "str", "name": "str", - "tcp": { - "auth": [{"secretRef": "str", "triggerParameter": "str"}], - "identity": "str", - "metadata": {"str": "str"}, - }, + "secrets": [{"path": "str", "secretRef": "str"}], + "storageName": "str", + "storageType": "str", } ], }, - "serviceBinds": [{"name": "str", "serviceId": "str"}], - "terminationGracePeriodSeconds": 0, - "volumes": [ - { - "mountOptions": "str", - "name": "str", - "secrets": [{"path": "str", "secretRef": "str"}], - "storageName": "str", - "storageType": "str", - } - ], + "workloadProfileName": "str", + }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", }, + "tags": {"str": "str"}, "type": "str", - "workloadProfileName": "str", }, - api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_container_apps_begin_delete(self, resource_group): + response = self.client.container_apps.begin_delete( + resource_group_name=resource_group.name, + container_app_name="str", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_container_apps_list_by_resource_group(self, resource_group): + response = self.client.container_apps.list_by_resource_group( + resource_group_name=resource_group.name, + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_container_apps_list_by_subscription(self, resource_group): + response = self.client.container_apps.list_by_subscription() + result = [r for r in response] + # please add some check logic here by yourself + # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_container_apps_list_custom_host_name_analysis(self, resource_group): response = self.client.container_apps.list_custom_host_name_analysis( resource_group_name=resource_group.name, container_app_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -455,7 +491,6 @@ def test_container_apps_list_secrets(self, resource_group): response = self.client.container_apps.list_secrets( resource_group_name=resource_group.name, container_app_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -467,7 +502,6 @@ def test_container_apps_get_auth_token(self, resource_group): response = self.client.container_apps.get_auth_token( resource_group_name=resource_group.name, container_app_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -479,7 +513,6 @@ def test_container_apps_begin_start(self, resource_group): response = self.client.container_apps.begin_start( resource_group_name=resource_group.name, container_app_name="str", - api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -491,7 +524,6 @@ def test_container_apps_begin_stop(self, resource_group): response = self.client.container_apps.begin_stop( resource_group_name=resource_group.name, container_app_name="str", - api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_operations_async.py index 2025e273f880..74772264a90f 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -19,34 +19,12 @@ class TestContainerAppsAPIContainerAppsOperationsAsync(AzureMgmtRecordedTestCase def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient, is_async=True) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_container_apps_list_by_subscription(self, resource_group): - response = self.client.container_apps.list_by_subscription( - api_version="2026-01-01", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_container_apps_list_by_resource_group(self, resource_group): - response = self.client.container_apps.list_by_resource_group( - resource_group_name=resource_group.name, - api_version="2026-01-01", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_container_apps_get(self, resource_group): response = await self.client.container_apps.get( resource_group_name=resource_group.name, container_app_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -61,62 +39,6 @@ async def test_container_apps_begin_create_or_update(self, resource_group): container_app_name="str", container_app_envelope={ "location": "str", - "configuration": { - "activeRevisionsMode": "Single", - "dapr": { - "appHealth": { - "enabled": bool, - "path": "str", - "probeIntervalSeconds": 0, - "probeTimeoutMilliseconds": 0, - "threshold": 0, - }, - "appId": "str", - "appPort": 0, - "appProtocol": "http", - "enableApiLogging": bool, - "enabled": False, - "httpMaxRequestSize": 0, - "httpReadBufferSize": 0, - "logLevel": "str", - "maxConcurrency": 0, - }, - "identitySettings": [{"identity": "str", "lifecycle": "str"}], - "ingress": { - "additionalPortMappings": [{"external": bool, "targetPort": 0, "exposedPort": 0}], - "allowInsecure": False, - "clientCertificateMode": "str", - "corsPolicy": { - "allowedOrigins": ["str"], - "allowCredentials": bool, - "allowedHeaders": ["str"], - "allowedMethods": ["str"], - "exposeHeaders": ["str"], - "maxAge": 0, - }, - "customDomains": [{"name": "str", "bindingType": "str", "certificateId": "str"}], - "exposedPort": 0, - "external": False, - "fqdn": "str", - "ipSecurityRestrictions": [ - {"action": "str", "ipAddressRange": "str", "name": "str", "description": "str"} - ], - "stickySessions": {"affinity": "str"}, - "targetPort": 0, - "traffic": [{"label": "str", "latestRevision": False, "revisionName": "str", "weight": 0}], - "transport": "auto", - }, - "maxInactiveRevisions": 0, - "registries": [ - {"identity": "str", "passwordSecretRef": "str", "server": "str", "username": "str"} - ], - "runtime": {"java": {"enableMetrics": bool}}, - "secrets": [{"identity": "str", "keyVaultUrl": "str", "name": "str", "value": "str"}], - "service": {"type": "str"}, - }, - "customDomainVerificationId": "str", - "environmentId": "str", - "eventStreamEndpoint": "str", "extendedLocation": {"name": "str", "type": "str"}, "id": "str", "identity": { @@ -126,131 +48,199 @@ async def test_container_apps_begin_create_or_update(self, resource_group): "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, }, "kind": "str", - "latestReadyRevisionName": "str", - "latestRevisionFqdn": "str", - "latestRevisionName": "str", "managedBy": "str", - "managedEnvironmentId": "str", "name": "str", - "outboundIpAddresses": ["str"], - "provisioningState": "str", - "runningStatus": "str", - "systemData": { - "createdAt": "2020-02-20 00:00:00", - "createdBy": "str", - "createdByType": "str", - "lastModifiedAt": "2020-02-20 00:00:00", - "lastModifiedBy": "str", - "lastModifiedByType": "str", - }, - "tags": {"str": "str"}, - "template": { - "containers": [ - { - "args": ["str"], - "command": ["str"], - "env": [{"name": "str", "secretRef": "str", "value": "str"}], - "image": "str", - "name": "str", - "probes": [ + "properties": { + "configuration": { + "activeRevisionsMode": "str", + "dapr": { + "appHealth": { + "enabled": bool, + "path": "str", + "probeIntervalSeconds": 0, + "probeTimeoutMilliseconds": 0, + "threshold": 0, + }, + "appId": "str", + "appPort": 0, + "appProtocol": "str", + "enableApiLogging": bool, + "enabled": bool, + "httpMaxRequestSize": 0, + "httpReadBufferSize": 0, + "logLevel": "str", + "maxConcurrency": 0, + }, + "identitySettings": [{"identity": "str", "lifecycle": "str"}], + "ingress": { + "additionalPortMappings": [{"external": bool, "targetPort": 0, "exposedPort": 0}], + "allowInsecure": bool, + "clientCertificateMode": "str", + "corsPolicy": { + "allowedOrigins": ["str"], + "allowCredentials": bool, + "allowedHeaders": ["str"], + "allowedMethods": ["str"], + "exposeHeaders": ["str"], + "maxAge": 0, + }, + "customDomains": [{"name": "str", "bindingType": "str", "certificateId": "str"}], + "exposedPort": 0, + "external": bool, + "fqdn": "str", + "ipSecurityRestrictions": [ + {"action": "str", "ipAddressRange": "str", "name": "str", "description": "str"} + ], + "stickySessions": {"affinity": "str"}, + "targetPort": 0, + "targetPortHttpScheme": "str", + "traffic": [ + {"label": "str", "latestRevision": bool, "revisionName": "str", "weight": 0} + ], + "transport": "str", + }, + "maxInactiveRevisions": 0, + "registries": [ + {"identity": "str", "passwordSecretRef": "str", "server": "str", "username": "str"} + ], + "revisionTransitionThreshold": 0, + "runtime": { + "dotnet": {"autoConfigureDataProtection": bool}, + "java": { + "enableMetrics": bool, + "javaAgent": { + "enabled": bool, + "logging": {"loggerSettings": [{"level": "str", "logger": "str"}]}, + }, + }, + }, + "secrets": [{"identity": "str", "keyVaultUrl": "str", "name": "str", "value": "str"}], + "service": {"type": "str"}, + "targetLabel": "str", + }, + "customDomainVerificationId": "str", + "deploymentErrors": "str", + "environmentId": "str", + "eventStreamEndpoint": "str", + "latestReadyRevisionName": "str", + "latestRevisionFqdn": "str", + "latestRevisionName": "str", + "managedEnvironmentId": "str", + "outboundIpAddresses": ["str"], + "patchingConfiguration": {"patchingMode": "str"}, + "provisioningState": "str", + "runningStatus": "str", + "template": { + "containers": [ + { + "args": ["str"], + "command": ["str"], + "env": [{"name": "str", "secretRef": "str", "value": "str"}], + "image": "str", + "imageType": "str", + "name": "str", + "probes": [ + { + "failureThreshold": 0, + "httpGet": { + "port": 0, + "host": "str", + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "tcpSocket": {"port": 0, "host": "str"}, + "terminationGracePeriodSeconds": 0, + "timeoutSeconds": 0, + "type": "str", + } + ], + "resources": {"cpu": 0.0, "ephemeralStorage": "str", "gpu": 0.0, "memory": "str"}, + "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], + } + ], + "initContainers": [ + { + "args": ["str"], + "command": ["str"], + "env": [{"name": "str", "secretRef": "str", "value": "str"}], + "image": "str", + "imageType": "str", + "name": "str", + "resources": {"cpu": 0.0, "ephemeralStorage": "str", "gpu": 0.0, "memory": "str"}, + "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], + } + ], + "revisionSuffix": "str", + "scale": { + "cooldownPeriod": 0, + "maxReplicas": 0, + "minReplicas": 0, + "pollingInterval": 0, + "rules": [ { - "failureThreshold": 0, - "httpGet": { - "port": 0, - "host": "str", - "httpHeaders": [{"name": "str", "value": "str"}], - "path": "str", - "scheme": "str", + "azureQueue": { + "accountName": "str", + "auth": [{"secretRef": "str", "triggerParameter": "str"}], + "identity": "str", + "queueLength": 0, + "queueName": "str", + }, + "custom": { + "auth": [{"secretRef": "str", "triggerParameter": "str"}], + "identity": "str", + "metadata": {"str": "str"}, + "type": "str", + }, + "http": { + "auth": [{"secretRef": "str", "triggerParameter": "str"}], + "identity": "str", + "metadata": {"str": "str"}, + }, + "name": "str", + "tcp": { + "auth": [{"secretRef": "str", "triggerParameter": "str"}], + "identity": "str", + "metadata": {"str": "str"}, }, - "initialDelaySeconds": 0, - "periodSeconds": 0, - "successThreshold": 0, - "tcpSocket": {"port": 0, "host": "str"}, - "terminationGracePeriodSeconds": 0, - "timeoutSeconds": 0, - "type": "str", } ], - "resources": {"cpu": 0.0, "ephemeralStorage": "str", "memory": "str"}, - "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], - } - ], - "initContainers": [ - { - "args": ["str"], - "command": ["str"], - "env": [{"name": "str", "secretRef": "str", "value": "str"}], - "image": "str", - "name": "str", - "resources": {"cpu": 0.0, "ephemeralStorage": "str", "memory": "str"}, - "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], - } - ], - "revisionSuffix": "str", - "scale": { - "cooldownPeriod": 0, - "maxReplicas": 10, - "minReplicas": 0, - "pollingInterval": 0, - "rules": [ + }, + "serviceBinds": [ { - "azureQueue": { - "accountName": "str", - "auth": [{"secretRef": "str", "triggerParameter": "str"}], - "identity": "str", - "queueLength": 0, - "queueName": "str", - }, - "custom": { - "auth": [{"secretRef": "str", "triggerParameter": "str"}], - "identity": "str", - "metadata": {"str": "str"}, - "type": "str", - }, - "http": { - "auth": [{"secretRef": "str", "triggerParameter": "str"}], - "identity": "str", - "metadata": {"str": "str"}, - }, + "clientType": "str", + "customizedKeys": {"str": "str"}, "name": "str", - "tcp": { - "auth": [{"secretRef": "str", "triggerParameter": "str"}], - "identity": "str", - "metadata": {"str": "str"}, - }, + "serviceId": "str", + } + ], + "terminationGracePeriodSeconds": 0, + "volumes": [ + { + "mountOptions": "str", + "name": "str", + "secrets": [{"path": "str", "secretRef": "str"}], + "storageName": "str", + "storageType": "str", } ], }, - "serviceBinds": [{"name": "str", "serviceId": "str"}], - "terminationGracePeriodSeconds": 0, - "volumes": [ - { - "mountOptions": "str", - "name": "str", - "secrets": [{"path": "str", "secretRef": "str"}], - "storageName": "str", - "storageType": "str", - } - ], + "workloadProfileName": "str", + }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", }, + "tags": {"str": "str"}, "type": "str", - "workloadProfileName": "str", }, - api_version="2026-01-01", - ) - ).result() # call '.result()' to poll until service return final result - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_container_apps_begin_delete(self, resource_group): - response = await ( - await self.client.container_apps.begin_delete( - resource_group_name=resource_group.name, - container_app_name="str", - api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -266,62 +256,6 @@ async def test_container_apps_begin_update(self, resource_group): container_app_name="str", container_app_envelope={ "location": "str", - "configuration": { - "activeRevisionsMode": "Single", - "dapr": { - "appHealth": { - "enabled": bool, - "path": "str", - "probeIntervalSeconds": 0, - "probeTimeoutMilliseconds": 0, - "threshold": 0, - }, - "appId": "str", - "appPort": 0, - "appProtocol": "http", - "enableApiLogging": bool, - "enabled": False, - "httpMaxRequestSize": 0, - "httpReadBufferSize": 0, - "logLevel": "str", - "maxConcurrency": 0, - }, - "identitySettings": [{"identity": "str", "lifecycle": "str"}], - "ingress": { - "additionalPortMappings": [{"external": bool, "targetPort": 0, "exposedPort": 0}], - "allowInsecure": False, - "clientCertificateMode": "str", - "corsPolicy": { - "allowedOrigins": ["str"], - "allowCredentials": bool, - "allowedHeaders": ["str"], - "allowedMethods": ["str"], - "exposeHeaders": ["str"], - "maxAge": 0, - }, - "customDomains": [{"name": "str", "bindingType": "str", "certificateId": "str"}], - "exposedPort": 0, - "external": False, - "fqdn": "str", - "ipSecurityRestrictions": [ - {"action": "str", "ipAddressRange": "str", "name": "str", "description": "str"} - ], - "stickySessions": {"affinity": "str"}, - "targetPort": 0, - "traffic": [{"label": "str", "latestRevision": False, "revisionName": "str", "weight": 0}], - "transport": "auto", - }, - "maxInactiveRevisions": 0, - "registries": [ - {"identity": "str", "passwordSecretRef": "str", "server": "str", "username": "str"} - ], - "runtime": {"java": {"enableMetrics": bool}}, - "secrets": [{"identity": "str", "keyVaultUrl": "str", "name": "str", "value": "str"}], - "service": {"type": "str"}, - }, - "customDomainVerificationId": "str", - "environmentId": "str", - "eventStreamEndpoint": "str", "extendedLocation": {"name": "str", "type": "str"}, "id": "str", "identity": { @@ -331,130 +265,242 @@ async def test_container_apps_begin_update(self, resource_group): "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, }, "kind": "str", - "latestReadyRevisionName": "str", - "latestRevisionFqdn": "str", - "latestRevisionName": "str", "managedBy": "str", - "managedEnvironmentId": "str", "name": "str", - "outboundIpAddresses": ["str"], - "provisioningState": "str", - "runningStatus": "str", - "systemData": { - "createdAt": "2020-02-20 00:00:00", - "createdBy": "str", - "createdByType": "str", - "lastModifiedAt": "2020-02-20 00:00:00", - "lastModifiedBy": "str", - "lastModifiedByType": "str", - }, - "tags": {"str": "str"}, - "template": { - "containers": [ - { - "args": ["str"], - "command": ["str"], - "env": [{"name": "str", "secretRef": "str", "value": "str"}], - "image": "str", - "name": "str", - "probes": [ + "properties": { + "configuration": { + "activeRevisionsMode": "str", + "dapr": { + "appHealth": { + "enabled": bool, + "path": "str", + "probeIntervalSeconds": 0, + "probeTimeoutMilliseconds": 0, + "threshold": 0, + }, + "appId": "str", + "appPort": 0, + "appProtocol": "str", + "enableApiLogging": bool, + "enabled": bool, + "httpMaxRequestSize": 0, + "httpReadBufferSize": 0, + "logLevel": "str", + "maxConcurrency": 0, + }, + "identitySettings": [{"identity": "str", "lifecycle": "str"}], + "ingress": { + "additionalPortMappings": [{"external": bool, "targetPort": 0, "exposedPort": 0}], + "allowInsecure": bool, + "clientCertificateMode": "str", + "corsPolicy": { + "allowedOrigins": ["str"], + "allowCredentials": bool, + "allowedHeaders": ["str"], + "allowedMethods": ["str"], + "exposeHeaders": ["str"], + "maxAge": 0, + }, + "customDomains": [{"name": "str", "bindingType": "str", "certificateId": "str"}], + "exposedPort": 0, + "external": bool, + "fqdn": "str", + "ipSecurityRestrictions": [ + {"action": "str", "ipAddressRange": "str", "name": "str", "description": "str"} + ], + "stickySessions": {"affinity": "str"}, + "targetPort": 0, + "targetPortHttpScheme": "str", + "traffic": [ + {"label": "str", "latestRevision": bool, "revisionName": "str", "weight": 0} + ], + "transport": "str", + }, + "maxInactiveRevisions": 0, + "registries": [ + {"identity": "str", "passwordSecretRef": "str", "server": "str", "username": "str"} + ], + "revisionTransitionThreshold": 0, + "runtime": { + "dotnet": {"autoConfigureDataProtection": bool}, + "java": { + "enableMetrics": bool, + "javaAgent": { + "enabled": bool, + "logging": {"loggerSettings": [{"level": "str", "logger": "str"}]}, + }, + }, + }, + "secrets": [{"identity": "str", "keyVaultUrl": "str", "name": "str", "value": "str"}], + "service": {"type": "str"}, + "targetLabel": "str", + }, + "customDomainVerificationId": "str", + "deploymentErrors": "str", + "environmentId": "str", + "eventStreamEndpoint": "str", + "latestReadyRevisionName": "str", + "latestRevisionFqdn": "str", + "latestRevisionName": "str", + "managedEnvironmentId": "str", + "outboundIpAddresses": ["str"], + "patchingConfiguration": {"patchingMode": "str"}, + "provisioningState": "str", + "runningStatus": "str", + "template": { + "containers": [ + { + "args": ["str"], + "command": ["str"], + "env": [{"name": "str", "secretRef": "str", "value": "str"}], + "image": "str", + "imageType": "str", + "name": "str", + "probes": [ + { + "failureThreshold": 0, + "httpGet": { + "port": 0, + "host": "str", + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "tcpSocket": {"port": 0, "host": "str"}, + "terminationGracePeriodSeconds": 0, + "timeoutSeconds": 0, + "type": "str", + } + ], + "resources": {"cpu": 0.0, "ephemeralStorage": "str", "gpu": 0.0, "memory": "str"}, + "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], + } + ], + "initContainers": [ + { + "args": ["str"], + "command": ["str"], + "env": [{"name": "str", "secretRef": "str", "value": "str"}], + "image": "str", + "imageType": "str", + "name": "str", + "resources": {"cpu": 0.0, "ephemeralStorage": "str", "gpu": 0.0, "memory": "str"}, + "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], + } + ], + "revisionSuffix": "str", + "scale": { + "cooldownPeriod": 0, + "maxReplicas": 0, + "minReplicas": 0, + "pollingInterval": 0, + "rules": [ { - "failureThreshold": 0, - "httpGet": { - "port": 0, - "host": "str", - "httpHeaders": [{"name": "str", "value": "str"}], - "path": "str", - "scheme": "str", + "azureQueue": { + "accountName": "str", + "auth": [{"secretRef": "str", "triggerParameter": "str"}], + "identity": "str", + "queueLength": 0, + "queueName": "str", + }, + "custom": { + "auth": [{"secretRef": "str", "triggerParameter": "str"}], + "identity": "str", + "metadata": {"str": "str"}, + "type": "str", + }, + "http": { + "auth": [{"secretRef": "str", "triggerParameter": "str"}], + "identity": "str", + "metadata": {"str": "str"}, + }, + "name": "str", + "tcp": { + "auth": [{"secretRef": "str", "triggerParameter": "str"}], + "identity": "str", + "metadata": {"str": "str"}, }, - "initialDelaySeconds": 0, - "periodSeconds": 0, - "successThreshold": 0, - "tcpSocket": {"port": 0, "host": "str"}, - "terminationGracePeriodSeconds": 0, - "timeoutSeconds": 0, - "type": "str", } ], - "resources": {"cpu": 0.0, "ephemeralStorage": "str", "memory": "str"}, - "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], - } - ], - "initContainers": [ - { - "args": ["str"], - "command": ["str"], - "env": [{"name": "str", "secretRef": "str", "value": "str"}], - "image": "str", - "name": "str", - "resources": {"cpu": 0.0, "ephemeralStorage": "str", "memory": "str"}, - "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], - } - ], - "revisionSuffix": "str", - "scale": { - "cooldownPeriod": 0, - "maxReplicas": 10, - "minReplicas": 0, - "pollingInterval": 0, - "rules": [ + }, + "serviceBinds": [ { - "azureQueue": { - "accountName": "str", - "auth": [{"secretRef": "str", "triggerParameter": "str"}], - "identity": "str", - "queueLength": 0, - "queueName": "str", - }, - "custom": { - "auth": [{"secretRef": "str", "triggerParameter": "str"}], - "identity": "str", - "metadata": {"str": "str"}, - "type": "str", - }, - "http": { - "auth": [{"secretRef": "str", "triggerParameter": "str"}], - "identity": "str", - "metadata": {"str": "str"}, - }, + "clientType": "str", + "customizedKeys": {"str": "str"}, "name": "str", - "tcp": { - "auth": [{"secretRef": "str", "triggerParameter": "str"}], - "identity": "str", - "metadata": {"str": "str"}, - }, + "serviceId": "str", + } + ], + "terminationGracePeriodSeconds": 0, + "volumes": [ + { + "mountOptions": "str", + "name": "str", + "secrets": [{"path": "str", "secretRef": "str"}], + "storageName": "str", + "storageType": "str", } ], }, - "serviceBinds": [{"name": "str", "serviceId": "str"}], - "terminationGracePeriodSeconds": 0, - "volumes": [ - { - "mountOptions": "str", - "name": "str", - "secrets": [{"path": "str", "secretRef": "str"}], - "storageName": "str", - "storageType": "str", - } - ], + "workloadProfileName": "str", + }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", }, + "tags": {"str": "str"}, "type": "str", - "workloadProfileName": "str", }, - api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_container_apps_begin_delete(self, resource_group): + response = await ( + await self.client.container_apps.begin_delete( + resource_group_name=resource_group.name, + container_app_name="str", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_container_apps_list_by_resource_group(self, resource_group): + response = self.client.container_apps.list_by_resource_group( + resource_group_name=resource_group.name, + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_container_apps_list_by_subscription(self, resource_group): + response = self.client.container_apps.list_by_subscription() + result = [r async for r in response] + # please add some check logic here by yourself + # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_container_apps_list_custom_host_name_analysis(self, resource_group): response = await self.client.container_apps.list_custom_host_name_analysis( resource_group_name=resource_group.name, container_app_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -466,7 +512,6 @@ async def test_container_apps_list_secrets(self, resource_group): response = await self.client.container_apps.list_secrets( resource_group_name=resource_group.name, container_app_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -478,7 +523,6 @@ async def test_container_apps_get_auth_token(self, resource_group): response = await self.client.container_apps.get_auth_token( resource_group_name=resource_group.name, container_app_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -491,7 +535,6 @@ async def test_container_apps_begin_start(self, resource_group): await self.client.container_apps.begin_start( resource_group_name=resource_group.name, container_app_name="str", - api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -505,7 +548,6 @@ async def test_container_apps_begin_stop(self, resource_group): await self.client.container_apps.begin_stop( resource_group_name=resource_group.name, container_app_name="str", - api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_patches_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_patches_operations.py index 170f011c59ea..a5138349ed0d 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_patches_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_patches_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -18,18 +18,6 @@ class TestContainerAppsAPIContainerAppsPatchesOperations(AzureMgmtRecordedTestCa def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_container_apps_patches_list_by_container_app(self, resource_group): - response = self.client.container_apps_patches.list_by_container_app( - resource_group_name=resource_group.name, - container_app_name="str", - api_version="2025-02-02-preview", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_container_apps_patches_get(self, resource_group): @@ -37,7 +25,6 @@ def test_container_apps_patches_get(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", patch_name="str", - api_version="2025-02-02-preview", ) # please add some check logic here by yourself @@ -50,12 +37,22 @@ def test_container_apps_patches_begin_delete(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", patch_name="str", - api_version="2025-02-02-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_container_apps_patches_list_by_container_app(self, resource_group): + response = self.client.container_apps_patches.list_by_container_app( + resource_group_name=resource_group.name, + container_app_name="str", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_container_apps_patches_begin_skip_configure(self, resource_group): @@ -64,7 +61,6 @@ def test_container_apps_patches_begin_skip_configure(self, resource_group): container_app_name="str", patch_name="str", patch_skip_config={"skip": bool}, - api_version="2025-02-02-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -77,7 +73,6 @@ def test_container_apps_patches_begin_apply(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", patch_name="str", - api_version="2025-02-02-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_patches_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_patches_operations_async.py index f978d2fc228a..3614a7267c20 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_patches_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_patches_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -19,18 +19,6 @@ class TestContainerAppsAPIContainerAppsPatchesOperationsAsync(AzureMgmtRecordedT def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient, is_async=True) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_container_apps_patches_list_by_container_app(self, resource_group): - response = self.client.container_apps_patches.list_by_container_app( - resource_group_name=resource_group.name, - container_app_name="str", - api_version="2025-02-02-preview", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_container_apps_patches_get(self, resource_group): @@ -38,7 +26,6 @@ async def test_container_apps_patches_get(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", patch_name="str", - api_version="2025-02-02-preview", ) # please add some check logic here by yourself @@ -52,13 +39,23 @@ async def test_container_apps_patches_begin_delete(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", patch_name="str", - api_version="2025-02-02-preview", ) ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_container_apps_patches_list_by_container_app(self, resource_group): + response = self.client.container_apps_patches.list_by_container_app( + resource_group_name=resource_group.name, + container_app_name="str", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_container_apps_patches_begin_skip_configure(self, resource_group): @@ -68,7 +65,6 @@ async def test_container_apps_patches_begin_skip_configure(self, resource_group) container_app_name="str", patch_name="str", patch_skip_config={"skip": bool}, - api_version="2025-02-02-preview", ) ).result() # call '.result()' to poll until service return final result @@ -83,7 +79,6 @@ async def test_container_apps_patches_begin_apply(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", patch_name="str", - api_version="2025-02-02-preview", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revision_functions_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revision_functions_operations.py new file mode 100644 index 000000000000..bf9360f8c849 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revision_functions_operations.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.appcontainers import ContainerAppsAPIClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy + +AZURE_LOCATION = "eastus" + + +@pytest.mark.skip("you may need to update the auto-generated test case before run it") +class TestContainerAppsAPIContainerAppsRevisionFunctionsOperations(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(ContainerAppsAPIClient) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_container_apps_revision_functions_get(self, resource_group): + response = self.client.container_apps_revision_functions.get( + resource_group_name=resource_group.name, + container_app_name="str", + revision_name="str", + function_name="str", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_container_apps_revision_functions_list(self, resource_group): + response = self.client.container_apps_revision_functions.list( + resource_group_name=resource_group.name, + container_app_name="str", + revision_name="str", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revision_functions_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revision_functions_operations_async.py new file mode 100644 index 000000000000..b69bd7e0d775 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revision_functions_operations_async.py @@ -0,0 +1,45 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.appcontainers.aio import ContainerAppsAPIClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer +from devtools_testutils.aio import recorded_by_proxy_async + +AZURE_LOCATION = "eastus" + + +@pytest.mark.skip("you may need to update the auto-generated test case before run it") +class TestContainerAppsAPIContainerAppsRevisionFunctionsOperationsAsync(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(ContainerAppsAPIClient, is_async=True) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_container_apps_revision_functions_get(self, resource_group): + response = await self.client.container_apps_revision_functions.get( + resource_group_name=resource_group.name, + container_app_name="str", + revision_name="str", + function_name="str", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_container_apps_revision_functions_list(self, resource_group): + response = self.client.container_apps_revision_functions.list( + resource_group_name=resource_group.name, + container_app_name="str", + revision_name="str", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revision_replicas_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revision_replicas_operations.py index 0b1678557338..ad00e4854890 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revision_replicas_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revision_replicas_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -26,7 +26,6 @@ def test_container_apps_revision_replicas_get_replica(self, resource_group): container_app_name="str", revision_name="str", replica_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -39,7 +38,6 @@ def test_container_apps_revision_replicas_list_replicas(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", revision_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revision_replicas_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revision_replicas_operations_async.py index f736466fd111..6393f70c64e0 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revision_replicas_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revision_replicas_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -27,7 +27,6 @@ async def test_container_apps_revision_replicas_get_replica(self, resource_group container_app_name="str", revision_name="str", replica_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -40,7 +39,6 @@ async def test_container_apps_revision_replicas_list_replicas(self, resource_gro resource_group_name=resource_group.name, container_app_name="str", revision_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revisions_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revisions_operations.py index a59042440daf..5962e7a1297d 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revisions_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revisions_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -20,26 +20,24 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_container_apps_revisions_list_revisions(self, resource_group): - response = self.client.container_apps_revisions.list_revisions( + def test_container_apps_revisions_get_revision(self, resource_group): + response = self.client.container_apps_revisions.get_revision( resource_group_name=resource_group.name, container_app_name="str", - api_version="2026-01-01", + revision_name="str", ) - result = [r for r in response] + # please add some check logic here by yourself # ... @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_container_apps_revisions_get_revision(self, resource_group): - response = self.client.container_apps_revisions.get_revision( + def test_container_apps_revisions_list_revisions(self, resource_group): + response = self.client.container_apps_revisions.list_revisions( resource_group_name=resource_group.name, container_app_name="str", - revision_name="str", - api_version="2026-01-01", ) - + result = [r for r in response] # please add some check logic here by yourself # ... @@ -50,7 +48,6 @@ def test_container_apps_revisions_activate_revision(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", revision_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -63,7 +60,6 @@ def test_container_apps_revisions_deactivate_revision(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", revision_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -76,7 +72,6 @@ def test_container_apps_revisions_restart_revision(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", revision_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revisions_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revisions_operations_async.py index 22c7d51da89e..9c6e90509abe 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revisions_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_revisions_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -21,26 +21,24 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_container_apps_revisions_list_revisions(self, resource_group): - response = self.client.container_apps_revisions.list_revisions( + async def test_container_apps_revisions_get_revision(self, resource_group): + response = await self.client.container_apps_revisions.get_revision( resource_group_name=resource_group.name, container_app_name="str", - api_version="2026-01-01", + revision_name="str", ) - result = [r async for r in response] + # please add some check logic here by yourself # ... @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_container_apps_revisions_get_revision(self, resource_group): - response = await self.client.container_apps_revisions.get_revision( + async def test_container_apps_revisions_list_revisions(self, resource_group): + response = self.client.container_apps_revisions.list_revisions( resource_group_name=resource_group.name, container_app_name="str", - revision_name="str", - api_version="2026-01-01", ) - + result = [r async for r in response] # please add some check logic here by yourself # ... @@ -51,7 +49,6 @@ async def test_container_apps_revisions_activate_revision(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", revision_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -64,7 +61,6 @@ async def test_container_apps_revisions_deactivate_revision(self, resource_group resource_group_name=resource_group.name, container_app_name="str", revision_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -77,7 +73,6 @@ async def test_container_apps_revisions_restart_revision(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", revision_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_session_pools_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_session_pools_operations.py index fb507de8d780..010b8eaf46ea 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_session_pools_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_session_pools_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -18,34 +18,12 @@ class TestContainerAppsAPIContainerAppsSessionPoolsOperations(AzureMgmtRecordedT def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_container_apps_session_pools_list_by_subscription(self, resource_group): - response = self.client.container_apps_session_pools.list_by_subscription( - api_version="2026-01-01", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_container_apps_session_pools_list_by_resource_group(self, resource_group): - response = self.client.container_apps_session_pools.list_by_resource_group( - resource_group_name=resource_group.name, - api_version="2026-01-01", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_container_apps_session_pools_get(self, resource_group): response = self.client.container_apps_session_pools.get( resource_group_name=resource_group.name, session_pool_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -59,34 +37,6 @@ def test_container_apps_session_pools_begin_create_or_update(self, resource_grou session_pool_name="str", session_pool_envelope={ "location": "str", - "containerType": "str", - "customContainerTemplate": { - "containers": [ - { - "args": ["str"], - "command": ["str"], - "env": [{"name": "str", "secretRef": "str", "value": "str"}], - "image": "str", - "name": "str", - "resources": {"cpu": 0.0, "memory": "str"}, - } - ], - "ingress": {"targetPort": 0}, - "registryCredentials": { - "identity": "str", - "passwordSecretRef": "str", - "server": "str", - "username": "str", - }, - }, - "dynamicPoolConfiguration": { - "lifecycleConfiguration": { - "cooldownPeriodInSeconds": 0, - "lifecycleType": "str", - "maxAlivePeriodInSeconds": 0, - } - }, - "environmentId": "str", "id": "str", "identity": { "type": "str", @@ -94,15 +44,155 @@ def test_container_apps_session_pools_begin_create_or_update(self, resource_grou "tenantId": "str", "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, }, - "managedIdentitySettings": [{"identity": "str", "lifecycle": "str"}], "name": "str", - "nodeCount": 0, - "poolManagementEndpoint": "str", - "poolManagementType": "str", - "provisioningState": "str", - "scaleConfiguration": {"maxConcurrentSessions": 0, "readySessionInstances": 0}, - "secrets": [{"name": "str", "value": "str"}], - "sessionNetworkConfiguration": {"status": "str"}, + "properties": { + "containerType": "str", + "customContainerTemplate": { + "containers": [ + { + "args": ["str"], + "command": ["str"], + "env": [{"name": "str", "secretRef": "str", "value": "str"}], + "image": "str", + "name": "str", + "probes": [ + { + "failureThreshold": 0, + "httpGet": { + "port": 0, + "host": "str", + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "tcpSocket": {"port": 0, "host": "str"}, + "terminationGracePeriodSeconds": 0, + "timeoutSeconds": 0, + "type": "str", + } + ], + "resources": {"cpu": 0.0, "memory": "str"}, + } + ], + "ingress": {"targetPort": 0}, + "registryCredentials": { + "identity": "str", + "passwordSecretRef": "str", + "server": "str", + "username": "str", + }, + }, + "dynamicPoolConfiguration": { + "lifecycleConfiguration": { + "cooldownPeriodInSeconds": 0, + "lifecycleType": "str", + "maxAlivePeriodInSeconds": 0, + } + }, + "environmentId": "str", + "managedIdentitySettings": [{"identity": "str", "lifecycle": "str"}], + "mcpServerSettings": { + "isMcpServerApiKeyDisabled": bool, + "isMcpServerEnabled": bool, + "mcpServerEndpoint": "str", + }, + "nodeCount": 0, + "poolManagementEndpoint": "str", + "poolManagementType": "str", + "provisioningState": "str", + "scaleConfiguration": {"maxConcurrentSessions": 0, "readySessionInstances": 0}, + "secrets": [{"name": "str", "value": "str"}], + "sessionNetworkConfiguration": {"status": "str"}, + "templateUpdateStatus": { + "activeTemplate": { + "containers": [ + { + "args": ["str"], + "command": ["str"], + "env": [{"name": "str", "secretRef": "str", "value": "str"}], + "image": "str", + "name": "str", + "probes": [ + { + "failureThreshold": 0, + "httpGet": { + "port": 0, + "host": "str", + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "tcpSocket": {"port": 0, "host": "str"}, + "terminationGracePeriodSeconds": 0, + "timeoutSeconds": 0, + "type": "str", + } + ], + "resources": {"cpu": 0.0, "memory": "str"}, + } + ], + "createdTime": "2020-02-20 00:00:00", + "details": "str", + "ingress": {"targetPort": 0}, + "status": { + "allocatedCount": 0, + "crashCount": 0, + "expectedCount": 0, + "imagePullFailCount": 0, + "pendingCount": 0, + "readyCount": 0, + }, + }, + "desiredTemplate": { + "containers": [ + { + "args": ["str"], + "command": ["str"], + "env": [{"name": "str", "secretRef": "str", "value": "str"}], + "image": "str", + "name": "str", + "probes": [ + { + "failureThreshold": 0, + "httpGet": { + "port": 0, + "host": "str", + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "tcpSocket": {"port": 0, "host": "str"}, + "terminationGracePeriodSeconds": 0, + "timeoutSeconds": 0, + "type": "str", + } + ], + "resources": {"cpu": 0.0, "memory": "str"}, + } + ], + "createdTime": "2020-02-20 00:00:00", + "details": "str", + "ingress": {"targetPort": 0}, + "status": { + "allocatedCount": 0, + "crashCount": 0, + "expectedCount": 0, + "imagePullFailCount": 0, + "pendingCount": 0, + "readyCount": 0, + }, + }, + }, + }, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -114,7 +204,6 @@ def test_container_apps_session_pools_begin_create_or_update(self, resource_grou "tags": {"str": "str"}, "type": "str", }, - api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -127,44 +216,64 @@ def test_container_apps_session_pools_begin_update(self, resource_group): resource_group_name=resource_group.name, session_pool_name="str", session_pool_envelope={ - "customContainerTemplate": { - "containers": [ - { - "args": ["str"], - "command": ["str"], - "env": [{"name": "str", "secretRef": "str", "value": "str"}], - "image": "str", - "name": "str", - "resources": {"cpu": 0.0, "memory": "str"}, - } - ], - "ingress": {"targetPort": 0}, - "registryCredentials": { - "identity": "str", - "passwordSecretRef": "str", - "server": "str", - "username": "str", - }, - }, - "dynamicPoolConfiguration": { - "lifecycleConfiguration": { - "cooldownPeriodInSeconds": 0, - "lifecycleType": "str", - "maxAlivePeriodInSeconds": 0, - } - }, "identity": { "type": "str", "principalId": "str", "tenantId": "str", "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, }, - "scaleConfiguration": {"maxConcurrentSessions": 0, "readySessionInstances": 0}, - "secrets": [{"name": "str", "value": "str"}], - "sessionNetworkConfiguration": {"status": "str"}, + "properties": { + "customContainerTemplate": { + "containers": [ + { + "args": ["str"], + "command": ["str"], + "env": [{"name": "str", "secretRef": "str", "value": "str"}], + "image": "str", + "name": "str", + "probes": [ + { + "failureThreshold": 0, + "httpGet": { + "port": 0, + "host": "str", + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "tcpSocket": {"port": 0, "host": "str"}, + "terminationGracePeriodSeconds": 0, + "timeoutSeconds": 0, + "type": "str", + } + ], + "resources": {"cpu": 0.0, "memory": "str"}, + } + ], + "ingress": {"targetPort": 0}, + "registryCredentials": { + "identity": "str", + "passwordSecretRef": "str", + "server": "str", + "username": "str", + }, + }, + "dynamicPoolConfiguration": { + "lifecycleConfiguration": { + "cooldownPeriodInSeconds": 0, + "lifecycleType": "str", + "maxAlivePeriodInSeconds": 0, + } + }, + "scaleConfiguration": {"maxConcurrentSessions": 0, "readySessionInstances": 0}, + "secrets": [{"name": "str", "value": "str"}], + "sessionNetworkConfiguration": {"status": "str"}, + }, "tags": {"str": "str"}, }, - api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -176,8 +285,47 @@ def test_container_apps_session_pools_begin_delete(self, resource_group): response = self.client.container_apps_session_pools.begin_delete( resource_group_name=resource_group.name, session_pool_name="str", - api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_container_apps_session_pools_list_by_resource_group(self, resource_group): + response = self.client.container_apps_session_pools.list_by_resource_group( + resource_group_name=resource_group.name, + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_container_apps_session_pools_list_by_subscription(self, resource_group): + response = self.client.container_apps_session_pools.list_by_subscription() + result = [r for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_container_apps_session_pools_fetch_mcp_server_credentials(self, resource_group): + response = self.client.container_apps_session_pools.fetch_mcp_server_credentials( + resource_group_name=resource_group.name, + session_pool_name="str", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_container_apps_session_pools_rotate_mcp_server_credentials(self, resource_group): + response = self.client.container_apps_session_pools.rotate_mcp_server_credentials( + resource_group_name=resource_group.name, + session_pool_name="str", + ) + + # please add some check logic here by yourself + # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_session_pools_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_session_pools_operations_async.py index decacd5d32c4..3cc249bcec83 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_session_pools_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_session_pools_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -19,34 +19,12 @@ class TestContainerAppsAPIContainerAppsSessionPoolsOperationsAsync(AzureMgmtReco def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient, is_async=True) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_container_apps_session_pools_list_by_subscription(self, resource_group): - response = self.client.container_apps_session_pools.list_by_subscription( - api_version="2026-01-01", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_container_apps_session_pools_list_by_resource_group(self, resource_group): - response = self.client.container_apps_session_pools.list_by_resource_group( - resource_group_name=resource_group.name, - api_version="2026-01-01", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_container_apps_session_pools_get(self, resource_group): response = await self.client.container_apps_session_pools.get( resource_group_name=resource_group.name, session_pool_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -61,34 +39,6 @@ async def test_container_apps_session_pools_begin_create_or_update(self, resourc session_pool_name="str", session_pool_envelope={ "location": "str", - "containerType": "str", - "customContainerTemplate": { - "containers": [ - { - "args": ["str"], - "command": ["str"], - "env": [{"name": "str", "secretRef": "str", "value": "str"}], - "image": "str", - "name": "str", - "resources": {"cpu": 0.0, "memory": "str"}, - } - ], - "ingress": {"targetPort": 0}, - "registryCredentials": { - "identity": "str", - "passwordSecretRef": "str", - "server": "str", - "username": "str", - }, - }, - "dynamicPoolConfiguration": { - "lifecycleConfiguration": { - "cooldownPeriodInSeconds": 0, - "lifecycleType": "str", - "maxAlivePeriodInSeconds": 0, - } - }, - "environmentId": "str", "id": "str", "identity": { "type": "str", @@ -96,15 +46,155 @@ async def test_container_apps_session_pools_begin_create_or_update(self, resourc "tenantId": "str", "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, }, - "managedIdentitySettings": [{"identity": "str", "lifecycle": "str"}], "name": "str", - "nodeCount": 0, - "poolManagementEndpoint": "str", - "poolManagementType": "str", - "provisioningState": "str", - "scaleConfiguration": {"maxConcurrentSessions": 0, "readySessionInstances": 0}, - "secrets": [{"name": "str", "value": "str"}], - "sessionNetworkConfiguration": {"status": "str"}, + "properties": { + "containerType": "str", + "customContainerTemplate": { + "containers": [ + { + "args": ["str"], + "command": ["str"], + "env": [{"name": "str", "secretRef": "str", "value": "str"}], + "image": "str", + "name": "str", + "probes": [ + { + "failureThreshold": 0, + "httpGet": { + "port": 0, + "host": "str", + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "tcpSocket": {"port": 0, "host": "str"}, + "terminationGracePeriodSeconds": 0, + "timeoutSeconds": 0, + "type": "str", + } + ], + "resources": {"cpu": 0.0, "memory": "str"}, + } + ], + "ingress": {"targetPort": 0}, + "registryCredentials": { + "identity": "str", + "passwordSecretRef": "str", + "server": "str", + "username": "str", + }, + }, + "dynamicPoolConfiguration": { + "lifecycleConfiguration": { + "cooldownPeriodInSeconds": 0, + "lifecycleType": "str", + "maxAlivePeriodInSeconds": 0, + } + }, + "environmentId": "str", + "managedIdentitySettings": [{"identity": "str", "lifecycle": "str"}], + "mcpServerSettings": { + "isMcpServerApiKeyDisabled": bool, + "isMcpServerEnabled": bool, + "mcpServerEndpoint": "str", + }, + "nodeCount": 0, + "poolManagementEndpoint": "str", + "poolManagementType": "str", + "provisioningState": "str", + "scaleConfiguration": {"maxConcurrentSessions": 0, "readySessionInstances": 0}, + "secrets": [{"name": "str", "value": "str"}], + "sessionNetworkConfiguration": {"status": "str"}, + "templateUpdateStatus": { + "activeTemplate": { + "containers": [ + { + "args": ["str"], + "command": ["str"], + "env": [{"name": "str", "secretRef": "str", "value": "str"}], + "image": "str", + "name": "str", + "probes": [ + { + "failureThreshold": 0, + "httpGet": { + "port": 0, + "host": "str", + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "tcpSocket": {"port": 0, "host": "str"}, + "terminationGracePeriodSeconds": 0, + "timeoutSeconds": 0, + "type": "str", + } + ], + "resources": {"cpu": 0.0, "memory": "str"}, + } + ], + "createdTime": "2020-02-20 00:00:00", + "details": "str", + "ingress": {"targetPort": 0}, + "status": { + "allocatedCount": 0, + "crashCount": 0, + "expectedCount": 0, + "imagePullFailCount": 0, + "pendingCount": 0, + "readyCount": 0, + }, + }, + "desiredTemplate": { + "containers": [ + { + "args": ["str"], + "command": ["str"], + "env": [{"name": "str", "secretRef": "str", "value": "str"}], + "image": "str", + "name": "str", + "probes": [ + { + "failureThreshold": 0, + "httpGet": { + "port": 0, + "host": "str", + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "tcpSocket": {"port": 0, "host": "str"}, + "terminationGracePeriodSeconds": 0, + "timeoutSeconds": 0, + "type": "str", + } + ], + "resources": {"cpu": 0.0, "memory": "str"}, + } + ], + "createdTime": "2020-02-20 00:00:00", + "details": "str", + "ingress": {"targetPort": 0}, + "status": { + "allocatedCount": 0, + "crashCount": 0, + "expectedCount": 0, + "imagePullFailCount": 0, + "pendingCount": 0, + "readyCount": 0, + }, + }, + }, + }, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -116,7 +206,6 @@ async def test_container_apps_session_pools_begin_create_or_update(self, resourc "tags": {"str": "str"}, "type": "str", }, - api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -131,44 +220,64 @@ async def test_container_apps_session_pools_begin_update(self, resource_group): resource_group_name=resource_group.name, session_pool_name="str", session_pool_envelope={ - "customContainerTemplate": { - "containers": [ - { - "args": ["str"], - "command": ["str"], - "env": [{"name": "str", "secretRef": "str", "value": "str"}], - "image": "str", - "name": "str", - "resources": {"cpu": 0.0, "memory": "str"}, - } - ], - "ingress": {"targetPort": 0}, - "registryCredentials": { - "identity": "str", - "passwordSecretRef": "str", - "server": "str", - "username": "str", - }, - }, - "dynamicPoolConfiguration": { - "lifecycleConfiguration": { - "cooldownPeriodInSeconds": 0, - "lifecycleType": "str", - "maxAlivePeriodInSeconds": 0, - } - }, "identity": { "type": "str", "principalId": "str", "tenantId": "str", "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, }, - "scaleConfiguration": {"maxConcurrentSessions": 0, "readySessionInstances": 0}, - "secrets": [{"name": "str", "value": "str"}], - "sessionNetworkConfiguration": {"status": "str"}, + "properties": { + "customContainerTemplate": { + "containers": [ + { + "args": ["str"], + "command": ["str"], + "env": [{"name": "str", "secretRef": "str", "value": "str"}], + "image": "str", + "name": "str", + "probes": [ + { + "failureThreshold": 0, + "httpGet": { + "port": 0, + "host": "str", + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "tcpSocket": {"port": 0, "host": "str"}, + "terminationGracePeriodSeconds": 0, + "timeoutSeconds": 0, + "type": "str", + } + ], + "resources": {"cpu": 0.0, "memory": "str"}, + } + ], + "ingress": {"targetPort": 0}, + "registryCredentials": { + "identity": "str", + "passwordSecretRef": "str", + "server": "str", + "username": "str", + }, + }, + "dynamicPoolConfiguration": { + "lifecycleConfiguration": { + "cooldownPeriodInSeconds": 0, + "lifecycleType": "str", + "maxAlivePeriodInSeconds": 0, + } + }, + "scaleConfiguration": {"maxConcurrentSessions": 0, "readySessionInstances": 0}, + "secrets": [{"name": "str", "value": "str"}], + "sessionNetworkConfiguration": {"status": "str"}, + }, "tags": {"str": "str"}, }, - api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -182,9 +291,48 @@ async def test_container_apps_session_pools_begin_delete(self, resource_group): await self.client.container_apps_session_pools.begin_delete( resource_group_name=resource_group.name, session_pool_name="str", - api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_container_apps_session_pools_list_by_resource_group(self, resource_group): + response = self.client.container_apps_session_pools.list_by_resource_group( + resource_group_name=resource_group.name, + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_container_apps_session_pools_list_by_subscription(self, resource_group): + response = self.client.container_apps_session_pools.list_by_subscription() + result = [r async for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_container_apps_session_pools_fetch_mcp_server_credentials(self, resource_group): + response = await self.client.container_apps_session_pools.fetch_mcp_server_credentials( + resource_group_name=resource_group.name, + session_pool_name="str", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_container_apps_session_pools_rotate_mcp_server_credentials(self, resource_group): + response = await self.client.container_apps_session_pools.rotate_mcp_server_credentials( + resource_group_name=resource_group.name, + session_pool_name="str", + ) + + # please add some check logic here by yourself + # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_source_controls_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_source_controls_operations.py index 8c72c4360830..c3b74c73fd27 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_source_controls_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_source_controls_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -18,18 +18,6 @@ class TestContainerAppsAPIContainerAppsSourceControlsOperations(AzureMgmtRecorde def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_container_apps_source_controls_list_by_container_app(self, resource_group): - response = self.client.container_apps_source_controls.list_by_container_app( - resource_group_name=resource_group.name, - container_app_name="str", - api_version="2026-01-01", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_container_apps_source_controls_get(self, resource_group): @@ -37,7 +25,6 @@ def test_container_apps_source_controls_get(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", source_control_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -51,28 +38,32 @@ def test_container_apps_source_controls_begin_create_or_update(self, resource_gr container_app_name="str", source_control_name="str", source_control_envelope={ - "branch": "str", - "githubActionConfiguration": { - "azureCredentials": { - "clientId": "str", - "clientSecret": "str", - "kind": "str", - "subscriptionId": "str", - "tenantId": "str", - }, - "contextPath": "str", - "githubPersonalAccessToken": "str", - "image": "str", - "os": "str", - "publishType": "str", - "registryInfo": {"registryPassword": "str", "registryUrl": "str", "registryUserName": "str"}, - "runtimeStack": "str", - "runtimeVersion": "str", - }, "id": "str", "name": "str", - "operationState": "str", - "repoUrl": "str", + "properties": { + "branch": "str", + "githubActionConfiguration": { + "azureCredentials": { + "clientId": "str", + "clientSecret": "str", + "kind": "str", + "subscriptionId": "str", + "tenantId": "str", + }, + "buildEnvironmentVariables": [{"name": "str", "value": "str"}], + "contextPath": "str", + "dockerfilePath": "str", + "githubPersonalAccessToken": "str", + "image": "str", + "os": "str", + "publishType": "str", + "registryInfo": {"registryPassword": "str", "registryUrl": "str", "registryUserName": "str"}, + "runtimeStack": "str", + "runtimeVersion": "str", + }, + "operationState": "str", + "repoUrl": "str", + }, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -83,7 +74,6 @@ def test_container_apps_source_controls_begin_create_or_update(self, resource_gr }, "type": "str", }, - api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -96,8 +86,18 @@ def test_container_apps_source_controls_begin_delete(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", source_control_name="str", - api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_container_apps_source_controls_list_by_container_app(self, resource_group): + response = self.client.container_apps_source_controls.list_by_container_app( + resource_group_name=resource_group.name, + container_app_name="str", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_source_controls_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_source_controls_operations_async.py index 9a953fedf4db..3d434ea67246 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_source_controls_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_container_apps_source_controls_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -19,18 +19,6 @@ class TestContainerAppsAPIContainerAppsSourceControlsOperationsAsync(AzureMgmtRe def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient, is_async=True) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_container_apps_source_controls_list_by_container_app(self, resource_group): - response = self.client.container_apps_source_controls.list_by_container_app( - resource_group_name=resource_group.name, - container_app_name="str", - api_version="2026-01-01", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_container_apps_source_controls_get(self, resource_group): @@ -38,7 +26,6 @@ async def test_container_apps_source_controls_get(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", source_control_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -53,28 +40,36 @@ async def test_container_apps_source_controls_begin_create_or_update(self, resou container_app_name="str", source_control_name="str", source_control_envelope={ - "branch": "str", - "githubActionConfiguration": { - "azureCredentials": { - "clientId": "str", - "clientSecret": "str", - "kind": "str", - "subscriptionId": "str", - "tenantId": "str", - }, - "contextPath": "str", - "githubPersonalAccessToken": "str", - "image": "str", - "os": "str", - "publishType": "str", - "registryInfo": {"registryPassword": "str", "registryUrl": "str", "registryUserName": "str"}, - "runtimeStack": "str", - "runtimeVersion": "str", - }, "id": "str", "name": "str", - "operationState": "str", - "repoUrl": "str", + "properties": { + "branch": "str", + "githubActionConfiguration": { + "azureCredentials": { + "clientId": "str", + "clientSecret": "str", + "kind": "str", + "subscriptionId": "str", + "tenantId": "str", + }, + "buildEnvironmentVariables": [{"name": "str", "value": "str"}], + "contextPath": "str", + "dockerfilePath": "str", + "githubPersonalAccessToken": "str", + "image": "str", + "os": "str", + "publishType": "str", + "registryInfo": { + "registryPassword": "str", + "registryUrl": "str", + "registryUserName": "str", + }, + "runtimeStack": "str", + "runtimeVersion": "str", + }, + "operationState": "str", + "repoUrl": "str", + }, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -85,7 +80,6 @@ async def test_container_apps_source_controls_begin_create_or_update(self, resou }, "type": "str", }, - api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -100,9 +94,19 @@ async def test_container_apps_source_controls_begin_delete(self, resource_group) resource_group_name=resource_group.name, container_app_name="str", source_control_name="str", - api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_container_apps_source_controls_list_by_container_app(self, resource_group): + response = self.client.container_apps_source_controls.list_by_container_app( + resource_group_name=resource_group.name, + container_app_name="str", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dapr_component_resiliency_policies_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dapr_component_resiliency_policies_operations.py index 557524c79042..865a146972ac 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dapr_component_resiliency_policies_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dapr_component_resiliency_policies_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -18,19 +18,6 @@ class TestContainerAppsAPIDaprComponentResiliencyPoliciesOperations(AzureMgmtRec def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_dapr_component_resiliency_policies_list(self, resource_group): - response = self.client.dapr_component_resiliency_policies.list( - resource_group_name=resource_group.name, - environment_name="str", - component_name="str", - api_version="2025-02-02-preview", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_dapr_component_resiliency_policies_get(self, resource_group): @@ -39,7 +26,6 @@ def test_dapr_component_resiliency_policies_get(self, resource_group): environment_name="str", component_name="str", name="str", - api_version="2025-02-02-preview", ) # please add some check logic here by yourself @@ -55,22 +41,24 @@ def test_dapr_component_resiliency_policies_create_or_update(self, resource_grou name="str", dapr_component_resiliency_policy_envelope={ "id": "str", - "inboundPolicy": { - "circuitBreakerPolicy": {"consecutiveErrors": 0, "intervalInSeconds": 0, "timeoutInSeconds": 0}, - "httpRetryPolicy": { - "maxRetries": 0, - "retryBackOff": {"initialDelayInMilliseconds": 0, "maxIntervalInMilliseconds": 0}, - }, - "timeoutPolicy": {"responseTimeoutInSeconds": 0}, - }, "name": "str", - "outboundPolicy": { - "circuitBreakerPolicy": {"consecutiveErrors": 0, "intervalInSeconds": 0, "timeoutInSeconds": 0}, - "httpRetryPolicy": { - "maxRetries": 0, - "retryBackOff": {"initialDelayInMilliseconds": 0, "maxIntervalInMilliseconds": 0}, + "properties": { + "inboundPolicy": { + "circuitBreakerPolicy": {"consecutiveErrors": 0, "intervalInSeconds": 0, "timeoutInSeconds": 0}, + "httpRetryPolicy": { + "maxRetries": 0, + "retryBackOff": {"initialDelayInMilliseconds": 0, "maxIntervalInMilliseconds": 0}, + }, + "timeoutPolicy": {"responseTimeoutInSeconds": 0}, + }, + "outboundPolicy": { + "circuitBreakerPolicy": {"consecutiveErrors": 0, "intervalInSeconds": 0, "timeoutInSeconds": 0}, + "httpRetryPolicy": { + "maxRetries": 0, + "retryBackOff": {"initialDelayInMilliseconds": 0, "maxIntervalInMilliseconds": 0}, + }, + "timeoutPolicy": {"responseTimeoutInSeconds": 0}, }, - "timeoutPolicy": {"responseTimeoutInSeconds": 0}, }, "systemData": { "createdAt": "2020-02-20 00:00:00", @@ -82,7 +70,6 @@ def test_dapr_component_resiliency_policies_create_or_update(self, resource_grou }, "type": "str", }, - api_version="2025-02-02-preview", ) # please add some check logic here by yourself @@ -96,8 +83,19 @@ def test_dapr_component_resiliency_policies_delete(self, resource_group): environment_name="str", component_name="str", name="str", - api_version="2025-02-02-preview", ) # please add some check logic here by yourself # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_dapr_component_resiliency_policies_list(self, resource_group): + response = self.client.dapr_component_resiliency_policies.list( + resource_group_name=resource_group.name, + environment_name="str", + component_name="str", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dapr_component_resiliency_policies_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dapr_component_resiliency_policies_operations_async.py index 7a5e916fd530..3f915c64cdf5 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dapr_component_resiliency_policies_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dapr_component_resiliency_policies_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -19,19 +19,6 @@ class TestContainerAppsAPIDaprComponentResiliencyPoliciesOperationsAsync(AzureMg def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient, is_async=True) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_dapr_component_resiliency_policies_list(self, resource_group): - response = self.client.dapr_component_resiliency_policies.list( - resource_group_name=resource_group.name, - environment_name="str", - component_name="str", - api_version="2025-02-02-preview", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_dapr_component_resiliency_policies_get(self, resource_group): @@ -40,7 +27,6 @@ async def test_dapr_component_resiliency_policies_get(self, resource_group): environment_name="str", component_name="str", name="str", - api_version="2025-02-02-preview", ) # please add some check logic here by yourself @@ -56,22 +42,24 @@ async def test_dapr_component_resiliency_policies_create_or_update(self, resourc name="str", dapr_component_resiliency_policy_envelope={ "id": "str", - "inboundPolicy": { - "circuitBreakerPolicy": {"consecutiveErrors": 0, "intervalInSeconds": 0, "timeoutInSeconds": 0}, - "httpRetryPolicy": { - "maxRetries": 0, - "retryBackOff": {"initialDelayInMilliseconds": 0, "maxIntervalInMilliseconds": 0}, - }, - "timeoutPolicy": {"responseTimeoutInSeconds": 0}, - }, "name": "str", - "outboundPolicy": { - "circuitBreakerPolicy": {"consecutiveErrors": 0, "intervalInSeconds": 0, "timeoutInSeconds": 0}, - "httpRetryPolicy": { - "maxRetries": 0, - "retryBackOff": {"initialDelayInMilliseconds": 0, "maxIntervalInMilliseconds": 0}, + "properties": { + "inboundPolicy": { + "circuitBreakerPolicy": {"consecutiveErrors": 0, "intervalInSeconds": 0, "timeoutInSeconds": 0}, + "httpRetryPolicy": { + "maxRetries": 0, + "retryBackOff": {"initialDelayInMilliseconds": 0, "maxIntervalInMilliseconds": 0}, + }, + "timeoutPolicy": {"responseTimeoutInSeconds": 0}, + }, + "outboundPolicy": { + "circuitBreakerPolicy": {"consecutiveErrors": 0, "intervalInSeconds": 0, "timeoutInSeconds": 0}, + "httpRetryPolicy": { + "maxRetries": 0, + "retryBackOff": {"initialDelayInMilliseconds": 0, "maxIntervalInMilliseconds": 0}, + }, + "timeoutPolicy": {"responseTimeoutInSeconds": 0}, }, - "timeoutPolicy": {"responseTimeoutInSeconds": 0}, }, "systemData": { "createdAt": "2020-02-20 00:00:00", @@ -83,7 +71,6 @@ async def test_dapr_component_resiliency_policies_create_or_update(self, resourc }, "type": "str", }, - api_version="2025-02-02-preview", ) # please add some check logic here by yourself @@ -97,8 +84,19 @@ async def test_dapr_component_resiliency_policies_delete(self, resource_group): environment_name="str", component_name="str", name="str", - api_version="2025-02-02-preview", ) # please add some check logic here by yourself # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_dapr_component_resiliency_policies_list(self, resource_group): + response = self.client.dapr_component_resiliency_policies.list( + resource_group_name=resource_group.name, + environment_name="str", + component_name="str", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dapr_components_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dapr_components_operations.py index 4deb35d3f465..3cf5f2a63399 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dapr_components_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dapr_components_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -18,18 +18,6 @@ class TestContainerAppsAPIDaprComponentsOperations(AzureMgmtRecordedTestCase): def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_dapr_components_list(self, resource_group): - response = self.client.dapr_components.list( - resource_group_name=resource_group.name, - environment_name="str", - api_version="2026-01-01", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_dapr_components_get(self, resource_group): @@ -37,7 +25,6 @@ def test_dapr_components_get(self, resource_group): resource_group_name=resource_group.name, environment_name="str", component_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -51,17 +38,23 @@ def test_dapr_components_create_or_update(self, resource_group): environment_name="str", component_name="str", dapr_component_envelope={ - "componentType": "str", - "deploymentErrors": "str", "id": "str", - "ignoreErrors": False, - "initTimeout": "str", - "metadata": [{"name": "str", "secretRef": "str", "value": "str"}], "name": "str", - "provisioningState": "str", - "scopes": ["str"], - "secretStoreComponent": "str", - "secrets": [{"identity": "str", "keyVaultUrl": "str", "name": "str", "value": "str"}], + "properties": { + "componentType": "str", + "deploymentErrors": "str", + "ignoreErrors": bool, + "initTimeout": "str", + "metadata": [{"name": "str", "secretRef": "str", "value": "str"}], + "provisioningState": "str", + "scopes": ["str"], + "secretStoreComponent": "str", + "secrets": [{"identity": "str", "keyVaultUrl": "str", "name": "str", "value": "str"}], + "serviceComponentBind": [ + {"metadata": {"name": "str", "value": "str"}, "name": "str", "serviceId": "str"} + ], + "version": "str", + }, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -71,9 +64,7 @@ def test_dapr_components_create_or_update(self, resource_group): "lastModifiedByType": "str", }, "type": "str", - "version": "str", }, - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -86,12 +77,22 @@ def test_dapr_components_delete(self, resource_group): resource_group_name=resource_group.name, environment_name="str", component_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_dapr_components_list(self, resource_group): + response = self.client.dapr_components.list( + resource_group_name=resource_group.name, + environment_name="str", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_dapr_components_list_secrets(self, resource_group): @@ -99,7 +100,6 @@ def test_dapr_components_list_secrets(self, resource_group): resource_group_name=resource_group.name, environment_name="str", component_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dapr_components_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dapr_components_operations_async.py index 839fd0b3e8b6..578548c91e73 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dapr_components_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dapr_components_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -19,18 +19,6 @@ class TestContainerAppsAPIDaprComponentsOperationsAsync(AzureMgmtRecordedTestCas def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient, is_async=True) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_dapr_components_list(self, resource_group): - response = self.client.dapr_components.list( - resource_group_name=resource_group.name, - environment_name="str", - api_version="2026-01-01", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_dapr_components_get(self, resource_group): @@ -38,7 +26,6 @@ async def test_dapr_components_get(self, resource_group): resource_group_name=resource_group.name, environment_name="str", component_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -52,17 +39,23 @@ async def test_dapr_components_create_or_update(self, resource_group): environment_name="str", component_name="str", dapr_component_envelope={ - "componentType": "str", - "deploymentErrors": "str", "id": "str", - "ignoreErrors": False, - "initTimeout": "str", - "metadata": [{"name": "str", "secretRef": "str", "value": "str"}], "name": "str", - "provisioningState": "str", - "scopes": ["str"], - "secretStoreComponent": "str", - "secrets": [{"identity": "str", "keyVaultUrl": "str", "name": "str", "value": "str"}], + "properties": { + "componentType": "str", + "deploymentErrors": "str", + "ignoreErrors": bool, + "initTimeout": "str", + "metadata": [{"name": "str", "secretRef": "str", "value": "str"}], + "provisioningState": "str", + "scopes": ["str"], + "secretStoreComponent": "str", + "secrets": [{"identity": "str", "keyVaultUrl": "str", "name": "str", "value": "str"}], + "serviceComponentBind": [ + {"metadata": {"name": "str", "value": "str"}, "name": "str", "serviceId": "str"} + ], + "version": "str", + }, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -72,9 +65,7 @@ async def test_dapr_components_create_or_update(self, resource_group): "lastModifiedByType": "str", }, "type": "str", - "version": "str", }, - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -87,12 +78,22 @@ async def test_dapr_components_delete(self, resource_group): resource_group_name=resource_group.name, environment_name="str", component_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_dapr_components_list(self, resource_group): + response = self.client.dapr_components.list( + resource_group_name=resource_group.name, + environment_name="str", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_dapr_components_list_secrets(self, resource_group): @@ -100,7 +101,6 @@ async def test_dapr_components_list_secrets(self, resource_group): resource_group_name=resource_group.name, environment_name="str", component_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dapr_subscriptions_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dapr_subscriptions_operations.py index a734af35d3df..1f5a32c3e3d1 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dapr_subscriptions_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dapr_subscriptions_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -18,18 +18,6 @@ class TestContainerAppsAPIDaprSubscriptionsOperations(AzureMgmtRecordedTestCase) def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_dapr_subscriptions_list(self, resource_group): - response = self.client.dapr_subscriptions.list( - resource_group_name=resource_group.name, - environment_name="str", - api_version="2025-02-02-preview", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_dapr_subscriptions_get(self, resource_group): @@ -37,7 +25,6 @@ def test_dapr_subscriptions_get(self, resource_group): resource_group_name=resource_group.name, environment_name="str", name="str", - api_version="2025-02-02-preview", ) # please add some check logic here by yourself @@ -51,14 +38,17 @@ def test_dapr_subscriptions_create_or_update(self, resource_group): environment_name="str", name="str", dapr_subscription_envelope={ - "bulkSubscribe": {"enabled": False, "maxAwaitDurationMs": 0, "maxMessagesCount": 0}, - "deadLetterTopic": "str", "id": "str", - "metadata": {"str": "str"}, "name": "str", - "pubsubName": "str", - "routes": {"default": "str", "rules": [{"match": "str", "path": "str"}]}, - "scopes": ["str"], + "properties": { + "bulkSubscribe": {"enabled": bool, "maxAwaitDurationMs": 0, "maxMessagesCount": 0}, + "deadLetterTopic": "str", + "metadata": {"str": "str"}, + "pubsubName": "str", + "routes": {"default": "str", "rules": [{"match": "str", "path": "str"}]}, + "scopes": ["str"], + "topic": "str", + }, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -67,10 +57,8 @@ def test_dapr_subscriptions_create_or_update(self, resource_group): "lastModifiedBy": "str", "lastModifiedByType": "str", }, - "topic": "str", "type": "str", }, - api_version="2025-02-02-preview", ) # please add some check logic here by yourself @@ -83,8 +71,18 @@ def test_dapr_subscriptions_delete(self, resource_group): resource_group_name=resource_group.name, environment_name="str", name="str", - api_version="2025-02-02-preview", ) # please add some check logic here by yourself # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_dapr_subscriptions_list(self, resource_group): + response = self.client.dapr_subscriptions.list( + resource_group_name=resource_group.name, + environment_name="str", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dapr_subscriptions_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dapr_subscriptions_operations_async.py index c52ba55c3a9e..9d93bfcec610 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dapr_subscriptions_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dapr_subscriptions_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -19,18 +19,6 @@ class TestContainerAppsAPIDaprSubscriptionsOperationsAsync(AzureMgmtRecordedTest def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient, is_async=True) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_dapr_subscriptions_list(self, resource_group): - response = self.client.dapr_subscriptions.list( - resource_group_name=resource_group.name, - environment_name="str", - api_version="2025-02-02-preview", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_dapr_subscriptions_get(self, resource_group): @@ -38,7 +26,6 @@ async def test_dapr_subscriptions_get(self, resource_group): resource_group_name=resource_group.name, environment_name="str", name="str", - api_version="2025-02-02-preview", ) # please add some check logic here by yourself @@ -52,14 +39,17 @@ async def test_dapr_subscriptions_create_or_update(self, resource_group): environment_name="str", name="str", dapr_subscription_envelope={ - "bulkSubscribe": {"enabled": False, "maxAwaitDurationMs": 0, "maxMessagesCount": 0}, - "deadLetterTopic": "str", "id": "str", - "metadata": {"str": "str"}, "name": "str", - "pubsubName": "str", - "routes": {"default": "str", "rules": [{"match": "str", "path": "str"}]}, - "scopes": ["str"], + "properties": { + "bulkSubscribe": {"enabled": bool, "maxAwaitDurationMs": 0, "maxMessagesCount": 0}, + "deadLetterTopic": "str", + "metadata": {"str": "str"}, + "pubsubName": "str", + "routes": {"default": "str", "rules": [{"match": "str", "path": "str"}]}, + "scopes": ["str"], + "topic": "str", + }, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -68,10 +58,8 @@ async def test_dapr_subscriptions_create_or_update(self, resource_group): "lastModifiedBy": "str", "lastModifiedByType": "str", }, - "topic": "str", "type": "str", }, - api_version="2025-02-02-preview", ) # please add some check logic here by yourself @@ -84,8 +72,18 @@ async def test_dapr_subscriptions_delete(self, resource_group): resource_group_name=resource_group.name, environment_name="str", name="str", - api_version="2025-02-02-preview", ) # please add some check logic here by yourself # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_dapr_subscriptions_list(self, resource_group): + response = self.client.dapr_subscriptions.list( + resource_group_name=resource_group.name, + environment_name="str", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dot_net_components_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dot_net_components_operations.py index 436a27131b9a..badc5724232f 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dot_net_components_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dot_net_components_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -18,18 +18,6 @@ class TestContainerAppsAPIDotNetComponentsOperations(AzureMgmtRecordedTestCase): def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_dot_net_components_list(self, resource_group): - response = self.client.dot_net_components.list( - resource_group_name=resource_group.name, - environment_name="str", - api_version="2025-02-02-preview", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_dot_net_components_get(self, resource_group): @@ -37,7 +25,6 @@ def test_dot_net_components_get(self, resource_group): resource_group_name=resource_group.name, environment_name="str", name="str", - api_version="2025-02-02-preview", ) # please add some check logic here by yourself @@ -51,12 +38,14 @@ def test_dot_net_components_begin_create_or_update(self, resource_group): environment_name="str", name="str", dot_net_component_envelope={ - "componentType": "str", - "configurations": [{"propertyName": "str", "value": "str"}], "id": "str", "name": "str", - "provisioningState": "str", - "serviceBinds": [{"name": "str", "serviceId": "str"}], + "properties": { + "componentType": "str", + "configurations": [{"propertyName": "str", "value": "str"}], + "provisioningState": "str", + "serviceBinds": [{"name": "str", "serviceId": "str"}], + }, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -67,7 +56,6 @@ def test_dot_net_components_begin_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-02-02-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -81,12 +69,14 @@ def test_dot_net_components_begin_update(self, resource_group): environment_name="str", name="str", dot_net_component_envelope={ - "componentType": "str", - "configurations": [{"propertyName": "str", "value": "str"}], "id": "str", "name": "str", - "provisioningState": "str", - "serviceBinds": [{"name": "str", "serviceId": "str"}], + "properties": { + "componentType": "str", + "configurations": [{"propertyName": "str", "value": "str"}], + "provisioningState": "str", + "serviceBinds": [{"name": "str", "serviceId": "str"}], + }, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -97,7 +87,6 @@ def test_dot_net_components_begin_update(self, resource_group): }, "type": "str", }, - api_version="2025-02-02-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -110,8 +99,18 @@ def test_dot_net_components_begin_delete(self, resource_group): resource_group_name=resource_group.name, environment_name="str", name="str", - api_version="2025-02-02-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_dot_net_components_list(self, resource_group): + response = self.client.dot_net_components.list( + resource_group_name=resource_group.name, + environment_name="str", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dot_net_components_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dot_net_components_operations_async.py index f4731eb3c2fa..d8239d7cbf57 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dot_net_components_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_dot_net_components_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -19,18 +19,6 @@ class TestContainerAppsAPIDotNetComponentsOperationsAsync(AzureMgmtRecordedTestC def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient, is_async=True) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_dot_net_components_list(self, resource_group): - response = self.client.dot_net_components.list( - resource_group_name=resource_group.name, - environment_name="str", - api_version="2025-02-02-preview", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_dot_net_components_get(self, resource_group): @@ -38,7 +26,6 @@ async def test_dot_net_components_get(self, resource_group): resource_group_name=resource_group.name, environment_name="str", name="str", - api_version="2025-02-02-preview", ) # please add some check logic here by yourself @@ -53,12 +40,14 @@ async def test_dot_net_components_begin_create_or_update(self, resource_group): environment_name="str", name="str", dot_net_component_envelope={ - "componentType": "str", - "configurations": [{"propertyName": "str", "value": "str"}], "id": "str", "name": "str", - "provisioningState": "str", - "serviceBinds": [{"name": "str", "serviceId": "str"}], + "properties": { + "componentType": "str", + "configurations": [{"propertyName": "str", "value": "str"}], + "provisioningState": "str", + "serviceBinds": [{"name": "str", "serviceId": "str"}], + }, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -69,7 +58,6 @@ async def test_dot_net_components_begin_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-02-02-preview", ) ).result() # call '.result()' to poll until service return final result @@ -85,12 +73,14 @@ async def test_dot_net_components_begin_update(self, resource_group): environment_name="str", name="str", dot_net_component_envelope={ - "componentType": "str", - "configurations": [{"propertyName": "str", "value": "str"}], "id": "str", "name": "str", - "provisioningState": "str", - "serviceBinds": [{"name": "str", "serviceId": "str"}], + "properties": { + "componentType": "str", + "configurations": [{"propertyName": "str", "value": "str"}], + "provisioningState": "str", + "serviceBinds": [{"name": "str", "serviceId": "str"}], + }, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -101,7 +91,6 @@ async def test_dot_net_components_begin_update(self, resource_group): }, "type": "str", }, - api_version="2025-02-02-preview", ) ).result() # call '.result()' to poll until service return final result @@ -116,9 +105,19 @@ async def test_dot_net_components_begin_delete(self, resource_group): resource_group_name=resource_group.name, environment_name="str", name="str", - api_version="2025-02-02-preview", ) ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_dot_net_components_list(self, resource_group): + response = self.client.dot_net_components.list( + resource_group_name=resource_group.name, + environment_name="str", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_functions_extension_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_functions_extension_operations.py index 145cf14131d6..cd8acdab5ce0 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_functions_extension_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_functions_extension_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -26,7 +26,6 @@ def test_functions_extension_invoke_functions_host(self, resource_group): container_app_name="str", revision_name="str", function_app_name="str", - api_version="2025-02-02-preview", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_functions_extension_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_functions_extension_operations_async.py index cfaf7a6b0f21..ce226d026f35 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_functions_extension_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_functions_extension_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -27,7 +27,6 @@ async def test_functions_extension_invoke_functions_host(self, resource_group): container_app_name="str", revision_name="str", function_app_name="str", - api_version="2025-02-02-preview", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_http_route_config_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_http_route_config_operations.py index c2886c9ba2f2..8698a184217e 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_http_route_config_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_http_route_config_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -25,7 +25,6 @@ def test_http_route_config_get(self, resource_group): resource_group_name=resource_group.name, environment_name="str", http_route_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -38,7 +37,6 @@ def test_http_route_config_create_or_update(self, resource_group): resource_group_name=resource_group.name, environment_name="str", http_route_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -73,7 +71,7 @@ def test_http_route_config_update(self, resource_group): }, } ], - "targets": [{"containerApp": "str", "label": "str", "revision": "str"}], + "targets": [{"containerApp": "str", "label": "str", "revision": "str", "weight": 0}], } ], }, @@ -87,7 +85,6 @@ def test_http_route_config_update(self, resource_group): }, "type": "str", }, - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -100,7 +97,6 @@ def test_http_route_config_begin_delete(self, resource_group): resource_group_name=resource_group.name, environment_name="str", http_route_name="str", - api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -112,7 +108,6 @@ def test_http_route_config_list(self, resource_group): response = self.client.http_route_config.list( resource_group_name=resource_group.name, environment_name="str", - api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_http_route_config_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_http_route_config_operations_async.py index 14f138d00282..072e2393ed73 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_http_route_config_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_http_route_config_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -26,7 +26,6 @@ async def test_http_route_config_get(self, resource_group): resource_group_name=resource_group.name, environment_name="str", http_route_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -39,7 +38,6 @@ async def test_http_route_config_create_or_update(self, resource_group): resource_group_name=resource_group.name, environment_name="str", http_route_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -74,7 +72,7 @@ async def test_http_route_config_update(self, resource_group): }, } ], - "targets": [{"containerApp": "str", "label": "str", "revision": "str"}], + "targets": [{"containerApp": "str", "label": "str", "revision": "str", "weight": 0}], } ], }, @@ -88,7 +86,6 @@ async def test_http_route_config_update(self, resource_group): }, "type": "str", }, - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -102,7 +99,6 @@ async def test_http_route_config_begin_delete(self, resource_group): resource_group_name=resource_group.name, environment_name="str", http_route_name="str", - api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -115,7 +111,6 @@ async def test_http_route_config_list(self, resource_group): response = self.client.http_route_config.list( resource_group_name=resource_group.name, environment_name="str", - api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_java_components_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_java_components_operations.py index b909e22f8123..57632ae54262 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_java_components_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_java_components_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -18,18 +18,6 @@ class TestContainerAppsAPIJavaComponentsOperations(AzureMgmtRecordedTestCase): def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_java_components_list(self, resource_group): - response = self.client.java_components.list( - resource_group_name=resource_group.name, - environment_name="str", - api_version="2026-01-01", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_java_components_get(self, resource_group): @@ -37,7 +25,6 @@ def test_java_components_get(self, resource_group): resource_group_name=resource_group.name, environment_name="str", name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -64,7 +51,6 @@ def test_java_components_begin_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -91,7 +77,6 @@ def test_java_components_begin_update(self, resource_group): }, "type": "str", }, - api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -104,8 +89,18 @@ def test_java_components_begin_delete(self, resource_group): resource_group_name=resource_group.name, environment_name="str", name="str", - api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_java_components_list(self, resource_group): + response = self.client.java_components.list( + resource_group_name=resource_group.name, + environment_name="str", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_java_components_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_java_components_operations_async.py index 73f1c37a42ac..ad7d9af046d2 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_java_components_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_java_components_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -19,18 +19,6 @@ class TestContainerAppsAPIJavaComponentsOperationsAsync(AzureMgmtRecordedTestCas def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient, is_async=True) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_java_components_list(self, resource_group): - response = self.client.java_components.list( - resource_group_name=resource_group.name, - environment_name="str", - api_version="2026-01-01", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_java_components_get(self, resource_group): @@ -38,7 +26,6 @@ async def test_java_components_get(self, resource_group): resource_group_name=resource_group.name, environment_name="str", name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -66,7 +53,6 @@ async def test_java_components_begin_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -95,7 +81,6 @@ async def test_java_components_begin_update(self, resource_group): }, "type": "str", }, - api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -110,9 +95,19 @@ async def test_java_components_begin_delete(self, resource_group): resource_group_name=resource_group.name, environment_name="str", name="str", - api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_java_components_list(self, resource_group): + response = self.client.java_components.list( + resource_group_name=resource_group.name, + environment_name="str", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_executions_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_executions_operations.py index ef2c072e80d0..8c48c20a4b8b 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_executions_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_executions_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -24,7 +24,6 @@ def test_jobs_executions_list(self, resource_group): response = self.client.jobs_executions.list( resource_group_name=resource_group.name, job_name="str", - api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_executions_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_executions_operations_async.py index 737b40760aef..5e3fa4c2b3cb 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_executions_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_executions_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -25,7 +25,6 @@ async def test_jobs_executions_list(self, resource_group): response = self.client.jobs_executions.list( resource_group_name=resource_group.name, job_name="str", - api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_operations.py index 672917f1e35b..984a7966606d 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -18,72 +18,12 @@ class TestContainerAppsAPIJobsOperations(AzureMgmtRecordedTestCase): def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_jobs_list_detectors(self, resource_group): - response = self.client.jobs.list_detectors( - resource_group_name=resource_group.name, - job_name="str", - api_version="2026-01-01", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_jobs_get_detector(self, resource_group): - response = self.client.jobs.get_detector( - resource_group_name=resource_group.name, - job_name="str", - detector_name="str", - api_version="2026-01-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_jobs_proxy_get(self, resource_group): - response = self.client.jobs.proxy_get( - resource_group_name=resource_group.name, - job_name="str", - api_name="str", - api_version="2026-01-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_jobs_list_by_subscription(self, resource_group): - response = self.client.jobs.list_by_subscription( - api_version="2026-01-01", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_jobs_list_by_resource_group(self, resource_group): - response = self.client.jobs.list_by_resource_group( - resource_group_name=resource_group.name, - api_version="2026-01-01", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_jobs_get(self, resource_group): response = self.client.jobs.get( resource_group_name=resource_group.name, job_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -97,36 +37,7 @@ def test_jobs_begin_create_or_update(self, resource_group): job_name="str", job_envelope={ "location": "str", - "configuration": { - "replicaTimeout": 0, - "triggerType": "Manual", - "eventTriggerConfig": { - "parallelism": 0, - "replicaCompletionCount": 0, - "scale": { - "maxExecutions": 100, - "minExecutions": 0, - "pollingInterval": 0, - "rules": [ - { - "auth": [{"secretRef": "str", "triggerParameter": "str"}], - "identity": "str", - "metadata": {}, - "name": "str", - "type": "str", - } - ], - }, - }, - "identitySettings": [{"identity": "str", "lifecycle": "str"}], - "manualTriggerConfig": {"parallelism": 0, "replicaCompletionCount": 0}, - "registries": [{"identity": "str", "passwordSecretRef": "str", "server": "str", "username": "str"}], - "replicaRetryLimit": 0, - "scheduleTriggerConfig": {"cronExpression": "str", "parallelism": 0, "replicaCompletionCount": 0}, - "secrets": [{"identity": "str", "keyVaultUrl": "str", "name": "str", "value": "str"}], - }, - "environmentId": "str", - "eventStreamEndpoint": "str", + "extendedLocation": {"name": "str", "type": "str"}, "id": "str", "identity": { "type": "str", @@ -135,8 +46,102 @@ def test_jobs_begin_create_or_update(self, resource_group): "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, }, "name": "str", - "outboundIpAddresses": ["str"], - "provisioningState": "str", + "properties": { + "configuration": { + "replicaTimeout": 0, + "triggerType": "str", + "eventTriggerConfig": { + "parallelism": 0, + "replicaCompletionCount": 0, + "scale": { + "maxExecutions": 0, + "minExecutions": 0, + "pollingInterval": 0, + "rules": [ + { + "auth": [{"secretRef": "str", "triggerParameter": "str"}], + "identity": "str", + "metadata": {}, + "name": "str", + "type": "str", + } + ], + }, + }, + "identitySettings": [{"identity": "str", "lifecycle": "str"}], + "manualTriggerConfig": {"parallelism": 0, "replicaCompletionCount": 0}, + "registries": [ + {"identity": "str", "passwordSecretRef": "str", "server": "str", "username": "str"} + ], + "replicaRetryLimit": 0, + "scheduleTriggerConfig": { + "cronExpression": "str", + "parallelism": 0, + "replicaCompletionCount": 0, + }, + "secrets": [{"identity": "str", "keyVaultUrl": "str", "name": "str", "value": "str"}], + }, + "environmentId": "str", + "eventStreamEndpoint": "str", + "outboundIpAddresses": ["str"], + "provisioningState": "str", + "runningState": "str", + "template": { + "containers": [ + { + "args": ["str"], + "command": ["str"], + "env": [{"name": "str", "secretRef": "str", "value": "str"}], + "image": "str", + "imageType": "str", + "name": "str", + "probes": [ + { + "failureThreshold": 0, + "httpGet": { + "port": 0, + "host": "str", + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "tcpSocket": {"port": 0, "host": "str"}, + "terminationGracePeriodSeconds": 0, + "timeoutSeconds": 0, + "type": "str", + } + ], + "resources": {"cpu": 0.0, "ephemeralStorage": "str", "gpu": 0.0, "memory": "str"}, + "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], + } + ], + "initContainers": [ + { + "args": ["str"], + "command": ["str"], + "env": [{"name": "str", "secretRef": "str", "value": "str"}], + "image": "str", + "imageType": "str", + "name": "str", + "resources": {"cpu": 0.0, "ephemeralStorage": "str", "gpu": 0.0, "memory": "str"}, + "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], + } + ], + "volumes": [ + { + "mountOptions": "str", + "name": "str", + "secrets": [{"path": "str", "secretRef": "str"}], + "storageName": "str", + "storageType": "str", + } + ], + }, + "workloadProfileName": "str", + }, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -146,74 +151,8 @@ def test_jobs_begin_create_or_update(self, resource_group): "lastModifiedByType": "str", }, "tags": {"str": "str"}, - "template": { - "containers": [ - { - "args": ["str"], - "command": ["str"], - "env": [{"name": "str", "secretRef": "str", "value": "str"}], - "image": "str", - "name": "str", - "probes": [ - { - "failureThreshold": 0, - "httpGet": { - "port": 0, - "host": "str", - "httpHeaders": [{"name": "str", "value": "str"}], - "path": "str", - "scheme": "str", - }, - "initialDelaySeconds": 0, - "periodSeconds": 0, - "successThreshold": 0, - "tcpSocket": {"port": 0, "host": "str"}, - "terminationGracePeriodSeconds": 0, - "timeoutSeconds": 0, - "type": "str", - } - ], - "resources": {"cpu": 0.0, "ephemeralStorage": "str", "memory": "str"}, - "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], - } - ], - "initContainers": [ - { - "args": ["str"], - "command": ["str"], - "env": [{"name": "str", "secretRef": "str", "value": "str"}], - "image": "str", - "name": "str", - "resources": {"cpu": 0.0, "ephemeralStorage": "str", "memory": "str"}, - "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], - } - ], - "volumes": [ - { - "mountOptions": "str", - "name": "str", - "secrets": [{"path": "str", "secretRef": "str"}], - "storageName": "str", - "storageType": "str", - } - ], - }, "type": "str", - "workloadProfileName": "str", }, - api_version="2026-01-01", - ).result() # call '.result()' to poll until service return final result - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_jobs_begin_delete(self, resource_group): - response = self.client.jobs.begin_delete( - resource_group_name=resource_group.name, - job_name="str", - api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -226,6 +165,7 @@ def test_jobs_begin_update(self, resource_group): resource_group_name=resource_group.name, job_name="str", job_envelope={ + "extendedLocation": {"name": "str", "type": "str"}, "identity": { "type": "str", "principalId": "str", @@ -235,12 +175,12 @@ def test_jobs_begin_update(self, resource_group): "properties": { "configuration": { "replicaTimeout": 0, - "triggerType": "Manual", + "triggerType": "str", "eventTriggerConfig": { "parallelism": 0, "replicaCompletionCount": 0, "scale": { - "maxExecutions": 100, + "maxExecutions": 0, "minExecutions": 0, "pollingInterval": 0, "rules": [ @@ -277,6 +217,7 @@ def test_jobs_begin_update(self, resource_group): "command": ["str"], "env": [{"name": "str", "secretRef": "str", "value": "str"}], "image": "str", + "imageType": "str", "name": "str", "probes": [ { @@ -297,7 +238,7 @@ def test_jobs_begin_update(self, resource_group): "type": "str", } ], - "resources": {"cpu": 0.0, "ephemeralStorage": "str", "memory": "str"}, + "resources": {"cpu": 0.0, "ephemeralStorage": "str", "gpu": 0.0, "memory": "str"}, "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], } ], @@ -307,8 +248,9 @@ def test_jobs_begin_update(self, resource_group): "command": ["str"], "env": [{"name": "str", "secretRef": "str", "value": "str"}], "image": "str", + "imageType": "str", "name": "str", - "resources": {"cpu": 0.0, "ephemeralStorage": "str", "memory": "str"}, + "resources": {"cpu": 0.0, "ephemeralStorage": "str", "gpu": 0.0, "memory": "str"}, "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], } ], @@ -325,7 +267,6 @@ def test_jobs_begin_update(self, resource_group): }, "tags": {"str": "str"}, }, - api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -333,11 +274,10 @@ def test_jobs_begin_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_jobs_begin_start(self, resource_group): - response = self.client.jobs.begin_start( + def test_jobs_begin_delete(self, resource_group): + response = self.client.jobs.begin_delete( resource_group_name=resource_group.name, job_name="str", - api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -345,12 +285,28 @@ def test_jobs_begin_start(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_jobs_begin_stop_execution(self, resource_group): - response = self.client.jobs.begin_stop_execution( + def test_jobs_list_by_resource_group(self, resource_group): + response = self.client.jobs.list_by_resource_group( + resource_group_name=resource_group.name, + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_jobs_list_by_subscription(self, resource_group): + response = self.client.jobs.list_by_subscription() + result = [r for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_jobs_begin_start(self, resource_group): + response = self.client.jobs.begin_start( resource_group_name=resource_group.name, job_name="str", - job_execution_name="str", - api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -362,7 +318,6 @@ def test_jobs_begin_stop_multiple_executions(self, resource_group): response = self.client.jobs.begin_stop_multiple_executions( resource_group_name=resource_group.name, job_name="str", - api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -374,7 +329,75 @@ def test_jobs_list_secrets(self, resource_group): response = self.client.jobs.list_secrets( resource_group_name=resource_group.name, job_name="str", - api_version="2026-01-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_jobs_begin_resume(self, resource_group): + response = self.client.jobs.begin_resume( + resource_group_name=resource_group.name, + job_name="str", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_jobs_begin_suspend(self, resource_group): + response = self.client.jobs.begin_suspend( + resource_group_name=resource_group.name, + job_name="str", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_jobs_begin_stop_execution(self, resource_group): + response = self.client.jobs.begin_stop_execution( + resource_group_name=resource_group.name, + job_name="str", + job_execution_name="str", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_jobs_proxy_get(self, resource_group): + response = self.client.jobs.proxy_get( + resource_group_name=resource_group.name, + job_name="str", + api_name="str", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_jobs_list_detectors(self, resource_group): + response = self.client.jobs.list_detectors( + resource_group_name=resource_group.name, + job_name="str", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_jobs_get_detector(self, resource_group): + response = self.client.jobs.get_detector( + resource_group_name=resource_group.name, + job_name="str", + detector_name="str", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_operations_async.py index 7b2be552180f..78e81e4ee049 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_jobs_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -19,72 +19,12 @@ class TestContainerAppsAPIJobsOperationsAsync(AzureMgmtRecordedTestCase): def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient, is_async=True) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_jobs_list_detectors(self, resource_group): - response = self.client.jobs.list_detectors( - resource_group_name=resource_group.name, - job_name="str", - api_version="2026-01-01", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_jobs_get_detector(self, resource_group): - response = await self.client.jobs.get_detector( - resource_group_name=resource_group.name, - job_name="str", - detector_name="str", - api_version="2026-01-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_jobs_proxy_get(self, resource_group): - response = await self.client.jobs.proxy_get( - resource_group_name=resource_group.name, - job_name="str", - api_name="str", - api_version="2026-01-01", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_jobs_list_by_subscription(self, resource_group): - response = self.client.jobs.list_by_subscription( - api_version="2026-01-01", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_jobs_list_by_resource_group(self, resource_group): - response = self.client.jobs.list_by_resource_group( - resource_group_name=resource_group.name, - api_version="2026-01-01", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_jobs_get(self, resource_group): response = await self.client.jobs.get( resource_group_name=resource_group.name, job_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -99,42 +39,7 @@ async def test_jobs_begin_create_or_update(self, resource_group): job_name="str", job_envelope={ "location": "str", - "configuration": { - "replicaTimeout": 0, - "triggerType": "Manual", - "eventTriggerConfig": { - "parallelism": 0, - "replicaCompletionCount": 0, - "scale": { - "maxExecutions": 100, - "minExecutions": 0, - "pollingInterval": 0, - "rules": [ - { - "auth": [{"secretRef": "str", "triggerParameter": "str"}], - "identity": "str", - "metadata": {}, - "name": "str", - "type": "str", - } - ], - }, - }, - "identitySettings": [{"identity": "str", "lifecycle": "str"}], - "manualTriggerConfig": {"parallelism": 0, "replicaCompletionCount": 0}, - "registries": [ - {"identity": "str", "passwordSecretRef": "str", "server": "str", "username": "str"} - ], - "replicaRetryLimit": 0, - "scheduleTriggerConfig": { - "cronExpression": "str", - "parallelism": 0, - "replicaCompletionCount": 0, - }, - "secrets": [{"identity": "str", "keyVaultUrl": "str", "name": "str", "value": "str"}], - }, - "environmentId": "str", - "eventStreamEndpoint": "str", + "extendedLocation": {"name": "str", "type": "str"}, "id": "str", "identity": { "type": "str", @@ -143,8 +48,102 @@ async def test_jobs_begin_create_or_update(self, resource_group): "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, }, "name": "str", - "outboundIpAddresses": ["str"], - "provisioningState": "str", + "properties": { + "configuration": { + "replicaTimeout": 0, + "triggerType": "str", + "eventTriggerConfig": { + "parallelism": 0, + "replicaCompletionCount": 0, + "scale": { + "maxExecutions": 0, + "minExecutions": 0, + "pollingInterval": 0, + "rules": [ + { + "auth": [{"secretRef": "str", "triggerParameter": "str"}], + "identity": "str", + "metadata": {}, + "name": "str", + "type": "str", + } + ], + }, + }, + "identitySettings": [{"identity": "str", "lifecycle": "str"}], + "manualTriggerConfig": {"parallelism": 0, "replicaCompletionCount": 0}, + "registries": [ + {"identity": "str", "passwordSecretRef": "str", "server": "str", "username": "str"} + ], + "replicaRetryLimit": 0, + "scheduleTriggerConfig": { + "cronExpression": "str", + "parallelism": 0, + "replicaCompletionCount": 0, + }, + "secrets": [{"identity": "str", "keyVaultUrl": "str", "name": "str", "value": "str"}], + }, + "environmentId": "str", + "eventStreamEndpoint": "str", + "outboundIpAddresses": ["str"], + "provisioningState": "str", + "runningState": "str", + "template": { + "containers": [ + { + "args": ["str"], + "command": ["str"], + "env": [{"name": "str", "secretRef": "str", "value": "str"}], + "image": "str", + "imageType": "str", + "name": "str", + "probes": [ + { + "failureThreshold": 0, + "httpGet": { + "port": 0, + "host": "str", + "httpHeaders": [{"name": "str", "value": "str"}], + "path": "str", + "scheme": "str", + }, + "initialDelaySeconds": 0, + "periodSeconds": 0, + "successThreshold": 0, + "tcpSocket": {"port": 0, "host": "str"}, + "terminationGracePeriodSeconds": 0, + "timeoutSeconds": 0, + "type": "str", + } + ], + "resources": {"cpu": 0.0, "ephemeralStorage": "str", "gpu": 0.0, "memory": "str"}, + "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], + } + ], + "initContainers": [ + { + "args": ["str"], + "command": ["str"], + "env": [{"name": "str", "secretRef": "str", "value": "str"}], + "image": "str", + "imageType": "str", + "name": "str", + "resources": {"cpu": 0.0, "ephemeralStorage": "str", "gpu": 0.0, "memory": "str"}, + "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], + } + ], + "volumes": [ + { + "mountOptions": "str", + "name": "str", + "secrets": [{"path": "str", "secretRef": "str"}], + "storageName": "str", + "storageType": "str", + } + ], + }, + "workloadProfileName": "str", + }, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -154,76 +153,8 @@ async def test_jobs_begin_create_or_update(self, resource_group): "lastModifiedByType": "str", }, "tags": {"str": "str"}, - "template": { - "containers": [ - { - "args": ["str"], - "command": ["str"], - "env": [{"name": "str", "secretRef": "str", "value": "str"}], - "image": "str", - "name": "str", - "probes": [ - { - "failureThreshold": 0, - "httpGet": { - "port": 0, - "host": "str", - "httpHeaders": [{"name": "str", "value": "str"}], - "path": "str", - "scheme": "str", - }, - "initialDelaySeconds": 0, - "periodSeconds": 0, - "successThreshold": 0, - "tcpSocket": {"port": 0, "host": "str"}, - "terminationGracePeriodSeconds": 0, - "timeoutSeconds": 0, - "type": "str", - } - ], - "resources": {"cpu": 0.0, "ephemeralStorage": "str", "memory": "str"}, - "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], - } - ], - "initContainers": [ - { - "args": ["str"], - "command": ["str"], - "env": [{"name": "str", "secretRef": "str", "value": "str"}], - "image": "str", - "name": "str", - "resources": {"cpu": 0.0, "ephemeralStorage": "str", "memory": "str"}, - "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], - } - ], - "volumes": [ - { - "mountOptions": "str", - "name": "str", - "secrets": [{"path": "str", "secretRef": "str"}], - "storageName": "str", - "storageType": "str", - } - ], - }, "type": "str", - "workloadProfileName": "str", }, - api_version="2026-01-01", - ) - ).result() # call '.result()' to poll until service return final result - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_jobs_begin_delete(self, resource_group): - response = await ( - await self.client.jobs.begin_delete( - resource_group_name=resource_group.name, - job_name="str", - api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -238,6 +169,7 @@ async def test_jobs_begin_update(self, resource_group): resource_group_name=resource_group.name, job_name="str", job_envelope={ + "extendedLocation": {"name": "str", "type": "str"}, "identity": { "type": "str", "principalId": "str", @@ -247,12 +179,12 @@ async def test_jobs_begin_update(self, resource_group): "properties": { "configuration": { "replicaTimeout": 0, - "triggerType": "Manual", + "triggerType": "str", "eventTriggerConfig": { "parallelism": 0, "replicaCompletionCount": 0, "scale": { - "maxExecutions": 100, + "maxExecutions": 0, "minExecutions": 0, "pollingInterval": 0, "rules": [ @@ -289,6 +221,7 @@ async def test_jobs_begin_update(self, resource_group): "command": ["str"], "env": [{"name": "str", "secretRef": "str", "value": "str"}], "image": "str", + "imageType": "str", "name": "str", "probes": [ { @@ -309,7 +242,7 @@ async def test_jobs_begin_update(self, resource_group): "type": "str", } ], - "resources": {"cpu": 0.0, "ephemeralStorage": "str", "memory": "str"}, + "resources": {"cpu": 0.0, "ephemeralStorage": "str", "gpu": 0.0, "memory": "str"}, "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], } ], @@ -319,8 +252,9 @@ async def test_jobs_begin_update(self, resource_group): "command": ["str"], "env": [{"name": "str", "secretRef": "str", "value": "str"}], "image": "str", + "imageType": "str", "name": "str", - "resources": {"cpu": 0.0, "ephemeralStorage": "str", "memory": "str"}, + "resources": {"cpu": 0.0, "ephemeralStorage": "str", "gpu": 0.0, "memory": "str"}, "volumeMounts": [{"mountPath": "str", "subPath": "str", "volumeName": "str"}], } ], @@ -337,7 +271,6 @@ async def test_jobs_begin_update(self, resource_group): }, "tags": {"str": "str"}, }, - api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -346,12 +279,11 @@ async def test_jobs_begin_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_jobs_begin_start(self, resource_group): + async def test_jobs_begin_delete(self, resource_group): response = await ( - await self.client.jobs.begin_start( + await self.client.jobs.begin_delete( resource_group_name=resource_group.name, job_name="str", - api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -360,13 +292,29 @@ async def test_jobs_begin_start(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_jobs_begin_stop_execution(self, resource_group): + async def test_jobs_list_by_resource_group(self, resource_group): + response = self.client.jobs.list_by_resource_group( + resource_group_name=resource_group.name, + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_jobs_list_by_subscription(self, resource_group): + response = self.client.jobs.list_by_subscription() + result = [r async for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_jobs_begin_start(self, resource_group): response = await ( - await self.client.jobs.begin_stop_execution( + await self.client.jobs.begin_start( resource_group_name=resource_group.name, job_name="str", - job_execution_name="str", - api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -380,7 +328,6 @@ async def test_jobs_begin_stop_multiple_executions(self, resource_group): await self.client.jobs.begin_stop_multiple_executions( resource_group_name=resource_group.name, job_name="str", - api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -393,7 +340,81 @@ async def test_jobs_list_secrets(self, resource_group): response = await self.client.jobs.list_secrets( resource_group_name=resource_group.name, job_name="str", - api_version="2026-01-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_jobs_begin_resume(self, resource_group): + response = await ( + await self.client.jobs.begin_resume( + resource_group_name=resource_group.name, + job_name="str", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_jobs_begin_suspend(self, resource_group): + response = await ( + await self.client.jobs.begin_suspend( + resource_group_name=resource_group.name, + job_name="str", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_jobs_begin_stop_execution(self, resource_group): + response = await ( + await self.client.jobs.begin_stop_execution( + resource_group_name=resource_group.name, + job_name="str", + job_execution_name="str", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_jobs_proxy_get(self, resource_group): + response = await self.client.jobs.proxy_get( + resource_group_name=resource_group.name, + job_name="str", + api_name="str", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_jobs_list_detectors(self, resource_group): + response = self.client.jobs.list_detectors( + resource_group_name=resource_group.name, + job_name="str", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_jobs_get_detector(self, resource_group): + response = await self.client.jobs.get_detector( + resource_group_name=resource_group.name, + job_name="str", + detector_name="str", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_logic_apps_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_logic_apps_operations.py index e371b45e84d2..5f7fdcfe45bc 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_logic_apps_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_logic_apps_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -25,7 +25,6 @@ def test_logic_apps_get(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", logic_app_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -38,7 +37,20 @@ def test_logic_apps_create_or_update(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", logic_app_name="str", - api_version="2026-01-01", + resource={ + "id": "str", + "name": "str", + "properties": {}, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "type": "str", + }, ) # please add some check logic here by yourself @@ -51,7 +63,6 @@ def test_logic_apps_delete(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", logic_app_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -59,14 +70,39 @@ def test_logic_apps_delete(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_logic_apps_list_workflows(self, resource_group): - response = self.client.logic_apps.list_workflows( + def test_logic_apps_deploy_workflow_artifacts(self, resource_group): + response = self.client.logic_apps.deploy_workflow_artifacts( resource_group_name=resource_group.name, container_app_name="str", logic_app_name="str", - api_version="2026-01-01", ) - result = [r for r in response] + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_logic_apps_list_workflows_connections(self, resource_group): + response = self.client.logic_apps.list_workflows_connections( + resource_group_name=resource_group.name, + container_app_name="str", + logic_app_name="str", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_logic_apps_invoke(self, resource_group): + response = self.client.logic_apps.invoke( + resource_group_name=resource_group.name, + container_app_name="str", + logic_app_name="str", + x_ms_logic_apps_proxy_path="str", + x_ms_logic_apps_proxy_method="str", + ) + # please add some check logic here by yourself # ... @@ -78,7 +114,6 @@ def test_logic_apps_get_workflow(self, resource_group): container_app_name="str", logic_app_name="str", workflow_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -86,13 +121,12 @@ def test_logic_apps_get_workflow(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_logic_apps_list_workflows_connections(self, resource_group): - response = self.client.logic_apps.list_workflows_connections( + def test_logic_apps_list_workflows(self, resource_group): + response = self.client.logic_apps.list_workflows( resource_group_name=resource_group.name, container_app_name="str", logic_app_name="str", - api_version="2026-01-01", ) - + result = [r for r in response] # please add some check logic here by yourself # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_logic_apps_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_logic_apps_operations_async.py index 5652e2404390..1798b0891dc1 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_logic_apps_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_logic_apps_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -26,7 +26,6 @@ async def test_logic_apps_get(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", logic_app_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -39,7 +38,20 @@ async def test_logic_apps_create_or_update(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", logic_app_name="str", - api_version="2026-01-01", + resource={ + "id": "str", + "name": "str", + "properties": {}, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "type": "str", + }, ) # please add some check logic here by yourself @@ -52,7 +64,6 @@ async def test_logic_apps_delete(self, resource_group): resource_group_name=resource_group.name, container_app_name="str", logic_app_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -60,14 +71,39 @@ async def test_logic_apps_delete(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_logic_apps_list_workflows(self, resource_group): - response = self.client.logic_apps.list_workflows( + async def test_logic_apps_deploy_workflow_artifacts(self, resource_group): + response = await self.client.logic_apps.deploy_workflow_artifacts( resource_group_name=resource_group.name, container_app_name="str", logic_app_name="str", - api_version="2026-01-01", ) - result = [r async for r in response] + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_logic_apps_list_workflows_connections(self, resource_group): + response = await self.client.logic_apps.list_workflows_connections( + resource_group_name=resource_group.name, + container_app_name="str", + logic_app_name="str", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_logic_apps_invoke(self, resource_group): + response = await self.client.logic_apps.invoke( + resource_group_name=resource_group.name, + container_app_name="str", + logic_app_name="str", + x_ms_logic_apps_proxy_path="str", + x_ms_logic_apps_proxy_method="str", + ) + # please add some check logic here by yourself # ... @@ -79,7 +115,6 @@ async def test_logic_apps_get_workflow(self, resource_group): container_app_name="str", logic_app_name="str", workflow_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -87,13 +122,12 @@ async def test_logic_apps_get_workflow(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_logic_apps_list_workflows_connections(self, resource_group): - response = await self.client.logic_apps.list_workflows_connections( + async def test_logic_apps_list_workflows(self, resource_group): + response = self.client.logic_apps.list_workflows( resource_group_name=resource_group.name, container_app_name="str", logic_app_name="str", - api_version="2026-01-01", ) - + result = [r async for r in response] # please add some check logic here by yourself # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_maintenance_configurations_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_maintenance_configurations_operations.py index f9aca351e74c..a14e2e78cfb7 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_maintenance_configurations_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_maintenance_configurations_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -20,13 +20,13 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_maintenance_configurations_list(self, resource_group): - response = self.client.maintenance_configurations.list( + def test_maintenance_configurations_get(self, resource_group): + response = self.client.maintenance_configurations.get( resource_group_name=resource_group.name, environment_name="str", - api_version="2026-01-01", + config_name="str", ) - result = [r for r in response] + # please add some check logic here by yourself # ... @@ -40,7 +40,7 @@ def test_maintenance_configurations_create_or_update(self, resource_group): maintenance_configuration_envelope={ "id": "str", "name": "str", - "scheduledEntries": [{"durationHours": 0, "startHourUtc": 0, "weekDay": "str"}], + "properties": {"scheduledEntries": [{"durationHours": 0, "startHourUtc": 0, "weekDay": "str"}]}, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -51,7 +51,6 @@ def test_maintenance_configurations_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -64,7 +63,6 @@ def test_maintenance_configurations_delete(self, resource_group): resource_group_name=resource_group.name, environment_name="str", config_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -72,13 +70,11 @@ def test_maintenance_configurations_delete(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_maintenance_configurations_get(self, resource_group): - response = self.client.maintenance_configurations.get( + def test_maintenance_configurations_list(self, resource_group): + response = self.client.maintenance_configurations.list( resource_group_name=resource_group.name, environment_name="str", - config_name="str", - api_version="2026-01-01", ) - + result = [r for r in response] # please add some check logic here by yourself # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_maintenance_configurations_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_maintenance_configurations_operations_async.py index e5cc98adcd65..2b1e4bdeb73f 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_maintenance_configurations_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_maintenance_configurations_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -21,13 +21,13 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_maintenance_configurations_list(self, resource_group): - response = self.client.maintenance_configurations.list( + async def test_maintenance_configurations_get(self, resource_group): + response = await self.client.maintenance_configurations.get( resource_group_name=resource_group.name, environment_name="str", - api_version="2026-01-01", + config_name="str", ) - result = [r async for r in response] + # please add some check logic here by yourself # ... @@ -41,7 +41,7 @@ async def test_maintenance_configurations_create_or_update(self, resource_group) maintenance_configuration_envelope={ "id": "str", "name": "str", - "scheduledEntries": [{"durationHours": 0, "startHourUtc": 0, "weekDay": "str"}], + "properties": {"scheduledEntries": [{"durationHours": 0, "startHourUtc": 0, "weekDay": "str"}]}, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -52,7 +52,6 @@ async def test_maintenance_configurations_create_or_update(self, resource_group) }, "type": "str", }, - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -65,7 +64,6 @@ async def test_maintenance_configurations_delete(self, resource_group): resource_group_name=resource_group.name, environment_name="str", config_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -73,13 +71,11 @@ async def test_maintenance_configurations_delete(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_maintenance_configurations_get(self, resource_group): - response = await self.client.maintenance_configurations.get( + async def test_maintenance_configurations_list(self, resource_group): + response = self.client.maintenance_configurations.list( resource_group_name=resource_group.name, environment_name="str", - config_name="str", - api_version="2026-01-01", ) - + result = [r async for r in response] # please add some check logic here by yourself # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_certificates_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_certificates_operations.py index 2e399a8a7aed..5abd738b3caf 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_certificates_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_certificates_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -25,7 +25,6 @@ def test_managed_certificates_get(self, resource_group): resource_group_name=resource_group.name, environment_name="str", managed_certificate_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -38,7 +37,6 @@ def test_managed_certificates_begin_create_or_update(self, resource_group): resource_group_name=resource_group.name, environment_name="str", managed_certificate_name="str", - api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -46,12 +44,12 @@ def test_managed_certificates_begin_create_or_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_managed_certificates_delete(self, resource_group): - response = self.client.managed_certificates.delete( + def test_managed_certificates_update(self, resource_group): + response = self.client.managed_certificates.update( resource_group_name=resource_group.name, environment_name="str", managed_certificate_name="str", - api_version="2026-01-01", + managed_certificate_envelope={"tags": {"str": "str"}}, ) # please add some check logic here by yourself @@ -59,13 +57,11 @@ def test_managed_certificates_delete(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_managed_certificates_update(self, resource_group): - response = self.client.managed_certificates.update( + def test_managed_certificates_delete(self, resource_group): + response = self.client.managed_certificates.delete( resource_group_name=resource_group.name, environment_name="str", managed_certificate_name="str", - managed_certificate_envelope={"tags": {"str": "str"}}, - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -77,7 +73,6 @@ def test_managed_certificates_list(self, resource_group): response = self.client.managed_certificates.list( resource_group_name=resource_group.name, environment_name="str", - api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_certificates_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_certificates_operations_async.py index cb3e6cd06423..c7d3c5a003a5 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_certificates_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_certificates_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -26,7 +26,6 @@ async def test_managed_certificates_get(self, resource_group): resource_group_name=resource_group.name, environment_name="str", managed_certificate_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -40,7 +39,6 @@ async def test_managed_certificates_begin_create_or_update(self, resource_group) resource_group_name=resource_group.name, environment_name="str", managed_certificate_name="str", - api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -49,12 +47,12 @@ async def test_managed_certificates_begin_create_or_update(self, resource_group) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_managed_certificates_delete(self, resource_group): - response = await self.client.managed_certificates.delete( + async def test_managed_certificates_update(self, resource_group): + response = await self.client.managed_certificates.update( resource_group_name=resource_group.name, environment_name="str", managed_certificate_name="str", - api_version="2026-01-01", + managed_certificate_envelope={"tags": {"str": "str"}}, ) # please add some check logic here by yourself @@ -62,13 +60,11 @@ async def test_managed_certificates_delete(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_managed_certificates_update(self, resource_group): - response = await self.client.managed_certificates.update( + async def test_managed_certificates_delete(self, resource_group): + response = await self.client.managed_certificates.delete( resource_group_name=resource_group.name, environment_name="str", managed_certificate_name="str", - managed_certificate_envelope={"tags": {"str": "str"}}, - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -80,7 +76,6 @@ async def test_managed_certificates_list(self, resource_group): response = self.client.managed_certificates.list( resource_group_name=resource_group.name, environment_name="str", - api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_diagnostics_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_diagnostics_operations.py index 280f0243b94f..bd64a7e23b47 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_diagnostics_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_diagnostics_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -24,7 +24,6 @@ def test_managed_environment_diagnostics_list_detectors(self, resource_group): response = self.client.managed_environment_diagnostics.list_detectors( resource_group_name=resource_group.name, environment_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -37,7 +36,6 @@ def test_managed_environment_diagnostics_get_detector(self, resource_group): resource_group_name=resource_group.name, environment_name="str", detector_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_diagnostics_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_diagnostics_operations_async.py index bf383213f21b..6579c10b4c53 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_diagnostics_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_diagnostics_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -25,7 +25,6 @@ async def test_managed_environment_diagnostics_list_detectors(self, resource_gro response = await self.client.managed_environment_diagnostics.list_detectors( resource_group_name=resource_group.name, environment_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -38,7 +37,6 @@ async def test_managed_environment_diagnostics_get_detector(self, resource_group resource_group_name=resource_group.name, environment_name="str", detector_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_private_endpoint_connections_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_private_endpoint_connections_operations.py index 84eecb130471..68d4bb0eb6d7 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_private_endpoint_connections_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_private_endpoint_connections_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -18,18 +18,6 @@ class TestContainerAppsAPIManagedEnvironmentPrivateEndpointConnectionsOperations def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_managed_environment_private_endpoint_connections_list(self, resource_group): - response = self.client.managed_environment_private_endpoint_connections.list( - resource_group_name=resource_group.name, - environment_name="str", - api_version="2026-01-01", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_managed_environment_private_endpoint_connections_get(self, resource_group): @@ -37,7 +25,6 @@ def test_managed_environment_private_endpoint_connections_get(self, resource_gro resource_group_name=resource_group.name, environment_name="str", private_endpoint_connection_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -51,12 +38,18 @@ def test_managed_environment_private_endpoint_connections_begin_create_or_update environment_name="str", private_endpoint_connection_name="str", private_endpoint_connection_envelope={ - "groupIds": ["str"], "id": "str", "name": "str", - "privateEndpoint": {"id": "str"}, - "privateLinkServiceConnectionState": {"actionsRequired": "str", "description": "str", "status": "str"}, - "provisioningState": "str", + "properties": { + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", + }, + "groupIds": ["str"], + "privateEndpoint": {"id": "str"}, + "provisioningState": "str", + }, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -67,7 +60,6 @@ def test_managed_environment_private_endpoint_connections_begin_create_or_update }, "type": "str", }, - api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -80,8 +72,18 @@ def test_managed_environment_private_endpoint_connections_begin_delete(self, res resource_group_name=resource_group.name, environment_name="str", private_endpoint_connection_name="str", - api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_managed_environment_private_endpoint_connections_list(self, resource_group): + response = self.client.managed_environment_private_endpoint_connections.list( + resource_group_name=resource_group.name, + environment_name="str", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_private_endpoint_connections_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_private_endpoint_connections_operations_async.py index 2d40d4e89cc1..a014749ffb2c 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_private_endpoint_connections_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_private_endpoint_connections_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -19,18 +19,6 @@ class TestContainerAppsAPIManagedEnvironmentPrivateEndpointConnectionsOperations def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient, is_async=True) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_managed_environment_private_endpoint_connections_list(self, resource_group): - response = self.client.managed_environment_private_endpoint_connections.list( - resource_group_name=resource_group.name, - environment_name="str", - api_version="2026-01-01", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_managed_environment_private_endpoint_connections_get(self, resource_group): @@ -38,7 +26,6 @@ async def test_managed_environment_private_endpoint_connections_get(self, resour resource_group_name=resource_group.name, environment_name="str", private_endpoint_connection_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -53,16 +40,18 @@ async def test_managed_environment_private_endpoint_connections_begin_create_or_ environment_name="str", private_endpoint_connection_name="str", private_endpoint_connection_envelope={ - "groupIds": ["str"], "id": "str", "name": "str", - "privateEndpoint": {"id": "str"}, - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", + "properties": { + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", + }, + "groupIds": ["str"], + "privateEndpoint": {"id": "str"}, + "provisioningState": "str", }, - "provisioningState": "str", "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -73,7 +62,6 @@ async def test_managed_environment_private_endpoint_connections_begin_create_or_ }, "type": "str", }, - api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -88,9 +76,19 @@ async def test_managed_environment_private_endpoint_connections_begin_delete(sel resource_group_name=resource_group.name, environment_name="str", private_endpoint_connection_name="str", - api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_managed_environment_private_endpoint_connections_list(self, resource_group): + response = self.client.managed_environment_private_endpoint_connections.list( + resource_group_name=resource_group.name, + environment_name="str", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_private_link_resources_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_private_link_resources_operations.py index 18bdb8736dd5..32c2e5a78931 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_private_link_resources_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_private_link_resources_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -24,7 +24,6 @@ def test_managed_environment_private_link_resources_list(self, resource_group): response = self.client.managed_environment_private_link_resources.list( resource_group_name=resource_group.name, environment_name="str", - api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_private_link_resources_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_private_link_resources_operations_async.py index 7e8d25ae87ed..2d615d6611d6 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_private_link_resources_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_private_link_resources_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -25,7 +25,6 @@ async def test_managed_environment_private_link_resources_list(self, resource_gr response = self.client.managed_environment_private_link_resources.list( resource_group_name=resource_group.name, environment_name="str", - api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_usages_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_usages_operations.py index f2c77d504d9e..dc2b678f62c6 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_usages_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_usages_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -24,7 +24,6 @@ def test_managed_environment_usages_list(self, resource_group): response = self.client.managed_environment_usages.list( resource_group_name=resource_group.name, environment_name="str", - api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_usages_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_usages_operations_async.py index c31e8f177571..f22e91571325 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_usages_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environment_usages_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -25,7 +25,6 @@ async def test_managed_environment_usages_list(self, resource_group): response = self.client.managed_environment_usages.list( resource_group_name=resource_group.name, environment_name="str", - api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_diagnostics_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_diagnostics_operations.py index df3df6ff65fb..57b82a1f5b09 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_diagnostics_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_diagnostics_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -24,7 +24,6 @@ def test_managed_environments_diagnostics_get_root(self, resource_group): response = self.client.managed_environments_diagnostics.get_root( resource_group_name=resource_group.name, environment_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_diagnostics_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_diagnostics_operations_async.py index cd2ecfcae312..c2f2bd1df242 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_diagnostics_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_diagnostics_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -25,7 +25,6 @@ async def test_managed_environments_diagnostics_get_root(self, resource_group): response = await self.client.managed_environments_diagnostics.get_root( resource_group_name=resource_group.name, environment_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_operations.py index a97c6df2125b..78ec4c689c9f 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -18,34 +18,12 @@ class TestContainerAppsAPIManagedEnvironmentsOperations(AzureMgmtRecordedTestCas def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_managed_environments_list_by_subscription(self, resource_group): - response = self.client.managed_environments.list_by_subscription( - api_version="2026-01-01", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_managed_environments_list_by_resource_group(self, resource_group): - response = self.client.managed_environments.list_by_resource_group( - resource_group_name=resource_group.name, - api_version="2026-01-01", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_managed_environments_get(self, resource_group): response = self.client.managed_environments.get( resource_group_name=resource_group.name, environment_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -59,26 +37,6 @@ def test_managed_environments_begin_create_or_update(self, resource_group): environment_name="str", environment_envelope={ "location": "str", - "appLogsConfiguration": { - "destination": "str", - "logAnalyticsConfiguration": {"customerId": "str", "sharedKey": "str"}, - }, - "customDomainConfiguration": { - "certificateKeyVaultProperties": {"identity": "str", "keyVaultUrl": "str"}, - "certificatePassword": "str", - "certificateValue": bytes("bytes", encoding="utf-8"), - "customDomainVerificationId": "str", - "dnsSuffix": "str", - "expirationDate": "2020-02-20 00:00:00", - "subjectName": "str", - "thumbprint": "str", - }, - "daprAIConnectionString": "str", - "daprAIInstrumentationKey": "str", - "daprConfiguration": {"version": "str"}, - "defaultDomain": "str", - "deploymentErrors": "str", - "eventStreamEndpoint": "str", "id": "str", "identity": { "type": "str", @@ -86,44 +44,111 @@ def test_managed_environments_begin_create_or_update(self, resource_group): "tenantId": "str", "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, }, - "infrastructureResourceGroup": "str", - "ingressConfiguration": { - "headerCountLimit": 0, - "requestIdleTimeout": 0, - "terminationGracePeriodSeconds": 0, - "workloadProfileName": "str", - }, - "kedaConfiguration": {"version": "str"}, "kind": "str", "name": "str", - "peerAuthentication": {"mtls": {"enabled": bool}}, - "peerTrafficConfiguration": {"encryption": {"enabled": bool}}, - "privateEndpointConnections": [ - { - "groupIds": ["str"], - "id": "str", - "name": "str", - "privateEndpoint": {"id": "str"}, - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", + "properties": { + "appInsightsConfiguration": {"connectionString": "str"}, + "appLogsConfiguration": { + "destination": "str", + "logAnalyticsConfiguration": { + "customerId": "str", + "dynamicJsonColumns": bool, + "sharedKey": "str", }, - "provisioningState": "str", - "systemData": { - "createdAt": "2020-02-20 00:00:00", - "createdBy": "str", - "createdByType": "str", - "lastModifiedAt": "2020-02-20 00:00:00", - "lastModifiedBy": "str", - "lastModifiedByType": "str", + }, + "availabilityZones": ["str"], + "customDomainConfiguration": { + "certificateKeyVaultProperties": {"identity": "str", "keyVaultUrl": "str"}, + "certificatePassword": "str", + "certificateValue": bytes("bytes", encoding="utf-8"), + "customDomainVerificationId": "str", + "dnsSuffix": "str", + "expirationDate": "2020-02-20 00:00:00", + "subjectName": "str", + "thumbprint": "str", + }, + "daprAIConnectionString": "str", + "daprAIInstrumentationKey": "str", + "daprConfiguration": {"version": "str"}, + "defaultDomain": "str", + "deploymentErrors": "str", + "diskEncryptionConfiguration": { + "keyVaultConfiguration": {"auth": {"identity": "str"}, "keyUrl": "str"} + }, + "eventStreamEndpoint": "str", + "infrastructureResourceGroup": "str", + "ingressConfiguration": { + "headerCountLimit": 0, + "requestIdleTimeout": 0, + "terminationGracePeriodSeconds": 0, + "workloadProfileName": "str", + }, + "kedaConfiguration": {"version": "str"}, + "openTelemetryConfiguration": { + "destinationsConfiguration": { + "dataDogConfiguration": {"key": "str", "site": "str"}, + "otlpConfigurations": [ + { + "endpoint": "str", + "headers": [{"key": "str", "value": "str"}], + "insecure": bool, + "name": "str", + } + ], }, - "type": "str", - } - ], - "provisioningState": "str", - "publicNetworkAccess": "str", - "staticIp": "str", + "logsConfiguration": {"destinations": ["str"]}, + "metricsConfiguration": {"destinations": ["str"], "includeKeda": bool}, + "tracesConfiguration": {"destinations": ["str"], "includeDapr": bool}, + }, + "peerAuthentication": {"mtls": {"enabled": bool}}, + "peerTrafficConfiguration": {"encryption": {"enabled": bool}}, + "privateEndpointConnections": [ + { + "id": "str", + "name": "str", + "properties": { + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", + }, + "groupIds": ["str"], + "privateEndpoint": {"id": "str"}, + "provisioningState": "str", + }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "type": "str", + } + ], + "privateLinkDefaultDomain": "str", + "provisioningState": "str", + "publicNetworkAccess": "str", + "staticIp": "str", + "vnetConfiguration": { + "dockerBridgeCidr": "str", + "infrastructureSubnetId": "str", + "internal": bool, + "platformReservedCidr": "str", + "platformReservedDnsIP": "str", + }, + "workloadProfiles": [ + { + "name": "str", + "workloadProfileType": "str", + "enableFips": bool, + "maximumCount": 0, + "minimumCount": 0, + } + ], + "zoneRedundant": bool, + }, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -134,31 +159,7 @@ def test_managed_environments_begin_create_or_update(self, resource_group): }, "tags": {"str": "str"}, "type": "str", - "vnetConfiguration": { - "dockerBridgeCidr": "str", - "infrastructureSubnetId": "str", - "internal": bool, - "platformReservedCidr": "str", - "platformReservedDnsIP": "str", - }, - "workloadProfiles": [ - {"name": "str", "workloadProfileType": "str", "maximumCount": 0, "minimumCount": 0} - ], - "zoneRedundant": bool, }, - api_version="2026-01-01", - ).result() # call '.result()' to poll until service return final result - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_managed_environments_begin_delete(self, resource_group): - response = self.client.managed_environments.begin_delete( - resource_group_name=resource_group.name, - environment_name="str", - api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -172,26 +173,6 @@ def test_managed_environments_begin_update(self, resource_group): environment_name="str", environment_envelope={ "location": "str", - "appLogsConfiguration": { - "destination": "str", - "logAnalyticsConfiguration": {"customerId": "str", "sharedKey": "str"}, - }, - "customDomainConfiguration": { - "certificateKeyVaultProperties": {"identity": "str", "keyVaultUrl": "str"}, - "certificatePassword": "str", - "certificateValue": bytes("bytes", encoding="utf-8"), - "customDomainVerificationId": "str", - "dnsSuffix": "str", - "expirationDate": "2020-02-20 00:00:00", - "subjectName": "str", - "thumbprint": "str", - }, - "daprAIConnectionString": "str", - "daprAIInstrumentationKey": "str", - "daprConfiguration": {"version": "str"}, - "defaultDomain": "str", - "deploymentErrors": "str", - "eventStreamEndpoint": "str", "id": "str", "identity": { "type": "str", @@ -199,44 +180,111 @@ def test_managed_environments_begin_update(self, resource_group): "tenantId": "str", "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, }, - "infrastructureResourceGroup": "str", - "ingressConfiguration": { - "headerCountLimit": 0, - "requestIdleTimeout": 0, - "terminationGracePeriodSeconds": 0, - "workloadProfileName": "str", - }, - "kedaConfiguration": {"version": "str"}, "kind": "str", "name": "str", - "peerAuthentication": {"mtls": {"enabled": bool}}, - "peerTrafficConfiguration": {"encryption": {"enabled": bool}}, - "privateEndpointConnections": [ - { - "groupIds": ["str"], - "id": "str", - "name": "str", - "privateEndpoint": {"id": "str"}, - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", + "properties": { + "appInsightsConfiguration": {"connectionString": "str"}, + "appLogsConfiguration": { + "destination": "str", + "logAnalyticsConfiguration": { + "customerId": "str", + "dynamicJsonColumns": bool, + "sharedKey": "str", }, - "provisioningState": "str", - "systemData": { - "createdAt": "2020-02-20 00:00:00", - "createdBy": "str", - "createdByType": "str", - "lastModifiedAt": "2020-02-20 00:00:00", - "lastModifiedBy": "str", - "lastModifiedByType": "str", + }, + "availabilityZones": ["str"], + "customDomainConfiguration": { + "certificateKeyVaultProperties": {"identity": "str", "keyVaultUrl": "str"}, + "certificatePassword": "str", + "certificateValue": bytes("bytes", encoding="utf-8"), + "customDomainVerificationId": "str", + "dnsSuffix": "str", + "expirationDate": "2020-02-20 00:00:00", + "subjectName": "str", + "thumbprint": "str", + }, + "daprAIConnectionString": "str", + "daprAIInstrumentationKey": "str", + "daprConfiguration": {"version": "str"}, + "defaultDomain": "str", + "deploymentErrors": "str", + "diskEncryptionConfiguration": { + "keyVaultConfiguration": {"auth": {"identity": "str"}, "keyUrl": "str"} + }, + "eventStreamEndpoint": "str", + "infrastructureResourceGroup": "str", + "ingressConfiguration": { + "headerCountLimit": 0, + "requestIdleTimeout": 0, + "terminationGracePeriodSeconds": 0, + "workloadProfileName": "str", + }, + "kedaConfiguration": {"version": "str"}, + "openTelemetryConfiguration": { + "destinationsConfiguration": { + "dataDogConfiguration": {"key": "str", "site": "str"}, + "otlpConfigurations": [ + { + "endpoint": "str", + "headers": [{"key": "str", "value": "str"}], + "insecure": bool, + "name": "str", + } + ], }, - "type": "str", - } - ], - "provisioningState": "str", - "publicNetworkAccess": "str", - "staticIp": "str", + "logsConfiguration": {"destinations": ["str"]}, + "metricsConfiguration": {"destinations": ["str"], "includeKeda": bool}, + "tracesConfiguration": {"destinations": ["str"], "includeDapr": bool}, + }, + "peerAuthentication": {"mtls": {"enabled": bool}}, + "peerTrafficConfiguration": {"encryption": {"enabled": bool}}, + "privateEndpointConnections": [ + { + "id": "str", + "name": "str", + "properties": { + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", + }, + "groupIds": ["str"], + "privateEndpoint": {"id": "str"}, + "provisioningState": "str", + }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "type": "str", + } + ], + "privateLinkDefaultDomain": "str", + "provisioningState": "str", + "publicNetworkAccess": "str", + "staticIp": "str", + "vnetConfiguration": { + "dockerBridgeCidr": "str", + "infrastructureSubnetId": "str", + "internal": bool, + "platformReservedCidr": "str", + "platformReservedDnsIP": "str", + }, + "workloadProfiles": [ + { + "name": "str", + "workloadProfileType": "str", + "enableFips": bool, + "maximumCount": 0, + "minimumCount": 0, + } + ], + "zoneRedundant": bool, + }, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -247,31 +295,47 @@ def test_managed_environments_begin_update(self, resource_group): }, "tags": {"str": "str"}, "type": "str", - "vnetConfiguration": { - "dockerBridgeCidr": "str", - "infrastructureSubnetId": "str", - "internal": bool, - "platformReservedCidr": "str", - "platformReservedDnsIP": "str", - }, - "workloadProfiles": [ - {"name": "str", "workloadProfileType": "str", "maximumCount": 0, "minimumCount": 0} - ], - "zoneRedundant": bool, }, - api_version="2026-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_managed_environments_begin_delete(self, resource_group): + response = self.client.managed_environments.begin_delete( + resource_group_name=resource_group.name, + environment_name="str", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_managed_environments_list_by_resource_group(self, resource_group): + response = self.client.managed_environments.list_by_resource_group( + resource_group_name=resource_group.name, + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_managed_environments_list_by_subscription(self, resource_group): + response = self.client.managed_environments.list_by_subscription() + result = [r for r in response] + # please add some check logic here by yourself + # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_managed_environments_get_auth_token(self, resource_group): response = self.client.managed_environments.get_auth_token( resource_group_name=resource_group.name, environment_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -283,7 +347,6 @@ def test_managed_environments_list_workload_profile_states(self, resource_group) response = self.client.managed_environments.list_workload_profile_states( resource_group_name=resource_group.name, environment_name="str", - api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_operations_async.py index 66dd97e6e1e6..30d98d528349 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -19,34 +19,12 @@ class TestContainerAppsAPIManagedEnvironmentsOperationsAsync(AzureMgmtRecordedTe def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient, is_async=True) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_managed_environments_list_by_subscription(self, resource_group): - response = self.client.managed_environments.list_by_subscription( - api_version="2026-01-01", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_managed_environments_list_by_resource_group(self, resource_group): - response = self.client.managed_environments.list_by_resource_group( - resource_group_name=resource_group.name, - api_version="2026-01-01", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_managed_environments_get(self, resource_group): response = await self.client.managed_environments.get( resource_group_name=resource_group.name, environment_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -61,26 +39,6 @@ async def test_managed_environments_begin_create_or_update(self, resource_group) environment_name="str", environment_envelope={ "location": "str", - "appLogsConfiguration": { - "destination": "str", - "logAnalyticsConfiguration": {"customerId": "str", "sharedKey": "str"}, - }, - "customDomainConfiguration": { - "certificateKeyVaultProperties": {"identity": "str", "keyVaultUrl": "str"}, - "certificatePassword": "str", - "certificateValue": bytes("bytes", encoding="utf-8"), - "customDomainVerificationId": "str", - "dnsSuffix": "str", - "expirationDate": "2020-02-20 00:00:00", - "subjectName": "str", - "thumbprint": "str", - }, - "daprAIConnectionString": "str", - "daprAIInstrumentationKey": "str", - "daprConfiguration": {"version": "str"}, - "defaultDomain": "str", - "deploymentErrors": "str", - "eventStreamEndpoint": "str", "id": "str", "identity": { "type": "str", @@ -88,44 +46,111 @@ async def test_managed_environments_begin_create_or_update(self, resource_group) "tenantId": "str", "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, }, - "infrastructureResourceGroup": "str", - "ingressConfiguration": { - "headerCountLimit": 0, - "requestIdleTimeout": 0, - "terminationGracePeriodSeconds": 0, - "workloadProfileName": "str", - }, - "kedaConfiguration": {"version": "str"}, "kind": "str", "name": "str", - "peerAuthentication": {"mtls": {"enabled": bool}}, - "peerTrafficConfiguration": {"encryption": {"enabled": bool}}, - "privateEndpointConnections": [ - { - "groupIds": ["str"], - "id": "str", - "name": "str", - "privateEndpoint": {"id": "str"}, - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", + "properties": { + "appInsightsConfiguration": {"connectionString": "str"}, + "appLogsConfiguration": { + "destination": "str", + "logAnalyticsConfiguration": { + "customerId": "str", + "dynamicJsonColumns": bool, + "sharedKey": "str", }, - "provisioningState": "str", - "systemData": { - "createdAt": "2020-02-20 00:00:00", - "createdBy": "str", - "createdByType": "str", - "lastModifiedAt": "2020-02-20 00:00:00", - "lastModifiedBy": "str", - "lastModifiedByType": "str", + }, + "availabilityZones": ["str"], + "customDomainConfiguration": { + "certificateKeyVaultProperties": {"identity": "str", "keyVaultUrl": "str"}, + "certificatePassword": "str", + "certificateValue": bytes("bytes", encoding="utf-8"), + "customDomainVerificationId": "str", + "dnsSuffix": "str", + "expirationDate": "2020-02-20 00:00:00", + "subjectName": "str", + "thumbprint": "str", + }, + "daprAIConnectionString": "str", + "daprAIInstrumentationKey": "str", + "daprConfiguration": {"version": "str"}, + "defaultDomain": "str", + "deploymentErrors": "str", + "diskEncryptionConfiguration": { + "keyVaultConfiguration": {"auth": {"identity": "str"}, "keyUrl": "str"} + }, + "eventStreamEndpoint": "str", + "infrastructureResourceGroup": "str", + "ingressConfiguration": { + "headerCountLimit": 0, + "requestIdleTimeout": 0, + "terminationGracePeriodSeconds": 0, + "workloadProfileName": "str", + }, + "kedaConfiguration": {"version": "str"}, + "openTelemetryConfiguration": { + "destinationsConfiguration": { + "dataDogConfiguration": {"key": "str", "site": "str"}, + "otlpConfigurations": [ + { + "endpoint": "str", + "headers": [{"key": "str", "value": "str"}], + "insecure": bool, + "name": "str", + } + ], }, - "type": "str", - } - ], - "provisioningState": "str", - "publicNetworkAccess": "str", - "staticIp": "str", + "logsConfiguration": {"destinations": ["str"]}, + "metricsConfiguration": {"destinations": ["str"], "includeKeda": bool}, + "tracesConfiguration": {"destinations": ["str"], "includeDapr": bool}, + }, + "peerAuthentication": {"mtls": {"enabled": bool}}, + "peerTrafficConfiguration": {"encryption": {"enabled": bool}}, + "privateEndpointConnections": [ + { + "id": "str", + "name": "str", + "properties": { + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", + }, + "groupIds": ["str"], + "privateEndpoint": {"id": "str"}, + "provisioningState": "str", + }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "type": "str", + } + ], + "privateLinkDefaultDomain": "str", + "provisioningState": "str", + "publicNetworkAccess": "str", + "staticIp": "str", + "vnetConfiguration": { + "dockerBridgeCidr": "str", + "infrastructureSubnetId": "str", + "internal": bool, + "platformReservedCidr": "str", + "platformReservedDnsIP": "str", + }, + "workloadProfiles": [ + { + "name": "str", + "workloadProfileType": "str", + "enableFips": bool, + "maximumCount": 0, + "minimumCount": 0, + } + ], + "zoneRedundant": bool, + }, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -136,33 +161,7 @@ async def test_managed_environments_begin_create_or_update(self, resource_group) }, "tags": {"str": "str"}, "type": "str", - "vnetConfiguration": { - "dockerBridgeCidr": "str", - "infrastructureSubnetId": "str", - "internal": bool, - "platformReservedCidr": "str", - "platformReservedDnsIP": "str", - }, - "workloadProfiles": [ - {"name": "str", "workloadProfileType": "str", "maximumCount": 0, "minimumCount": 0} - ], - "zoneRedundant": bool, }, - api_version="2026-01-01", - ) - ).result() # call '.result()' to poll until service return final result - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_managed_environments_begin_delete(self, resource_group): - response = await ( - await self.client.managed_environments.begin_delete( - resource_group_name=resource_group.name, - environment_name="str", - api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -178,26 +177,6 @@ async def test_managed_environments_begin_update(self, resource_group): environment_name="str", environment_envelope={ "location": "str", - "appLogsConfiguration": { - "destination": "str", - "logAnalyticsConfiguration": {"customerId": "str", "sharedKey": "str"}, - }, - "customDomainConfiguration": { - "certificateKeyVaultProperties": {"identity": "str", "keyVaultUrl": "str"}, - "certificatePassword": "str", - "certificateValue": bytes("bytes", encoding="utf-8"), - "customDomainVerificationId": "str", - "dnsSuffix": "str", - "expirationDate": "2020-02-20 00:00:00", - "subjectName": "str", - "thumbprint": "str", - }, - "daprAIConnectionString": "str", - "daprAIInstrumentationKey": "str", - "daprConfiguration": {"version": "str"}, - "defaultDomain": "str", - "deploymentErrors": "str", - "eventStreamEndpoint": "str", "id": "str", "identity": { "type": "str", @@ -205,44 +184,111 @@ async def test_managed_environments_begin_update(self, resource_group): "tenantId": "str", "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, }, - "infrastructureResourceGroup": "str", - "ingressConfiguration": { - "headerCountLimit": 0, - "requestIdleTimeout": 0, - "terminationGracePeriodSeconds": 0, - "workloadProfileName": "str", - }, - "kedaConfiguration": {"version": "str"}, "kind": "str", "name": "str", - "peerAuthentication": {"mtls": {"enabled": bool}}, - "peerTrafficConfiguration": {"encryption": {"enabled": bool}}, - "privateEndpointConnections": [ - { - "groupIds": ["str"], - "id": "str", - "name": "str", - "privateEndpoint": {"id": "str"}, - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", + "properties": { + "appInsightsConfiguration": {"connectionString": "str"}, + "appLogsConfiguration": { + "destination": "str", + "logAnalyticsConfiguration": { + "customerId": "str", + "dynamicJsonColumns": bool, + "sharedKey": "str", }, - "provisioningState": "str", - "systemData": { - "createdAt": "2020-02-20 00:00:00", - "createdBy": "str", - "createdByType": "str", - "lastModifiedAt": "2020-02-20 00:00:00", - "lastModifiedBy": "str", - "lastModifiedByType": "str", + }, + "availabilityZones": ["str"], + "customDomainConfiguration": { + "certificateKeyVaultProperties": {"identity": "str", "keyVaultUrl": "str"}, + "certificatePassword": "str", + "certificateValue": bytes("bytes", encoding="utf-8"), + "customDomainVerificationId": "str", + "dnsSuffix": "str", + "expirationDate": "2020-02-20 00:00:00", + "subjectName": "str", + "thumbprint": "str", + }, + "daprAIConnectionString": "str", + "daprAIInstrumentationKey": "str", + "daprConfiguration": {"version": "str"}, + "defaultDomain": "str", + "deploymentErrors": "str", + "diskEncryptionConfiguration": { + "keyVaultConfiguration": {"auth": {"identity": "str"}, "keyUrl": "str"} + }, + "eventStreamEndpoint": "str", + "infrastructureResourceGroup": "str", + "ingressConfiguration": { + "headerCountLimit": 0, + "requestIdleTimeout": 0, + "terminationGracePeriodSeconds": 0, + "workloadProfileName": "str", + }, + "kedaConfiguration": {"version": "str"}, + "openTelemetryConfiguration": { + "destinationsConfiguration": { + "dataDogConfiguration": {"key": "str", "site": "str"}, + "otlpConfigurations": [ + { + "endpoint": "str", + "headers": [{"key": "str", "value": "str"}], + "insecure": bool, + "name": "str", + } + ], }, - "type": "str", - } - ], - "provisioningState": "str", - "publicNetworkAccess": "str", - "staticIp": "str", + "logsConfiguration": {"destinations": ["str"]}, + "metricsConfiguration": {"destinations": ["str"], "includeKeda": bool}, + "tracesConfiguration": {"destinations": ["str"], "includeDapr": bool}, + }, + "peerAuthentication": {"mtls": {"enabled": bool}}, + "peerTrafficConfiguration": {"encryption": {"enabled": bool}}, + "privateEndpointConnections": [ + { + "id": "str", + "name": "str", + "properties": { + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", + }, + "groupIds": ["str"], + "privateEndpoint": {"id": "str"}, + "provisioningState": "str", + }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "type": "str", + } + ], + "privateLinkDefaultDomain": "str", + "provisioningState": "str", + "publicNetworkAccess": "str", + "staticIp": "str", + "vnetConfiguration": { + "dockerBridgeCidr": "str", + "infrastructureSubnetId": "str", + "internal": bool, + "platformReservedCidr": "str", + "platformReservedDnsIP": "str", + }, + "workloadProfiles": [ + { + "name": "str", + "workloadProfileType": "str", + "enableFips": bool, + "maximumCount": 0, + "minimumCount": 0, + } + ], + "zoneRedundant": bool, + }, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -253,32 +299,50 @@ async def test_managed_environments_begin_update(self, resource_group): }, "tags": {"str": "str"}, "type": "str", - "vnetConfiguration": { - "dockerBridgeCidr": "str", - "infrastructureSubnetId": "str", - "internal": bool, - "platformReservedCidr": "str", - "platformReservedDnsIP": "str", - }, - "workloadProfiles": [ - {"name": "str", "workloadProfileType": "str", "maximumCount": 0, "minimumCount": 0} - ], - "zoneRedundant": bool, }, - api_version="2026-01-01", ) ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_managed_environments_begin_delete(self, resource_group): + response = await ( + await self.client.managed_environments.begin_delete( + resource_group_name=resource_group.name, + environment_name="str", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_managed_environments_list_by_resource_group(self, resource_group): + response = self.client.managed_environments.list_by_resource_group( + resource_group_name=resource_group.name, + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_managed_environments_list_by_subscription(self, resource_group): + response = self.client.managed_environments.list_by_subscription() + result = [r async for r in response] + # please add some check logic here by yourself + # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_managed_environments_get_auth_token(self, resource_group): response = await self.client.managed_environments.get_auth_token( resource_group_name=resource_group.name, environment_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -290,7 +354,6 @@ async def test_managed_environments_list_workload_profile_states(self, resource_ response = self.client.managed_environments.list_workload_profile_states( resource_group_name=resource_group.name, environment_name="str", - api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_storages_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_storages_operations.py index 162f1cec15cf..7d4be921cca6 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_storages_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_storages_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -18,18 +18,6 @@ class TestContainerAppsAPIManagedEnvironmentsStoragesOperations(AzureMgmtRecorde def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_managed_environments_storages_list(self, resource_group): - response = self.client.managed_environments_storages.list( - resource_group_name=resource_group.name, - environment_name="str", - api_version="2026-01-01", - ) - - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_managed_environments_storages_get(self, resource_group): @@ -37,7 +25,6 @@ def test_managed_environments_storages_get(self, resource_group): resource_group_name=resource_group.name, environment_name="str", storage_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -73,7 +60,6 @@ def test_managed_environments_storages_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -86,7 +72,17 @@ def test_managed_environments_storages_delete(self, resource_group): resource_group_name=resource_group.name, environment_name="str", storage_name="str", - api_version="2026-01-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_managed_environments_storages_list(self, resource_group): + response = self.client.managed_environments_storages.list( + resource_group_name=resource_group.name, + environment_name="str", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_storages_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_storages_operations_async.py index 2eefc35b55f2..93c4e5dd95ea 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_storages_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_managed_environments_storages_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -19,18 +19,6 @@ class TestContainerAppsAPIManagedEnvironmentsStoragesOperationsAsync(AzureMgmtRe def setup_method(self, method): self.client = self.create_mgmt_client(ContainerAppsAPIClient, is_async=True) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_managed_environments_storages_list(self, resource_group): - response = await self.client.managed_environments_storages.list( - resource_group_name=resource_group.name, - environment_name="str", - api_version="2026-01-01", - ) - - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_managed_environments_storages_get(self, resource_group): @@ -38,7 +26,6 @@ async def test_managed_environments_storages_get(self, resource_group): resource_group_name=resource_group.name, environment_name="str", storage_name="str", - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -74,7 +61,6 @@ async def test_managed_environments_storages_create_or_update(self, resource_gro }, "type": "str", }, - api_version="2026-01-01", ) # please add some check logic here by yourself @@ -87,7 +73,17 @@ async def test_managed_environments_storages_delete(self, resource_group): resource_group_name=resource_group.name, environment_name="str", storage_name="str", - api_version="2026-01-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_managed_environments_storages_list(self, resource_group): + response = await self.client.managed_environments_storages.list( + resource_group_name=resource_group.name, + environment_name="str", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_namespaces_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_namespaces_operations.py index 88dd65c75c1a..7f2891b54205 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_namespaces_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_namespaces_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -25,7 +25,6 @@ def test_namespaces_check_name_availability(self, resource_group): resource_group_name=resource_group.name, environment_name="str", check_name_availability_request={"name": "str", "type": "str"}, - api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_namespaces_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_namespaces_operations_async.py index 247eed9906ce..5a82c354fa21 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_namespaces_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_namespaces_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -26,7 +26,6 @@ async def test_namespaces_check_name_availability(self, resource_group): resource_group_name=resource_group.name, environment_name="str", check_name_availability_request={"name": "str", "type": "str"}, - api_version="2026-01-01", ) # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_operations.py index 4ea664d5c0ca..3adabaad155e 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -21,9 +21,7 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_operations_list(self, resource_group): - response = self.client.operations.list( - api_version="2026-01-01", - ) + response = self.client.operations.list() result = [r for r in response] # please add some check logic here by yourself # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_operations_async.py index f53d7454fb44..c12477116002 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -22,9 +22,7 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_operations_list(self, resource_group): - response = self.client.operations.list( - api_version="2026-01-01", - ) + response = self.client.operations.list() result = [r async for r in response] # please add some check logic here by yourself # ... diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_usages_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_usages_operations.py index 5c1fc5e53b0f..aa02df7cd9ff 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_usages_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_usages_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -23,7 +23,6 @@ def setup_method(self, method): def test_usages_list(self, resource_group): response = self.client.usages.list( location="str", - api_version="2026-01-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_usages_operations_async.py b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_usages_operations_async.py index 1c308a76feee..70c8e6a60323 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_usages_operations_async.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/generated_tests/test_container_apps_api_usages_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -24,7 +24,6 @@ def setup_method(self, method): async def test_usages_list(self, resource_group): response = self.client.usages.list( location="str", - api_version="2026-01-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/pyproject.toml b/sdk/appcontainers/azure-mgmt-appcontainers/pyproject.toml index 42b92ca34d65..2b7b2b0c1245 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/pyproject.toml +++ b/sdk/appcontainers/azure-mgmt-appcontainers/pyproject.toml @@ -13,7 +13,7 @@ authors = [ description = "Microsoft Azure Appcontainers Management Client Library for Python" license = "MIT" classifiers = [ - "Development Status :: 5 - Production/Stable", + "Development Status :: 4 - Beta", "Programming Language :: Python", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3", @@ -79,7 +79,7 @@ package_name = "azure-mgmt-appcontainers" package_nspkg = "azure-mgmt-nspkg" package_pprint_name = "Appcontainers Management" package_doc_id = "" -is_stable = true +is_stable = false is_arm = true need_msrestazure = false need_azuremgmtcore = true diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/tsp-location.yaml b/sdk/appcontainers/azure-mgmt-appcontainers/tsp-location.yaml new file mode 100644 index 000000000000..d1b5022ee395 --- /dev/null +++ b/sdk/appcontainers/azure-mgmt-appcontainers/tsp-location.yaml @@ -0,0 +1,4 @@ +directory: specification/app/resource-manager/Microsoft.App/ContainerApps +commit: 8adb6c33d91b2c9d401dd9a062a37dc5054884e8 +repo: Azure/azure-rest-api-specs +additionalDirectories: From d1032a125e3715f86f8e1b0785e6993c941b363b Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 Date: Wed, 8 Apr 2026 11:51:21 +0800 Subject: [PATCH 3/7] changelog from report comparison --- .../azure-mgmt-appcontainers/CHANGELOG.md | 101 +++++++++++++++++- 1 file changed, 98 insertions(+), 3 deletions(-) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/CHANGELOG.md b/sdk/appcontainers/azure-mgmt-appcontainers/CHANGELOG.md index d50a40621e5d..4416cdde634e 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/CHANGELOG.md +++ b/sdk/appcontainers/azure-mgmt-appcontainers/CHANGELOG.md @@ -2,11 +2,106 @@ ## 4.1.0b1 (2026-04-08) -skip changelog generation +### Features Added + + - Client `ContainerAppsAPIClient` added method `send_request` + - Model `BuildResource` added property `properties` + - Model `BuilderResource` added property `properties` + - Model `ContainerAppsBuildResource` added property `properties` + - Model `HeaderMatch` added property `match` + - Model `HttpRetryPolicy` added property `retry_back_off` + - Model `HttpRetryPolicy` added property `matches` + - Model `JobExecution` added property `system_data` + - Model `MaintenanceConfigurationResource` added property `properties` + - Model `Usage` added property `unit` + - Added model `BuildProperties` + - Added model `BuilderProperties` + - Added model `ContainerAppsBuildProperties` + - Added model `HeaderMatchMatch` + - Added model `HttpRetryPolicyMatches` + - Added model `HttpRetryPolicyRetryBackOff` + - Added model `LogicAppProperties` + - Added model `Object` + - Added model `RuntimeJavaJavaAgent` + - Added model `RuntimeJavaJavaAgentLogging` + - Added model `ScheduledEntries` -## 4.1.0 (2026-04-08) +### Breaking Changes -skip changelog generation + - Method `BaseContainer.__init__` removed default value `None` from its parameter `args` + - Method `BaseContainer.__init__` changed its parameter `args` from `keyword_only` to `var_positional` + - Model `BuildResource` deleted or renamed its instance variable `provisioning_state` + - Model `BuildResource` deleted or renamed its instance variable `build_status` + - Model `BuildResource` deleted or renamed its instance variable `destination_container_registry` + - Model `BuildResource` deleted or renamed its instance variable `configuration` + - Model `BuildResource` deleted or renamed its instance variable `upload_endpoint` + - Model `BuildResource` deleted or renamed its instance variable `log_stream_endpoint` + - Model `BuildResource` deleted or renamed its instance variable `token_endpoint` + - Model `BuilderResource` deleted or renamed its instance variable `provisioning_state` + - Model `BuilderResource` deleted or renamed its instance variable `environment_id` + - Model `BuilderResource` deleted or renamed its instance variable `container_registries` + - Method `Container.__init__` removed default value `None` from its parameter `args` + - Method `Container.__init__` changed its parameter `args` from `keyword_only` to `var_positional` + - Model `ContainerAppsBuildResource` deleted or renamed its instance variable `provisioning_state` + - Model `ContainerAppsBuildResource` deleted or renamed its instance variable `build_status` + - Model `ContainerAppsBuildResource` deleted or renamed its instance variable `destination_container_registry` + - Model `ContainerAppsBuildResource` deleted or renamed its instance variable `configuration` + - Model `ContainerAppsBuildResource` deleted or renamed its instance variable `log_stream_endpoint` + - Model `HeaderMatch` deleted or renamed its instance variable `exact_match` + - Model `HeaderMatch` deleted or renamed its instance variable `prefix_match` + - Model `HeaderMatch` deleted or renamed its instance variable `suffix_match` + - Model `HeaderMatch` deleted or renamed its instance variable `regex_match` + - Model `HttpRetryPolicy` deleted or renamed its instance variable `headers` + - Model `HttpRetryPolicy` deleted or renamed its instance variable `http_status_codes` + - Model `HttpRetryPolicy` deleted or renamed its instance variable `errors` + - Model `HttpRetryPolicy` deleted or renamed its instance variable `initial_delay_in_milliseconds` + - Model `HttpRetryPolicy` deleted or renamed its instance variable `max_interval_in_milliseconds` + - Method `InitContainer.__init__` removed default value `None` from its parameter `args` + - Method `InitContainer.__init__` changed its parameter `args` from `keyword_only` to `var_positional` + - Method `JobExecutionContainer.__init__` removed default value `None` from its parameter `args` + - Method `JobExecutionContainer.__init__` changed its parameter `args` from `keyword_only` to `var_positional` + - Model `MaintenanceConfigurationResource` deleted or renamed its instance variable `scheduled_entries` + - Method `SessionContainer.__init__` removed default value `None` from its parameter `args` + - Method `SessionContainer.__init__` changed its parameter `args` from `keyword_only` to `var_positional` + - Deleted or renamed model `AppResiliencyCollection` + - Deleted or renamed model `AuthConfigCollection` + - Deleted or renamed model `AvailableOperations` + - Deleted or renamed model `AvailableWorkloadProfilesCollection` + - Deleted or renamed model `BuildCollection` + - Deleted or renamed model `BuilderCollection` + - Deleted or renamed model `CertificateCollection` + - Deleted or renamed model `ConnectedEnvironmentCollection` + - Deleted or renamed model `ContainerAppCollection` + - Deleted or renamed model `ContainerAppsBuildCollection` + - Deleted or renamed model `ContainerAppsFunctionCollection` + - Deleted or renamed model `DaprComponentResiliencyPoliciesCollection` + - Deleted or renamed model `DaprComponentsCollection` + - Deleted or renamed model `DaprSubscriptionsCollection` + - Deleted or renamed model `DotNetComponentsCollection` + - Deleted or renamed model `HttpRouteConfigCollection` + - Deleted or renamed model `JavaComponentsCollection` + - Deleted or renamed model `JobExecutionNamesCollection` + - Deleted or renamed model `JobsCollection` + - Deleted or renamed model `LabelHistoryCollection` + - Deleted or renamed model `ListUsagesResult` + - Deleted or renamed model `MaintenanceConfigurationCollection` + - Deleted or renamed model `ManagedCertificateCollection` + - Deleted or renamed model `ManagedEnvironmentsCollection` + - Deleted or renamed model `PatchCollection` + - Deleted or renamed model `RevisionCollection` + - Deleted or renamed model `RuntimeJavaAgent` + - Deleted or renamed model `RuntimeJavaAgentLogging` + - Deleted or renamed model `SessionPoolCollection` + - Deleted or renamed model `SourceControlCollection` + - Deleted or renamed model `WorkflowEnvelopeCollection` + - Deleted or renamed model `WorkloadProfileStatesCollection` + - Method `ContainerAppsOperations.list_custom_host_name_analysis` changed its parameter `custom_hostname` from `positional_or_keyword` to `keyword_only` + - Method `ContainerAppsSourceControlsOperations.begin_create_or_update` changed its parameter `x_ms_github_auxiliary` from `positional_or_keyword` to `keyword_only` + - Method `ContainerAppsSourceControlsOperations.begin_delete` changed its parameter `x_ms_github_auxiliary` from `positional_or_keyword` to `keyword_only` + - Method `ContainerAppsSourceControlsOperations.begin_delete` changed its parameter `ignore_workflow_deletion_failure` from `positional_or_keyword` to `keyword_only` + - Method `ContainerAppsSourceControlsOperations.begin_delete` changed its parameter `delete_workflow` from `positional_or_keyword` to `keyword_only` + - Method `LogicAppsOperations.invoke` changed its parameter `x_ms_logic_apps_proxy_path` from `positional_or_keyword` to `keyword_only` + - Method `LogicAppsOperations.invoke` changed its parameter `x_ms_logic_apps_proxy_method` from `positional_or_keyword` to `keyword_only` ## 4.0.0 (2025-10-24) From 6d9ca0c7df2b11f2b29aa74d6d9bbd0726e171e2 Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 Date: Wed, 8 Apr 2026 15:30:14 +0800 Subject: [PATCH 4/7] generated from typespec:63b90b234bd84828c9afe815cef6e9f8a1e962ff --- .../azure-mgmt-appcontainers/CHANGELOG.md | 101 +- .../azure-mgmt-appcontainers/_metadata.json | 2 +- .../apiview-properties.json | 42 +- .../azure/mgmt/appcontainers/_client.py | 12 +- .../azure/mgmt/appcontainers/aio/_client.py | 12 +- .../appcontainers/aio/operations/__init__.py | 4 +- .../aio/operations/_operations.py | 2798 +++++++------- .../mgmt/appcontainers/models/__init__.py | 8 +- .../mgmt/appcontainers/models/_models.py | 16 +- .../mgmt/appcontainers/operations/__init__.py | 4 +- .../appcontainers/operations/_operations.py | 3236 ++++++++--------- .../code_report_typespec.json | 20 +- .../tsp-location.yaml | 2 +- 13 files changed, 3079 insertions(+), 3178 deletions(-) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/CHANGELOG.md b/sdk/appcontainers/azure-mgmt-appcontainers/CHANGELOG.md index 4416cdde634e..4f7b1aa22de5 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/CHANGELOG.md +++ b/sdk/appcontainers/azure-mgmt-appcontainers/CHANGELOG.md @@ -2,106 +2,7 @@ ## 4.1.0b1 (2026-04-08) -### Features Added - - - Client `ContainerAppsAPIClient` added method `send_request` - - Model `BuildResource` added property `properties` - - Model `BuilderResource` added property `properties` - - Model `ContainerAppsBuildResource` added property `properties` - - Model `HeaderMatch` added property `match` - - Model `HttpRetryPolicy` added property `retry_back_off` - - Model `HttpRetryPolicy` added property `matches` - - Model `JobExecution` added property `system_data` - - Model `MaintenanceConfigurationResource` added property `properties` - - Model `Usage` added property `unit` - - Added model `BuildProperties` - - Added model `BuilderProperties` - - Added model `ContainerAppsBuildProperties` - - Added model `HeaderMatchMatch` - - Added model `HttpRetryPolicyMatches` - - Added model `HttpRetryPolicyRetryBackOff` - - Added model `LogicAppProperties` - - Added model `Object` - - Added model `RuntimeJavaJavaAgent` - - Added model `RuntimeJavaJavaAgentLogging` - - Added model `ScheduledEntries` - -### Breaking Changes - - - Method `BaseContainer.__init__` removed default value `None` from its parameter `args` - - Method `BaseContainer.__init__` changed its parameter `args` from `keyword_only` to `var_positional` - - Model `BuildResource` deleted or renamed its instance variable `provisioning_state` - - Model `BuildResource` deleted or renamed its instance variable `build_status` - - Model `BuildResource` deleted or renamed its instance variable `destination_container_registry` - - Model `BuildResource` deleted or renamed its instance variable `configuration` - - Model `BuildResource` deleted or renamed its instance variable `upload_endpoint` - - Model `BuildResource` deleted or renamed its instance variable `log_stream_endpoint` - - Model `BuildResource` deleted or renamed its instance variable `token_endpoint` - - Model `BuilderResource` deleted or renamed its instance variable `provisioning_state` - - Model `BuilderResource` deleted or renamed its instance variable `environment_id` - - Model `BuilderResource` deleted or renamed its instance variable `container_registries` - - Method `Container.__init__` removed default value `None` from its parameter `args` - - Method `Container.__init__` changed its parameter `args` from `keyword_only` to `var_positional` - - Model `ContainerAppsBuildResource` deleted or renamed its instance variable `provisioning_state` - - Model `ContainerAppsBuildResource` deleted or renamed its instance variable `build_status` - - Model `ContainerAppsBuildResource` deleted or renamed its instance variable `destination_container_registry` - - Model `ContainerAppsBuildResource` deleted or renamed its instance variable `configuration` - - Model `ContainerAppsBuildResource` deleted or renamed its instance variable `log_stream_endpoint` - - Model `HeaderMatch` deleted or renamed its instance variable `exact_match` - - Model `HeaderMatch` deleted or renamed its instance variable `prefix_match` - - Model `HeaderMatch` deleted or renamed its instance variable `suffix_match` - - Model `HeaderMatch` deleted or renamed its instance variable `regex_match` - - Model `HttpRetryPolicy` deleted or renamed its instance variable `headers` - - Model `HttpRetryPolicy` deleted or renamed its instance variable `http_status_codes` - - Model `HttpRetryPolicy` deleted or renamed its instance variable `errors` - - Model `HttpRetryPolicy` deleted or renamed its instance variable `initial_delay_in_milliseconds` - - Model `HttpRetryPolicy` deleted or renamed its instance variable `max_interval_in_milliseconds` - - Method `InitContainer.__init__` removed default value `None` from its parameter `args` - - Method `InitContainer.__init__` changed its parameter `args` from `keyword_only` to `var_positional` - - Method `JobExecutionContainer.__init__` removed default value `None` from its parameter `args` - - Method `JobExecutionContainer.__init__` changed its parameter `args` from `keyword_only` to `var_positional` - - Model `MaintenanceConfigurationResource` deleted or renamed its instance variable `scheduled_entries` - - Method `SessionContainer.__init__` removed default value `None` from its parameter `args` - - Method `SessionContainer.__init__` changed its parameter `args` from `keyword_only` to `var_positional` - - Deleted or renamed model `AppResiliencyCollection` - - Deleted or renamed model `AuthConfigCollection` - - Deleted or renamed model `AvailableOperations` - - Deleted or renamed model `AvailableWorkloadProfilesCollection` - - Deleted or renamed model `BuildCollection` - - Deleted or renamed model `BuilderCollection` - - Deleted or renamed model `CertificateCollection` - - Deleted or renamed model `ConnectedEnvironmentCollection` - - Deleted or renamed model `ContainerAppCollection` - - Deleted or renamed model `ContainerAppsBuildCollection` - - Deleted or renamed model `ContainerAppsFunctionCollection` - - Deleted or renamed model `DaprComponentResiliencyPoliciesCollection` - - Deleted or renamed model `DaprComponentsCollection` - - Deleted or renamed model `DaprSubscriptionsCollection` - - Deleted or renamed model `DotNetComponentsCollection` - - Deleted or renamed model `HttpRouteConfigCollection` - - Deleted or renamed model `JavaComponentsCollection` - - Deleted or renamed model `JobExecutionNamesCollection` - - Deleted or renamed model `JobsCollection` - - Deleted or renamed model `LabelHistoryCollection` - - Deleted or renamed model `ListUsagesResult` - - Deleted or renamed model `MaintenanceConfigurationCollection` - - Deleted or renamed model `ManagedCertificateCollection` - - Deleted or renamed model `ManagedEnvironmentsCollection` - - Deleted or renamed model `PatchCollection` - - Deleted or renamed model `RevisionCollection` - - Deleted or renamed model `RuntimeJavaAgent` - - Deleted or renamed model `RuntimeJavaAgentLogging` - - Deleted or renamed model `SessionPoolCollection` - - Deleted or renamed model `SourceControlCollection` - - Deleted or renamed model `WorkflowEnvelopeCollection` - - Deleted or renamed model `WorkloadProfileStatesCollection` - - Method `ContainerAppsOperations.list_custom_host_name_analysis` changed its parameter `custom_hostname` from `positional_or_keyword` to `keyword_only` - - Method `ContainerAppsSourceControlsOperations.begin_create_or_update` changed its parameter `x_ms_github_auxiliary` from `positional_or_keyword` to `keyword_only` - - Method `ContainerAppsSourceControlsOperations.begin_delete` changed its parameter `x_ms_github_auxiliary` from `positional_or_keyword` to `keyword_only` - - Method `ContainerAppsSourceControlsOperations.begin_delete` changed its parameter `ignore_workflow_deletion_failure` from `positional_or_keyword` to `keyword_only` - - Method `ContainerAppsSourceControlsOperations.begin_delete` changed its parameter `delete_workflow` from `positional_or_keyword` to `keyword_only` - - Method `LogicAppsOperations.invoke` changed its parameter `x_ms_logic_apps_proxy_path` from `positional_or_keyword` to `keyword_only` - - Method `LogicAppsOperations.invoke` changed its parameter `x_ms_logic_apps_proxy_method` from `positional_or_keyword` to `keyword_only` +skip changelog generation ## 4.0.0 (2025-10-24) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/_metadata.json b/sdk/appcontainers/azure-mgmt-appcontainers/_metadata.json index fa8e8f15c104..17771819d9e3 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/_metadata.json +++ b/sdk/appcontainers/azure-mgmt-appcontainers/_metadata.json @@ -3,7 +3,7 @@ "apiVersions": { "Microsoft.App": "2025-10-02-preview" }, - "commit": "8adb6c33d91b2c9d401dd9a062a37dc5054884e8", + "commit": "63b90b234bd84828c9afe815cef6e9f8a1e962ff", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "typespec_src": "specification/app/resource-manager/Microsoft.App/ContainerApps", "emitterVersion": "0.61.2" diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/apiview-properties.json b/sdk/appcontainers/azure-mgmt-appcontainers/apiview-properties.json index e2050e716519..edbd82d41def 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/apiview-properties.json +++ b/sdk/appcontainers/azure-mgmt-appcontainers/apiview-properties.json @@ -271,8 +271,8 @@ "azure.mgmt.appcontainers.models.Runtime": "Microsoft.App.Runtime", "azure.mgmt.appcontainers.models.RuntimeDotnet": "Microsoft.App.RuntimeDotnet", "azure.mgmt.appcontainers.models.RuntimeJava": "Microsoft.App.RuntimeJava", - "azure.mgmt.appcontainers.models.RuntimeJavaJavaAgent": "Microsoft.App.RuntimeJavaJavaAgent", - "azure.mgmt.appcontainers.models.RuntimeJavaJavaAgentLogging": "Microsoft.App.RuntimeJavaJavaAgentLogging", + "azure.mgmt.appcontainers.models.RuntimeJavaAgent": "Microsoft.App.RuntimeJavaJavaAgent", + "azure.mgmt.appcontainers.models.RuntimeJavaAgentLogging": "Microsoft.App.RuntimeJavaJavaAgentLogging", "azure.mgmt.appcontainers.models.Scale": "Microsoft.App.Scale", "azure.mgmt.appcontainers.models.ScaleConfiguration": "Microsoft.App.ScaleConfiguration", "azure.mgmt.appcontainers.models.ScaleRule": "Microsoft.App.ScaleRule", @@ -391,13 +391,13 @@ "azure.mgmt.appcontainers.models.CheckNameAvailabilityReason": "Azure.ResourceManager.CommonTypes.CheckNameAvailabilityReason", "azure.mgmt.appcontainers.models.CertificateProvisioningState": "Microsoft.App.CertificateProvisioningState", "azure.mgmt.appcontainers.models.CertificateType": "Microsoft.App.CertificateType", - "azure.mgmt.appcontainers.models.DaprComponentProvisioningState": "Microsoft.App.DaprComponentProvisioningState", - "azure.mgmt.appcontainers.models.ConnectedEnvironmentStorageProvisioningState": "Microsoft.App.ConnectedEnvironmentStorageProvisioningState", - "azure.mgmt.appcontainers.models.AccessMode": "Microsoft.App.AccessMode", "azure.mgmt.appcontainers.models.EnvironmentProvisioningState": "Microsoft.App.EnvironmentProvisioningState", "azure.mgmt.appcontainers.models.PrivateEndpointServiceConnectionStatus": "Microsoft.App.PrivateEndpointServiceConnectionStatus", "azure.mgmt.appcontainers.models.PrivateEndpointConnectionProvisioningState": "Microsoft.App.PrivateEndpointConnectionProvisioningState", "azure.mgmt.appcontainers.models.PublicNetworkAccess": "Microsoft.App.PublicNetworkAccess", + "azure.mgmt.appcontainers.models.DaprComponentProvisioningState": "Microsoft.App.DaprComponentProvisioningState", + "azure.mgmt.appcontainers.models.ConnectedEnvironmentStorageProvisioningState": "Microsoft.App.ConnectedEnvironmentStorageProvisioningState", + "azure.mgmt.appcontainers.models.AccessMode": "Microsoft.App.AccessMode", "azure.mgmt.appcontainers.models.ManagedCertificateDomainControlValidation": "Microsoft.App.ManagedCertificateDomainControlValidation", "azure.mgmt.appcontainers.models.WeekDay": "Microsoft.App.WeekDay", "azure.mgmt.appcontainers.models.JobProvisioningState": "Microsoft.App.JobProvisioningState", @@ -580,6 +580,22 @@ "azure.mgmt.appcontainers.aio.operations.CertificatesOperations.delete": "Microsoft.App.Certificates.deleteCertificates", "azure.mgmt.appcontainers.operations.CertificatesOperations.list": "Microsoft.App.Certificates.listCertificates", "azure.mgmt.appcontainers.aio.operations.CertificatesOperations.list": "Microsoft.App.Certificates.listCertificates", + "azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations.get": "Microsoft.App.ManagedEnvironments.get", + "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations.get": "Microsoft.App.ManagedEnvironments.get", + "azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations.begin_create_or_update": "Microsoft.App.ManagedEnvironments.createOrUpdate", + "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations.begin_create_or_update": "Microsoft.App.ManagedEnvironments.createOrUpdate", + "azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations.begin_update": "Microsoft.App.ManagedEnvironments.update", + "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations.begin_update": "Microsoft.App.ManagedEnvironments.update", + "azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations.begin_delete": "Microsoft.App.ManagedEnvironments.delete", + "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations.begin_delete": "Microsoft.App.ManagedEnvironments.delete", + "azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations.list_by_resource_group": "Microsoft.App.ManagedEnvironments.listByResourceGroup", + "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations.list_by_resource_group": "Microsoft.App.ManagedEnvironments.listByResourceGroup", + "azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations.list_by_subscription": "Microsoft.App.ManagedEnvironments.listBySubscription", + "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations.list_by_subscription": "Microsoft.App.ManagedEnvironments.listBySubscription", + "azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations.get_auth_token": "Microsoft.App.ManagedEnvironments.getAuthToken", + "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations.get_auth_token": "Microsoft.App.ManagedEnvironments.getAuthToken", + "azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations.list_workload_profile_states": "Microsoft.App.ManagedEnvironments.listWorkloadProfileStates", + "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations.list_workload_profile_states": "Microsoft.App.ManagedEnvironments.listWorkloadProfileStates", "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsDaprComponentsOperations.get": "Microsoft.App.ConnectedEnvironmentsDaprComponents.get", "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsDaprComponentsOperations.get": "Microsoft.App.ConnectedEnvironmentsDaprComponents.get", "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsDaprComponentsOperations.begin_create_or_update": "Microsoft.App.ConnectedEnvironmentsDaprComponents.createOrUpdate", @@ -608,22 +624,6 @@ "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsStoragesOperations.begin_delete": "Microsoft.App.ConnectedEnvironmentsStorages.delete", "azure.mgmt.appcontainers.operations.ConnectedEnvironmentsStoragesOperations.list": "Microsoft.App.ConnectedEnvironmentsStorages.list", "azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsStoragesOperations.list": "Microsoft.App.ConnectedEnvironmentsStorages.list", - "azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations.get": "Microsoft.App.ManagedEnvironments.get", - "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations.get": "Microsoft.App.ManagedEnvironments.get", - "azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations.begin_create_or_update": "Microsoft.App.ManagedEnvironments.createOrUpdate", - "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations.begin_create_or_update": "Microsoft.App.ManagedEnvironments.createOrUpdate", - "azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations.begin_update": "Microsoft.App.ManagedEnvironments.update", - "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations.begin_update": "Microsoft.App.ManagedEnvironments.update", - "azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations.begin_delete": "Microsoft.App.ManagedEnvironments.delete", - "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations.begin_delete": "Microsoft.App.ManagedEnvironments.delete", - "azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations.list_by_resource_group": "Microsoft.App.ManagedEnvironments.listByResourceGroup", - "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations.list_by_resource_group": "Microsoft.App.ManagedEnvironments.listByResourceGroup", - "azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations.list_by_subscription": "Microsoft.App.ManagedEnvironments.listBySubscription", - "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations.list_by_subscription": "Microsoft.App.ManagedEnvironments.listBySubscription", - "azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations.get_auth_token": "Microsoft.App.ManagedEnvironments.getAuthToken", - "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations.get_auth_token": "Microsoft.App.ManagedEnvironments.getAuthToken", - "azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations.list_workload_profile_states": "Microsoft.App.ManagedEnvironments.listWorkloadProfileStates", - "azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations.list_workload_profile_states": "Microsoft.App.ManagedEnvironments.listWorkloadProfileStates", "azure.mgmt.appcontainers.operations.ManagedCertificatesOperations.get": "Microsoft.App.ManagedCertificates.get", "azure.mgmt.appcontainers.aio.operations.ManagedCertificatesOperations.get": "Microsoft.App.ManagedCertificates.get", "azure.mgmt.appcontainers.operations.ManagedCertificatesOperations.begin_create_or_update": "Microsoft.App.ManagedCertificates.createOrUpdate", diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_client.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_client.py index 3f4ed9ce5933..ec05530fca21 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_client.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_client.py @@ -128,6 +128,9 @@ class ContainerAppsAPIClient(_ContainerAppsAPIClientOperationsMixin): # pylint: azure.mgmt.appcontainers.operations.ConnectedEnvironmentsOperations :ivar certificates: CertificatesOperations operations :vartype certificates: azure.mgmt.appcontainers.operations.CertificatesOperations + :ivar managed_environments: ManagedEnvironmentsOperations operations + :vartype managed_environments: + azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations :ivar connected_environments_dapr_components: ConnectedEnvironmentsDaprComponentsOperations operations :vartype connected_environments_dapr_components: @@ -137,9 +140,6 @@ class ContainerAppsAPIClient(_ContainerAppsAPIClientOperationsMixin): # pylint: :ivar connected_environments_storages: ConnectedEnvironmentsStoragesOperations operations :vartype connected_environments_storages: azure.mgmt.appcontainers.operations.ConnectedEnvironmentsStoragesOperations - :ivar managed_environments: ManagedEnvironmentsOperations operations - :vartype managed_environments: - azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations :ivar managed_certificates: ManagedCertificatesOperations operations :vartype managed_certificates: azure.mgmt.appcontainers.operations.ManagedCertificatesOperations @@ -314,6 +314,9 @@ def __init__( self._client, self._config, self._serialize, self._deserialize ) self.certificates = CertificatesOperations(self._client, self._config, self._serialize, self._deserialize) + self.managed_environments = ManagedEnvironmentsOperations( + self._client, self._config, self._serialize, self._deserialize + ) self.connected_environments_dapr_components = ConnectedEnvironmentsDaprComponentsOperations( self._client, self._config, self._serialize, self._deserialize ) @@ -321,9 +324,6 @@ def __init__( self.connected_environments_storages = ConnectedEnvironmentsStoragesOperations( self._client, self._config, self._serialize, self._deserialize ) - self.managed_environments = ManagedEnvironmentsOperations( - self._client, self._config, self._serialize, self._deserialize - ) self.managed_certificates = ManagedCertificatesOperations( self._client, self._config, self._serialize, self._deserialize ) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/_client.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/_client.py index f9b062f5a065..9aec6586358d 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/_client.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/_client.py @@ -129,6 +129,9 @@ class ContainerAppsAPIClient(_ContainerAppsAPIClientOperationsMixin): # pylint: azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsOperations :ivar certificates: CertificatesOperations operations :vartype certificates: azure.mgmt.appcontainers.aio.operations.CertificatesOperations + :ivar managed_environments: ManagedEnvironmentsOperations operations + :vartype managed_environments: + azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations :ivar connected_environments_dapr_components: ConnectedEnvironmentsDaprComponentsOperations operations :vartype connected_environments_dapr_components: @@ -138,9 +141,6 @@ class ContainerAppsAPIClient(_ContainerAppsAPIClientOperationsMixin): # pylint: :ivar connected_environments_storages: ConnectedEnvironmentsStoragesOperations operations :vartype connected_environments_storages: azure.mgmt.appcontainers.aio.operations.ConnectedEnvironmentsStoragesOperations - :ivar managed_environments: ManagedEnvironmentsOperations operations - :vartype managed_environments: - azure.mgmt.appcontainers.aio.operations.ManagedEnvironmentsOperations :ivar managed_certificates: ManagedCertificatesOperations operations :vartype managed_certificates: azure.mgmt.appcontainers.aio.operations.ManagedCertificatesOperations @@ -318,6 +318,9 @@ def __init__( self._client, self._config, self._serialize, self._deserialize ) self.certificates = CertificatesOperations(self._client, self._config, self._serialize, self._deserialize) + self.managed_environments = ManagedEnvironmentsOperations( + self._client, self._config, self._serialize, self._deserialize + ) self.connected_environments_dapr_components = ConnectedEnvironmentsDaprComponentsOperations( self._client, self._config, self._serialize, self._deserialize ) @@ -325,9 +328,6 @@ def __init__( self.connected_environments_storages = ConnectedEnvironmentsStoragesOperations( self._client, self._config, self._serialize, self._deserialize ) - self.managed_environments = ManagedEnvironmentsOperations( - self._client, self._config, self._serialize, self._deserialize - ) self.managed_certificates = ManagedCertificatesOperations( self._client, self._config, self._serialize, self._deserialize ) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/__init__.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/__init__.py index 0d43041a94b4..f55da524683f 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/__init__.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/__init__.py @@ -31,10 +31,10 @@ from ._operations import BuildsOperations # type: ignore from ._operations import ConnectedEnvironmentsOperations # type: ignore from ._operations import CertificatesOperations # type: ignore +from ._operations import ManagedEnvironmentsOperations # type: ignore from ._operations import ConnectedEnvironmentsDaprComponentsOperations # type: ignore from ._operations import DaprComponentsOperations # type: ignore from ._operations import ConnectedEnvironmentsStoragesOperations # type: ignore -from ._operations import ManagedEnvironmentsOperations # type: ignore from ._operations import ManagedCertificatesOperations # type: ignore from ._operations import DaprComponentResiliencyPoliciesOperations # type: ignore from ._operations import DaprSubscriptionsOperations # type: ignore @@ -85,10 +85,10 @@ "BuildsOperations", "ConnectedEnvironmentsOperations", "CertificatesOperations", + "ManagedEnvironmentsOperations", "ConnectedEnvironmentsDaprComponentsOperations", "DaprComponentsOperations", "ConnectedEnvironmentsStoragesOperations", - "ManagedEnvironmentsOperations", "ManagedCertificatesOperations", "DaprComponentResiliencyPoliciesOperations", "DaprSubscriptionsOperations", diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_operations.py index b70a5a1fa681..78b3305b96e6 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_operations.py @@ -11437,14 +11437,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ConnectedEnvironmentsDaprComponentsOperations: # pylint: disable=name-too-long +class ManagedEnvironmentsOperations: """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`connected_environments_dapr_components` attribute. + :attr:`managed_environments` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -11455,22 +11455,18 @@ def __init__(self, *args, **kwargs) -> None: self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace_async - async def get( - self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any - ) -> _models.DaprComponent: - """Get a dapr component. + async def get(self, resource_group_name: str, environment_name: str, **kwargs: Any) -> _models.ManagedEnvironment: + """Get the properties of a Managed Environment. - Get a dapr component. + Get the properties of a Managed Environment used to host container apps. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param connected_environment_name: Name of the connected environment. Required. - :type connected_environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :return: DaprComponent. The DaprComponent is compatible with MutableMapping - :rtype: ~azure.mgmt.appcontainers.models.DaprComponent + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :return: ManagedEnvironment. The ManagedEnvironment is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironment :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -11484,12 +11480,11 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[_models.DaprComponent] = kwargs.pop("cls", None) + cls: ClsType[_models.ManagedEnvironment] = kwargs.pop("cls", None) - _request = build_connected_environments_dapr_components_get_request( + _request = build_managed_environments_get_request( resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - component_name=component_name, + environment_name=environment_name, subscription_id=self._config.subscription_id, api_version=self._config.api_version, headers=_headers, @@ -11516,7 +11511,7 @@ async def get( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.DefaultErrorResponse, + _models.ErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -11524,7 +11519,7 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.DaprComponent, response.json()) + deserialized = _deserialize(_models.ManagedEnvironment, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -11534,9 +11529,8 @@ async def get( async def _create_or_update_initial( self, resource_group_name: str, - connected_environment_name: str, - component_name: str, - dapr_component_envelope: Union[_models.DaprComponent, JSON, IO[bytes]], + environment_name: str, + environment_envelope: Union[_models.ManagedEnvironment, JSON, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -11555,15 +11549,14 @@ async def _create_or_update_initial( content_type = content_type or "application/json" _content = None - if isinstance(dapr_component_envelope, (IOBase, bytes)): - _content = dapr_component_envelope + if isinstance(environment_envelope, (IOBase, bytes)): + _content = environment_envelope else: - _content = json.dumps(dapr_component_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(environment_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_connected_environments_dapr_components_create_or_update_request( + _request = build_managed_environments_create_or_update_request( resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - component_name=component_name, + environment_name=environment_name, subscription_id=self._config.subscription_id, content_type=content_type, api_version=self._config.api_version, @@ -11598,9 +11591,7 @@ async def _create_or_update_initial( response_headers = {} if response.status_code == 201: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -11614,32 +11605,29 @@ async def _create_or_update_initial( async def begin_create_or_update( self, resource_group_name: str, - connected_environment_name: str, - component_name: str, - dapr_component_envelope: _models.DaprComponent, + environment_name: str, + environment_envelope: _models.ManagedEnvironment, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.DaprComponent]: - """Creates or updates a Dapr Component. + ) -> AsyncLROPoller[_models.ManagedEnvironment]: + """Creates or updates a Managed Environment. - Creates or updates a Dapr Component in a connected environment. + Creates or updates a Managed Environment used to host container apps. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param connected_environment_name: Name of the connectedEnvironment. Required. - :type connected_environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :param dapr_component_envelope: Configuration details of the Dapr Component. Required. - :type dapr_component_envelope: ~azure.mgmt.appcontainers.models.DaprComponent + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param environment_envelope: Configuration details of the Environment. Required. + :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns DaprComponent. The DaprComponent is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.DaprComponent] + :return: An instance of AsyncLROPoller that returns ManagedEnvironment. The ManagedEnvironment + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -11647,32 +11635,29 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - connected_environment_name: str, - component_name: str, - dapr_component_envelope: JSON, + environment_name: str, + environment_envelope: JSON, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.DaprComponent]: - """Creates or updates a Dapr Component. + ) -> AsyncLROPoller[_models.ManagedEnvironment]: + """Creates or updates a Managed Environment. - Creates or updates a Dapr Component in a connected environment. + Creates or updates a Managed Environment used to host container apps. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param connected_environment_name: Name of the connectedEnvironment. Required. - :type connected_environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :param dapr_component_envelope: Configuration details of the Dapr Component. Required. - :type dapr_component_envelope: JSON + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param environment_envelope: Configuration details of the Environment. Required. + :type environment_envelope: JSON :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns DaprComponent. The DaprComponent is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.DaprComponent] + :return: An instance of AsyncLROPoller that returns ManagedEnvironment. The ManagedEnvironment + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -11680,32 +11665,29 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - connected_environment_name: str, - component_name: str, - dapr_component_envelope: IO[bytes], + environment_name: str, + environment_envelope: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.DaprComponent]: - """Creates or updates a Dapr Component. + ) -> AsyncLROPoller[_models.ManagedEnvironment]: + """Creates or updates a Managed Environment. - Creates or updates a Dapr Component in a connected environment. + Creates or updates a Managed Environment used to host container apps. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param connected_environment_name: Name of the connectedEnvironment. Required. - :type connected_environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :param dapr_component_envelope: Configuration details of the Dapr Component. Required. - :type dapr_component_envelope: IO[bytes] + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param environment_envelope: Configuration details of the Environment. Required. + :type environment_envelope: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns DaprComponent. The DaprComponent is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.DaprComponent] + :return: An instance of AsyncLROPoller that returns ManagedEnvironment. The ManagedEnvironment + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -11713,45 +11695,41 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - connected_environment_name: str, - component_name: str, - dapr_component_envelope: Union[_models.DaprComponent, JSON, IO[bytes]], + environment_name: str, + environment_envelope: Union[_models.ManagedEnvironment, JSON, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.DaprComponent]: - """Creates or updates a Dapr Component. + ) -> AsyncLROPoller[_models.ManagedEnvironment]: + """Creates or updates a Managed Environment. - Creates or updates a Dapr Component in a connected environment. + Creates or updates a Managed Environment used to host container apps. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param connected_environment_name: Name of the connectedEnvironment. Required. - :type connected_environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :param dapr_component_envelope: Configuration details of the Dapr Component. Is one of the - following types: DaprComponent, JSON, IO[bytes] Required. - :type dapr_component_envelope: ~azure.mgmt.appcontainers.models.DaprComponent or JSON or + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param environment_envelope: Configuration details of the Environment. Is one of the following + types: ManagedEnvironment, JSON, IO[bytes] Required. + :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns DaprComponent. The DaprComponent is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.DaprComponent] + :return: An instance of AsyncLROPoller that returns ManagedEnvironment. The ManagedEnvironment + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = kwargs.pop("params", {}) or {} content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DaprComponent] = kwargs.pop("cls", None) + cls: ClsType[_models.ManagedEnvironment] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - component_name=component_name, - dapr_component_envelope=dapr_component_envelope, + environment_name=environment_name, + environment_envelope=environment_envelope, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, @@ -11763,7 +11741,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.DaprComponent, response.json()) + deserialized = _deserialize(_models.ManagedEnvironment, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -11781,18 +11759,22 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.DaprComponent].from_continuation_token( + return AsyncLROPoller[_models.ManagedEnvironment].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.DaprComponent]( + return AsyncLROPoller[_models.ManagedEnvironment]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - async def _delete_initial( - self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any + async def _update_initial( + self, + resource_group_name: str, + environment_name: str, + environment_envelope: Union[_models.ManagedEnvironment, JSON, IO[bytes]], + **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -11802,17 +11784,26 @@ async def _delete_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = kwargs.pop("params", {}) or {} + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_connected_environments_dapr_components_delete_request( + content_type = content_type or "application/json" + _content = None + if isinstance(environment_envelope, (IOBase, bytes)): + _content = environment_envelope + else: + _content = json.dumps(environment_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_managed_environments_update_request( resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - component_name=component_name, + environment_name=environment_name, subscription_id=self._config.subscription_id, + content_type=content_type, api_version=self._config.api_version, + content=_content, headers=_headers, params=_params, ) @@ -11829,7 +11820,7 @@ async def _delete_initial( response = pipeline_response.http_response - if response.status_code not in [202, 204]: + if response.status_code not in [200, 202]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -11853,48 +11844,150 @@ async def _delete_initial( return deserialized # type: ignore - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete a Dapr Component. + @overload + async def begin_update( + self, + resource_group_name: str, + environment_name: str, + environment_envelope: _models.ManagedEnvironment, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ManagedEnvironment]: + """Update Managed Environment's properties. - Delete a Dapr Component from a connected environment. + Patches a Managed Environment using JSON Merge Patch. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param connected_environment_name: Name of the connected environment. Required. - :type connected_environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param environment_envelope: Configuration details of the Environment. Required. + :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ManagedEnvironment. The ManagedEnvironment + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - component_name=component_name, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + @overload + async def begin_update( + self, + resource_group_name: str, + environment_name: str, + environment_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ManagedEnvironment]: + """Update Managed Environment's properties. + + Patches a Managed Environment using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param environment_envelope: Configuration details of the Environment. Required. + :type environment_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ManagedEnvironment. The ManagedEnvironment + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_update( + self, + resource_group_name: str, + environment_name: str, + environment_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ManagedEnvironment]: + """Update Managed Environment's properties. + + Patches a Managed Environment using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param environment_envelope: Configuration details of the Environment. Required. + :type environment_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ManagedEnvironment. The ManagedEnvironment + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_update( + self, + resource_group_name: str, + environment_name: str, + environment_envelope: Union[_models.ManagedEnvironment, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.ManagedEnvironment]: + """Update Managed Environment's properties. + + Patches a Managed Environment using JSON Merge Patch. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param environment_envelope: Configuration details of the Environment. Is one of the following + types: ManagedEnvironment, JSON, IO[bytes] Required. + :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment or JSON or + IO[bytes] + :return: An instance of AsyncLROPoller that returns ManagedEnvironment. The ManagedEnvironment + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ManagedEnvironment] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("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, + environment_name=environment_name, + environment_envelope=environment_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.ManagedEnvironment, response.json()) if cls: - return cls(pipeline_response, None, {}) # type: ignore + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -11909,134 +12002,19 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- else: polling_method = polling if cont_token: - return AsyncLROPoller[None].from_continuation_token( + return AsyncLROPoller[_models.ManagedEnvironment].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, 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, connected_environment_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.DaprComponent"]: - """Get the Dapr Components for a connected environment. - - Get the Dapr Components for a connected environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the connected environment. Required. - :type connected_environment_name: str - :return: An iterator like instance of DaprComponent - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.DaprComponent] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[_models.DaprComponent]] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_connected_environments_dapr_components_list_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - subscription_id=self._config.subscription_id, - api_version=self._config.api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - return _request - - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.DaprComponent], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.DefaultErrorResponse, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def list_secrets( - self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any - ) -> _models.DaprSecretsCollection: - """List secrets for a dapr component. - - List secrets for a dapr component. + return AsyncLROPoller[_models.ManagedEnvironment]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the connected environment. Required. - :type connected_environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :return: DaprSecretsCollection. The DaprSecretsCollection is compatible with MutableMapping - :rtype: ~azure.mgmt.appcontainers.models.DaprSecretsCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ + async def _delete_initial( + self, resource_group_name: str, environment_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -12048,12 +12026,11 @@ async def list_secrets( _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[_models.DaprSecretsCollection] = kwargs.pop("cls", None) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_connected_environments_dapr_components_list_secrets_request( + _request = build_managed_environments_delete_request( resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - component_name=component_name, + environment_name=environment_name, subscription_id=self._config.subscription_id, api_version=self._config.api_version, headers=_headers, @@ -12065,73 +12042,119 @@ async def list_secrets( _request.url = self._client.format_url(_request.url, **path_format_arguments) _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) + _stream = True pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [200, 202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.DefaultErrorResponse, + _models.ErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.DaprSecretsCollection, response.json()) + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized # type: ignore + @distributed_trace_async + async def begin_delete( + self, resource_group_name: str, environment_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Delete a Managed Environment. -class DaprComponentsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. + Delete a Managed Environment if it does not have any container apps. - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`dapr_components` attribute. - """ + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + environment_name=environment_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) - @distributed_trace_async - async def get( - self, resource_group_name: str, environment_name: str, component_name: str, **kwargs: Any - ) -> _models.DaprComponent: - """Get a dapr component. + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore - Get a dapr component. + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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_by_resource_group( + self, resource_group_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.ManagedEnvironment"]: + """Get all the Environments in a resource group. + + Get all the Managed Environments in a resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :return: DaprComponent. The DaprComponent is compatible with MutableMapping - :rtype: ~azure.mgmt.appcontainers.models.DaprComponent + :return: An iterator like instance of ManagedEnvironment + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.ManagedEnvironment] :raises ~azure.core.exceptions.HttpResponseError: """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ManagedEnvironment]] = kwargs.pop("cls", None) + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -12140,178 +12163,184 @@ async def get( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} + def prepare_request(next_link=None): + if not next_link: - cls: ClsType[_models.DaprComponent] = kwargs.pop("cls", None) + _request = build_managed_environments_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - _request = build_dapr_components_get_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - component_name=component_name, - subscription_id=self._config.subscription_id, - api_version=self._config.api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) + return _request - response = pipeline_response.http_response + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ManagedEnvironment], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.DefaultErrorResponse, - response, + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + response = pipeline_response.http_response - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.DaprComponent, response.json()) + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return pipeline_response - return deserialized # type: ignore + return AsyncItemPaged(get_next, extract_data) - @overload - async def create_or_update( - self, - resource_group_name: str, - environment_name: str, - component_name: str, - dapr_component_envelope: _models.DaprComponent, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.DaprComponent: - """Creates or updates a Dapr Component. + @distributed_trace + def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.ManagedEnvironment"]: + """Get all Environments for a subscription. - Creates or updates a Dapr Component in a Managed Environment. + Get all Managed Environments for a subscription. - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :param dapr_component_envelope: Configuration details of the Dapr Component. Required. - :type dapr_component_envelope: ~azure.mgmt.appcontainers.models.DaprComponent - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: DaprComponent. The DaprComponent is compatible with MutableMapping - :rtype: ~azure.mgmt.appcontainers.models.DaprComponent + :return: An iterator like instance of ManagedEnvironment + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.ManagedEnvironment] :raises ~azure.core.exceptions.HttpResponseError: """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} - @overload - async def create_or_update( - self, - resource_group_name: str, - environment_name: str, - component_name: str, - dapr_component_envelope: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.DaprComponent: - """Creates or updates a Dapr Component. + cls: ClsType[List[_models.ManagedEnvironment]] = kwargs.pop("cls", None) - Creates or updates a Dapr Component in a Managed Environment. + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :param dapr_component_envelope: Configuration details of the Dapr Component. Required. - :type dapr_component_envelope: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: DaprComponent. The DaprComponent is compatible with MutableMapping - :rtype: ~azure.mgmt.appcontainers.models.DaprComponent - :raises ~azure.core.exceptions.HttpResponseError: - """ + def prepare_request(next_link=None): + if not next_link: - @overload - async def create_or_update( - self, - resource_group_name: str, - environment_name: str, - component_name: str, - dapr_component_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.DaprComponent: - """Creates or updates a Dapr Component. + _request = build_managed_environments_list_by_subscription_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - Creates or updates a Dapr Component in a Managed Environment. + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :param dapr_component_envelope: Configuration details of the Dapr Component. Required. - :type dapr_component_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: DaprComponent. The DaprComponent is compatible with MutableMapping - :rtype: ~azure.mgmt.appcontainers.models.DaprComponent - :raises ~azure.core.exceptions.HttpResponseError: - """ + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ManagedEnvironment], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) @distributed_trace_async - async def create_or_update( - self, - resource_group_name: str, - environment_name: str, - component_name: str, - dapr_component_envelope: Union[_models.DaprComponent, JSON, IO[bytes]], - **kwargs: Any - ) -> _models.DaprComponent: - """Creates or updates a Dapr Component. + async def get_auth_token( + self, resource_group_name: str, environment_name: str, **kwargs: Any + ) -> _models.EnvironmentAuthToken: + """Get auth token for a managed environment. - Creates or updates a Dapr Component in a Managed Environment. + Checks if resource name is available. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. + :param environment_name: Name of the Environment. Required. :type environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :param dapr_component_envelope: Configuration details of the Dapr Component. Is one of the - following types: DaprComponent, JSON, IO[bytes] Required. - :type dapr_component_envelope: ~azure.mgmt.appcontainers.models.DaprComponent or JSON or - IO[bytes] - :return: DaprComponent. The DaprComponent is compatible with MutableMapping - :rtype: ~azure.mgmt.appcontainers.models.DaprComponent + :return: EnvironmentAuthToken. The EnvironmentAuthToken is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.EnvironmentAuthToken :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -12322,27 +12351,16 @@ async def create_or_update( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DaprComponent] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(dapr_component_envelope, (IOBase, bytes)): - _content = dapr_component_envelope - else: - _content = json.dumps(dapr_component_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + cls: ClsType[_models.EnvironmentAuthToken] = kwargs.pop("cls", None) - _request = build_dapr_components_create_or_update_request( + _request = build_managed_environments_get_auth_token_request( resource_group_name=resource_group_name, environment_name=environment_name, - component_name=component_name, subscription_id=self._config.subscription_id, - content_type=content_type, api_version=self._config.api_version, - content=_content, headers=_headers, params=_params, ) @@ -12367,7 +12385,7 @@ async def create_or_update( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.DefaultErrorResponse, + _models.ErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -12375,30 +12393,36 @@ async def create_or_update( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.DaprComponent, response.json()) + deserialized = _deserialize(_models.EnvironmentAuthToken, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - @distributed_trace_async - async def delete(self, resource_group_name: str, environment_name: str, component_name: str, **kwargs: Any) -> None: - """Delete a Dapr Component. + @distributed_trace + def list_workload_profile_states( + self, resource_group_name: str, environment_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.WorkloadProfileStates"]: + """Get all workload Profile States for a Managed Environment.. - Delete a Dapr Component from a Managed Environment. + Get all workload Profile States for a Managed Environment. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. + :param environment_name: Name of the Environment. Required. :type environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :return: None - :rtype: None + :return: An iterator like instance of WorkloadProfileStates + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.WorkloadProfileStates] :raises ~azure.core.exceptions.HttpResponseError: """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.WorkloadProfileStates]] = kwargs.pop("cls", None) + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -12407,117 +12431,50 @@ async def delete(self, resource_group_name: str, environment_name: str, componen } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} + def prepare_request(next_link=None): + if not next_link: - cls: ClsType[None] = kwargs.pop("cls", None) + _request = build_managed_environments_list_workload_profile_states_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - _request = build_dapr_components_delete_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - component_name=component_name, - subscription_id=self._config.subscription_id, - api_version=self._config.api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _stream = False - pipeline_response: PipelineResponse = await 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) - error = _failsafe_deserialize( - _models.DefaultErrorResponse, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, environment_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.DaprComponent"]: - """Get the Dapr Components for a managed environment. - - Get the Dapr Components for a managed environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :return: An iterator like instance of DaprComponent - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.DaprComponent] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[_models.DaprComponent]] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_dapr_components_list_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=self._config.api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) return _request async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.DaprComponent], + List[_models.WorkloadProfileStates], deserialized.get("value", []), ) if cls: @@ -12536,7 +12493,7 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.DefaultErrorResponse, + _models.ErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -12545,92 +12502,15 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) - @distributed_trace_async - async def list_secrets( - self, resource_group_name: str, environment_name: str, component_name: str, **kwargs: Any - ) -> _models.DaprSecretsCollection: - """List secrets for a dapr component. - - List secrets for a dapr component. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :return: DaprSecretsCollection. The DaprSecretsCollection is compatible with MutableMapping - :rtype: ~azure.mgmt.appcontainers.models.DaprSecretsCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[_models.DaprSecretsCollection] = kwargs.pop("cls", None) - - _request = build_dapr_components_list_secrets_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - component_name=component_name, - subscription_id=self._config.subscription_id, - api_version=self._config.api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.DefaultErrorResponse, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.DaprSecretsCollection, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - -class ConnectedEnvironmentsStoragesOperations: +class ConnectedEnvironmentsDaprComponentsOperations: # pylint: disable=name-too-long """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`connected_environments_storages` attribute. + :attr:`connected_environments_dapr_components` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -12642,22 +12522,21 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, connected_environment_name: str, storage_name: str, **kwargs: Any - ) -> _models.ConnectedEnvironmentStorage: - """Get storage for a connectedEnvironment. + self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any + ) -> _models.DaprComponent: + """Get a dapr component. - Get storage for a connectedEnvironment. + Get a dapr component. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param connected_environment_name: Name of the connectedEnvironment. Required. + :param connected_environment_name: Name of the connected environment. Required. :type connected_environment_name: str - :param storage_name: Name of the storage. Required. - :type storage_name: str - :return: ConnectedEnvironmentStorage. The ConnectedEnvironmentStorage is compatible with - MutableMapping - :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :return: DaprComponent. The DaprComponent is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprComponent :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -12671,12 +12550,12 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[_models.ConnectedEnvironmentStorage] = kwargs.pop("cls", None) + cls: ClsType[_models.DaprComponent] = kwargs.pop("cls", None) - _request = build_connected_environments_storages_get_request( + _request = build_connected_environments_dapr_components_get_request( resource_group_name=resource_group_name, connected_environment_name=connected_environment_name, - storage_name=storage_name, + component_name=component_name, subscription_id=self._config.subscription_id, api_version=self._config.api_version, headers=_headers, @@ -12711,7 +12590,7 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.ConnectedEnvironmentStorage, response.json()) + deserialized = _deserialize(_models.DaprComponent, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -12722,8 +12601,8 @@ async def _create_or_update_initial( self, resource_group_name: str, connected_environment_name: str, - storage_name: str, - storage_envelope: Union[_models.ConnectedEnvironmentStorage, JSON, IO[bytes]], + component_name: str, + dapr_component_envelope: Union[_models.DaprComponent, JSON, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -12742,15 +12621,15 @@ async def _create_or_update_initial( content_type = content_type or "application/json" _content = None - if isinstance(storage_envelope, (IOBase, bytes)): - _content = storage_envelope + if isinstance(dapr_component_envelope, (IOBase, bytes)): + _content = dapr_component_envelope else: - _content = json.dumps(storage_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(dapr_component_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_connected_environments_storages_create_or_update_request( + _request = build_connected_environments_dapr_components_create_or_update_request( resource_group_name=resource_group_name, connected_environment_name=connected_environment_name, - storage_name=storage_name, + component_name=component_name, subscription_id=self._config.subscription_id, content_type=content_type, api_version=self._config.api_version, @@ -12802,32 +12681,31 @@ async def begin_create_or_update( self, resource_group_name: str, connected_environment_name: str, - storage_name: str, - storage_envelope: _models.ConnectedEnvironmentStorage, + component_name: str, + dapr_component_envelope: _models.DaprComponent, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.ConnectedEnvironmentStorage]: - """Create or update storage for a connectedEnvironment. + ) -> AsyncLROPoller[_models.DaprComponent]: + """Creates or updates a Dapr Component. - Create or update storage for a connectedEnvironment. + Creates or updates a Dapr Component in a connected environment. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param connected_environment_name: Name of the connectedEnvironment. Required. :type connected_environment_name: str - :param storage_name: Name of the storage. Required. - :type storage_name: str - :param storage_envelope: Configuration details of storage. Required. - :type storage_envelope: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param dapr_component_envelope: Configuration details of the Dapr Component. Required. + :type dapr_component_envelope: ~azure.mgmt.appcontainers.models.DaprComponent :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ConnectedEnvironmentStorage. The - ConnectedEnvironmentStorage is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage] + :return: An instance of AsyncLROPoller that returns DaprComponent. The DaprComponent is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.DaprComponent] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -12836,32 +12714,31 @@ async def begin_create_or_update( self, resource_group_name: str, connected_environment_name: str, - storage_name: str, - storage_envelope: JSON, + component_name: str, + dapr_component_envelope: JSON, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.ConnectedEnvironmentStorage]: - """Create or update storage for a connectedEnvironment. + ) -> AsyncLROPoller[_models.DaprComponent]: + """Creates or updates a Dapr Component. - Create or update storage for a connectedEnvironment. + Creates or updates a Dapr Component in a connected environment. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param connected_environment_name: Name of the connectedEnvironment. Required. :type connected_environment_name: str - :param storage_name: Name of the storage. Required. - :type storage_name: str - :param storage_envelope: Configuration details of storage. Required. - :type storage_envelope: JSON + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param dapr_component_envelope: Configuration details of the Dapr Component. Required. + :type dapr_component_envelope: JSON :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ConnectedEnvironmentStorage. The - ConnectedEnvironmentStorage is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage] + :return: An instance of AsyncLROPoller that returns DaprComponent. The DaprComponent is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.DaprComponent] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -12870,32 +12747,31 @@ async def begin_create_or_update( self, resource_group_name: str, connected_environment_name: str, - storage_name: str, - storage_envelope: IO[bytes], + component_name: str, + dapr_component_envelope: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.ConnectedEnvironmentStorage]: - """Create or update storage for a connectedEnvironment. + ) -> AsyncLROPoller[_models.DaprComponent]: + """Creates or updates a Dapr Component. - Create or update storage for a connectedEnvironment. + Creates or updates a Dapr Component in a connected environment. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param connected_environment_name: Name of the connectedEnvironment. Required. :type connected_environment_name: str - :param storage_name: Name of the storage. Required. - :type storage_name: str - :param storage_envelope: Configuration details of storage. Required. - :type storage_envelope: IO[bytes] + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param dapr_component_envelope: Configuration details of the Dapr Component. Required. + :type dapr_component_envelope: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ConnectedEnvironmentStorage. The - ConnectedEnvironmentStorage is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage] + :return: An instance of AsyncLROPoller that returns DaprComponent. The DaprComponent is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.DaprComponent] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -12904,36 +12780,35 @@ async def begin_create_or_update( self, resource_group_name: str, connected_environment_name: str, - storage_name: str, - storage_envelope: Union[_models.ConnectedEnvironmentStorage, JSON, IO[bytes]], + component_name: str, + dapr_component_envelope: Union[_models.DaprComponent, JSON, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.ConnectedEnvironmentStorage]: - """Create or update storage for a connectedEnvironment. + ) -> AsyncLROPoller[_models.DaprComponent]: + """Creates or updates a Dapr Component. - Create or update storage for a connectedEnvironment. + Creates or updates a Dapr Component in a connected environment. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param connected_environment_name: Name of the connectedEnvironment. Required. :type connected_environment_name: str - :param storage_name: Name of the storage. Required. - :type storage_name: str - :param storage_envelope: Configuration details of storage. Is one of the following types: - ConnectedEnvironmentStorage, JSON, IO[bytes] Required. - :type storage_envelope: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage or JSON or + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param dapr_component_envelope: Configuration details of the Dapr Component. Is one of the + following types: DaprComponent, JSON, IO[bytes] Required. + :type dapr_component_envelope: ~azure.mgmt.appcontainers.models.DaprComponent or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns ConnectedEnvironmentStorage. The - ConnectedEnvironmentStorage is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage] + :return: An instance of AsyncLROPoller that returns DaprComponent. The DaprComponent is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.DaprComponent] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = kwargs.pop("params", {}) or {} content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConnectedEnvironmentStorage] = kwargs.pop("cls", None) + cls: ClsType[_models.DaprComponent] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) @@ -12941,8 +12816,8 @@ async def begin_create_or_update( raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, connected_environment_name=connected_environment_name, - storage_name=storage_name, - storage_envelope=storage_envelope, + component_name=component_name, + dapr_component_envelope=dapr_component_envelope, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, @@ -12954,7 +12829,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.ConnectedEnvironmentStorage, response.json()) + deserialized = _deserialize(_models.DaprComponent, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -12972,18 +12847,18 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.ConnectedEnvironmentStorage].from_continuation_token( + return AsyncLROPoller[_models.DaprComponent].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.ConnectedEnvironmentStorage]( + return AsyncLROPoller[_models.DaprComponent]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) async def _delete_initial( - self, resource_group_name: str, connected_environment_name: str, storage_name: str, **kwargs: Any + self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -12998,10 +12873,10 @@ async def _delete_initial( cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_connected_environments_storages_delete_request( + _request = build_connected_environments_dapr_components_delete_request( resource_group_name=resource_group_name, connected_environment_name=connected_environment_name, - storage_name=storage_name, + component_name=component_name, subscription_id=self._config.subscription_id, api_version=self._config.api_version, headers=_headers, @@ -13046,19 +12921,19 @@ async def _delete_initial( @distributed_trace_async async def begin_delete( - self, resource_group_name: str, connected_environment_name: str, storage_name: str, **kwargs: Any + self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: - """Delete storage for a connectedEnvironment. + """Delete a Dapr Component. - Delete storage for a connectedEnvironment. + Delete a Dapr Component from a connected environment. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param connected_environment_name: Name of the connectedEnvironment. Required. + :param connected_environment_name: Name of the connected environment. Required. :type connected_environment_name: str - :param storage_name: Name of the storage. Required. - :type storage_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -13074,7 +12949,7 @@ async def begin_delete( raw_result = await self._delete_initial( resource_group_name=resource_group_name, connected_environment_name=connected_environment_name, - storage_name=storage_name, + component_name=component_name, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -13108,22 +12983,124 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- ) return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - @distributed_trace_async - async def list( + @distributed_trace + def list( self, resource_group_name: str, connected_environment_name: str, **kwargs: Any - ) -> _models.ConnectedEnvironmentStoragesCollection: - """Get all storages for a connectedEnvironment. + ) -> AsyncItemPaged["_models.DaprComponent"]: + """Get the Dapr Components for a connected environment. - Get all storages for a connectedEnvironment. + Get the Dapr Components for a connected environment. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param connected_environment_name: Name of the connectedEnvironment. Required. + :param connected_environment_name: Name of the connected environment. Required. :type connected_environment_name: str - :return: ConnectedEnvironmentStoragesCollection. The ConnectedEnvironmentStoragesCollection is - compatible with MutableMapping - :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStoragesCollection + :return: An iterator like instance of DaprComponent + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.DaprComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.DaprComponent]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_connected_environments_dapr_components_list_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.DaprComponent], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace_async + async def list_secrets( + self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any + ) -> _models.DaprSecretsCollection: + """List secrets for a dapr component. + + List secrets for a dapr component. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connected environment. Required. + :type connected_environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :return: DaprSecretsCollection. The DaprSecretsCollection is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprSecretsCollection :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -13137,11 +13114,12 @@ async def list( _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[_models.ConnectedEnvironmentStoragesCollection] = kwargs.pop("cls", None) + cls: ClsType[_models.DaprSecretsCollection] = kwargs.pop("cls", None) - _request = build_connected_environments_storages_list_request( + _request = build_connected_environments_dapr_components_list_secrets_request( resource_group_name=resource_group_name, connected_environment_name=connected_environment_name, + component_name=component_name, subscription_id=self._config.subscription_id, api_version=self._config.api_version, headers=_headers, @@ -13176,7 +13154,7 @@ async def list( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.ConnectedEnvironmentStoragesCollection, response.json()) + deserialized = _deserialize(_models.DaprSecretsCollection, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -13184,14 +13162,14 @@ async def list( return deserialized # type: ignore -class ManagedEnvironmentsOperations: +class DaprComponentsOperations: """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s - :attr:`managed_environments` attribute. + :attr:`dapr_components` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -13202,18 +13180,22 @@ def __init__(self, *args, **kwargs) -> None: self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace_async - async def get(self, resource_group_name: str, environment_name: str, **kwargs: Any) -> _models.ManagedEnvironment: - """Get the properties of a Managed Environment. + async def get( + self, resource_group_name: str, environment_name: str, component_name: str, **kwargs: Any + ) -> _models.DaprComponent: + """Get a dapr component. - Get the properties of a Managed Environment used to host container apps. + Get a dapr component. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param environment_name: Name of the Environment. Required. + :param environment_name: Name of the Managed Environment. Required. :type environment_name: str - :return: ManagedEnvironment. The ManagedEnvironment is compatible with MutableMapping - :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironment + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :return: DaprComponent. The DaprComponent is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprComponent :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -13227,11 +13209,12 @@ async def get(self, resource_group_name: str, environment_name: str, **kwargs: A _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[_models.ManagedEnvironment] = kwargs.pop("cls", None) + cls: ClsType[_models.DaprComponent] = kwargs.pop("cls", None) - _request = build_managed_environments_get_request( + _request = build_dapr_components_get_request( resource_group_name=resource_group_name, environment_name=environment_name, + component_name=component_name, subscription_id=self._config.subscription_id, api_version=self._config.api_version, headers=_headers, @@ -13258,7 +13241,7 @@ async def get(self, resource_group_name: str, environment_name: str, **kwargs: A pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.ErrorResponse, + _models.DefaultErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -13266,263 +13249,137 @@ async def get(self, resource_group_name: str, environment_name: str, **kwargs: A if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.ManagedEnvironment, response.json()) + deserialized = _deserialize(_models.DaprComponent, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - async def _create_or_update_initial( + @overload + async def create_or_update( self, resource_group_name: str, environment_name: str, - environment_envelope: Union[_models.ManagedEnvironment, JSON, IO[bytes]], + component_name: str, + dapr_component_envelope: _models.DaprComponent, + *, + content_type: str = "application/json", **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(environment_envelope, (IOBase, bytes)): - _content = environment_envelope - else: - _content = json.dumps(environment_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_managed_environments_create_or_update_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - content_type=content_type, - api_version=self._config.api_version, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.ErrorResponse, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 201: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - environment_name: str, - environment_envelope: _models.ManagedEnvironment, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ManagedEnvironment]: - """Creates or updates a Managed Environment. + ) -> _models.DaprComponent: + """Creates or updates a Dapr Component. - Creates or updates a Managed Environment used to host container apps. + Creates or updates a Dapr Component in a Managed Environment. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param environment_name: Name of the Environment. Required. + :param environment_name: Name of the Managed Environment. Required. :type environment_name: str - :param environment_envelope: Configuration details of the Environment. Required. - :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param dapr_component_envelope: Configuration details of the Dapr Component. Required. + :type dapr_component_envelope: ~azure.mgmt.appcontainers.models.DaprComponent :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ManagedEnvironment. The ManagedEnvironment - is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :return: DaprComponent. The DaprComponent is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprComponent :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_create_or_update( + async def create_or_update( self, resource_group_name: str, environment_name: str, - environment_envelope: JSON, + component_name: str, + dapr_component_envelope: JSON, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.ManagedEnvironment]: - """Creates or updates a Managed Environment. + ) -> _models.DaprComponent: + """Creates or updates a Dapr Component. - Creates or updates a Managed Environment used to host container apps. + Creates or updates a Dapr Component in a Managed Environment. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param environment_name: Name of the Environment. Required. + :param environment_name: Name of the Managed Environment. Required. :type environment_name: str - :param environment_envelope: Configuration details of the Environment. Required. - :type environment_envelope: JSON + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param dapr_component_envelope: Configuration details of the Dapr Component. Required. + :type dapr_component_envelope: JSON :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ManagedEnvironment. The ManagedEnvironment - is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :return: DaprComponent. The DaprComponent is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprComponent :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_create_or_update( + async def create_or_update( self, resource_group_name: str, environment_name: str, - environment_envelope: IO[bytes], + component_name: str, + dapr_component_envelope: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.ManagedEnvironment]: - """Creates or updates a Managed Environment. + ) -> _models.DaprComponent: + """Creates or updates a Dapr Component. - Creates or updates a Managed Environment used to host container apps. + Creates or updates a Dapr Component in a Managed Environment. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param environment_name: Name of the Environment. Required. + :param environment_name: Name of the Managed Environment. Required. :type environment_name: str - :param environment_envelope: Configuration details of the Environment. Required. - :type environment_envelope: IO[bytes] + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param dapr_component_envelope: Configuration details of the Dapr Component. Required. + :type dapr_component_envelope: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ManagedEnvironment. The ManagedEnvironment - is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :return: DaprComponent. The DaprComponent is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprComponent :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_create_or_update( + async def create_or_update( self, resource_group_name: str, environment_name: str, - environment_envelope: Union[_models.ManagedEnvironment, JSON, IO[bytes]], + component_name: str, + dapr_component_envelope: Union[_models.DaprComponent, JSON, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.ManagedEnvironment]: - """Creates or updates a Managed Environment. + ) -> _models.DaprComponent: + """Creates or updates a Dapr Component. - Creates or updates a Managed Environment used to host container apps. + Creates or updates a Dapr Component in a Managed Environment. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param environment_name: Name of the Environment. Required. + :param environment_name: Name of the Managed Environment. Required. :type environment_name: str - :param environment_envelope: Configuration details of the Environment. Is one of the following - types: ManagedEnvironment, JSON, IO[bytes] Required. - :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment or JSON or + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param dapr_component_envelope: Configuration details of the Dapr Component. Is one of the + following types: DaprComponent, JSON, IO[bytes] Required. + :type dapr_component_envelope: ~azure.mgmt.appcontainers.models.DaprComponent or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns ManagedEnvironment. The ManagedEnvironment - is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :return: DaprComponent. The DaprComponent is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprComponent :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ManagedEnvironment] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - environment_name=environment_name, - environment_envelope=environment_envelope, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.ManagedEnvironment, response.json()) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ManagedEnvironment].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ManagedEnvironment]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_initial( - self, - resource_group_name: str, - environment_name: str, - environment_envelope: Union[_models.ManagedEnvironment, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -13535,18 +13392,19 @@ async def _update_initial( _params = kwargs.pop("params", {}) or {} content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + cls: ClsType[_models.DaprComponent] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(environment_envelope, (IOBase, bytes)): - _content = environment_envelope + if isinstance(dapr_component_envelope, (IOBase, bytes)): + _content = dapr_component_envelope else: - _content = json.dumps(environment_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(dapr_component_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_managed_environments_update_request( + _request = build_dapr_components_create_or_update_request( resource_group_name=resource_group_name, environment_name=environment_name, + component_name=component_name, subscription_id=self._config.subscription_id, content_type=content_type, api_version=self._config.api_version, @@ -13560,208 +13418,53 @@ async def _update_initial( _request.url = self._client.format_url(_request.url, **path_format_arguments) _decompress = kwargs.pop("decompress", True) - _stream = True + _stream = kwargs.pop("stream", False) pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.ErrorResponse, + _models.DefaultErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DaprComponent, response.json()) if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore + return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - @overload - async def begin_update( - self, - resource_group_name: str, - environment_name: str, - environment_envelope: _models.ManagedEnvironment, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ManagedEnvironment]: - """Update Managed Environment's properties. - - Patches a Managed Environment using JSON Merge Patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :param environment_envelope: Configuration details of the Environment. Required. - :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ManagedEnvironment. The ManagedEnvironment - is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - environment_name: str, - environment_envelope: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ManagedEnvironment]: - """Update Managed Environment's properties. - - Patches a Managed Environment using JSON Merge Patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :param environment_envelope: Configuration details of the Environment. Required. - :type environment_envelope: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ManagedEnvironment. The ManagedEnvironment - is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - environment_name: str, - environment_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ManagedEnvironment]: - """Update Managed Environment's properties. - - Patches a Managed Environment using JSON Merge Patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :param environment_envelope: Configuration details of the Environment. Required. - :type environment_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ManagedEnvironment. The ManagedEnvironment - is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] - :raises ~azure.core.exceptions.HttpResponseError: - """ - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - environment_name: str, - environment_envelope: Union[_models.ManagedEnvironment, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ManagedEnvironment]: - """Update Managed Environment's properties. + async def delete(self, resource_group_name: str, environment_name: str, component_name: str, **kwargs: Any) -> None: + """Delete a Dapr Component. - Patches a Managed Environment using JSON Merge Patch. + Delete a Dapr Component from a Managed Environment. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param environment_name: Name of the Environment. Required. + :param environment_name: Name of the Managed Environment. Required. :type environment_name: str - :param environment_envelope: Configuration details of the Environment. Is one of the following - types: ManagedEnvironment, JSON, IO[bytes] Required. - :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment or JSON or - IO[bytes] - :return: An instance of AsyncLROPoller that returns ManagedEnvironment. The ManagedEnvironment - is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :return: None + :rtype: None :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ManagedEnvironment] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("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, - environment_name=environment_name, - environment_envelope=environment_envelope, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.ManagedEnvironment, response.json()) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ManagedEnvironment].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ManagedEnvironment]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( - self, resource_group_name: str, environment_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -13773,11 +13476,12 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + cls: ClsType[None] = kwargs.pop("cls", None) - _request = build_managed_environments_delete_request( + _request = build_dapr_components_delete_request( resource_group_name=resource_group_name, environment_name=environment_name, + component_name=component_name, subscription_id=self._config.subscription_id, api_version=self._config.api_version, headers=_headers, @@ -13788,133 +13492,60 @@ async def _delete_initial( } _request.url = self._client.format_url(_request.url, **path_format_arguments) - _decompress = kwargs.pop("decompress", True) - _stream = True + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200, 202, 204]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.ErrorResponse, + _models.DefaultErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore + return cls(pipeline_response, None, {}) # type: ignore - @distributed_trace_async - async def begin_delete( + @distributed_trace + def list( self, resource_group_name: str, environment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete a Managed Environment. + ) -> AsyncItemPaged["_models.DaprComponent"]: + """Get the Dapr Components for a managed environment. - Delete a Managed Environment if it does not have any container apps. + Get the Dapr Components for a managed environment. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param environment_name: Name of the Environment. Required. + :param environment_name: Name of the Managed Environment. Required. :type environment_name: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] + :return: An iterator like instance of DaprComponent + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.DaprComponent] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - environment_name=environment_name, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore + cls: ClsType[List[_models.DaprComponent]] = kwargs.pop("cls", None) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, } - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - 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_by_resource_group( - self, resource_group_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.ManagedEnvironment"]: - """Get all the Environments in a resource group. - - Get all the Managed Environments in a resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :return: An iterator like instance of ManagedEnvironment - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.ManagedEnvironment] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[_models.ManagedEnvironment]] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) + error_map.update(kwargs.pop("error_map", {}) or {}) def prepare_request(next_link=None): if not next_link: - _request = build_managed_environments_list_by_resource_group_request( + _request = build_dapr_components_list_request( resource_group_name=resource_group_name, + environment_name=environment_name, subscription_id=self._config.subscription_id, api_version=self._config.api_version, headers=_headers, @@ -13952,7 +13583,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.ManagedEnvironment], + List[_models.DaprComponent], deserialized.get("value", []), ) if cls: @@ -13971,7 +13602,7 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.ErrorResponse, + _models.DefaultErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -13980,22 +13611,121 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.ManagedEnvironment"]: - """Get all Environments for a subscription. + @distributed_trace_async + async def list_secrets( + self, resource_group_name: str, environment_name: str, component_name: str, **kwargs: Any + ) -> _models.DaprSecretsCollection: + """List secrets for a dapr component. - Get all Managed Environments for a subscription. + List secrets for a dapr component. - :return: An iterator like instance of ManagedEnvironment - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :return: DaprSecretsCollection. The DaprSecretsCollection is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprSecretsCollection :raises ~azure.core.exceptions.HttpResponseError: """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[List[_models.ManagedEnvironment]] = kwargs.pop("cls", None) + cls: ClsType[_models.DaprSecretsCollection] = kwargs.pop("cls", None) + + _request = build_dapr_components_list_secrets_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + component_name=component_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DaprSecretsCollection, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class ConnectedEnvironmentsStoragesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.aio.ContainerAppsAPIClient`'s + :attr:`connected_environments_storages` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, connected_environment_name: str, storage_name: str, **kwargs: Any + ) -> _models.ConnectedEnvironmentStorage: + """Get storage for a connectedEnvironment. + + Get storage for a connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :return: ConnectedEnvironmentStorage. The ConnectedEnvironmentStorage is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage + :raises ~azure.core.exceptions.HttpResponseError: + """ error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -14004,92 +13734,323 @@ def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.Managed } error_map.update(kwargs.pop("error_map", {}) or {}) - def prepare_request(next_link=None): - if not next_link: + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} - _request = build_managed_environments_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=self._config.api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + cls: ClsType[_models.ConnectedEnvironmentStorage] = kwargs.pop("cls", None) - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + _request = build_connected_environments_storages_get_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + storage_name=storage_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - return _request + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.ManagedEnvironment], - deserialized.get("value", []), + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - async def get_next(next_link=None): - _request = prepare_request(next_link) + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ConnectedEnvironmentStorage, response.json()) - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + connected_environment_name: str, + storage_name: str, + storage_envelope: Union[_models.ConnectedEnvironmentStorage, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(storage_envelope, (IOBase, bytes)): + _content = storage_envelope + else: + _content = json.dumps(storage_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_connected_environments_storages_create_or_update_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + storage_name=storage_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, ) - response = pipeline_response.http_response + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.ErrorResponse, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - return pipeline_response + deserialized = response.iter_bytes() if _decompress else response.iter_raw() - return AsyncItemPaged(get_next, extract_data) + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + storage_name: str, + storage_envelope: _models.ConnectedEnvironmentStorage, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ConnectedEnvironmentStorage]: + """Create or update storage for a connectedEnvironment. + + Create or update storage for a connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :param storage_envelope: Configuration details of storage. Required. + :type storage_envelope: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ConnectedEnvironmentStorage. The + ConnectedEnvironmentStorage is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + storage_name: str, + storage_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ConnectedEnvironmentStorage]: + """Create or update storage for a connectedEnvironment. + + Create or update storage for a connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :param storage_envelope: Configuration details of storage. Required. + :type storage_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ConnectedEnvironmentStorage. The + ConnectedEnvironmentStorage is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + storage_name: str, + storage_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ConnectedEnvironmentStorage]: + """Create or update storage for a connectedEnvironment. + + Create or update storage for a connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :param storage_envelope: Configuration details of storage. Required. + :type storage_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ConnectedEnvironmentStorage. The + ConnectedEnvironmentStorage is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + storage_name: str, + storage_envelope: Union[_models.ConnectedEnvironmentStorage, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.ConnectedEnvironmentStorage]: + """Create or update storage for a connectedEnvironment. + + Create or update storage for a connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :param storage_envelope: Configuration details of storage. Is one of the following types: + ConnectedEnvironmentStorage, JSON, IO[bytes] Required. + :type storage_envelope: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage or JSON or + IO[bytes] + :return: An instance of AsyncLROPoller that returns ConnectedEnvironmentStorage. The + ConnectedEnvironmentStorage is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ConnectedEnvironmentStorage] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + storage_name=storage_name, + storage_envelope=storage_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.ConnectedEnvironmentStorage, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized - @distributed_trace_async - async def get_auth_token( - self, resource_group_name: str, environment_name: str, **kwargs: Any - ) -> _models.EnvironmentAuthToken: - """Get auth token for a managed environment. + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } - Checks if resource name is available. + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.ConnectedEnvironmentStorage].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.ConnectedEnvironmentStorage]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :return: EnvironmentAuthToken. The EnvironmentAuthToken is compatible with MutableMapping - :rtype: ~azure.mgmt.appcontainers.models.EnvironmentAuthToken - :raises ~azure.core.exceptions.HttpResponseError: - """ + async def _delete_initial( + self, resource_group_name: str, connected_environment_name: str, storage_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -14101,11 +14062,12 @@ async def get_auth_token( _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[_models.EnvironmentAuthToken] = kwargs.pop("cls", None) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_managed_environments_get_auth_token_request( + _request = build_connected_environments_storages_delete_request( resource_group_name=resource_group_name, - environment_name=environment_name, + connected_environment_name=connected_environment_name, + storage_name=storage_name, subscription_id=self._config.subscription_id, api_version=self._config.api_version, headers=_headers, @@ -14117,19 +14079,18 @@ async def get_auth_token( _request.url = self._client.format_url(_request.url, **path_format_arguments) _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) + _stream = True pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( _models.ErrorResponse, @@ -14137,39 +14098,100 @@ async def get_auth_token( ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.EnvironmentAuthToken, response.json()) + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized # type: ignore - @distributed_trace - def list_workload_profile_states( - self, resource_group_name: str, environment_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.WorkloadProfileStates"]: - """Get all workload Profile States for a Managed Environment.. + @distributed_trace_async + async def begin_delete( + self, resource_group_name: str, connected_environment_name: str, storage_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Delete storage for a connectedEnvironment. - Get all workload Profile States for a Managed Environment. + Delete storage for a connectedEnvironment. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :return: An iterator like instance of WorkloadProfileStates - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appcontainers.models.WorkloadProfileStates] + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[List[_models.WorkloadProfileStates]] = kwargs.pop("cls", 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._delete_initial( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + storage_name=storage_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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( + self, resource_group_name: str, connected_environment_name: str, **kwargs: Any + ) -> _models.ConnectedEnvironmentStoragesCollection: + """Get all storages for a connectedEnvironment. + Get all storages for a connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :return: ConnectedEnvironmentStoragesCollection. The ConnectedEnvironmentStoragesCollection is + compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStoragesCollection + :raises ~azure.core.exceptions.HttpResponseError: + """ error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -14178,76 +14200,54 @@ def list_workload_profile_states( } error_map.update(kwargs.pop("error_map", {}) or {}) - def prepare_request(next_link=None): - if not next_link: - - _request = build_managed_environments_list_workload_profile_states_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=self._config.api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + cls: ClsType[_models.ConnectedEnvironmentStoragesCollection] = kwargs.pop("cls", None) - return _request + _request = build_connected_environments_storages_list_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.WorkloadProfileStates], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) - async def get_next(next_link=None): - _request = prepare_request(next_link) + response = pipeline_response.http_response - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, ) - response = pipeline_response.http_response + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.ErrorResponse, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ConnectedEnvironmentStoragesCollection, response.json()) - return pipeline_response + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore - return AsyncItemPaged(get_next, extract_data) + return deserialized # type: ignore class ManagedCertificatesOperations: diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/__init__.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/__init__.py index 20ee8ccdc12a..7abaedc3e488 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/__init__.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/__init__.py @@ -283,8 +283,8 @@ Runtime, RuntimeDotnet, RuntimeJava, - RuntimeJavaJavaAgent, - RuntimeJavaJavaAgentLogging, + RuntimeJavaAgent, + RuntimeJavaAgentLogging, Scale, ScaleConfiguration, ScaleRule, @@ -697,8 +697,8 @@ "Runtime", "RuntimeDotnet", "RuntimeJava", - "RuntimeJavaJavaAgent", - "RuntimeJavaJavaAgentLogging", + "RuntimeJavaAgent", + "RuntimeJavaAgentLogging", "Scale", "ScaleConfiguration", "ScaleRule", diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_models.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_models.py index a492f8ba9279..e67a27c59a0d 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_models.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/models/_models.py @@ -12467,14 +12467,14 @@ class RuntimeJava(_Model): :ivar enable_metrics: Enable jmx core metrics for the java app. :vartype enable_metrics: bool :ivar java_agent: Diagnostic capabilities achieved by java agent. - :vartype java_agent: ~azure.mgmt.appcontainers.models.RuntimeJavaJavaAgent + :vartype java_agent: ~azure.mgmt.appcontainers.models.RuntimeJavaAgent """ enable_metrics: Optional[bool] = rest_field( name="enableMetrics", visibility=["read", "create", "update", "delete", "query"] ) """Enable jmx core metrics for the java app.""" - java_agent: Optional["_models.RuntimeJavaJavaAgent"] = rest_field( + java_agent: Optional["_models.RuntimeJavaAgent"] = rest_field( name="javaAgent", visibility=["read", "create", "update", "delete", "query"] ) """Diagnostic capabilities achieved by java agent.""" @@ -12484,7 +12484,7 @@ def __init__( self, *, enable_metrics: Optional[bool] = None, - java_agent: Optional["_models.RuntimeJavaJavaAgent"] = None, + java_agent: Optional["_models.RuntimeJavaAgent"] = None, ) -> None: ... @overload @@ -12498,18 +12498,18 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RuntimeJavaJavaAgent(_Model): +class RuntimeJavaAgent(_Model): """Diagnostic capabilities achieved by java agent. :ivar enabled: Enable java agent injection for the java app. :vartype enabled: bool :ivar logging: Capabilities on the java logging scenario. - :vartype logging: ~azure.mgmt.appcontainers.models.RuntimeJavaJavaAgentLogging + :vartype logging: ~azure.mgmt.appcontainers.models.RuntimeJavaAgentLogging """ enabled: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Enable java agent injection for the java app.""" - logging: Optional["_models.RuntimeJavaJavaAgentLogging"] = rest_field( + logging: Optional["_models.RuntimeJavaAgentLogging"] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) """Capabilities on the java logging scenario.""" @@ -12519,7 +12519,7 @@ def __init__( self, *, enabled: Optional[bool] = None, - logging: Optional["_models.RuntimeJavaJavaAgentLogging"] = None, + logging: Optional["_models.RuntimeJavaAgentLogging"] = None, ) -> None: ... @overload @@ -12533,7 +12533,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RuntimeJavaJavaAgentLogging(_Model): +class RuntimeJavaAgentLogging(_Model): """Capabilities on the java logging scenario. :ivar logger_settings: Settings of the logger for the java app. diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/__init__.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/__init__.py index 0d43041a94b4..f55da524683f 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/__init__.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/__init__.py @@ -31,10 +31,10 @@ from ._operations import BuildsOperations # type: ignore from ._operations import ConnectedEnvironmentsOperations # type: ignore from ._operations import CertificatesOperations # type: ignore +from ._operations import ManagedEnvironmentsOperations # type: ignore from ._operations import ConnectedEnvironmentsDaprComponentsOperations # type: ignore from ._operations import DaprComponentsOperations # type: ignore from ._operations import ConnectedEnvironmentsStoragesOperations # type: ignore -from ._operations import ManagedEnvironmentsOperations # type: ignore from ._operations import ManagedCertificatesOperations # type: ignore from ._operations import DaprComponentResiliencyPoliciesOperations # type: ignore from ._operations import DaprSubscriptionsOperations # type: ignore @@ -85,10 +85,10 @@ "BuildsOperations", "ConnectedEnvironmentsOperations", "CertificatesOperations", + "ManagedEnvironmentsOperations", "ConnectedEnvironmentsDaprComponentsOperations", "DaprComponentsOperations", "ConnectedEnvironmentsStoragesOperations", - "ManagedEnvironmentsOperations", "ManagedCertificatesOperations", "DaprComponentResiliencyPoliciesOperations", "DaprSubscriptionsOperations", diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_operations.py b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_operations.py index 0e99ad19caa2..f6f5aa3372fe 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_operations.py +++ b/sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/operations/_operations.py @@ -2548,6 +2548,229 @@ def build_certificates_list_request( return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) +def build_managed_environments_get_request( + resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_managed_environments_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_managed_environments_update_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_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_managed_environments_delete_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_managed_environments_list_by_resource_group_request( # pylint: disable=name-too-long + 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", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = ( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments" + ) + 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_managed_environments_list_by_subscription_request( # pylint: disable=name-too-long + subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.App/managedEnvironments" + 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_managed_environments_get_auth_token_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/getAuthtoken" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_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_managed_environments_list_workload_profile_states_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/workloadProfileStates" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + def build_connected_environments_dapr_components_get_request( # pylint: disable=name-too-long resource_group_name: str, connected_environment_name: str, component_name: str, subscription_id: str, **kwargs: Any ) -> HttpRequest: @@ -2942,8 +3165,8 @@ def build_connected_environments_storages_list_request( # pylint: disable=name- return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) -def build_managed_environments_get_request( - resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any +def build_managed_certificates_get_request( + resource_group_name: str, environment_name: str, managed_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 {}) @@ -2952,11 +3175,12 @@ def build_managed_environments_get_request( accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}" + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "managedCertificateName": _SERIALIZER.url("managed_certificate_name", managed_certificate_name, "str"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -2970,8 +3194,8 @@ def build_managed_environments_get_request( return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) -def build_managed_environments_create_or_update_request( # pylint: disable=name-too-long - resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any +def build_managed_certificates_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, managed_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 {}) @@ -2981,11 +3205,12 @@ def build_managed_environments_create_or_update_request( # pylint: disable=name accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}" + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "managedCertificateName": _SERIALIZER.url("managed_certificate_name", managed_certificate_name, "str"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -3001,8 +3226,8 @@ def build_managed_environments_create_or_update_request( # pylint: disable=name return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) -def build_managed_environments_update_request( # pylint: disable=name-too-long - resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any +def build_managed_certificates_update_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, managed_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 {}) @@ -3012,11 +3237,12 @@ def build_managed_environments_update_request( # pylint: disable=name-too-long accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}" + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "managedCertificateName": _SERIALIZER.url("managed_certificate_name", managed_certificate_name, "str"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -3032,18 +3258,19 @@ def build_managed_environments_update_request( # pylint: disable=name-too-long return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) -def build_managed_environments_delete_request( # pylint: disable=name-too-long - resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any +def build_managed_certificates_delete_request( # pylint: disable=name-too-long + resource_group_name: str, environment_name: str, managed_certificate_name: str, subscription_id: str, **kwargs: Any ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}" + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}" path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), + "managedCertificateName": _SERIALIZER.url("managed_certificate_name", managed_certificate_name, "str"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -3054,235 +3281,8 @@ def build_managed_environments_delete_request( # pylint: disable=name-too-long return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) -def build_managed_environments_list_by_resource_group_request( # pylint: disable=name-too-long - 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", "2025-10-02-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = ( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments" - ) - 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_managed_environments_list_by_subscription_request( # pylint: disable=name-too-long - subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = "/subscriptions/{subscriptionId}/providers/Microsoft.App/managedEnvironments" - 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_managed_environments_get_auth_token_request( # pylint: disable=name-too-long - resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/getAuthtoken" - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_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_managed_environments_list_workload_profile_states_request( # pylint: disable=name-too-long - resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/workloadProfileStates" - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_managed_certificates_get_request( - resource_group_name: str, environment_name: str, managed_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", "2025-10-02-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}" - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), - "managedCertificateName": _SERIALIZER.url("managed_certificate_name", managed_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_managed_certificates_create_or_update_request( # pylint: disable=name-too-long - resource_group_name: str, environment_name: str, managed_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 {}) - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}" - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), - "managedCertificateName": _SERIALIZER.url("managed_certificate_name", managed_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_managed_certificates_update_request( # pylint: disable=name-too-long - resource_group_name: str, environment_name: str, managed_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 {}) - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}" - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), - "managedCertificateName": _SERIALIZER.url("managed_certificate_name", managed_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="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_managed_certificates_delete_request( # pylint: disable=name-too-long - resource_group_name: str, environment_name: str, managed_certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-10-02-preview")) - # Construct URL - _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}" - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "environmentName": _SERIALIZER.url("environment_name", environment_name, "str"), - "managedCertificateName": _SERIALIZER.url("managed_certificate_name", managed_certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) - - -def build_managed_certificates_list_request( - resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any +def build_managed_certificates_list_request( + resource_group_name: str, environment_name: str, subscription_id: str, **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) @@ -16554,14 +16554,14 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ConnectedEnvironmentsDaprComponentsOperations: # pylint: disable=name-too-long +class ManagedEnvironmentsOperations: """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`connected_environments_dapr_components` attribute. + :attr:`managed_environments` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -16572,22 +16572,18 @@ def __init__(self, *args, **kwargs) -> None: self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace - def get( - self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any - ) -> _models.DaprComponent: - """Get a dapr component. + def get(self, resource_group_name: str, environment_name: str, **kwargs: Any) -> _models.ManagedEnvironment: + """Get the properties of a Managed Environment. - Get a dapr component. + Get the properties of a Managed Environment used to host container apps. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param connected_environment_name: Name of the connected environment. Required. - :type connected_environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :return: DaprComponent. The DaprComponent is compatible with MutableMapping - :rtype: ~azure.mgmt.appcontainers.models.DaprComponent + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :return: ManagedEnvironment. The ManagedEnvironment is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironment :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -16601,12 +16597,11 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[_models.DaprComponent] = kwargs.pop("cls", None) + cls: ClsType[_models.ManagedEnvironment] = kwargs.pop("cls", None) - _request = build_connected_environments_dapr_components_get_request( + _request = build_managed_environments_get_request( resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - component_name=component_name, + environment_name=environment_name, subscription_id=self._config.subscription_id, api_version=self._config.api_version, headers=_headers, @@ -16633,7 +16628,7 @@ def get( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.DefaultErrorResponse, + _models.ErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -16641,7 +16636,7 @@ def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.DaprComponent, response.json()) + deserialized = _deserialize(_models.ManagedEnvironment, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -16651,9 +16646,8 @@ def get( def _create_or_update_initial( self, resource_group_name: str, - connected_environment_name: str, - component_name: str, - dapr_component_envelope: Union[_models.DaprComponent, JSON, IO[bytes]], + environment_name: str, + environment_envelope: Union[_models.ManagedEnvironment, JSON, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -16672,15 +16666,14 @@ def _create_or_update_initial( content_type = content_type or "application/json" _content = None - if isinstance(dapr_component_envelope, (IOBase, bytes)): - _content = dapr_component_envelope + if isinstance(environment_envelope, (IOBase, bytes)): + _content = environment_envelope else: - _content = json.dumps(dapr_component_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(environment_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_connected_environments_dapr_components_create_or_update_request( + _request = build_managed_environments_create_or_update_request( resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - component_name=component_name, + environment_name=environment_name, subscription_id=self._config.subscription_id, content_type=content_type, api_version=self._config.api_version, @@ -16715,9 +16708,7 @@ def _create_or_update_initial( response_headers = {} if response.status_code == 201: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -16731,32 +16722,29 @@ def _create_or_update_initial( def begin_create_or_update( self, resource_group_name: str, - connected_environment_name: str, - component_name: str, - dapr_component_envelope: _models.DaprComponent, + environment_name: str, + environment_envelope: _models.ManagedEnvironment, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.DaprComponent]: - """Creates or updates a Dapr Component. + ) -> LROPoller[_models.ManagedEnvironment]: + """Creates or updates a Managed Environment. - Creates or updates a Dapr Component in a connected environment. + Creates or updates a Managed Environment used to host container apps. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param connected_environment_name: Name of the connectedEnvironment. Required. - :type connected_environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :param dapr_component_envelope: Configuration details of the Dapr Component. Required. - :type dapr_component_envelope: ~azure.mgmt.appcontainers.models.DaprComponent + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param environment_envelope: Configuration details of the Environment. Required. + :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns DaprComponent. The DaprComponent is compatible - with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.DaprComponent] + :return: An instance of LROPoller that returns ManagedEnvironment. The ManagedEnvironment is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -16764,32 +16752,29 @@ def begin_create_or_update( def begin_create_or_update( self, resource_group_name: str, - connected_environment_name: str, - component_name: str, - dapr_component_envelope: JSON, + environment_name: str, + environment_envelope: JSON, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.DaprComponent]: - """Creates or updates a Dapr Component. + ) -> LROPoller[_models.ManagedEnvironment]: + """Creates or updates a Managed Environment. - Creates or updates a Dapr Component in a connected environment. + Creates or updates a Managed Environment used to host container apps. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param connected_environment_name: Name of the connectedEnvironment. Required. - :type connected_environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :param dapr_component_envelope: Configuration details of the Dapr Component. Required. - :type dapr_component_envelope: JSON + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param environment_envelope: Configuration details of the Environment. Required. + :type environment_envelope: JSON :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns DaprComponent. The DaprComponent is compatible - with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.DaprComponent] + :return: An instance of LROPoller that returns ManagedEnvironment. The ManagedEnvironment is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -16797,32 +16782,29 @@ def begin_create_or_update( def begin_create_or_update( self, resource_group_name: str, - connected_environment_name: str, - component_name: str, - dapr_component_envelope: IO[bytes], + environment_name: str, + environment_envelope: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.DaprComponent]: - """Creates or updates a Dapr Component. + ) -> LROPoller[_models.ManagedEnvironment]: + """Creates or updates a Managed Environment. - Creates or updates a Dapr Component in a connected environment. + Creates or updates a Managed Environment used to host container apps. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param connected_environment_name: Name of the connectedEnvironment. Required. - :type connected_environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :param dapr_component_envelope: Configuration details of the Dapr Component. Required. - :type dapr_component_envelope: IO[bytes] + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param environment_envelope: Configuration details of the Environment. Required. + :type environment_envelope: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns DaprComponent. The DaprComponent is compatible - with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.DaprComponent] + :return: An instance of LROPoller that returns ManagedEnvironment. The ManagedEnvironment is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -16830,45 +16812,41 @@ def begin_create_or_update( def begin_create_or_update( self, resource_group_name: str, - connected_environment_name: str, - component_name: str, - dapr_component_envelope: Union[_models.DaprComponent, JSON, IO[bytes]], + environment_name: str, + environment_envelope: Union[_models.ManagedEnvironment, JSON, IO[bytes]], **kwargs: Any - ) -> LROPoller[_models.DaprComponent]: - """Creates or updates a Dapr Component. + ) -> LROPoller[_models.ManagedEnvironment]: + """Creates or updates a Managed Environment. - Creates or updates a Dapr Component in a connected environment. + Creates or updates a Managed Environment used to host container apps. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param connected_environment_name: Name of the connectedEnvironment. Required. - :type connected_environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :param dapr_component_envelope: Configuration details of the Dapr Component. Is one of the - following types: DaprComponent, JSON, IO[bytes] Required. - :type dapr_component_envelope: ~azure.mgmt.appcontainers.models.DaprComponent or JSON or + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param environment_envelope: Configuration details of the Environment. Is one of the following + types: ManagedEnvironment, JSON, IO[bytes] Required. + :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment or JSON or IO[bytes] - :return: An instance of LROPoller that returns DaprComponent. The DaprComponent is compatible - with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.DaprComponent] + :return: An instance of LROPoller that returns ManagedEnvironment. The ManagedEnvironment is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = kwargs.pop("params", {}) or {} content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DaprComponent] = kwargs.pop("cls", None) + cls: ClsType[_models.ManagedEnvironment] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = self._create_or_update_initial( resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - component_name=component_name, - dapr_component_envelope=dapr_component_envelope, + environment_name=environment_name, + environment_envelope=environment_envelope, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, @@ -16880,7 +16858,7 @@ def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.DaprComponent, response.json()) + deserialized = _deserialize(_models.ManagedEnvironment, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -16898,18 +16876,22 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return LROPoller[_models.DaprComponent].from_continuation_token( + return LROPoller[_models.ManagedEnvironment].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return LROPoller[_models.DaprComponent]( + return LROPoller[_models.ManagedEnvironment]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - def _delete_initial( - self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any + def _update_initial( + self, + resource_group_name: str, + environment_name: str, + environment_envelope: Union[_models.ManagedEnvironment, JSON, IO[bytes]], + **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -16919,17 +16901,26 @@ def _delete_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = kwargs.pop("params", {}) or {} + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - _request = build_connected_environments_dapr_components_delete_request( + content_type = content_type or "application/json" + _content = None + if isinstance(environment_envelope, (IOBase, bytes)): + _content = environment_envelope + else: + _content = json.dumps(environment_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_managed_environments_update_request( resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - component_name=component_name, + environment_name=environment_name, subscription_id=self._config.subscription_id, + content_type=content_type, api_version=self._config.api_version, + content=_content, headers=_headers, params=_params, ) @@ -16946,7 +16937,7 @@ def _delete_initial( response = pipeline_response.http_response - if response.status_code not in [202, 204]: + if response.status_code not in [200, 202]: try: response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -16970,190 +16961,175 @@ def _delete_initial( return deserialized # type: ignore - @distributed_trace - def begin_delete( - self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete a Dapr Component. + @overload + def begin_update( + self, + resource_group_name: str, + environment_name: str, + environment_envelope: _models.ManagedEnvironment, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ManagedEnvironment]: + """Update Managed Environment's properties. - Delete a Dapr Component from a connected environment. + Patches a Managed Environment using JSON Merge Patch. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param connected_environment_name: Name of the connected environment. Required. - :type connected_environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :return: An instance of LROPoller that returns None - :rtype: ~azure.core.polling.LROPoller[None] + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param environment_envelope: Configuration details of the Environment. Required. + :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ManagedEnvironment. The ManagedEnvironment is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - component_name=component_name, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore + @overload + def begin_update( + self, + resource_group_name: str, + environment_name: str, + environment_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ManagedEnvironment]: + """Update Managed Environment's properties. - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - 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, connected_environment_name: str, **kwargs: Any - ) -> ItemPaged["_models.DaprComponent"]: - """Get the Dapr Components for a connected environment. - - Get the Dapr Components for a connected environment. + Patches a Managed Environment using JSON Merge Patch. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param connected_environment_name: Name of the connected environment. Required. - :type connected_environment_name: str - :return: An iterator like instance of DaprComponent - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.DaprComponent] + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param environment_envelope: Configuration details of the Environment. Required. + :type environment_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ManagedEnvironment. The ManagedEnvironment is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - cls: ClsType[List[_models.DaprComponent]] = kwargs.pop("cls", None) + @overload + def begin_update( + self, + resource_group_name: str, + environment_name: str, + environment_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ManagedEnvironment]: + """Update Managed Environment's properties. - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) + Patches a Managed Environment using JSON Merge Patch. - def prepare_request(next_link=None): - if not next_link: + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param environment_envelope: Configuration details of the Environment. Required. + :type environment_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ManagedEnvironment. The ManagedEnvironment is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ - _request = build_connected_environments_dapr_components_list_request( - resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - subscription_id=self._config.subscription_id, - api_version=self._config.api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + @distributed_trace + def begin_update( + self, + resource_group_name: str, + environment_name: str, + environment_envelope: Union[_models.ManagedEnvironment, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.ManagedEnvironment]: + """Update Managed Environment's properties. - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + Patches a Managed Environment using JSON Merge Patch. - return _request + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :param environment_envelope: Configuration details of the Environment. Is one of the following + types: ManagedEnvironment, JSON, IO[bytes] Required. + :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment or JSON or + IO[bytes] + :return: An instance of LROPoller that returns ManagedEnvironment. The ManagedEnvironment is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} - def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.DaprComponent], - deserialized.get("value", []), + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ManagedEnvironment] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.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, + environment_name=environment_name, + environment_envelope=environment_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) + def get_long_running_output(pipeline_response): response = pipeline_response.http_response + deserialized = _deserialize(_models.ManagedEnvironment, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.DefaultErrorResponse, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_secrets( - self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any - ) -> _models.DaprSecretsCollection: - """List secrets for a dapr component. + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } - List secrets for a dapr component. + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.ManagedEnvironment].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.ManagedEnvironment]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param connected_environment_name: Name of the connected environment. Required. - :type connected_environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :return: DaprSecretsCollection. The DaprSecretsCollection is compatible with MutableMapping - :rtype: ~azure.mgmt.appcontainers.models.DaprSecretsCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ + def _delete_initial(self, resource_group_name: str, environment_name: str, **kwargs: Any) -> Iterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -17165,12 +17141,11 @@ def list_secrets( _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[_models.DaprSecretsCollection] = kwargs.pop("cls", None) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - _request = build_connected_environments_dapr_components_list_secrets_request( + _request = build_managed_environments_delete_request( resource_group_name=resource_group_name, - connected_environment_name=connected_environment_name, - component_name=component_name, + environment_name=environment_name, subscription_id=self._config.subscription_id, api_version=self._config.api_version, headers=_headers, @@ -17182,255 +17157,116 @@ def list_secrets( _request.url = self._client.format_url(_request.url, **path_format_arguments) _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) + _stream = True pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200]: - if _stream: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [200, 202, 204]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.DefaultErrorResponse, + _models.ErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.DaprSecretsCollection, response.json()) + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized # type: ignore + @distributed_trace + def begin_delete(self, resource_group_name: str, environment_name: str, **kwargs: Any) -> LROPoller[None]: + """Delete a Managed Environment. -class DaprComponentsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`dapr_components` attribute. - """ - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def get( - self, resource_group_name: str, environment_name: str, component_name: str, **kwargs: Any - ) -> _models.DaprComponent: - """Get a dapr component. - - Get a dapr component. + Delete a Managed Environment if it does not have any container apps. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. + :param environment_name: Name of the Environment. Required. :type environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :return: DaprComponent. The DaprComponent is compatible with MutableMapping - :rtype: ~azure.mgmt.appcontainers.models.DaprComponent + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[_models.DaprComponent] = kwargs.pop("cls", 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._delete_initial( + resource_group_name=resource_group_name, + environment_name=environment_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore - _request = build_dapr_components_get_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - component_name=component_name, - subscription_id=self._config.subscription_id, - api_version=self._config.api_version, - headers=_headers, - params=_params, - ) path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - if _stream: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.DefaultErrorResponse, - response, + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) else: - deserialized = _deserialize(_models.DaprComponent, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def create_or_update( - self, - resource_group_name: str, - environment_name: str, - component_name: str, - dapr_component_envelope: _models.DaprComponent, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.DaprComponent: - """Creates or updates a Dapr Component. - - Creates or updates a Dapr Component in a Managed Environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :param dapr_component_envelope: Configuration details of the Dapr Component. Required. - :type dapr_component_envelope: ~azure.mgmt.appcontainers.models.DaprComponent - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: DaprComponent. The DaprComponent is compatible with MutableMapping - :rtype: ~azure.mgmt.appcontainers.models.DaprComponent - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update( - self, - resource_group_name: str, - environment_name: str, - component_name: str, - dapr_component_envelope: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.DaprComponent: - """Creates or updates a Dapr Component. - - Creates or updates a Dapr Component in a Managed Environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :param dapr_component_envelope: Configuration details of the Dapr Component. Required. - :type dapr_component_envelope: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: DaprComponent. The DaprComponent is compatible with MutableMapping - :rtype: ~azure.mgmt.appcontainers.models.DaprComponent - :raises ~azure.core.exceptions.HttpResponseError: - """ + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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 create_or_update( - self, - resource_group_name: str, - environment_name: str, - component_name: str, - dapr_component_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.DaprComponent: - """Creates or updates a Dapr Component. + @distributed_trace + def list_by_resource_group( + self, resource_group_name: str, **kwargs: Any + ) -> ItemPaged["_models.ManagedEnvironment"]: + """Get all the Environments in a resource group. - Creates or updates a Dapr Component in a Managed Environment. + Get all the Managed Environments in a resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :param dapr_component_envelope: Configuration details of the Dapr Component. Required. - :type dapr_component_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: DaprComponent. The DaprComponent is compatible with MutableMapping - :rtype: ~azure.mgmt.appcontainers.models.DaprComponent + :return: An iterator like instance of ManagedEnvironment + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.ManagedEnvironment] :raises ~azure.core.exceptions.HttpResponseError: """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} - @distributed_trace - def create_or_update( - self, - resource_group_name: str, - environment_name: str, - component_name: str, - dapr_component_envelope: Union[_models.DaprComponent, JSON, IO[bytes]], - **kwargs: Any - ) -> _models.DaprComponent: - """Creates or updates a Dapr Component. - - Creates or updates a Dapr Component in a Managed Environment. + cls: ClsType[List[_models.ManagedEnvironment]] = kwargs.pop("cls", None) - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :param dapr_component_envelope: Configuration details of the Dapr Component. Is one of the - following types: DaprComponent, JSON, IO[bytes] Required. - :type dapr_component_envelope: ~azure.mgmt.appcontainers.models.DaprComponent or JSON or - IO[bytes] - :return: DaprComponent. The DaprComponent is compatible with MutableMapping - :rtype: ~azure.mgmt.appcontainers.models.DaprComponent - :raises ~azure.core.exceptions.HttpResponseError: - """ error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -17439,151 +17275,90 @@ def create_or_update( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} + def prepare_request(next_link=None): + if not next_link: - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DaprComponent] = kwargs.pop("cls", None) + _request = build_managed_environments_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - content_type = content_type or "application/json" - _content = None - if isinstance(dapr_component_envelope, (IOBase, bytes)): - _content = dapr_component_envelope - else: - _content = json.dumps(dapr_component_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_dapr_components_create_or_update_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - component_name=component_name, - subscription_id=self._config.subscription_id, - content_type=content_type, - api_version=self._config.api_version, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - response = pipeline_response.http_response + return _request - if response.status_code not in [200]: - if _stream: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.DefaultErrorResponse, - response, + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ManagedEnvironment], + deserialized.get("value", []), ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.DaprComponent, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def delete( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, environment_name: str, component_name: str, **kwargs: Any - ) -> None: - """Delete a Dapr Component. - - Delete a Dapr Component from a Managed Environment. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :return: None - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[None] = kwargs.pop("cls", None) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) - _request = build_dapr_components_delete_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - component_name=component_name, - subscription_id=self._config.subscription_id, - api_version=self._config.api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + def get_next(next_link=None): + _request = prepare_request(next_link) - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response - response = pipeline_response.http_response + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.DefaultErrorResponse, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + return pipeline_response - if cls: - return cls(pipeline_response, None, {}) # type: ignore + return ItemPaged(get_next, extract_data) @distributed_trace - def list( - self, resource_group_name: str, environment_name: str, **kwargs: Any - ) -> ItemPaged["_models.DaprComponent"]: - """Get the Dapr Components for a managed environment. + def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.ManagedEnvironment"]: + """Get all Environments for a subscription. - Get the Dapr Components for a managed environment. + Get all Managed Environments for a subscription. - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. - :type environment_name: str - :return: An iterator like instance of DaprComponent - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.DaprComponent] + :return: An iterator like instance of ManagedEnvironment + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.ManagedEnvironment] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[List[_models.DaprComponent]] = kwargs.pop("cls", None) + cls: ClsType[List[_models.ManagedEnvironment]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -17596,9 +17371,7 @@ def list( def prepare_request(next_link=None): if not next_link: - _request = build_dapr_components_list_request( - resource_group_name=resource_group_name, - environment_name=environment_name, + _request = build_managed_environments_list_by_subscription_request( subscription_id=self._config.subscription_id, api_version=self._config.api_version, headers=_headers, @@ -17636,7 +17409,7 @@ def prepare_request(next_link=None): def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.DaprComponent], + List[_models.ManagedEnvironment], deserialized.get("value", []), ) if cls: @@ -17655,7 +17428,7 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.DefaultErrorResponse, + _models.ErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -17665,22 +17438,20 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) @distributed_trace - def list_secrets( - self, resource_group_name: str, environment_name: str, component_name: str, **kwargs: Any - ) -> _models.DaprSecretsCollection: - """List secrets for a dapr component. + def get_auth_token( + self, resource_group_name: str, environment_name: str, **kwargs: Any + ) -> _models.EnvironmentAuthToken: + """Get auth token for a managed environment. - List secrets for a dapr component. + Checks if resource name is available. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param environment_name: Name of the Managed Environment. Required. + :param environment_name: Name of the Environment. Required. :type environment_name: str - :param component_name: Name of the Dapr Component. Required. - :type component_name: str - :return: DaprSecretsCollection. The DaprSecretsCollection is compatible with MutableMapping - :rtype: ~azure.mgmt.appcontainers.models.DaprSecretsCollection + :return: EnvironmentAuthToken. The EnvironmentAuthToken is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.EnvironmentAuthToken :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -17694,12 +17465,11 @@ def list_secrets( _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[_models.DaprSecretsCollection] = kwargs.pop("cls", None) + cls: ClsType[_models.EnvironmentAuthToken] = kwargs.pop("cls", None) - _request = build_dapr_components_list_secrets_request( + _request = build_managed_environments_get_auth_token_request( resource_group_name=resource_group_name, environment_name=environment_name, - component_name=component_name, subscription_id=self._config.subscription_id, api_version=self._config.api_version, headers=_headers, @@ -17726,7 +17496,7 @@ def list_secrets( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.DefaultErrorResponse, + _models.ErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -17734,51 +17504,35 @@ def list_secrets( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.DaprSecretsCollection, response.json()) + deserialized = _deserialize(_models.EnvironmentAuthToken, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - -class ConnectedEnvironmentsStoragesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`connected_environments_storages` attribute. - """ - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - @distributed_trace - def get( - self, resource_group_name: str, connected_environment_name: str, storage_name: str, **kwargs: Any - ) -> _models.ConnectedEnvironmentStorage: - """Get storage for a connectedEnvironment. + def list_workload_profile_states( + self, resource_group_name: str, environment_name: str, **kwargs: Any + ) -> ItemPaged["_models.WorkloadProfileStates"]: + """Get all workload Profile States for a Managed Environment.. - Get storage for a connectedEnvironment. + Get all workload Profile States for a Managed Environment. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param connected_environment_name: Name of the connectedEnvironment. Required. - :type connected_environment_name: str - :param storage_name: Name of the storage. Required. - :type storage_name: str - :return: ConnectedEnvironmentStorage. The ConnectedEnvironmentStorage is compatible with - MutableMapping - :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage + :param environment_name: Name of the Environment. Required. + :type environment_name: str + :return: An iterator like instance of WorkloadProfileStates + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.WorkloadProfileStates] :raises ~azure.core.exceptions.HttpResponseError: """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.WorkloadProfileStates]] = kwargs.pop("cls", None) + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -17787,15 +17541,131 @@ def get( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[_models.ConnectedEnvironmentStorage] = kwargs.pop("cls", None) + def prepare_request(next_link=None): + if not next_link: - _request = build_connected_environments_storages_get_request( - resource_group_name=resource_group_name, + _request = build_managed_environments_list_workload_profile_states_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.WorkloadProfileStates], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class ConnectedEnvironmentsDaprComponentsOperations: # pylint: disable=name-too-long + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`connected_environments_dapr_components` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any + ) -> _models.DaprComponent: + """Get a dapr component. + + Get a dapr component. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connected environment. Required. + :type connected_environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :return: DaprComponent. The DaprComponent is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprComponent + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DaprComponent] = kwargs.pop("cls", None) + + _request = build_connected_environments_dapr_components_get_request( + resource_group_name=resource_group_name, connected_environment_name=connected_environment_name, - storage_name=storage_name, + component_name=component_name, subscription_id=self._config.subscription_id, api_version=self._config.api_version, headers=_headers, @@ -17830,7 +17700,7 @@ def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.ConnectedEnvironmentStorage, response.json()) + deserialized = _deserialize(_models.DaprComponent, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -17841,8 +17711,8 @@ def _create_or_update_initial( self, resource_group_name: str, connected_environment_name: str, - storage_name: str, - storage_envelope: Union[_models.ConnectedEnvironmentStorage, JSON, IO[bytes]], + component_name: str, + dapr_component_envelope: Union[_models.DaprComponent, JSON, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -17861,15 +17731,15 @@ def _create_or_update_initial( content_type = content_type or "application/json" _content = None - if isinstance(storage_envelope, (IOBase, bytes)): - _content = storage_envelope + if isinstance(dapr_component_envelope, (IOBase, bytes)): + _content = dapr_component_envelope else: - _content = json.dumps(storage_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(dapr_component_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_connected_environments_storages_create_or_update_request( + _request = build_connected_environments_dapr_components_create_or_update_request( resource_group_name=resource_group_name, connected_environment_name=connected_environment_name, - storage_name=storage_name, + component_name=component_name, subscription_id=self._config.subscription_id, content_type=content_type, api_version=self._config.api_version, @@ -17921,32 +17791,31 @@ def begin_create_or_update( self, resource_group_name: str, connected_environment_name: str, - storage_name: str, - storage_envelope: _models.ConnectedEnvironmentStorage, + component_name: str, + dapr_component_envelope: _models.DaprComponent, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.ConnectedEnvironmentStorage]: - """Create or update storage for a connectedEnvironment. + ) -> LROPoller[_models.DaprComponent]: + """Creates or updates a Dapr Component. - Create or update storage for a connectedEnvironment. + Creates or updates a Dapr Component in a connected environment. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param connected_environment_name: Name of the connectedEnvironment. Required. :type connected_environment_name: str - :param storage_name: Name of the storage. Required. - :type storage_name: str - :param storage_envelope: Configuration details of storage. Required. - :type storage_envelope: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param dapr_component_envelope: Configuration details of the Dapr Component. Required. + :type dapr_component_envelope: ~azure.mgmt.appcontainers.models.DaprComponent :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns ConnectedEnvironmentStorage. The - ConnectedEnvironmentStorage is compatible with MutableMapping - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage] + :return: An instance of LROPoller that returns DaprComponent. The DaprComponent is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.DaprComponent] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -17955,32 +17824,31 @@ def begin_create_or_update( self, resource_group_name: str, connected_environment_name: str, - storage_name: str, - storage_envelope: JSON, + component_name: str, + dapr_component_envelope: JSON, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.ConnectedEnvironmentStorage]: - """Create or update storage for a connectedEnvironment. + ) -> LROPoller[_models.DaprComponent]: + """Creates or updates a Dapr Component. - Create or update storage for a connectedEnvironment. + Creates or updates a Dapr Component in a connected environment. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param connected_environment_name: Name of the connectedEnvironment. Required. :type connected_environment_name: str - :param storage_name: Name of the storage. Required. - :type storage_name: str - :param storage_envelope: Configuration details of storage. Required. - :type storage_envelope: JSON + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param dapr_component_envelope: Configuration details of the Dapr Component. Required. + :type dapr_component_envelope: JSON :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns ConnectedEnvironmentStorage. The - ConnectedEnvironmentStorage is compatible with MutableMapping - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage] + :return: An instance of LROPoller that returns DaprComponent. The DaprComponent is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.DaprComponent] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -17989,32 +17857,31 @@ def begin_create_or_update( self, resource_group_name: str, connected_environment_name: str, - storage_name: str, - storage_envelope: IO[bytes], + component_name: str, + dapr_component_envelope: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.ConnectedEnvironmentStorage]: - """Create or update storage for a connectedEnvironment. + ) -> LROPoller[_models.DaprComponent]: + """Creates or updates a Dapr Component. - Create or update storage for a connectedEnvironment. + Creates or updates a Dapr Component in a connected environment. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param connected_environment_name: Name of the connectedEnvironment. Required. :type connected_environment_name: str - :param storage_name: Name of the storage. Required. - :type storage_name: str - :param storage_envelope: Configuration details of storage. Required. - :type storage_envelope: IO[bytes] + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param dapr_component_envelope: Configuration details of the Dapr Component. Required. + :type dapr_component_envelope: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns ConnectedEnvironmentStorage. The - ConnectedEnvironmentStorage is compatible with MutableMapping - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage] + :return: An instance of LROPoller that returns DaprComponent. The DaprComponent is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.DaprComponent] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -18023,36 +17890,35 @@ def begin_create_or_update( self, resource_group_name: str, connected_environment_name: str, - storage_name: str, - storage_envelope: Union[_models.ConnectedEnvironmentStorage, JSON, IO[bytes]], + component_name: str, + dapr_component_envelope: Union[_models.DaprComponent, JSON, IO[bytes]], **kwargs: Any - ) -> LROPoller[_models.ConnectedEnvironmentStorage]: - """Create or update storage for a connectedEnvironment. + ) -> LROPoller[_models.DaprComponent]: + """Creates or updates a Dapr Component. - Create or update storage for a connectedEnvironment. + Creates or updates a Dapr Component in a connected environment. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param connected_environment_name: Name of the connectedEnvironment. Required. :type connected_environment_name: str - :param storage_name: Name of the storage. Required. - :type storage_name: str - :param storage_envelope: Configuration details of storage. Is one of the following types: - ConnectedEnvironmentStorage, JSON, IO[bytes] Required. - :type storage_envelope: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage or JSON or + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param dapr_component_envelope: Configuration details of the Dapr Component. Is one of the + following types: DaprComponent, JSON, IO[bytes] Required. + :type dapr_component_envelope: ~azure.mgmt.appcontainers.models.DaprComponent or JSON or IO[bytes] - :return: An instance of LROPoller that returns ConnectedEnvironmentStorage. The - ConnectedEnvironmentStorage is compatible with MutableMapping - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage] + :return: An instance of LROPoller that returns DaprComponent. The DaprComponent is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.DaprComponent] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = kwargs.pop("params", {}) or {} content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConnectedEnvironmentStorage] = kwargs.pop("cls", None) + cls: ClsType[_models.DaprComponent] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) @@ -18060,8 +17926,8 @@ def begin_create_or_update( raw_result = self._create_or_update_initial( resource_group_name=resource_group_name, connected_environment_name=connected_environment_name, - storage_name=storage_name, - storage_envelope=storage_envelope, + component_name=component_name, + dapr_component_envelope=dapr_component_envelope, content_type=content_type, cls=lambda x, y, z: x, headers=_headers, @@ -18073,7 +17939,7 @@ def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.ConnectedEnvironmentStorage, response.json()) + deserialized = _deserialize(_models.DaprComponent, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -18091,18 +17957,18 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return LROPoller[_models.ConnectedEnvironmentStorage].from_continuation_token( + return LROPoller[_models.DaprComponent].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return LROPoller[_models.ConnectedEnvironmentStorage]( + return LROPoller[_models.DaprComponent]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) def _delete_initial( - self, resource_group_name: str, connected_environment_name: str, storage_name: str, **kwargs: Any + self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -18117,10 +17983,10 @@ def _delete_initial( cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - _request = build_connected_environments_storages_delete_request( + _request = build_connected_environments_dapr_components_delete_request( resource_group_name=resource_group_name, connected_environment_name=connected_environment_name, - storage_name=storage_name, + component_name=component_name, subscription_id=self._config.subscription_id, api_version=self._config.api_version, headers=_headers, @@ -18165,19 +18031,19 @@ def _delete_initial( @distributed_trace def begin_delete( - self, resource_group_name: str, connected_environment_name: str, storage_name: str, **kwargs: Any + self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any ) -> LROPoller[None]: - """Delete storage for a connectedEnvironment. + """Delete a Dapr Component. - Delete storage for a connectedEnvironment. + Delete a Dapr Component from a connected environment. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param connected_environment_name: Name of the connectedEnvironment. Required. + :param connected_environment_name: Name of the connected environment. Required. :type connected_environment_name: str - :param storage_name: Name of the storage. Required. - :type storage_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str :return: An instance of LROPoller that returns None :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -18193,7 +18059,7 @@ def begin_delete( raw_result = self._delete_initial( resource_group_name=resource_group_name, connected_environment_name=connected_environment_name, - storage_name=storage_name, + component_name=component_name, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -18230,19 +18096,121 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- @distributed_trace def list( self, resource_group_name: str, connected_environment_name: str, **kwargs: Any - ) -> _models.ConnectedEnvironmentStoragesCollection: - """Get all storages for a connectedEnvironment. + ) -> ItemPaged["_models.DaprComponent"]: + """Get the Dapr Components for a connected environment. - Get all storages for a connectedEnvironment. + Get the Dapr Components for a connected environment. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param connected_environment_name: Name of the connectedEnvironment. Required. + :param connected_environment_name: Name of the connected environment. Required. :type connected_environment_name: str - :return: ConnectedEnvironmentStoragesCollection. The ConnectedEnvironmentStoragesCollection is - compatible with MutableMapping - :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStoragesCollection + :return: An iterator like instance of DaprComponent + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.DaprComponent] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.DaprComponent]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_connected_environments_dapr_components_list_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.DaprComponent], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def list_secrets( + self, resource_group_name: str, connected_environment_name: str, component_name: str, **kwargs: Any + ) -> _models.DaprSecretsCollection: + """List secrets for a dapr component. + + List secrets for a dapr component. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connected environment. Required. + :type connected_environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :return: DaprSecretsCollection. The DaprSecretsCollection is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprSecretsCollection :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -18256,11 +18224,12 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[_models.ConnectedEnvironmentStoragesCollection] = kwargs.pop("cls", None) + cls: ClsType[_models.DaprSecretsCollection] = kwargs.pop("cls", None) - _request = build_connected_environments_storages_list_request( + _request = build_connected_environments_dapr_components_list_secrets_request( resource_group_name=resource_group_name, connected_environment_name=connected_environment_name, + component_name=component_name, subscription_id=self._config.subscription_id, api_version=self._config.api_version, headers=_headers, @@ -18295,7 +18264,7 @@ def list( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.ConnectedEnvironmentStoragesCollection, response.json()) + deserialized = _deserialize(_models.DaprSecretsCollection, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -18303,14 +18272,14 @@ def list( return deserialized # type: ignore -class ManagedEnvironmentsOperations: +class DaprComponentsOperations: """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s - :attr:`managed_environments` attribute. + :attr:`dapr_components` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -18321,18 +18290,22 @@ def __init__(self, *args, **kwargs) -> None: self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace - def get(self, resource_group_name: str, environment_name: str, **kwargs: Any) -> _models.ManagedEnvironment: - """Get the properties of a Managed Environment. + def get( + self, resource_group_name: str, environment_name: str, component_name: str, **kwargs: Any + ) -> _models.DaprComponent: + """Get a dapr component. - Get the properties of a Managed Environment used to host container apps. + Get a dapr component. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param environment_name: Name of the Environment. Required. + :param environment_name: Name of the Managed Environment. Required. :type environment_name: str - :return: ManagedEnvironment. The ManagedEnvironment is compatible with MutableMapping - :rtype: ~azure.mgmt.appcontainers.models.ManagedEnvironment + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :return: DaprComponent. The DaprComponent is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprComponent :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -18346,11 +18319,12 @@ def get(self, resource_group_name: str, environment_name: str, **kwargs: Any) -> _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[_models.ManagedEnvironment] = kwargs.pop("cls", None) + cls: ClsType[_models.DaprComponent] = kwargs.pop("cls", None) - _request = build_managed_environments_get_request( + _request = build_dapr_components_get_request( resource_group_name=resource_group_name, environment_name=environment_name, + component_name=component_name, subscription_id=self._config.subscription_id, api_version=self._config.api_version, headers=_headers, @@ -18377,7 +18351,7 @@ def get(self, resource_group_name: str, environment_name: str, **kwargs: Any) -> pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.ErrorResponse, + _models.DefaultErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -18385,263 +18359,137 @@ def get(self, resource_group_name: str, environment_name: str, **kwargs: Any) -> if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.ManagedEnvironment, response.json()) + deserialized = _deserialize(_models.DaprComponent, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - def _create_or_update_initial( - self, - resource_group_name: str, - environment_name: str, - environment_envelope: Union[_models.ManagedEnvironment, JSON, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(environment_envelope, (IOBase, bytes)): - _content = environment_envelope - else: - _content = json.dumps(environment_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_managed_environments_create_or_update_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - content_type=content_type, - api_version=self._config.api_version, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.ErrorResponse, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 201: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - @overload - def begin_create_or_update( + def create_or_update( self, resource_group_name: str, environment_name: str, - environment_envelope: _models.ManagedEnvironment, + component_name: str, + dapr_component_envelope: _models.DaprComponent, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.ManagedEnvironment]: - """Creates or updates a Managed Environment. + ) -> _models.DaprComponent: + """Creates or updates a Dapr Component. - Creates or updates a Managed Environment used to host container apps. + Creates or updates a Dapr Component in a Managed Environment. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param environment_name: Name of the Environment. Required. + :param environment_name: Name of the Managed Environment. Required. :type environment_name: str - :param environment_envelope: Configuration details of the Environment. Required. - :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param dapr_component_envelope: Configuration details of the Dapr Component. Required. + :type dapr_component_envelope: ~azure.mgmt.appcontainers.models.DaprComponent :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns ManagedEnvironment. The ManagedEnvironment is - compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :return: DaprComponent. The DaprComponent is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprComponent :raises ~azure.core.exceptions.HttpResponseError: """ @overload - def begin_create_or_update( + def create_or_update( self, resource_group_name: str, environment_name: str, - environment_envelope: JSON, + component_name: str, + dapr_component_envelope: JSON, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.ManagedEnvironment]: - """Creates or updates a Managed Environment. + ) -> _models.DaprComponent: + """Creates or updates a Dapr Component. - Creates or updates a Managed Environment used to host container apps. + Creates or updates a Dapr Component in a Managed Environment. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param environment_name: Name of the Environment. Required. + :param environment_name: Name of the Managed Environment. Required. :type environment_name: str - :param environment_envelope: Configuration details of the Environment. Required. - :type environment_envelope: JSON + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param dapr_component_envelope: Configuration details of the Dapr Component. Required. + :type dapr_component_envelope: JSON :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns ManagedEnvironment. The ManagedEnvironment is - compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :return: DaprComponent. The DaprComponent is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprComponent :raises ~azure.core.exceptions.HttpResponseError: """ @overload - def begin_create_or_update( + def create_or_update( self, resource_group_name: str, environment_name: str, - environment_envelope: IO[bytes], + component_name: str, + dapr_component_envelope: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.ManagedEnvironment]: - """Creates or updates a Managed Environment. + ) -> _models.DaprComponent: + """Creates or updates a Dapr Component. - Creates or updates a Managed Environment used to host container apps. + Creates or updates a Dapr Component in a Managed Environment. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param environment_name: Name of the Environment. Required. + :param environment_name: Name of the Managed Environment. Required. :type environment_name: str - :param environment_envelope: Configuration details of the Environment. Required. - :type environment_envelope: IO[bytes] + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param dapr_component_envelope: Configuration details of the Dapr Component. Required. + :type dapr_component_envelope: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns ManagedEnvironment. The ManagedEnvironment is - compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :return: DaprComponent. The DaprComponent is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprComponent :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace - def begin_create_or_update( + def create_or_update( self, resource_group_name: str, environment_name: str, - environment_envelope: Union[_models.ManagedEnvironment, JSON, IO[bytes]], + component_name: str, + dapr_component_envelope: Union[_models.DaprComponent, JSON, IO[bytes]], **kwargs: Any - ) -> LROPoller[_models.ManagedEnvironment]: - """Creates or updates a Managed Environment. + ) -> _models.DaprComponent: + """Creates or updates a Dapr Component. - Creates or updates a Managed Environment used to host container apps. + Creates or updates a Dapr Component in a Managed Environment. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param environment_name: Name of the Environment. Required. + :param environment_name: Name of the Managed Environment. Required. :type environment_name: str - :param environment_envelope: Configuration details of the Environment. Is one of the following - types: ManagedEnvironment, JSON, IO[bytes] Required. - :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment or JSON or + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :param dapr_component_envelope: Configuration details of the Dapr Component. Is one of the + following types: DaprComponent, JSON, IO[bytes] Required. + :type dapr_component_envelope: ~azure.mgmt.appcontainers.models.DaprComponent or JSON or IO[bytes] - :return: An instance of LROPoller that returns ManagedEnvironment. The ManagedEnvironment is - compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :return: DaprComponent. The DaprComponent is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprComponent :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ManagedEnvironment] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - environment_name=environment_name, - environment_envelope=environment_envelope, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.ManagedEnvironment, response.json()) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ManagedEnvironment].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ManagedEnvironment]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_initial( - self, - resource_group_name: str, - environment_name: str, - environment_envelope: Union[_models.ManagedEnvironment, JSON, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -18654,18 +18502,19 @@ def _update_initial( _params = kwargs.pop("params", {}) or {} content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + cls: ClsType[_models.DaprComponent] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(environment_envelope, (IOBase, bytes)): - _content = environment_envelope + if isinstance(dapr_component_envelope, (IOBase, bytes)): + _content = dapr_component_envelope else: - _content = json.dumps(environment_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(dapr_component_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_managed_environments_update_request( + _request = build_dapr_components_create_or_update_request( resource_group_name=resource_group_name, environment_name=environment_name, + component_name=component_name, subscription_id=self._config.subscription_id, content_type=content_type, api_version=self._config.api_version, @@ -18679,222 +18528,72 @@ def _update_initial( _request.url = self._client.format_url(_request.url, **path_format_arguments) _decompress = kwargs.pop("decompress", True) - _stream = True + _stream = kwargs.pop("stream", False) pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.ErrorResponse, + _models.DefaultErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DaprComponent, response.json()) if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore + return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - @overload - def begin_update( - self, - resource_group_name: str, - environment_name: str, - environment_envelope: _models.ManagedEnvironment, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ManagedEnvironment]: - """Update Managed Environment's properties. + @distributed_trace + def delete( # pylint: disable=inconsistent-return-statements + self, resource_group_name: str, environment_name: str, component_name: str, **kwargs: Any + ) -> None: + """Delete a Dapr Component. - Patches a Managed Environment using JSON Merge Patch. + Delete a Dapr Component from a Managed Environment. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param environment_name: Name of the Environment. Required. + :param environment_name: Name of the Managed Environment. Required. :type environment_name: str - :param environment_envelope: Configuration details of the Environment. Required. - :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns ManagedEnvironment. The ManagedEnvironment is - compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :return: None + :rtype: None :raises ~azure.core.exceptions.HttpResponseError: """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) - @overload - def begin_update( - self, - resource_group_name: str, - environment_name: str, - environment_envelope: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ManagedEnvironment]: - """Update Managed Environment's properties. - - Patches a Managed Environment using JSON Merge Patch. + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :param environment_envelope: Configuration details of the Environment. Required. - :type environment_envelope: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns ManagedEnvironment. The ManagedEnvironment is - compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] - :raises ~azure.core.exceptions.HttpResponseError: - """ + cls: ClsType[None] = kwargs.pop("cls", None) - @overload - def begin_update( - self, - resource_group_name: str, - environment_name: str, - environment_envelope: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ManagedEnvironment]: - """Update Managed Environment's properties. - - Patches a Managed Environment using JSON Merge Patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :param environment_envelope: Configuration details of the Environment. Required. - :type environment_envelope: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns ManagedEnvironment. The ManagedEnvironment is - compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - environment_name: str, - environment_envelope: Union[_models.ManagedEnvironment, JSON, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ManagedEnvironment]: - """Update Managed Environment's properties. - - Patches a Managed Environment using JSON Merge Patch. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :param environment_envelope: Configuration details of the Environment. Is one of the following - types: ManagedEnvironment, JSON, IO[bytes] Required. - :type environment_envelope: ~azure.mgmt.appcontainers.models.ManagedEnvironment or JSON or - IO[bytes] - :return: An instance of LROPoller that returns ManagedEnvironment. The ManagedEnvironment is - compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ManagedEnvironment] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ManagedEnvironment] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.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, - environment_name=environment_name, - environment_envelope=environment_envelope, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.ManagedEnvironment, response.json()) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ManagedEnvironment].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ManagedEnvironment]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial(self, resource_group_name: str, environment_name: str, **kwargs: Any) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_managed_environments_delete_request( + _request = build_dapr_components_delete_request( resource_group_name=resource_group_name, environment_name=environment_name, + component_name=component_name, subscription_id=self._config.subscription_id, api_version=self._config.api_version, headers=_headers, @@ -18905,116 +18604,45 @@ def _delete_initial(self, resource_group_name: str, environment_name: str, **kwa } _request.url = self._client.format_url(_request.url, **path_format_arguments) - _decompress = kwargs.pop("decompress", True) - _stream = True + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200, 202, 204]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.ErrorResponse, + _models.DefaultErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore + return cls(pipeline_response, None, {}) # type: ignore @distributed_trace - def begin_delete(self, resource_group_name: str, environment_name: str, **kwargs: Any) -> LROPoller[None]: - """Delete a Managed Environment. + def list( + self, resource_group_name: str, environment_name: str, **kwargs: Any + ) -> ItemPaged["_models.DaprComponent"]: + """Get the Dapr Components for a managed environment. - Delete a Managed Environment if it does not have any container apps. + Get the Dapr Components for a managed environment. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param environment_name: Name of the Environment. Required. + :param environment_name: Name of the Managed Environment. Required. :type environment_name: str - :return: An instance of LROPoller that returns None - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - environment_name=environment_name, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - 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_by_resource_group( - self, resource_group_name: str, **kwargs: Any - ) -> ItemPaged["_models.ManagedEnvironment"]: - """Get all the Environments in a resource group. - - Get all the Managed Environments in a resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :return: An iterator like instance of ManagedEnvironment - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :return: An iterator like instance of DaprComponent + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.DaprComponent] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[List[_models.ManagedEnvironment]] = kwargs.pop("cls", None) + cls: ClsType[List[_models.DaprComponent]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -19027,8 +18655,9 @@ def list_by_resource_group( def prepare_request(next_link=None): if not next_link: - _request = build_managed_environments_list_by_resource_group_request( + _request = build_dapr_components_list_request( resource_group_name=resource_group_name, + environment_name=environment_name, subscription_id=self._config.subscription_id, api_version=self._config.api_version, headers=_headers, @@ -19066,7 +18695,7 @@ def prepare_request(next_link=None): def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.ManagedEnvironment], + List[_models.DaprComponent], deserialized.get("value", []), ) if cls: @@ -19085,7 +18714,7 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.ErrorResponse, + _models.DefaultErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -19095,20 +18724,24 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.ManagedEnvironment"]: - """Get all Environments for a subscription. + def list_secrets( + self, resource_group_name: str, environment_name: str, component_name: str, **kwargs: Any + ) -> _models.DaprSecretsCollection: + """List secrets for a dapr component. - Get all Managed Environments for a subscription. + List secrets for a dapr component. - :return: An iterator like instance of ManagedEnvironment - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.ManagedEnvironment] + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param environment_name: Name of the Managed Environment. Required. + :type environment_name: str + :param component_name: Name of the Dapr Component. Required. + :type component_name: str + :return: DaprSecretsCollection. The DaprSecretsCollection is compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.DaprSecretsCollection :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[_models.ManagedEnvironment]] = kwargs.pop("cls", None) - error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -19117,92 +18750,419 @@ def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.ManagedEnvir } error_map.update(kwargs.pop("error_map", {}) or {}) - def prepare_request(next_link=None): - if not next_link: + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} - _request = build_managed_environments_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=self._config.api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + cls: ClsType[_models.DaprSecretsCollection] = kwargs.pop("cls", None) - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + _request = build_dapr_components_list_secrets_request( + resource_group_name=resource_group_name, + environment_name=environment_name, + component_name=component_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - return _request + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) - def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.ManagedEnvironment], - deserialized.get("value", []), + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, iter(list_of_elem) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - def get_next(next_link=None): - _request = prepare_request(next_link) + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DaprSecretsCollection, response.json()) - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class ConnectedEnvironmentsStoragesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.appcontainers.ContainerAppsAPIClient`'s + :attr:`connected_environments_storages` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: ContainerAppsAPIClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, resource_group_name: str, connected_environment_name: str, storage_name: str, **kwargs: Any + ) -> _models.ConnectedEnvironmentStorage: + """Get storage for a connectedEnvironment. + + Get storage for a connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :return: ConnectedEnvironmentStorage. The ConnectedEnvironmentStorage is compatible with + MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ConnectedEnvironmentStorage] = kwargs.pop("cls", None) + + _request = build_connected_environments_storages_get_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + storage_name=storage_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, ) - response = pipeline_response.http_response + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.ErrorResponse, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ConnectedEnvironmentStorage, response.json()) - return pipeline_response + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore - return ItemPaged(get_next, extract_data) + return deserialized # type: ignore + + def _create_or_update_initial( + self, + resource_group_name: str, + connected_environment_name: str, + storage_name: str, + storage_envelope: Union[_models.ConnectedEnvironmentStorage, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(storage_envelope, (IOBase, bytes)): + _content = storage_envelope + else: + _content = json.dumps(storage_envelope, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_connected_environments_storages_create_or_update_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + storage_name=storage_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + storage_name: str, + storage_envelope: _models.ConnectedEnvironmentStorage, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ConnectedEnvironmentStorage]: + """Create or update storage for a connectedEnvironment. + + Create or update storage for a connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :param storage_envelope: Configuration details of storage. Required. + :type storage_envelope: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ConnectedEnvironmentStorage. The + ConnectedEnvironmentStorage is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + storage_name: str, + storage_envelope: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ConnectedEnvironmentStorage]: + """Create or update storage for a connectedEnvironment. + + Create or update storage for a connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :param storage_envelope: Configuration details of storage. Required. + :type storage_envelope: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ConnectedEnvironmentStorage. The + ConnectedEnvironmentStorage is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + storage_name: str, + storage_envelope: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ConnectedEnvironmentStorage]: + """Create or update storage for a connectedEnvironment. + + Create or update storage for a connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :param storage_envelope: Configuration details of storage. Required. + :type storage_envelope: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ConnectedEnvironmentStorage. The + ConnectedEnvironmentStorage is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_create_or_update( + self, + resource_group_name: str, + connected_environment_name: str, + storage_name: str, + storage_envelope: Union[_models.ConnectedEnvironmentStorage, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.ConnectedEnvironmentStorage]: + """Create or update storage for a connectedEnvironment. + + Create or update storage for a connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :param storage_envelope: Configuration details of storage. Is one of the following types: + ConnectedEnvironmentStorage, JSON, IO[bytes] Required. + :type storage_envelope: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage or JSON or + IO[bytes] + :return: An instance of LROPoller that returns ConnectedEnvironmentStorage. The + ConnectedEnvironmentStorage is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.appcontainers.models.ConnectedEnvironmentStorage] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ConnectedEnvironmentStorage] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + storage_name=storage_name, + storage_envelope=storage_envelope, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.ConnectedEnvironmentStorage, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized - @distributed_trace - def get_auth_token( - self, resource_group_name: str, environment_name: str, **kwargs: Any - ) -> _models.EnvironmentAuthToken: - """Get auth token for a managed environment. + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } - Checks if resource name is available. + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.ConnectedEnvironmentStorage].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.ConnectedEnvironmentStorage]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :return: EnvironmentAuthToken. The EnvironmentAuthToken is compatible with MutableMapping - :rtype: ~azure.mgmt.appcontainers.models.EnvironmentAuthToken - :raises ~azure.core.exceptions.HttpResponseError: - """ + def _delete_initial( + self, resource_group_name: str, connected_environment_name: str, storage_name: str, **kwargs: Any + ) -> Iterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -19214,11 +19174,12 @@ def get_auth_token( _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[_models.EnvironmentAuthToken] = kwargs.pop("cls", None) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - _request = build_managed_environments_get_auth_token_request( + _request = build_connected_environments_storages_delete_request( resource_group_name=resource_group_name, - environment_name=environment_name, + connected_environment_name=connected_environment_name, + storage_name=storage_name, subscription_id=self._config.subscription_id, api_version=self._config.api_version, headers=_headers, @@ -19230,19 +19191,18 @@ def get_auth_token( _request.url = self._client.format_url(_request.url, **path_format_arguments) _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) + _stream = True pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200]: - if _stream: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [202, 204]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( _models.ErrorResponse, @@ -19250,38 +19210,100 @@ def get_auth_token( ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.EnvironmentAuthToken, response.json()) + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized # type: ignore @distributed_trace - def list_workload_profile_states( - self, resource_group_name: str, environment_name: str, **kwargs: Any - ) -> ItemPaged["_models.WorkloadProfileStates"]: - """Get all workload Profile States for a Managed Environment.. + def begin_delete( + self, resource_group_name: str, connected_environment_name: str, storage_name: str, **kwargs: Any + ) -> LROPoller[None]: + """Delete storage for a connectedEnvironment. - Get all workload Profile States for a Managed Environment. + Delete storage for a connectedEnvironment. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param environment_name: Name of the Environment. Required. - :type environment_name: str - :return: An iterator like instance of WorkloadProfileStates - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appcontainers.models.WorkloadProfileStates] + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :param storage_name: Name of the storage. Required. + :type storage_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[List[_models.WorkloadProfileStates]] = kwargs.pop("cls", 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._delete_initial( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + storage_name=storage_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + 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, connected_environment_name: str, **kwargs: Any + ) -> _models.ConnectedEnvironmentStoragesCollection: + """Get all storages for a connectedEnvironment. + Get all storages for a connectedEnvironment. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param connected_environment_name: Name of the connectedEnvironment. Required. + :type connected_environment_name: str + :return: ConnectedEnvironmentStoragesCollection. The ConnectedEnvironmentStoragesCollection is + compatible with MutableMapping + :rtype: ~azure.mgmt.appcontainers.models.ConnectedEnvironmentStoragesCollection + :raises ~azure.core.exceptions.HttpResponseError: + """ error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -19290,76 +19312,54 @@ def list_workload_profile_states( } error_map.update(kwargs.pop("error_map", {}) or {}) - def prepare_request(next_link=None): - if not next_link: - - _request = build_managed_environments_list_workload_profile_states_request( - resource_group_name=resource_group_name, - environment_name=environment_name, - subscription_id=self._config.subscription_id, - api_version=self._config.api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + cls: ClsType[_models.ConnectedEnvironmentStoragesCollection] = kwargs.pop("cls", None) - return _request + _request = build_connected_environments_storages_list_request( + resource_group_name=resource_group_name, + connected_environment_name=connected_environment_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.WorkloadProfileStates], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, iter(list_of_elem) + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) - def get_next(next_link=None): - _request = prepare_request(next_link) + response = pipeline_response.http_response - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.DefaultErrorResponse, + response, ) - response = pipeline_response.http_response + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.ErrorResponse, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ConnectedEnvironmentStoragesCollection, response.json()) - return pipeline_response + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore - return ItemPaged(get_next, extract_data) + return deserialized # type: ignore class ManagedCertificatesOperations: diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/code_report_typespec.json b/sdk/appcontainers/azure-mgmt-appcontainers/code_report_typespec.json index 500cd8bd0a60..8b6bacfa20fc 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/code_report_typespec.json +++ b/sdk/appcontainers/azure-mgmt-appcontainers/code_report_typespec.json @@ -168,6 +168,9 @@ "certificates": { "attr_type": "CertificatesOperations" }, + "managed_environments": { + "attr_type": "ManagedEnvironmentsOperations" + }, "connected_environments_dapr_components": { "attr_type": "ConnectedEnvironmentsDaprComponentsOperations" }, @@ -177,9 +180,6 @@ "connected_environments_storages": { "attr_type": "ConnectedEnvironmentsStoragesOperations" }, - "managed_environments": { - "attr_type": "ManagedEnvironmentsOperations" - }, "managed_certificates": { "attr_type": "ManagedCertificatesOperations" }, @@ -71492,7 +71492,7 @@ "param_type": "keyword_only" }, "java_agent": { - "type": "Optional[_models.RuntimeJavaJavaAgent]", + "type": "Optional[_models.RuntimeJavaAgent]", "default": null, "param_type": "keyword_only" } @@ -71670,7 +71670,7 @@ "java_agent": "Optional" } }, - "RuntimeJavaJavaAgent": { + "RuntimeJavaAgent": { "type": null, "methods": { "__init__": { @@ -71703,7 +71703,7 @@ "param_type": "keyword_only" }, "logging": { - "type": "Optional[_models.RuntimeJavaJavaAgentLogging]", + "type": "Optional[_models.RuntimeJavaAgentLogging]", "default": null, "param_type": "keyword_only" } @@ -71881,7 +71881,7 @@ "logging": "Optional" } }, - "RuntimeJavaJavaAgentLogging": { + "RuntimeJavaAgentLogging": { "type": null, "methods": { "__init__": { @@ -86854,6 +86854,9 @@ "certificates": { "attr_type": "CertificatesOperations" }, + "managed_environments": { + "attr_type": "ManagedEnvironmentsOperations" + }, "connected_environments_dapr_components": { "attr_type": "ConnectedEnvironmentsDaprComponentsOperations" }, @@ -86863,9 +86866,6 @@ "connected_environments_storages": { "attr_type": "ConnectedEnvironmentsStoragesOperations" }, - "managed_environments": { - "attr_type": "ManagedEnvironmentsOperations" - }, "managed_certificates": { "attr_type": "ManagedCertificatesOperations" }, diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/tsp-location.yaml b/sdk/appcontainers/azure-mgmt-appcontainers/tsp-location.yaml index d1b5022ee395..798a71e68600 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/tsp-location.yaml +++ b/sdk/appcontainers/azure-mgmt-appcontainers/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/app/resource-manager/Microsoft.App/ContainerApps -commit: 8adb6c33d91b2c9d401dd9a062a37dc5054884e8 +commit: 63b90b234bd84828c9afe815cef6e9f8a1e962ff repo: Azure/azure-rest-api-specs additionalDirectories: From b56e57e8d5325c9f67681c381e6598e790037d2c Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 Date: Wed, 8 Apr 2026 15:31:03 +0800 Subject: [PATCH 5/7] changelog from report comparison --- .../azure-mgmt-appcontainers/CHANGELOG.md | 224 +++++++++++++++++- 1 file changed, 223 insertions(+), 1 deletion(-) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/CHANGELOG.md b/sdk/appcontainers/azure-mgmt-appcontainers/CHANGELOG.md index 4f7b1aa22de5..bae211d70aa9 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/CHANGELOG.md +++ b/sdk/appcontainers/azure-mgmt-appcontainers/CHANGELOG.md @@ -2,7 +2,229 @@ ## 4.1.0b1 (2026-04-08) -skip changelog generation +### Features Added + + - Client `ContainerAppsAPIClient` added method `send_request` + - Client `ContainerAppsAPIClient` added operation group `container_apps_builds` + - Client `ContainerAppsAPIClient` added operation group `container_apps_functions` + - Client `ContainerAppsAPIClient` added operation group `functions_extension` + - Client `ContainerAppsAPIClient` added operation group `container_apps_label_history` + - Client `ContainerAppsAPIClient` added operation group `container_apps_patches` + - Client `ContainerAppsAPIClient` added operation group `dot_net_components` + - Client `ContainerAppsAPIClient` added operation group `builders` + - Client `ContainerAppsAPIClient` added operation group `builds` + - Client `ContainerAppsAPIClient` added operation group `dapr_component_resiliency_policies` + - Client `ContainerAppsAPIClient` added operation group `dapr_subscriptions` + - Client `ContainerAppsAPIClient` added operation group `container_apps_builds_by_container_app` + - Client `ContainerAppsAPIClient` added operation group `container_apps_revision_functions` + - Client `ContainerAppsAPIClient` added operation group `app_resiliency` + - Client `ContainerAppsAPIClient` added operation group `builds_by_builder_resource` + - Client `ContainerAppsAPIClient` added operation group `build_auth_token` + - Enum `ActiveRevisionsMode` added member `LABELS` + - Model `BaseContainer` added property `image_type` + - Model `BlobStorageTokenStore` added property `blob_container_uri` + - Model `BlobStorageTokenStore` added property `client_id` + - Model `BlobStorageTokenStore` added property `managed_identity_resource_id` + - Model `CertificateProperties` added property `certificate_type` + - Model `Configuration` added property `target_label` + - Model `Configuration` added property `revision_transition_threshold` + - Model `ConnectedEnvironmentStorageProperties` added property `smb` + - Model `Container` added property `image_type` + - Model `ContainerResources` added property `gpu` + - Enum `ContainerType` added member `NODE_LTS` + - Enum `ContainerType` added member `SHELL` + - Model `GithubActionConfiguration` added property `dockerfile_path` + - Model `GithubActionConfiguration` added property `build_environment_variables` + - Model `HttpRouteTarget` added property `weight` + - Model `Ingress` added property `target_port_http_scheme` + - Model `InitContainer` added property `image_type` + - Enum `JavaComponentType` added member `NACOS` + - Enum `JavaComponentType` added member `SPRING_CLOUD_GATEWAY` + - Model `Job` added property `extended_location` + - Model `JobExecution` added property `system_data` + - Model `JobPatchProperties` added property `extended_location` + - Model `LogAnalyticsConfiguration` added property `dynamic_json_columns` + - Model `MaintenanceConfigurationResource` added property `properties` + - Model `ReplicaContainer` added property `debug_endpoint` + - Model `Runtime` added property `dotnet` + - Model `RuntimeJava` added property `java_agent` + - Model `ServiceBind` added property `client_type` + - Model `ServiceBind` added property `customized_keys` + - Model `SessionContainer` added property `probes` + - Enum `StorageType` added member `SMB` + - Model `Usage` added property `unit` + - Model `WorkloadProfile` added property `enable_fips` + - Added model `AppInsightsConfiguration` + - Added model `AppResiliency` + - Added model `AppResiliencyProperties` + - Added model `BuildConfiguration` + - Added model `BuildProperties` + - Added enum `BuildProvisioningState` + - Added model `BuildResource` + - Added enum `BuildStatus` + - Added model `BuildToken` + - Added model `BuilderProperties` + - Added enum `BuilderProvisioningState` + - Added model `BuilderResource` + - Added model `BuilderResourceUpdate` + - Added model `BuilderResourceUpdateProperties` + - Added enum `CertificateType` + - Added model `CircuitBreakerPolicy` + - Added model `ContainerAppPropertiesPatchingConfiguration` + - Added model `ContainerAppsBuildConfiguration` + - Added model `ContainerAppsBuildProperties` + - Added model `ContainerAppsBuildResource` + - Added model `ContainerAppsFunction` + - Added model `ContainerAppsFunctionProperties` + - Added model `ContainerAppsPatchResource` + - Added model `ContainerExecutionStatus` + - Added model `ContainerRegistry` + - Added model `ContainerRegistryWithCustomImage` + - Added model `DaprComponentResiliencyPolicy` + - Added model `DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration` + - Added model `DaprComponentResiliencyPolicyConfiguration` + - Added model `DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration` + - Added model `DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration` + - Added model `DaprComponentResiliencyPolicyProperties` + - Added model `DaprComponentResiliencyPolicyTimeoutPolicyConfiguration` + - Added model `DaprComponentServiceBinding` + - Added model `DaprServiceBindMetadata` + - Added model `DaprSubscription` + - Added model `DaprSubscriptionBulkSubscribeOptions` + - Added model `DaprSubscriptionProperties` + - Added model `DaprSubscriptionRouteRule` + - Added model `DaprSubscriptionRoutes` + - Added model `DataDogConfiguration` + - Added model `DestinationsConfiguration` + - Added enum `DetectionStatus` + - Added model `DiskEncryptionConfiguration` + - Added model `DiskEncryptionConfigurationKeyVaultConfiguration` + - Added model `DiskEncryptionConfigurationKeyVaultConfigurationAuth` + - Added model `DotNetComponent` + - Added model `DotNetComponentConfigurationProperty` + - Added model `DotNetComponentProperties` + - Added enum `DotNetComponentProvisioningState` + - Added model `DotNetComponentServiceBind` + - Added enum `DotNetComponentType` + - Added model `EnvironmentVariable` + - Added model `ExecutionStatus` + - Added model `Header` + - Added model `HeaderMatch` + - Added model `HeaderMatchMatch` + - Added model `HttpConnectionPool` + - Added model `HttpGet` + - Added model `HttpRetryPolicy` + - Added model `HttpRetryPolicyMatches` + - Added model `HttpRetryPolicyRetryBackOff` + - Added enum `ImageType` + - Added enum `IngressTargetPortHttpScheme` + - Added enum `JobRunningState` + - Added model `LabelHistory` + - Added model `LabelHistoryProperties` + - Added model `LabelHistoryRecordItem` + - Added enum `Level` + - Added model `LoggerSetting` + - Added enum `LogicAppsProxyMethod` + - Added model `LogsConfiguration` + - Added model `McpServerCredential` + - Added model `McpServerSettings` + - Added model `MetricsConfiguration` + - Added model `NacosComponent` + - Added model `Object` + - Added model `OpenTelemetryConfiguration` + - Added model `OtlpConfiguration` + - Added enum `PatchApplyStatus` + - Added model `PatchDetails` + - Added model `PatchDetailsNewLayer` + - Added model `PatchDetailsOldLayer` + - Added model `PatchProperties` + - Added model `PatchSkipConfig` + - Added enum `PatchType` + - Added enum `PatchingMode` + - Added model `PreBuildStep` + - Added model `ReplicaExecutionStatus` + - Added model `RuntimeDotnet` + - Added model `RuntimeJavaAgent` + - Added model `RuntimeJavaAgentLogging` + - Added model `ScgRoute` + - Added model `ScheduledEntries` + - Added model `SessionProbe` + - Added model `SessionProbeHttpGet` + - Added model `SessionProbeHttpGetHttpHeadersItem` + - Added model `SessionProbeTcpSocket` + - Added enum `SessionProbeType` + - Added model `SmbStorage` + - Added model `SpringCloudGatewayComponent` + - Added enum `Status` + - Added model `TcpConnectionPool` + - Added model `TcpRetryPolicy` + - Added model `TemplatePoolStatus` + - Added model `TemplateStatus` + - Added model `TemplateUpdateStatus` + - Added model `TimeoutPolicy` + - Added model `TracesConfiguration` + - Added model `WorkflowArtifacts` + - Model `ContainerAppsSessionPoolsOperations` added method `fetch_mcp_server_credentials` + - Model `ContainerAppsSessionPoolsOperations` added method `rotate_mcp_server_credentials` + - Model `ContainerAppsSourceControlsOperations` added parameter `x_ms_github_auxiliary` in method `begin_create_or_update` + - Model `ContainerAppsSourceControlsOperations` added parameter `x_ms_github_auxiliary` in method `begin_delete` + - Model `ContainerAppsSourceControlsOperations` added parameter `ignore_workflow_deletion_failure` in method `begin_delete` + - Model `ContainerAppsSourceControlsOperations` added parameter `delete_workflow` in method `begin_delete` + - Model `JobsOperations` added method `begin_resume` + - Model `JobsOperations` added method `begin_suspend` + - Model `LogicAppsOperations` added method `deploy_workflow_artifacts` + - Model `LogicAppsOperations` added method `invoke` + - Added model `AppResiliencyOperations` + - Added model `BuildAuthTokenOperations` + - Added model `BuildersOperations` + - Added model `BuildsByBuilderResourceOperations` + - Added model `BuildsOperations` + - Added model `ContainerAppsBuildsByContainerAppOperations` + - Added model `ContainerAppsBuildsOperations` + - Added model `ContainerAppsFunctionsOperations` + - Added model `ContainerAppsLabelHistoryOperations` + - Added model `ContainerAppsPatchesOperations` + - Added model `ContainerAppsRevisionFunctionsOperations` + - Added model `DaprComponentResiliencyPoliciesOperations` + - Added model `DaprSubscriptionsOperations` + - Added model `DotNetComponentsOperations` + - Added model `FunctionsExtensionOperations` + +### Breaking Changes + + - Method `BaseContainer.__init__` removed default value `None` from its parameter `args` + - Method `BaseContainer.__init__` changed its parameter `args` from `keyword_only` to `var_positional` + - Method `Container.__init__` removed default value `None` from its parameter `args` + - Method `Container.__init__` changed its parameter `args` from `keyword_only` to `var_positional` + - Method `InitContainer.__init__` removed default value `None` from its parameter `args` + - Method `InitContainer.__init__` changed its parameter `args` from `keyword_only` to `var_positional` + - Method `JobExecutionContainer.__init__` removed default value `None` from its parameter `args` + - Method `JobExecutionContainer.__init__` changed its parameter `args` from `keyword_only` to `var_positional` + - Model `MaintenanceConfigurationResource` deleted or renamed its instance variable `scheduled_entries` + - Method `SessionContainer.__init__` removed default value `None` from its parameter `args` + - Method `SessionContainer.__init__` changed its parameter `args` from `keyword_only` to `var_positional` + - Deleted or renamed model `AuthConfigCollection` + - Deleted or renamed model `AvailableOperations` + - Deleted or renamed model `AvailableWorkloadProfilesCollection` + - Deleted or renamed model `CertificateCollection` + - Deleted or renamed model `ConnectedEnvironmentCollection` + - Deleted or renamed model `ContainerAppCollection` + - Deleted or renamed model `DaprComponentsCollection` + - Deleted or renamed model `HttpRouteConfigCollection` + - Deleted or renamed model `JavaComponentsCollection` + - Deleted or renamed model `JobExecutionNamesCollection` + - Deleted or renamed model `JobsCollection` + - Deleted or renamed model `ListUsagesResult` + - Deleted or renamed model `MaintenanceConfigurationCollection` + - Deleted or renamed model `ManagedCertificateCollection` + - Deleted or renamed model `ManagedEnvironmentsCollection` + - Deleted or renamed model `RevisionCollection` + - Deleted or renamed model `SessionPoolCollection` + - Deleted or renamed model `SourceControlCollection` + - Deleted or renamed model `WorkflowEnvelopeCollection` + - Deleted or renamed model `WorkloadProfileStatesCollection` + - Method `ContainerAppsOperations.list_custom_host_name_analysis` changed its parameter `custom_hostname` from `positional_or_keyword` to `keyword_only` + - Method `LogicAppsOperations.create_or_update` removed default value `None` from its parameter `resource` ## 4.0.0 (2025-10-24) From 815d6c50ab47b5054d95efabff96b8e4bdd7c7d9 Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 Date: Wed, 8 Apr 2026 15:42:36 +0800 Subject: [PATCH 6/7] changelog from report comparison --- .../azure-mgmt-appcontainers/CHANGELOG.md | 221 +- .../code_report_swagger.json | 38092 +++++++++++----- 2 files changed, 27847 insertions(+), 10466 deletions(-) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/CHANGELOG.md b/sdk/appcontainers/azure-mgmt-appcontainers/CHANGELOG.md index bae211d70aa9..f6d751b6c857 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/CHANGELOG.md +++ b/sdk/appcontainers/azure-mgmt-appcontainers/CHANGELOG.md @@ -5,197 +5,55 @@ ### Features Added - Client `ContainerAppsAPIClient` added method `send_request` - - Client `ContainerAppsAPIClient` added operation group `container_apps_builds` - - Client `ContainerAppsAPIClient` added operation group `container_apps_functions` - - Client `ContainerAppsAPIClient` added operation group `functions_extension` - - Client `ContainerAppsAPIClient` added operation group `container_apps_label_history` - - Client `ContainerAppsAPIClient` added operation group `container_apps_patches` - - Client `ContainerAppsAPIClient` added operation group `dot_net_components` - - Client `ContainerAppsAPIClient` added operation group `builders` - - Client `ContainerAppsAPIClient` added operation group `builds` - - Client `ContainerAppsAPIClient` added operation group `dapr_component_resiliency_policies` - - Client `ContainerAppsAPIClient` added operation group `dapr_subscriptions` - - Client `ContainerAppsAPIClient` added operation group `container_apps_builds_by_container_app` - - Client `ContainerAppsAPIClient` added operation group `container_apps_revision_functions` - - Client `ContainerAppsAPIClient` added operation group `app_resiliency` - - Client `ContainerAppsAPIClient` added operation group `builds_by_builder_resource` - - Client `ContainerAppsAPIClient` added operation group `build_auth_token` - - Enum `ActiveRevisionsMode` added member `LABELS` - - Model `BaseContainer` added property `image_type` - - Model `BlobStorageTokenStore` added property `blob_container_uri` - - Model `BlobStorageTokenStore` added property `client_id` - - Model `BlobStorageTokenStore` added property `managed_identity_resource_id` - - Model `CertificateProperties` added property `certificate_type` - - Model `Configuration` added property `target_label` - - Model `Configuration` added property `revision_transition_threshold` - - Model `ConnectedEnvironmentStorageProperties` added property `smb` - - Model `Container` added property `image_type` - - Model `ContainerResources` added property `gpu` - - Enum `ContainerType` added member `NODE_LTS` - - Enum `ContainerType` added member `SHELL` - - Model `GithubActionConfiguration` added property `dockerfile_path` - - Model `GithubActionConfiguration` added property `build_environment_variables` - - Model `HttpRouteTarget` added property `weight` - - Model `Ingress` added property `target_port_http_scheme` - - Model `InitContainer` added property `image_type` - - Enum `JavaComponentType` added member `NACOS` - - Enum `JavaComponentType` added member `SPRING_CLOUD_GATEWAY` - - Model `Job` added property `extended_location` + - Model `BuildResource` added property `properties` + - Model `BuilderResource` added property `properties` + - Model `ContainerAppsBuildResource` added property `properties` + - Model `HeaderMatch` added property `match` + - Model `HttpRetryPolicy` added property `retry_back_off` + - Model `HttpRetryPolicy` added property `matches` - Model `JobExecution` added property `system_data` - - Model `JobPatchProperties` added property `extended_location` - - Model `LogAnalyticsConfiguration` added property `dynamic_json_columns` - Model `MaintenanceConfigurationResource` added property `properties` - - Model `ReplicaContainer` added property `debug_endpoint` - - Model `Runtime` added property `dotnet` - - Model `RuntimeJava` added property `java_agent` - - Model `ServiceBind` added property `client_type` - - Model `ServiceBind` added property `customized_keys` - - Model `SessionContainer` added property `probes` - - Enum `StorageType` added member `SMB` - Model `Usage` added property `unit` - - Model `WorkloadProfile` added property `enable_fips` - - Added model `AppInsightsConfiguration` - - Added model `AppResiliency` - - Added model `AppResiliencyProperties` - - Added model `BuildConfiguration` - Added model `BuildProperties` - - Added enum `BuildProvisioningState` - - Added model `BuildResource` - - Added enum `BuildStatus` - - Added model `BuildToken` - Added model `BuilderProperties` - - Added enum `BuilderProvisioningState` - - Added model `BuilderResource` - - Added model `BuilderResourceUpdate` - - Added model `BuilderResourceUpdateProperties` - - Added enum `CertificateType` - - Added model `CircuitBreakerPolicy` - - Added model `ContainerAppPropertiesPatchingConfiguration` - - Added model `ContainerAppsBuildConfiguration` - Added model `ContainerAppsBuildProperties` - - Added model `ContainerAppsBuildResource` - - Added model `ContainerAppsFunction` - - Added model `ContainerAppsFunctionProperties` - - Added model `ContainerAppsPatchResource` - - Added model `ContainerExecutionStatus` - - Added model `ContainerRegistry` - - Added model `ContainerRegistryWithCustomImage` - - Added model `DaprComponentResiliencyPolicy` - - Added model `DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration` - - Added model `DaprComponentResiliencyPolicyConfiguration` - - Added model `DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration` - - Added model `DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration` - - Added model `DaprComponentResiliencyPolicyProperties` - - Added model `DaprComponentResiliencyPolicyTimeoutPolicyConfiguration` - - Added model `DaprComponentServiceBinding` - - Added model `DaprServiceBindMetadata` - - Added model `DaprSubscription` - - Added model `DaprSubscriptionBulkSubscribeOptions` - - Added model `DaprSubscriptionProperties` - - Added model `DaprSubscriptionRouteRule` - - Added model `DaprSubscriptionRoutes` - - Added model `DataDogConfiguration` - - Added model `DestinationsConfiguration` - - Added enum `DetectionStatus` - - Added model `DiskEncryptionConfiguration` - - Added model `DiskEncryptionConfigurationKeyVaultConfiguration` - - Added model `DiskEncryptionConfigurationKeyVaultConfigurationAuth` - - Added model `DotNetComponent` - - Added model `DotNetComponentConfigurationProperty` - - Added model `DotNetComponentProperties` - - Added enum `DotNetComponentProvisioningState` - - Added model `DotNetComponentServiceBind` - - Added enum `DotNetComponentType` - - Added model `EnvironmentVariable` - - Added model `ExecutionStatus` - - Added model `Header` - - Added model `HeaderMatch` - Added model `HeaderMatchMatch` - - Added model `HttpConnectionPool` - - Added model `HttpGet` - - Added model `HttpRetryPolicy` - Added model `HttpRetryPolicyMatches` - Added model `HttpRetryPolicyRetryBackOff` - - Added enum `ImageType` - - Added enum `IngressTargetPortHttpScheme` - - Added enum `JobRunningState` - - Added model `LabelHistory` - - Added model `LabelHistoryProperties` - - Added model `LabelHistoryRecordItem` - - Added enum `Level` - - Added model `LoggerSetting` - - Added enum `LogicAppsProxyMethod` - - Added model `LogsConfiguration` - - Added model `McpServerCredential` - - Added model `McpServerSettings` - - Added model `MetricsConfiguration` - - Added model `NacosComponent` + - Added model `LogicAppProperties` - Added model `Object` - - Added model `OpenTelemetryConfiguration` - - Added model `OtlpConfiguration` - - Added enum `PatchApplyStatus` - - Added model `PatchDetails` - - Added model `PatchDetailsNewLayer` - - Added model `PatchDetailsOldLayer` - - Added model `PatchProperties` - - Added model `PatchSkipConfig` - - Added enum `PatchType` - - Added enum `PatchingMode` - - Added model `PreBuildStep` - - Added model `ReplicaExecutionStatus` - - Added model `RuntimeDotnet` - - Added model `RuntimeJavaAgent` - - Added model `RuntimeJavaAgentLogging` - - Added model `ScgRoute` - Added model `ScheduledEntries` - - Added model `SessionProbe` - - Added model `SessionProbeHttpGet` - - Added model `SessionProbeHttpGetHttpHeadersItem` - - Added model `SessionProbeTcpSocket` - - Added enum `SessionProbeType` - - Added model `SmbStorage` - - Added model `SpringCloudGatewayComponent` - - Added enum `Status` - - Added model `TcpConnectionPool` - - Added model `TcpRetryPolicy` - - Added model `TemplatePoolStatus` - - Added model `TemplateStatus` - - Added model `TemplateUpdateStatus` - - Added model `TimeoutPolicy` - - Added model `TracesConfiguration` - - Added model `WorkflowArtifacts` - - Model `ContainerAppsSessionPoolsOperations` added method `fetch_mcp_server_credentials` - - Model `ContainerAppsSessionPoolsOperations` added method `rotate_mcp_server_credentials` - - Model `ContainerAppsSourceControlsOperations` added parameter `x_ms_github_auxiliary` in method `begin_create_or_update` - - Model `ContainerAppsSourceControlsOperations` added parameter `x_ms_github_auxiliary` in method `begin_delete` - - Model `ContainerAppsSourceControlsOperations` added parameter `ignore_workflow_deletion_failure` in method `begin_delete` - - Model `ContainerAppsSourceControlsOperations` added parameter `delete_workflow` in method `begin_delete` - - Model `JobsOperations` added method `begin_resume` - - Model `JobsOperations` added method `begin_suspend` - - Model `LogicAppsOperations` added method `deploy_workflow_artifacts` - - Model `LogicAppsOperations` added method `invoke` - - Added model `AppResiliencyOperations` - - Added model `BuildAuthTokenOperations` - - Added model `BuildersOperations` - - Added model `BuildsByBuilderResourceOperations` - - Added model `BuildsOperations` - - Added model `ContainerAppsBuildsByContainerAppOperations` - - Added model `ContainerAppsBuildsOperations` - - Added model `ContainerAppsFunctionsOperations` - - Added model `ContainerAppsLabelHistoryOperations` - - Added model `ContainerAppsPatchesOperations` - - Added model `ContainerAppsRevisionFunctionsOperations` - - Added model `DaprComponentResiliencyPoliciesOperations` - - Added model `DaprSubscriptionsOperations` - - Added model `DotNetComponentsOperations` - - Added model `FunctionsExtensionOperations` ### Breaking Changes - Method `BaseContainer.__init__` removed default value `None` from its parameter `args` - Method `BaseContainer.__init__` changed its parameter `args` from `keyword_only` to `var_positional` + - Model `BuildResource` deleted or renamed its instance variable `provisioning_state` + - Model `BuildResource` deleted or renamed its instance variable `build_status` + - Model `BuildResource` deleted or renamed its instance variable `destination_container_registry` + - Model `BuildResource` deleted or renamed its instance variable `configuration` + - Model `BuildResource` deleted or renamed its instance variable `upload_endpoint` + - Model `BuildResource` deleted or renamed its instance variable `log_stream_endpoint` + - Model `BuildResource` deleted or renamed its instance variable `token_endpoint` + - Model `BuilderResource` deleted or renamed its instance variable `provisioning_state` + - Model `BuilderResource` deleted or renamed its instance variable `environment_id` + - Model `BuilderResource` deleted or renamed its instance variable `container_registries` - Method `Container.__init__` removed default value `None` from its parameter `args` - Method `Container.__init__` changed its parameter `args` from `keyword_only` to `var_positional` + - Model `ContainerAppsBuildResource` deleted or renamed its instance variable `provisioning_state` + - Model `ContainerAppsBuildResource` deleted or renamed its instance variable `build_status` + - Model `ContainerAppsBuildResource` deleted or renamed its instance variable `destination_container_registry` + - Model `ContainerAppsBuildResource` deleted or renamed its instance variable `configuration` + - Model `ContainerAppsBuildResource` deleted or renamed its instance variable `log_stream_endpoint` + - Model `HeaderMatch` deleted or renamed its instance variable `exact_match` + - Model `HeaderMatch` deleted or renamed its instance variable `prefix_match` + - Model `HeaderMatch` deleted or renamed its instance variable `suffix_match` + - Model `HeaderMatch` deleted or renamed its instance variable `regex_match` + - Model `HttpRetryPolicy` deleted or renamed its instance variable `headers` + - Model `HttpRetryPolicy` deleted or renamed its instance variable `http_status_codes` + - Model `HttpRetryPolicy` deleted or renamed its instance variable `errors` + - Model `HttpRetryPolicy` deleted or renamed its instance variable `initial_delay_in_milliseconds` + - Model `HttpRetryPolicy` deleted or renamed its instance variable `max_interval_in_milliseconds` - Method `InitContainer.__init__` removed default value `None` from its parameter `args` - Method `InitContainer.__init__` changed its parameter `args` from `keyword_only` to `var_positional` - Method `JobExecutionContainer.__init__` removed default value `None` from its parameter `args` @@ -203,28 +61,43 @@ - Model `MaintenanceConfigurationResource` deleted or renamed its instance variable `scheduled_entries` - Method `SessionContainer.__init__` removed default value `None` from its parameter `args` - Method `SessionContainer.__init__` changed its parameter `args` from `keyword_only` to `var_positional` + - Deleted or renamed model `AppResiliencyCollection` - Deleted or renamed model `AuthConfigCollection` - Deleted or renamed model `AvailableOperations` - Deleted or renamed model `AvailableWorkloadProfilesCollection` + - Deleted or renamed model `BuildCollection` + - Deleted or renamed model `BuilderCollection` - Deleted or renamed model `CertificateCollection` - Deleted or renamed model `ConnectedEnvironmentCollection` - Deleted or renamed model `ContainerAppCollection` + - Deleted or renamed model `ContainerAppsBuildCollection` + - Deleted or renamed model `ContainerAppsFunctionCollection` + - Deleted or renamed model `DaprComponentResiliencyPoliciesCollection` - Deleted or renamed model `DaprComponentsCollection` + - Deleted or renamed model `DaprSubscriptionsCollection` + - Deleted or renamed model `DotNetComponentsCollection` - Deleted or renamed model `HttpRouteConfigCollection` - Deleted or renamed model `JavaComponentsCollection` - Deleted or renamed model `JobExecutionNamesCollection` - Deleted or renamed model `JobsCollection` + - Deleted or renamed model `LabelHistoryCollection` - Deleted or renamed model `ListUsagesResult` - Deleted or renamed model `MaintenanceConfigurationCollection` - Deleted or renamed model `ManagedCertificateCollection` - Deleted or renamed model `ManagedEnvironmentsCollection` + - Deleted or renamed model `PatchCollection` - Deleted or renamed model `RevisionCollection` - Deleted or renamed model `SessionPoolCollection` - Deleted or renamed model `SourceControlCollection` - Deleted or renamed model `WorkflowEnvelopeCollection` - Deleted or renamed model `WorkloadProfileStatesCollection` - Method `ContainerAppsOperations.list_custom_host_name_analysis` changed its parameter `custom_hostname` from `positional_or_keyword` to `keyword_only` - - Method `LogicAppsOperations.create_or_update` removed default value `None` from its parameter `resource` + - Method `ContainerAppsSourceControlsOperations.begin_create_or_update` changed its parameter `x_ms_github_auxiliary` from `positional_or_keyword` to `keyword_only` + - Method `ContainerAppsSourceControlsOperations.begin_delete` changed its parameter `x_ms_github_auxiliary` from `positional_or_keyword` to `keyword_only` + - Method `ContainerAppsSourceControlsOperations.begin_delete` changed its parameter `ignore_workflow_deletion_failure` from `positional_or_keyword` to `keyword_only` + - Method `ContainerAppsSourceControlsOperations.begin_delete` changed its parameter `delete_workflow` from `positional_or_keyword` to `keyword_only` + - Method `LogicAppsOperations.invoke` changed its parameter `x_ms_logic_apps_proxy_path` from `positional_or_keyword` to `keyword_only` + - Method `LogicAppsOperations.invoke` changed its parameter `x_ms_logic_apps_proxy_method` from `positional_or_keyword` to `keyword_only` ## 4.0.0 (2025-10-24) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/code_report_swagger.json b/sdk/appcontainers/azure-mgmt-appcontainers/code_report_swagger.json index b116adeecdea..89644d0d1c9d 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/code_report_swagger.json +++ b/sdk/appcontainers/azure-mgmt-appcontainers/code_report_swagger.json @@ -89,6 +89,9 @@ "client_side_validation": { "attr_type": false }, + "app_resiliency": { + "attr_type": "AppResiliencyOperations" + }, "container_apps_auth_configs": { "attr_type": "ContainerAppsAuthConfigsOperations" }, @@ -98,6 +101,18 @@ "billing_meters": { "attr_type": "BillingMetersOperations" }, + "builders": { + "attr_type": "BuildersOperations" + }, + "builds_by_builder_resource": { + "attr_type": "BuildsByBuilderResourceOperations" + }, + "builds": { + "attr_type": "BuildsOperations" + }, + "build_auth_token": { + "attr_type": "BuildAuthTokenOperations" + }, "connected_environments": { "attr_type": "ConnectedEnvironmentsOperations" }, @@ -113,6 +128,24 @@ "container_apps": { "attr_type": "ContainerAppsOperations" }, + "container_apps_builds_by_container_app": { + "attr_type": "ContainerAppsBuildsByContainerAppOperations" + }, + "container_apps_builds": { + "attr_type": "ContainerAppsBuildsOperations" + }, + "container_apps_revision_functions": { + "attr_type": "ContainerAppsRevisionFunctionsOperations" + }, + "container_apps_functions": { + "attr_type": "ContainerAppsFunctionsOperations" + }, + "container_apps_label_history": { + "attr_type": "ContainerAppsLabelHistoryOperations" + }, + "container_apps_patches": { + "attr_type": "ContainerAppsPatchesOperations" + }, "container_apps_revisions": { "attr_type": "ContainerAppsRevisionsOperations" }, @@ -131,6 +164,12 @@ "jobs": { "attr_type": "JobsOperations" }, + "dot_net_components": { + "attr_type": "DotNetComponentsOperations" + }, + "functions_extension": { + "attr_type": "FunctionsExtensionOperations" + }, "operations": { "attr_type": "Operations" }, @@ -140,6 +179,9 @@ "jobs_executions": { "attr_type": "JobsExecutionsOperations" }, + "logic_apps": { + "attr_type": "LogicAppsOperations" + }, "managed_environments": { "attr_type": "ManagedEnvironmentsOperations" }, @@ -158,9 +200,15 @@ "managed_environment_private_link_resources": { "attr_type": "ManagedEnvironmentPrivateLinkResourcesOperations" }, + "dapr_component_resiliency_policies": { + "attr_type": "DaprComponentResiliencyPoliciesOperations" + }, "dapr_components": { "attr_type": "DaprComponentsOperations" }, + "dapr_subscriptions": { + "attr_type": "DaprSubscriptionsOperations" + }, "http_route_config": { "attr_type": "HttpRouteConfigOperations" }, @@ -182,9 +230,6 @@ "managed_environment_usages": { "attr_type": "ManagedEnvironmentUsagesOperations" }, - "logic_apps": { - "attr_type": "LogicAppsOperations" - }, "url": { "attr_type": "format_url" } @@ -195,91 +240,7 @@ }, "azure.mgmt.appcontainers.operations": { "class_nodes": { - "AvailableWorkloadProfilesOperations": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "args": { - "default": null, - "param_type": "var_positional" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "get": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "location": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": {} - }, - "BillingMetersOperations": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "args": { - "default": null, - "param_type": "var_positional" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "get": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "location": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": {} - }, - "CertificatesOperations": { + "AppResiliencyOperations": { "type": null, "methods": { "__init__": { @@ -310,16 +271,16 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "app_name": { "default": null, "param_type": "positional_or_keyword" }, - "certificate_name": { + "name": { "default": null, "param_type": "positional_or_keyword" }, - "certificate_envelope": { - "default": "none", + "resiliency_envelope": { + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -341,18 +302,18 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "app_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "certificate_name": { + "name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "certificate_envelope": { - "type": "Optional[Certificate]", + "resiliency_envelope": { + "type": "AppResiliency", "default": null, "param_type": "positional_or_keyword" }, @@ -377,18 +338,18 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "app_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "certificate_name": { + "name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "certificate_envelope": { - "type": "Optional[IO[bytes]]", + "resiliency_envelope": { + "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" }, @@ -413,11 +374,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "app_name": { "default": null, "param_type": "positional_or_keyword" }, - "certificate_name": { + "name": { "default": null, "param_type": "positional_or_keyword" }, @@ -439,11 +400,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "app_name": { "default": null, "param_type": "positional_or_keyword" }, - "certificate_name": { + "name": { "default": null, "param_type": "positional_or_keyword" }, @@ -465,7 +426,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "app_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -487,15 +448,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "app_name": { "default": null, "param_type": "positional_or_keyword" }, - "certificate_name": { + "name": { "default": null, "param_type": "positional_or_keyword" }, - "certificate_envelope": { + "resiliency_envelope": { "default": null, "param_type": "positional_or_keyword" }, @@ -518,18 +479,18 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "app_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "certificate_name": { + "name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "certificate_envelope": { - "type": "CertificatePatch", + "resiliency_envelope": { + "type": "AppResiliency", "default": null, "param_type": "positional_or_keyword" }, @@ -554,17 +515,17 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "app_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "certificate_name": { + "name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "certificate_envelope": { + "resiliency_envelope": { "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" @@ -583,7 +544,7 @@ }, "properties": {} }, - "ConnectedEnvironmentsCertificatesOperations": { + "AvailableWorkloadProfilesOperations": { "type": null, "methods": { "__init__": { @@ -604,7 +565,91 @@ "is_async": false, "overloads": [] }, - "begin_create_or_update": { + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "BillingMetersOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "BuildAuthTokenOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { "parameters": { "self": { "default": null, @@ -614,16 +659,62 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "builder_name": { "default": null, "param_type": "positional_or_keyword" }, - "certificate_name": { + "build_name": { "default": null, "param_type": "positional_or_keyword" }, - "certificate_envelope": { - "default": "none", + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "BuildersOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_envelope": { + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -645,18 +736,13 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "certificate_name": { + "builder_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "certificate_envelope": { - "type": "Optional[Certificate]", + "builder_envelope": { + "type": "BuilderResource", "default": null, "param_type": "positional_or_keyword" }, @@ -681,18 +767,13 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "builder_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "certificate_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "certificate_envelope": { - "type": "Optional[IO[bytes]]", + "builder_envelope": { + "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" }, @@ -717,11 +798,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "certificate_name": { + "builder_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -743,15 +820,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "builder_name": { "default": null, "param_type": "positional_or_keyword" }, - "certificate_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "certificate_envelope": { + "builder_envelope": { "default": null, "param_type": "positional_or_keyword" }, @@ -774,18 +847,13 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "certificate_name": { + "builder_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "certificate_envelope": { - "type": "CertificatePatch", + "builder_envelope": { + "type": "BuilderResourceUpdate", "default": null, "param_type": "positional_or_keyword" }, @@ -810,17 +878,12 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "certificate_name": { + "builder_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "certificate_envelope": { + "builder_envelope": { "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" @@ -846,11 +909,39 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "builder_name": { "default": null, "param_type": "positional_or_keyword" }, - "certificate_name": { + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { "default": null, "param_type": "positional_or_keyword" }, @@ -861,6 +952,30 @@ }, "is_async": false, "overloads": [] + } + }, + "properties": {} + }, + "BuildsByBuilderResourceOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] }, "list": { "parameters": { @@ -872,7 +987,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "builder_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -887,7 +1002,7 @@ }, "properties": {} }, - "ConnectedEnvironmentsDaprComponentsOperations": { + "BuildsOperations": { "type": null, "methods": { "__init__": { @@ -918,15 +1033,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "builder_name": { "default": null, "param_type": "positional_or_keyword" }, - "component_name": { + "build_name": { "default": null, "param_type": "positional_or_keyword" }, - "dapr_component_envelope": { + "build_envelope": { "default": null, "param_type": "positional_or_keyword" }, @@ -949,18 +1064,18 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "builder_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "component_name": { + "build_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "dapr_component_envelope": { - "type": "DaprComponent", + "build_envelope": { + "type": "BuildResource", "default": null, "param_type": "positional_or_keyword" }, @@ -985,17 +1100,17 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "builder_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "component_name": { + "build_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "dapr_component_envelope": { + "build_envelope": { "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" @@ -1021,11 +1136,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "builder_name": { "default": null, "param_type": "positional_or_keyword" }, - "component_name": { + "build_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -1047,59 +1162,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "component_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "list": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "connected_environment_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "list_secrets": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "connected_environment_name": { + "builder_name": { "default": null, "param_type": "positional_or_keyword" }, - "component_name": { + "build_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -1114,7 +1181,7 @@ }, "properties": {} }, - "ConnectedEnvironmentsOperations": { + "CertificatesOperations": { "type": null, "methods": { "__init__": { @@ -1135,7 +1202,7 @@ "is_async": false, "overloads": [] }, - "begin_create_or_update": { + "create_or_update": { "parameters": { "self": { "default": null, @@ -1145,14 +1212,18 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "environment_name": { "default": null, "param_type": "positional_or_keyword" }, - "environment_envelope": { + "certificate_name": { "default": null, "param_type": "positional_or_keyword" }, + "certificate_envelope": { + "default": "none", + "param_type": "positional_or_keyword" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -1172,13 +1243,18 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "environment_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "environment_envelope": { - "type": "ConnectedEnvironment", + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "Optional[Certificate]", "default": null, "param_type": "positional_or_keyword" }, @@ -1203,13 +1279,18 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "environment_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "environment_envelope": { - "type": "IO[bytes]", + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "Optional[IO[bytes]]", "default": null, "param_type": "positional_or_keyword" }, @@ -1224,7 +1305,7 @@ } ] }, - "begin_delete": { + "delete": { "parameters": { "self": { "default": null, @@ -1234,7 +1315,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -1246,7 +1331,7 @@ "is_async": false, "overloads": [] }, - "check_name_availability": { + "get": { "parameters": { "self": { "default": null, @@ -1256,11 +1341,63 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "environment_name": { "default": null, "param_type": "positional_or_keyword" }, - "check_name_availability_request": { + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { "default": null, "param_type": "positional_or_keyword" }, @@ -1283,13 +1420,18 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "environment_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "check_name_availability_request": { - "type": "CheckNameAvailabilityRequest", + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "CertificatePatch", "default": null, "param_type": "positional_or_keyword" }, @@ -1314,12 +1456,17 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "environment_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "check_name_availability_request": { + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" @@ -1334,20 +1481,22 @@ "return_type": null } ] - }, - "get": { + } + }, + "properties": {} + }, + "ConnectedEnvironmentsCertificatesOperations": { + "type": null, + "methods": { + "__init__": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "resource_group_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "connected_environment_name": { + "args": { "default": null, - "param_type": "positional_or_keyword" + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -1357,7 +1506,7 @@ "is_async": false, "overloads": [] }, - "list_by_resource_group": { + "begin_create_or_update": { "parameters": { "self": { "default": null, @@ -1367,44 +1516,16 @@ "default": null, "param_type": "positional_or_keyword" }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "list_by_subscription": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "update": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { + "connected_environment_name": { "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "certificate_name": { "default": null, "param_type": "positional_or_keyword" }, - "environment_envelope": { - "default": null, + "certificate_envelope": { + "default": "none", "param_type": "positional_or_keyword" }, "kwargs": { @@ -1431,8 +1552,13 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_envelope": { - "type": "ConnectedEnvironmentPatchResource", + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "Optional[Certificate]", "default": null, "param_type": "positional_or_keyword" }, @@ -1462,8 +1588,13 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_envelope": { - "type": "IO[bytes]", + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "Optional[IO[bytes]]", "default": null, "param_type": "positional_or_keyword" }, @@ -1477,22 +1608,24 @@ "return_type": null } ] - } - }, - "properties": {} - }, - "ConnectedEnvironmentsStoragesOperations": { - "type": null, - "methods": { - "__init__": { + }, + "begin_delete": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "args": { + "resource_group_name": { "default": null, - "param_type": "var_positional" + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" }, "kwargs": { "default": null, @@ -1502,7 +1635,7 @@ "is_async": false, "overloads": [] }, - "begin_create_or_update": { + "begin_update": { "parameters": { "self": { "default": null, @@ -1516,11 +1649,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "storage_name": { + "certificate_name": { "default": null, "param_type": "positional_or_keyword" }, - "storage_envelope": { + "certificate_envelope": { "default": null, "param_type": "positional_or_keyword" }, @@ -1548,13 +1681,13 @@ "default": null, "param_type": "positional_or_keyword" }, - "storage_name": { + "certificate_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "storage_envelope": { - "type": "ConnectedEnvironmentStorage", + "certificate_envelope": { + "type": "CertificatePatch", "default": null, "param_type": "positional_or_keyword" }, @@ -1584,12 +1717,12 @@ "default": null, "param_type": "positional_or_keyword" }, - "storage_name": { + "certificate_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "storage_envelope": { + "certificate_envelope": { "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" @@ -1605,32 +1738,6 @@ } ] }, - "begin_delete": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "connected_environment_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "storage_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, "get": { "parameters": { "self": { @@ -1645,7 +1752,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "storage_name": { + "certificate_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -1682,7 +1789,7 @@ }, "properties": {} }, - "ContainerAppsAuthConfigsOperations": { + "ConnectedEnvironmentsDaprComponentsOperations": { "type": null, "methods": { "__init__": { @@ -1703,7 +1810,7 @@ "is_async": false, "overloads": [] }, - "create_or_update": { + "begin_create_or_update": { "parameters": { "self": { "default": null, @@ -1713,15 +1820,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { + "connected_environment_name": { "default": null, "param_type": "positional_or_keyword" }, - "auth_config_name": { + "component_name": { "default": null, "param_type": "positional_or_keyword" }, - "auth_config_envelope": { + "dapr_component_envelope": { "default": null, "param_type": "positional_or_keyword" }, @@ -1744,18 +1851,18 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { + "connected_environment_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "auth_config_name": { + "component_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "auth_config_envelope": { - "type": "AuthConfig", + "dapr_component_envelope": { + "type": "DaprComponent", "default": null, "param_type": "positional_or_keyword" }, @@ -1780,17 +1887,17 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { + "connected_environment_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "auth_config_name": { + "component_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "auth_config_envelope": { + "dapr_component_envelope": { "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" @@ -1806,7 +1913,7 @@ } ] }, - "delete": { + "begin_delete": { "parameters": { "self": { "default": null, @@ -1816,11 +1923,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { + "connected_environment_name": { "default": null, "param_type": "positional_or_keyword" }, - "auth_config_name": { + "component_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -1842,109 +1949,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "auth_config_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "list_by_container_app": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "container_app_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": {} - }, - "ContainerAppsDiagnosticsOperations": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "args": { - "default": null, - "param_type": "var_positional" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "get_detector": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "container_app_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "detector_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "get_revision": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "container_app_name": { + "connected_environment_name": { "default": null, "param_type": "positional_or_keyword" }, - "revision_name": { + "component_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -1956,7 +1965,7 @@ "is_async": false, "overloads": [] }, - "get_root": { + "list": { "parameters": { "self": { "default": null, @@ -1966,7 +1975,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { + "connected_environment_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -1978,7 +1987,7 @@ "is_async": false, "overloads": [] }, - "list_detectors": { + "list_secrets": { "parameters": { "self": { "default": null, @@ -1988,36 +1997,14 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "list_revisions": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { + "connected_environment_name": { "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { + "component_name": { "default": null, "param_type": "positional_or_keyword" }, - "filter": { - "default": "none", - "param_type": "positional_or_keyword" - }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -2029,7 +2016,7 @@ }, "properties": {} }, - "ContainerAppsOperations": { + "ConnectedEnvironmentsOperations": { "type": null, "methods": { "__init__": { @@ -2060,11 +2047,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { + "connected_environment_name": { "default": null, "param_type": "positional_or_keyword" }, - "container_app_envelope": { + "environment_envelope": { "default": null, "param_type": "positional_or_keyword" }, @@ -2087,13 +2074,13 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { + "connected_environment_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "container_app_envelope": { - "type": "ContainerApp", + "environment_envelope": { + "type": "ConnectedEnvironment", "default": null, "param_type": "positional_or_keyword" }, @@ -2118,12 +2105,12 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { + "connected_environment_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "container_app_envelope": { + "environment_envelope": { "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" @@ -2149,51 +2136,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "begin_start": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "container_app_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "begin_stop": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "container_app_name": { + "connected_environment_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -2205,7 +2148,7 @@ "is_async": false, "overloads": [] }, - "begin_update": { + "check_name_availability": { "parameters": { "self": { "default": null, @@ -2215,11 +2158,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { + "connected_environment_name": { "default": null, "param_type": "positional_or_keyword" }, - "container_app_envelope": { + "check_name_availability_request": { "default": null, "param_type": "positional_or_keyword" }, @@ -2242,13 +2185,13 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { + "connected_environment_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "container_app_envelope": { - "type": "ContainerApp", + "check_name_availability_request": { + "type": "CheckNameAvailabilityRequest", "default": null, "param_type": "positional_or_keyword" }, @@ -2273,12 +2216,12 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { + "connected_environment_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "container_app_envelope": { + "check_name_availability_request": { "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" @@ -2304,29 +2247,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "get_auth_token": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "container_app_name": { + "connected_environment_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -2370,237 +2291,7 @@ "is_async": false, "overloads": [] }, - "list_custom_host_name_analysis": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "container_app_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "custom_hostname": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "list_secrets": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "container_app_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": {} - }, - "ContainerAppsRevisionReplicasOperations": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "args": { - "default": null, - "param_type": "var_positional" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "get_replica": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "container_app_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "revision_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "replica_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "list_replicas": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "container_app_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "revision_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": {} - }, - "ContainerAppsRevisionsOperations": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "args": { - "default": null, - "param_type": "var_positional" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "activate_revision": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "container_app_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "revision_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deactivate_revision": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "container_app_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "revision_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "get_revision": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "container_app_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "revision_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "list_revisions": { + "update": { "parameters": { "self": { "default": null, @@ -2610,11 +2301,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { + "connected_environment_name": { "default": null, "param_type": "positional_or_keyword" }, - "filter": { + "environment_envelope": { "default": "none", "param_type": "positional_or_keyword" }, @@ -2624,82 +2315,6 @@ } }, "is_async": false, - "overloads": [] - }, - "restart_revision": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "container_app_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "revision_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": {} - }, - "ContainerAppsSessionPoolsOperations": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "args": { - "default": null, - "param_type": "var_positional" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "begin_create_or_update": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "session_pool_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "session_pool_envelope": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, "overloads": [ { "parameters": { @@ -2713,13 +2328,13 @@ "default": null, "param_type": "positional_or_keyword" }, - "session_pool_name": { + "connected_environment_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "session_pool_envelope": { - "type": "SessionPool", + "environment_envelope": { + "type": "Optional[ConnectedEnvironmentPatchResource]", "default": null, "param_type": "positional_or_keyword" }, @@ -2744,13 +2359,13 @@ "default": null, "param_type": "positional_or_keyword" }, - "session_pool_name": { + "connected_environment_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "session_pool_envelope": { - "type": "IO[bytes]", + "environment_envelope": { + "type": "Optional[IO[bytes]]", "default": null, "param_type": "positional_or_keyword" }, @@ -2764,20 +2379,22 @@ "return_type": null } ] - }, - "begin_delete": { + } + }, + "properties": {} + }, + "ConnectedEnvironmentsStoragesOperations": { + "type": null, + "methods": { + "__init__": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "resource_group_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "session_pool_name": { + "args": { "default": null, - "param_type": "positional_or_keyword" + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -2787,7 +2404,7 @@ "is_async": false, "overloads": [] }, - "begin_update": { + "begin_create_or_update": { "parameters": { "self": { "default": null, @@ -2797,11 +2414,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "session_pool_name": { + "connected_environment_name": { "default": null, "param_type": "positional_or_keyword" }, - "session_pool_envelope": { + "storage_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_envelope": { "default": null, "param_type": "positional_or_keyword" }, @@ -2824,13 +2445,18 @@ "default": null, "param_type": "positional_or_keyword" }, - "session_pool_name": { + "connected_environment_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "session_pool_envelope": { - "type": "SessionPoolUpdatableProperties", + "storage_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_envelope": { + "type": "ConnectedEnvironmentStorage", "default": null, "param_type": "positional_or_keyword" }, @@ -2855,12 +2481,17 @@ "default": null, "param_type": "positional_or_keyword" }, - "session_pool_name": { + "connected_environment_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "session_pool_envelope": { + "storage_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_envelope": { "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" @@ -2876,7 +2507,7 @@ } ] }, - "get": { + "begin_delete": { "parameters": { "self": { "default": null, @@ -2886,7 +2517,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "session_pool_name": { + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -2898,7 +2533,7 @@ "is_async": false, "overloads": [] }, - "list_by_resource_group": { + "get": { "parameters": { "self": { "default": null, @@ -2908,6 +2543,14 @@ "default": null, "param_type": "positional_or_keyword" }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "default": null, + "param_type": "positional_or_keyword" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -2916,12 +2559,20 @@ "is_async": false, "overloads": [] }, - "list_by_subscription": { + "list": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -2933,7 +2584,7 @@ }, "properties": {} }, - "ContainerAppsSourceControlsOperations": { + "ContainerAppsAuthConfigsOperations": { "type": null, "methods": { "__init__": { @@ -2954,7 +2605,7 @@ "is_async": false, "overloads": [] }, - "begin_create_or_update": { + "create_or_update": { "parameters": { "self": { "default": null, @@ -2968,11 +2619,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "source_control_name": { + "auth_config_name": { "default": null, "param_type": "positional_or_keyword" }, - "source_control_envelope": { + "auth_config_envelope": { "default": null, "param_type": "positional_or_keyword" }, @@ -3000,13 +2651,13 @@ "default": null, "param_type": "positional_or_keyword" }, - "source_control_name": { + "auth_config_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "source_control_envelope": { - "type": "SourceControl", + "auth_config_envelope": { + "type": "AuthConfig", "default": null, "param_type": "positional_or_keyword" }, @@ -3036,12 +2687,12 @@ "default": null, "param_type": "positional_or_keyword" }, - "source_control_name": { + "auth_config_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "source_control_envelope": { + "auth_config_envelope": { "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" @@ -3057,7 +2708,7 @@ } ] }, - "begin_delete": { + "delete": { "parameters": { "self": { "default": null, @@ -3071,7 +2722,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "source_control_name": { + "auth_config_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -3097,7 +2748,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "source_control_name": { + "auth_config_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -3134,7 +2785,7 @@ }, "properties": {} }, - "DaprComponentsOperations": { + "ContainerAppsBuildsByContainerAppOperations": { "type": null, "methods": { "__init__": { @@ -3155,7 +2806,7 @@ "is_async": false, "overloads": [] }, - "create_or_update": { + "list": { "parameters": { "self": { "default": null, @@ -3165,15 +2816,57 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, - "component_name": { + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsBuildsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "dapr_component_envelope": { + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "build_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -3183,82 +2876,59 @@ } }, "is_async": false, - "overloads": [ - { - "parameters": { - "self": { - "type": null, - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "environment_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "component_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "dapr_component_envelope": { - "type": "DaprComponent", - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "type": "str", - "default": "application/json", - "param_type": "keyword_only" - } - }, - "is_async": false, - "return_type": null + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" }, - { - "parameters": { - "self": { - "type": null, - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "environment_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "component_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "dapr_component_envelope": { - "type": "IO[bytes]", - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "type": "str", - "default": "application/json", - "param_type": "keyword_only" - } - }, - "is_async": false, - "return_type": null + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "build_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" } - ] + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsDiagnosticsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] }, - "delete": { + "get_detector": { "parameters": { "self": { "default": null, @@ -3268,11 +2938,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, - "component_name": { + "detector_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -3284,7 +2954,7 @@ "is_async": false, "overloads": [] }, - "get": { + "get_revision": { "parameters": { "self": { "default": null, @@ -3294,11 +2964,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, - "component_name": { + "revision_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -3310,7 +2980,7 @@ "is_async": false, "overloads": [] }, - "list": { + "get_root": { "parameters": { "self": { "default": null, @@ -3320,7 +2990,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -3332,7 +3002,7 @@ "is_async": false, "overloads": [] }, - "list_secrets": { + "list_detectors": { "parameters": { "self": { "default": null, @@ -3342,12 +3012,34 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, - "component_name": { + "kwargs": { "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_revisions": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "filter": { + "default": "none", "param_type": "positional_or_keyword" }, "kwargs": { @@ -3361,7 +3053,7 @@ }, "properties": {} }, - "HttpRouteConfigOperations": { + "ContainerAppsFunctionsOperations": { "type": null, "methods": { "__init__": { @@ -3382,7 +3074,7 @@ "is_async": false, "overloads": [] }, - "begin_delete": { + "get": { "parameters": { "self": { "default": null, @@ -3392,11 +3084,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, - "http_route_name": { + "function_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -3408,7 +3100,7 @@ "is_async": false, "overloads": [] }, - "create_or_update": { + "list": { "parameters": { "self": { "default": null, @@ -3418,17 +3110,33 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, - "http_route_name": { + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsLabelHistoryOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "http_route_config_envelope": { - "default": "none", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -3436,82 +3144,9 @@ } }, "is_async": false, - "overloads": [ - { - "parameters": { - "self": { - "type": null, - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "environment_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "http_route_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "http_route_config_envelope": { - "type": "Optional[HttpRouteConfig]", - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "type": "str", - "default": "application/json", - "param_type": "keyword_only" - } - }, - "is_async": false, - "return_type": null - }, - { - "parameters": { - "self": { - "type": null, - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "environment_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "http_route_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "http_route_config_envelope": { - "type": "Optional[IO[bytes]]", - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "type": "str", - "default": "application/json", - "param_type": "keyword_only" - } - }, - "is_async": false, - "return_type": null - } - ] + "overloads": [] }, - "get": { + "delete_label_history": { "parameters": { "self": { "default": null, @@ -3521,11 +3156,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, - "http_route_name": { + "label_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -3537,7 +3172,7 @@ "is_async": false, "overloads": [] }, - "list": { + "get_label_history": { "parameters": { "self": { "default": null, @@ -3547,7 +3182,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "label_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -3559,7 +3198,7 @@ "is_async": false, "overloads": [] }, - "update": { + "list_label_history": { "parameters": { "self": { "default": null, @@ -3569,15 +3208,61 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, - "http_route_name": { + "filter": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "http_route_config_envelope": { + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_envelope": { "default": null, "param_type": "positional_or_keyword" }, @@ -3600,18 +3285,13 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "http_route_name": { + "container_app_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "http_route_config_envelope": { - "type": "HttpRouteConfig", + "container_app_envelope": { + "type": "ContainerApp", "default": null, "param_type": "positional_or_keyword" }, @@ -3636,17 +3316,12 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "http_route_name": { + "container_app_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "http_route_config_envelope": { + "container_app_envelope": { "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" @@ -3661,22 +3336,20 @@ "return_type": null } ] - } - }, - "properties": {} - }, - "JavaComponentsOperations": { - "type": null, - "methods": { - "__init__": { + }, + "begin_delete": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "args": { + "resource_group_name": { "default": null, - "param_type": "var_positional" + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" }, "kwargs": { "default": null, @@ -3686,7 +3359,7 @@ "is_async": false, "overloads": [] }, - "begin_create_or_update": { + "begin_start": { "parameters": { "self": { "default": null, @@ -3696,15 +3369,55 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, - "name": { + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_stop": { + "parameters": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "java_component_envelope": { + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_envelope": { "default": null, "param_type": "positional_or_keyword" }, @@ -3727,18 +3440,13 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "name": { + "container_app_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "java_component_envelope": { - "type": "JavaComponent", + "container_app_envelope": { + "type": "ContainerApp", "default": null, "param_type": "positional_or_keyword" }, @@ -3763,17 +3471,12 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "name": { + "container_app_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "java_component_envelope": { + "container_app_envelope": { "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" @@ -3789,7 +3492,7 @@ } ] }, - "begin_delete": { + "get": { "parameters": { "self": { "default": null, @@ -3799,11 +3502,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -3815,7 +3514,7 @@ "is_async": false, "overloads": [] }, - "begin_update": { + "get_auth_token": { "parameters": { "self": { "default": null, @@ -3825,15 +3524,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "java_component_envelope": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -3843,99 +3534,58 @@ } }, "is_async": false, - "overloads": [ - { - "parameters": { - "self": { - "type": null, - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "environment_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "java_component_envelope": { - "type": "JavaComponent", - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "type": "str", - "default": "application/json", - "param_type": "keyword_only" - } - }, - "is_async": false, - "return_type": null + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" }, - { - "parameters": { - "self": { - "type": null, - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "environment_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "java_component_envelope": { - "type": "IO[bytes]", - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "type": "str", - "default": "application/json", - "param_type": "keyword_only" - } - }, - "is_async": false, - "return_type": null + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" } - ] + }, + "is_async": false, + "overloads": [] }, - "get": { + "list_by_subscription": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "resource_group_name": { + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_custom_host_name_analysis": { + "parameters": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "resource_group_name": { "default": null, "param_type": "positional_or_keyword" }, - "name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, + "custom_hostname": { + "default": "none", + "param_type": "positional_or_keyword" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -3944,7 +3594,7 @@ "is_async": false, "overloads": [] }, - "list": { + "list_secrets": { "parameters": { "self": { "default": null, @@ -3954,7 +3604,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -3969,7 +3619,7 @@ }, "properties": {} }, - "JobsExecutionsOperations": { + "ContainerAppsPatchesOperations": { "type": null, "methods": { "__init__": { @@ -3990,7 +3640,7 @@ "is_async": false, "overloads": [] }, - "list": { + "begin_apply": { "parameters": { "self": { "default": null, @@ -4000,12 +3650,12 @@ "default": null, "param_type": "positional_or_keyword" }, - "job_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, - "filter": { - "default": "none", + "patch_name": { + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -4015,22 +3665,24 @@ }, "is_async": false, "overloads": [] - } - }, - "properties": {} - }, - "JobsOperations": { - "type": null, - "methods": { - "__init__": { + }, + "begin_delete": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "args": { + "resource_group_name": { "default": null, - "param_type": "var_positional" + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "patch_name": { + "default": null, + "param_type": "positional_or_keyword" }, "kwargs": { "default": null, @@ -4040,7 +3692,7 @@ "is_async": false, "overloads": [] }, - "begin_create_or_update": { + "begin_skip_configure": { "parameters": { "self": { "default": null, @@ -4050,11 +3702,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "job_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, - "job_envelope": { + "patch_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "patch_skip_config": { "default": null, "param_type": "positional_or_keyword" }, @@ -4077,13 +3733,18 @@ "default": null, "param_type": "positional_or_keyword" }, - "job_name": { + "container_app_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "job_envelope": { - "type": "Job", + "patch_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "patch_skip_config": { + "type": "PatchSkipConfig", "default": null, "param_type": "positional_or_keyword" }, @@ -4108,12 +3769,17 @@ "default": null, "param_type": "positional_or_keyword" }, - "job_name": { + "container_app_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "job_envelope": { + "patch_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "patch_skip_config": { "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" @@ -4129,7 +3795,7 @@ } ] }, - "begin_delete": { + "get": { "parameters": { "self": { "default": null, @@ -4139,7 +3805,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "job_name": { + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "patch_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -4151,7 +3821,7 @@ "is_async": false, "overloads": [] }, - "begin_start": { + "list_by_container_app": { "parameters": { "self": { "default": null, @@ -4161,11 +3831,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "job_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, - "template": { + "filter": { "default": "none", "param_type": "positional_or_keyword" }, @@ -4175,88 +3845,23 @@ } }, "is_async": false, - "overloads": [ - { - "parameters": { - "self": { - "type": null, - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "job_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "template": { - "type": "Optional[JobExecutionTemplate]", - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "type": "str", - "default": "application/json", - "param_type": "keyword_only" - } - }, - "is_async": false, - "return_type": null - }, - { - "parameters": { - "self": { - "type": null, - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "job_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "template": { - "type": "Optional[IO[bytes]]", - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "type": "str", - "default": "application/json", - "param_type": "keyword_only" - } - }, - "is_async": false, - "return_type": null - } - ] - }, - "begin_stop_execution": { + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsRevisionFunctionsOperations": { + "type": null, + "methods": { + "__init__": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "resource_group_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "job_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "job_execution_name": { + "args": { "default": null, - "param_type": "positional_or_keyword" + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -4266,7 +3871,7 @@ "is_async": false, "overloads": [] }, - "begin_stop_multiple_executions": { + "get": { "parameters": { "self": { "default": null, @@ -4276,7 +3881,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "job_name": { + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "function_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -4288,7 +3901,7 @@ "is_async": false, "overloads": [] }, - "begin_update": { + "list": { "parameters": { "self": { "default": null, @@ -4298,11 +3911,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "job_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, - "job_envelope": { + "revision_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -4312,72 +3925,33 @@ } }, "is_async": false, - "overloads": [ - { - "parameters": { - "self": { - "type": null, - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "job_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "job_envelope": { - "type": "JobPatchProperties", - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "type": "str", - "default": "application/json", - "param_type": "keyword_only" - } - }, - "is_async": false, - "return_type": null + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsRevisionReplicasOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" }, - { - "parameters": { - "self": { - "type": null, - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "job_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "job_envelope": { - "type": "IO[bytes]", - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "type": "str", - "default": "application/json", - "param_type": "keyword_only" - } - }, - "is_async": false, - "return_type": null + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" } - ] + }, + "is_async": false, + "overloads": [] }, - "get": { + "get_replica": { "parameters": { "self": { "default": null, @@ -4387,7 +3961,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "job_name": { + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "replica_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -4399,7 +3981,7 @@ "is_async": false, "overloads": [] }, - "get_detector": { + "list_replicas": { "parameters": { "self": { "default": null, @@ -4409,14 +3991,38 @@ "default": null, "param_type": "positional_or_keyword" }, - "job_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, - "detector_name": { + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsRevisionsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { "default": null, "param_type": "positional_or_keyword" }, + "args": { + "default": null, + "param_type": "var_positional" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -4425,7 +4031,7 @@ "is_async": false, "overloads": [] }, - "list_by_resource_group": { + "activate_revision": { "parameters": { "self": { "default": null, @@ -4435,6 +4041,14 @@ "default": null, "param_type": "positional_or_keyword" }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -4443,12 +4057,24 @@ "is_async": false, "overloads": [] }, - "list_by_subscription": { + "deactivate_revision": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -4457,7 +4083,7 @@ "is_async": false, "overloads": [] }, - "list_detectors": { + "get_revision": { "parameters": { "self": { "default": null, @@ -4467,7 +4093,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "job_name": { + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -4479,7 +4109,7 @@ "is_async": false, "overloads": [] }, - "list_secrets": { + "list_revisions": { "parameters": { "self": { "default": null, @@ -4489,10 +4119,14 @@ "default": null, "param_type": "positional_or_keyword" }, - "job_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, + "filter": { + "default": "none", + "param_type": "positional_or_keyword" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -4501,7 +4135,7 @@ "is_async": false, "overloads": [] }, - "proxy_get": { + "restart_revision": { "parameters": { "self": { "default": null, @@ -4511,11 +4145,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "job_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, - "api_name": { + "revision_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -4530,7 +4164,7 @@ }, "properties": {} }, - "LogicAppsOperations": { + "ContainerAppsSessionPoolsOperations": { "type": null, "methods": { "__init__": { @@ -4551,7 +4185,7 @@ "is_async": false, "overloads": [] }, - "create_or_update": { + "begin_create_or_update": { "parameters": { "self": { "default": null, @@ -4561,18 +4195,14 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { + "session_pool_name": { "default": null, "param_type": "positional_or_keyword" }, - "logic_app_name": { + "session_pool_envelope": { "default": null, "param_type": "positional_or_keyword" }, - "resource": { - "default": "none", - "param_type": "positional_or_keyword" - }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -4592,18 +4222,13 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "logic_app_name": { + "session_pool_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "resource": { - "type": "Optional[LogicApp]", + "session_pool_envelope": { + "type": "SessionPool", "default": null, "param_type": "positional_or_keyword" }, @@ -4628,18 +4253,13 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "logic_app_name": { + "session_pool_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "resource": { - "type": "Optional[IO[bytes]]", + "session_pool_envelope": { + "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" }, @@ -4654,7 +4274,7 @@ } ] }, - "delete": { + "begin_delete": { "parameters": { "self": { "default": null, @@ -4664,11 +4284,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "logic_app_name": { + "session_pool_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -4680,7 +4296,7 @@ "is_async": false, "overloads": [] }, - "get": { + "begin_update": { "parameters": { "self": { "default": null, @@ -4690,11 +4306,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { + "session_pool_name": { "default": null, "param_type": "positional_or_keyword" }, - "logic_app_name": { + "session_pool_envelope": { "default": null, "param_type": "positional_or_keyword" }, @@ -4704,27 +4320,82 @@ } }, "is_async": false, - "overloads": [] - }, - "get_workflow": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "container_app_name": { + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_envelope": { + "type": "SessionPoolUpdatableProperties", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "fetch_mcp_server_credentials": { + "parameters": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "logic_app_name": { + "resource_group_name": { "default": null, "param_type": "positional_or_keyword" }, - "workflow_name": { + "session_pool_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -4736,7 +4407,7 @@ "is_async": false, "overloads": [] }, - "list_workflows": { + "get": { "parameters": { "self": { "default": null, @@ -4746,11 +4417,25 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { + "session_pool_name": { "default": null, "param_type": "positional_or_keyword" }, - "logic_app_name": { + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -4762,21 +4447,31 @@ "is_async": false, "overloads": [] }, - "list_workflows_connections": { + "list_by_subscription": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "resource_group_name": { + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "rotate_mcp_server_credentials": { + "parameters": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { + "resource_group_name": { "default": null, "param_type": "positional_or_keyword" }, - "logic_app_name": { + "session_pool_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -4791,7 +4486,7 @@ }, "properties": {} }, - "MaintenanceConfigurationsOperations": { + "ContainerAppsSourceControlsOperations": { "type": null, "methods": { "__init__": { @@ -4812,7 +4507,7 @@ "is_async": false, "overloads": [] }, - "create_or_update": { + "begin_create_or_update": { "parameters": { "self": { "default": null, @@ -4822,18 +4517,22 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, - "config_name": { + "source_control_name": { "default": null, "param_type": "positional_or_keyword" }, - "maintenance_configuration_envelope": { + "source_control_envelope": { "default": null, "param_type": "positional_or_keyword" }, + "x_ms_github_auxiliary": { + "default": "none", + "param_type": "positional_or_keyword" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -4853,18 +4552,23 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "container_app_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "config_name": { + "source_control_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "maintenance_configuration_envelope": { - "type": "MaintenanceConfigurationResource", + "source_control_envelope": { + "type": "SourceControl", + "default": null, + "param_type": "positional_or_keyword" + }, + "x_ms_github_auxiliary": { + "type": "Optional[str]", "default": null, "param_type": "positional_or_keyword" }, @@ -4889,21 +4593,26 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "container_app_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "config_name": { + "source_control_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "maintenance_configuration_envelope": { + "source_control_envelope": { "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" }, + "x_ms_github_auxiliary": { + "type": "Optional[str]", + "default": null, + "param_type": "positional_or_keyword" + }, "content_type": { "type": "str", "default": "application/json", @@ -4915,7 +4624,7 @@ } ] }, - "delete": { + "begin_delete": { "parameters": { "self": { "default": null, @@ -4925,14 +4634,26 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, - "config_name": { + "source_control_name": { "default": null, "param_type": "positional_or_keyword" }, + "x_ms_github_auxiliary": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "ignore_workflow_deletion_failure": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "delete_workflow": { + "default": "none", + "param_type": "positional_or_keyword" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -4951,11 +4672,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, - "config_name": { + "source_control_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -4967,7 +4688,7 @@ "is_async": false, "overloads": [] }, - "list": { + "list_by_container_app": { "parameters": { "self": { "default": null, @@ -4977,7 +4698,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -4992,7 +4713,7 @@ }, "properties": {} }, - "ManagedCertificatesOperations": { + "DaprComponentResiliencyPoliciesOperations": { "type": null, "methods": { "__init__": { @@ -5013,7 +4734,7 @@ "is_async": false, "overloads": [] }, - "begin_create_or_update": { + "create_or_update": { "parameters": { "self": { "default": null, @@ -5027,12 +4748,16 @@ "default": null, "param_type": "positional_or_keyword" }, - "managed_certificate_name": { + "component_name": { "default": null, "param_type": "positional_or_keyword" }, - "managed_certificate_envelope": { - "default": "none", + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_resiliency_policy_envelope": { + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -5059,13 +4784,18 @@ "default": null, "param_type": "positional_or_keyword" }, - "managed_certificate_name": { + "component_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "managed_certificate_envelope": { - "type": "Optional[ManagedCertificate]", + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_resiliency_policy_envelope": { + "type": "DaprComponentResiliencyPolicy", "default": null, "param_type": "positional_or_keyword" }, @@ -5095,13 +4825,18 @@ "default": null, "param_type": "positional_or_keyword" }, - "managed_certificate_name": { + "component_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "managed_certificate_envelope": { - "type": "Optional[IO[bytes]]", + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_resiliency_policy_envelope": { + "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" }, @@ -5130,7 +4865,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "managed_certificate_name": { + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { "default": null, "param_type": "positional_or_keyword" }, @@ -5156,7 +4895,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "managed_certificate_name": { + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { "default": null, "param_type": "positional_or_keyword" }, @@ -5182,6 +4925,34 @@ "default": null, "param_type": "positional_or_keyword" }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "DaprComponentsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -5190,7 +4961,7 @@ "is_async": false, "overloads": [] }, - "update": { + "create_or_update": { "parameters": { "self": { "default": null, @@ -5204,11 +4975,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "managed_certificate_name": { + "component_name": { "default": null, "param_type": "positional_or_keyword" }, - "managed_certificate_envelope": { + "dapr_component_envelope": { "default": null, "param_type": "positional_or_keyword" }, @@ -5236,13 +5007,13 @@ "default": null, "param_type": "positional_or_keyword" }, - "managed_certificate_name": { + "component_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "managed_certificate_envelope": { - "type": "ManagedCertificatePatch", + "dapr_component_envelope": { + "type": "DaprComponent", "default": null, "param_type": "positional_or_keyword" }, @@ -5272,12 +5043,12 @@ "default": null, "param_type": "positional_or_keyword" }, - "managed_certificate_name": { + "component_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "managed_certificate_envelope": { + "dapr_component_envelope": { "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" @@ -5292,22 +5063,24 @@ "return_type": null } ] - } - }, - "properties": {} - }, - "ManagedEnvironmentDiagnosticsOperations": { - "type": null, - "methods": { - "__init__": { + }, + "delete": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "args": { + "resource_group_name": { "default": null, - "param_type": "var_positional" + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" }, "kwargs": { "default": null, @@ -5317,7 +5090,7 @@ "is_async": false, "overloads": [] }, - "get_detector": { + "get": { "parameters": { "self": { "default": null, @@ -5331,7 +5104,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "detector_name": { + "component_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -5343,7 +5116,7 @@ "is_async": false, "overloads": [] }, - "list_detectors": { + "list": { "parameters": { "self": { "default": null, @@ -5364,11 +5137,37 @@ }, "is_async": false, "overloads": [] + }, + "list_secrets": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] } }, "properties": {} }, - "ManagedEnvironmentPrivateEndpointConnectionsOperations": { + "DaprSubscriptionsOperations": { "type": null, "methods": { "__init__": { @@ -5389,7 +5188,7 @@ "is_async": false, "overloads": [] }, - "begin_create_or_update": { + "create_or_update": { "parameters": { "self": { "default": null, @@ -5403,11 +5202,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "private_endpoint_connection_name": { + "name": { "default": null, "param_type": "positional_or_keyword" }, - "private_endpoint_connection_envelope": { + "dapr_subscription_envelope": { "default": null, "param_type": "positional_or_keyword" }, @@ -5435,13 +5234,13 @@ "default": null, "param_type": "positional_or_keyword" }, - "private_endpoint_connection_name": { + "name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "private_endpoint_connection_envelope": { - "type": "PrivateEndpointConnection", + "dapr_subscription_envelope": { + "type": "DaprSubscription", "default": null, "param_type": "positional_or_keyword" }, @@ -5471,12 +5270,12 @@ "default": null, "param_type": "positional_or_keyword" }, - "private_endpoint_connection_name": { + "name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "private_endpoint_connection_envelope": { + "dapr_subscription_envelope": { "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" @@ -5492,7 +5291,7 @@ } ] }, - "begin_delete": { + "delete": { "parameters": { "self": { "default": null, @@ -5506,7 +5305,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "private_endpoint_connection_name": { + "name": { "default": null, "param_type": "positional_or_keyword" }, @@ -5532,102 +5331,10 @@ "default": null, "param_type": "positional_or_keyword" }, - "private_endpoint_connection_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "list": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "environment_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": {} - }, - "ManagedEnvironmentPrivateLinkResourcesOperations": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "args": { - "default": null, - "param_type": "var_positional" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "list": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "environment_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": {} - }, - "ManagedEnvironmentUsagesOperations": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { + "name": { "default": null, "param_type": "positional_or_keyword" }, - "args": { - "default": null, - "param_type": "var_positional" - }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -5661,7 +5368,7 @@ }, "properties": {} }, - "ManagedEnvironmentsDiagnosticsOperations": { + "DotNetComponentsOperations": { "type": null, "methods": { "__init__": { @@ -5682,7 +5389,7 @@ "is_async": false, "overloads": [] }, - "get_root": { + "begin_create_or_update": { "parameters": { "self": { "default": null, @@ -5696,53 +5403,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": {} - }, - "ManagedEnvironmentsOperations": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "args": { - "default": null, - "param_type": "var_positional" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "begin_create_or_update": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "environment_name": { + "name": { "default": null, "param_type": "positional_or_keyword" }, - "environment_envelope": { + "dot_net_component_envelope": { "default": null, "param_type": "positional_or_keyword" }, @@ -5770,8 +5435,13 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_envelope": { - "type": "ManagedEnvironment", + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dot_net_component_envelope": { + "type": "DotNetComponent", "default": null, "param_type": "positional_or_keyword" }, @@ -5801,7 +5471,12 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_envelope": { + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dot_net_component_envelope": { "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" @@ -5831,6 +5506,10 @@ "default": null, "param_type": "positional_or_keyword" }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -5853,7 +5532,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_envelope": { + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "dot_net_component_envelope": { "default": null, "param_type": "positional_or_keyword" }, @@ -5881,8 +5564,13 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_envelope": { - "type": "ManagedEnvironment", + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dot_net_component_envelope": { + "type": "DotNetComponent", "default": null, "param_type": "positional_or_keyword" }, @@ -5912,7 +5600,12 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_envelope": { + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dot_net_component_envelope": { "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" @@ -5942,6 +5635,10 @@ "default": null, "param_type": "positional_or_keyword" }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -5950,7 +5647,7 @@ "is_async": false, "overloads": [] }, - "get_auth_token": { + "list": { "parameters": { "self": { "default": null, @@ -5971,16 +5668,22 @@ }, "is_async": false, "overloads": [] - }, - "list_by_resource_group": { + } + }, + "properties": {} + }, + "FunctionsExtensionOperations": { + "type": null, + "methods": { + "__init__": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "resource_group_name": { + "args": { "default": null, - "param_type": "positional_or_keyword" + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -5990,31 +5693,25 @@ "is_async": false, "overloads": [] }, - "list_by_subscription": { + "invoke_functions_host": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "kwargs": { + "resource_group_name": { "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "list_workload_profile_states": { - "parameters": { - "self": { + "param_type": "positional_or_keyword" + }, + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, - "resource_group_name": { + "revision_name": { "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "function_app_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -6029,7 +5726,7 @@ }, "properties": {} }, - "ManagedEnvironmentsStoragesOperations": { + "HttpRouteConfigOperations": { "type": null, "methods": { "__init__": { @@ -6050,7 +5747,7 @@ "is_async": false, "overloads": [] }, - "create_or_update": { + "begin_delete": { "parameters": { "self": { "default": null, @@ -6064,14 +5761,40 @@ "default": null, "param_type": "positional_or_keyword" }, - "storage_name": { + "http_route_name": { "default": null, "param_type": "positional_or_keyword" }, - "storage_envelope": { + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { "default": null, "param_type": "positional_or_keyword" }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_config_envelope": { + "default": "none", + "param_type": "positional_or_keyword" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -6096,13 +5819,13 @@ "default": null, "param_type": "positional_or_keyword" }, - "storage_name": { + "http_route_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "storage_envelope": { - "type": "ManagedEnvironmentStorage", + "http_route_config_envelope": { + "type": "Optional[HttpRouteConfig]", "default": null, "param_type": "positional_or_keyword" }, @@ -6132,13 +5855,13 @@ "default": null, "param_type": "positional_or_keyword" }, - "storage_name": { + "http_route_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "storage_envelope": { - "type": "IO[bytes]", + "http_route_config_envelope": { + "type": "Optional[IO[bytes]]", "default": null, "param_type": "positional_or_keyword" }, @@ -6153,7 +5876,7 @@ } ] }, - "delete": { + "get": { "parameters": { "self": { "default": null, @@ -6167,7 +5890,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "storage_name": { + "http_route_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -6179,7 +5902,7 @@ "is_async": false, "overloads": [] }, - "get": { + "list": { "parameters": { "self": { "default": null, @@ -6193,10 +5916,6 @@ "default": null, "param_type": "positional_or_keyword" }, - "storage_name": { - "default": null, - "param_type": "positional_or_keyword" - }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -6205,7 +5924,7 @@ "is_async": false, "overloads": [] }, - "list": { + "update": { "parameters": { "self": { "default": null, @@ -6219,18 +5938,99 @@ "default": null, "param_type": "positional_or_keyword" }, + "http_route_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_config_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, "kwargs": { "default": null, "param_type": "var_keyword" } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_config_envelope": { + "type": "HttpRouteConfig", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "http_route_config_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] } }, "properties": {} }, - "NamespacesOperations": { + "JavaComponentsOperations": { "type": null, "methods": { "__init__": { @@ -6251,7 +6051,7 @@ "is_async": false, "overloads": [] }, - "check_name_availability": { + "begin_create_or_update": { "parameters": { "self": { "default": null, @@ -6265,7 +6065,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "check_name_availability_request": { + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "java_component_envelope": { "default": null, "param_type": "positional_or_keyword" }, @@ -6293,8 +6097,13 @@ "default": null, "param_type": "positional_or_keyword" }, - "check_name_availability_request": { - "type": "CheckNameAvailabilityRequest", + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "java_component_envelope": { + "type": "JavaComponent", "default": null, "param_type": "positional_or_keyword" }, @@ -6324,7 +6133,12 @@ "default": null, "param_type": "positional_or_keyword" }, - "check_name_availability_request": { + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "java_component_envelope": { "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" @@ -6339,22 +6153,24 @@ "return_type": null } ] - } - }, - "properties": {} - }, - "Operations": { - "type": null, - "methods": { - "__init__": { + }, + "begin_delete": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "args": { + "resource_group_name": { "default": null, - "param_type": "var_positional" + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" }, "kwargs": { "default": null, @@ -6364,35 +6180,126 @@ "is_async": false, "overloads": [] }, - "list": { + "begin_update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "java_component_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, "kwargs": { "default": null, "param_type": "var_keyword" } }, "is_async": false, - "overloads": [] - } - }, - "properties": {} - }, - "UsagesOperations": { - "type": null, - "methods": { - "__init__": { + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "java_component_envelope": { + "type": "JavaComponent", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "java_component_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "get": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "args": { + "resource_group_name": { "default": null, - "param_type": "var_positional" + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" }, "kwargs": { "default": null, @@ -6408,7 +6315,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "location": { + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -6422,233 +6333,8 @@ } }, "properties": {} - } - }, - "function_nodes": {} - }, - "azure.mgmt.appcontainers.models": { - "class_nodes": { - "AccessMode": { - "type": "Enum", - "methods": {}, - "properties": { - "READ_ONLY": "READ_ONLY", - "READ_WRITE": "READ_WRITE", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "Action": { - "type": "Enum", - "methods": {}, - "properties": { - "ALLOW": "ALLOW", - "DENY": "DENY", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "ActiveRevisionsMode": { - "type": "Enum", - "methods": {}, - "properties": { - "MULTIPLE": "MULTIPLE", - "SINGLE": "SINGLE", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "Affinity": { - "type": "Enum", - "methods": {}, - "properties": { - "NONE": "NONE", - "STICKY": "STICKY", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } }, - "AllowedAudiencesValidation": { + "JobsExecutionsOperations": { "type": null, "methods": { "__init__": { @@ -6657,9 +6343,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "allowed_audiences": { - "default": "none", - "param_type": "keyword_only" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -6669,18 +6355,22 @@ "is_async": false, "overloads": [] }, - "as_dict": { + "list": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "resource_group_name": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "filter": { + "default": "none", "param_type": "positional_or_keyword" }, "kwargs": { @@ -6690,57 +6380,154 @@ }, "is_async": false, "overloads": [] - }, - "deserialize": { + } + }, + "properties": {} + }, + "JobsOperations": { + "type": null, + "methods": { + "__init__": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "begin_create_or_update": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "resource_group_name": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_envelope": { + "default": null, "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_envelope": { + "type": "Job", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] }, - "is_xml_model": { - "parameters": {}, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, "is_async": false, "overloads": [] }, - "serialize": { + "begin_resume": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -6750,33 +6537,24 @@ }, "is_async": false, "overloads": [] - } - }, - "properties": { - "allowed_audiences": { - "attr_type": "allowed_audiences" }, - "additional_properties": { - "attr_type": null - } - } - }, - "AllowedPrincipals": { - "type": null, - "methods": { - "__init__": { + "begin_start": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "groups": { - "default": "none", - "param_type": "keyword_only" + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" }, - "identities": { + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "template": { "default": "none", - "param_type": "keyword_only" + "param_type": "positional_or_keyword" }, "kwargs": { "default": null, @@ -6784,20 +6562,87 @@ } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "template": { + "type": "Optional[JobExecutionTemplate]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "template": { + "type": "Optional[IO[bytes]]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] }, - "as_dict": { + "begin_stop_execution": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "resource_group_name": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_execution_name": { + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -6808,56 +6653,66 @@ "is_async": false, "overloads": [] }, - "deserialize": { + "begin_stop_multiple_executions": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "begin_suspend": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "resource_group_name": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "job_name": { + "default": null, "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "begin_update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_envelope": { + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -6866,37 +6721,84 @@ } }, "is_async": false, - "overloads": [] - } - }, - "properties": { - "groups": { - "attr_type": "groups" - }, - "identities": { - "attr_type": "identities" + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_envelope": { + "type": "JobPatchProperties", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "job_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] }, - "additional_properties": { - "attr_type": null - } - } - }, - "AppLogsConfiguration": { - "type": null, - "methods": { - "__init__": { + "get": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "destination": { - "default": "none", - "param_type": "keyword_only" + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" }, - "log_analytics_configuration": { - "default": "none", - "param_type": "keyword_only" + "job_name": { + "default": null, + "param_type": "positional_or_keyword" }, "kwargs": { "default": null, @@ -6906,18 +6808,22 @@ "is_async": false, "overloads": [] }, - "as_dict": { + "get_detector": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "resource_group_name": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "detector_name": { + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -6928,56 +6834,98 @@ "is_async": false, "overloads": [] }, - "deserialize": { + "list_by_resource_group": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "resource_group_name": { + "default": null, "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, "is_async": false, "overloads": [] }, - "from_dict": { + "list_detectors": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "resource_group_name": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "job_name": { + "default": null, "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, + "list_secrets": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, "is_async": false, "overloads": [] }, - "serialize": { + "proxy_get": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "api_name": { + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -6989,74 +6937,9 @@ "overloads": [] } }, - "properties": { - "destination": { - "attr_type": "destination" - }, - "log_analytics_configuration": { - "attr_type": "log_analytics_configuration" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "AppProtocol": { - "type": "Enum", - "methods": {}, - "properties": { - "GRPC": "GRPC", - "HTTP": "HTTP", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } + "properties": {} }, - "AppRegistration": { + "LogicAppsOperations": { "type": null, "methods": { "__init__": { @@ -7065,13 +6948,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "app_id": { - "default": "none", - "param_type": "keyword_only" - }, - "app_secret_setting_name": { - "default": "none", - "param_type": "keyword_only" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -7081,18 +6960,26 @@ "is_async": false, "overloads": [] }, - "as_dict": { + "create_or_update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "resource_group_name": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -7101,58 +6988,97 @@ } }, "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "type": "LogicApp", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resource": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] + ] }, - "from_dict": { + "delete": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "resource_group_name": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "logic_app_name": { + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -7162,40 +7088,28 @@ }, "is_async": false, "overloads": [] - } - }, - "properties": { - "app_id": { - "attr_type": "app_id" - }, - "app_secret_setting_name": { - "attr_type": "app_secret_setting_name" }, - "additional_properties": { - "attr_type": null - } - } - }, - "Apple": { - "type": null, - "methods": { - "__init__": { + "deploy_workflow_artifacts": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "enabled": { - "default": "none", - "param_type": "keyword_only" + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" }, - "registration": { - "default": "none", - "param_type": "keyword_only" + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" }, - "login": { + "logic_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "workflow_artifacts": { "default": "none", - "param_type": "keyword_only" + "param_type": "positional_or_keyword" }, "kwargs": { "default": null, @@ -7203,20 +7117,97 @@ } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "workflow_artifacts": { + "type": "Optional[WorkflowArtifacts]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "workflow_artifacts": { + "type": "Optional[IO[bytes]]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] }, - "as_dict": { + "get": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "resource_group_name": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -7227,56 +7218,60 @@ "is_async": false, "overloads": [] }, - "deserialize": { + "get_workflow": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "resource_group_name": { + "default": null, "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { + }, + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "logic_app_name": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "workflow_name": { + "default": null, "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "invoke": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "x_ms_logic_apps_proxy_path": { + "default": null, + "param_type": "positional_or_keyword" + }, + "x_ms_logic_apps_proxy_method": { + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -7286,39 +7281,24 @@ }, "is_async": false, "overloads": [] - } - }, - "properties": { - "enabled": { - "attr_type": "enabled" - }, - "registration": { - "attr_type": "registration" - }, - "login": { - "attr_type": "login" }, - "additional_properties": { - "attr_type": null - } - } - }, - "AppleRegistration": { - "type": null, - "methods": { - "__init__": { + "list_workflows": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "client_id": { - "default": "none", - "param_type": "keyword_only" + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" }, - "client_secret_setting_name": { - "default": "none", - "param_type": "keyword_only" + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, + "param_type": "positional_or_keyword" }, "kwargs": { "default": null, @@ -7328,18 +7308,22 @@ "is_async": false, "overloads": [] }, - "as_dict": { + "list_workflows_connections": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "resource_group_name": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -7349,57 +7333,51 @@ }, "is_async": false, "overloads": [] - }, - "deserialize": { + } + }, + "properties": {} + }, + "MaintenanceConfigurationsOperations": { + "type": null, + "methods": { + "__init__": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "create_or_update": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "resource_group_name": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "environment_name": { + "default": null, "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { + }, + "config_name": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "maintenance_configuration_envelope": { + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -7408,108 +7386,98 @@ } }, "is_async": false, - "overloads": [] - } - }, - "properties": { - "client_id": { - "attr_type": "client_id" - }, - "client_secret_setting_name": { - "attr_type": "client_secret_setting_name" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "Applicability": { - "type": "Enum", - "methods": {}, - "properties": { - "CUSTOM": "CUSTOM", - "LOCATION_DEFAULT": "LOCATION_DEFAULT", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "AuthConfig": { - "type": null, - "methods": { - "__init__": { + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "config_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "maintenance_configuration_envelope": { + "type": "MaintenanceConfigurationResource", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "config_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "maintenance_configuration_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "delete": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "platform": { - "default": "none", - "param_type": "keyword_only" - }, - "global_validation": { - "default": "none", - "param_type": "keyword_only" - }, - "identity_providers": { - "default": "none", - "param_type": "keyword_only" - }, - "login": { - "default": "none", - "param_type": "keyword_only" + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" }, - "http_settings": { - "default": "none", - "param_type": "keyword_only" + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" }, - "encryption_settings": { - "default": "none", - "param_type": "keyword_only" + "config_name": { + "default": null, + "param_type": "positional_or_keyword" }, "kwargs": { "default": null, @@ -7519,18 +7487,22 @@ "is_async": false, "overloads": [] }, - "as_dict": { + "get": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "resource_group_name": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "config_name": { + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -7541,58 +7513,20 @@ "is_async": false, "overloads": [] }, - "deserialize": { + "list": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { + "resource_group_name": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { + "environment_name": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -7602,43 +7536,9 @@ "overloads": [] } }, - "properties": { - "platform": { - "attr_type": "platform" - }, - "global_validation": { - "attr_type": "global_validation" - }, - "identity_providers": { - "attr_type": "identity_providers" - }, - "login": { - "attr_type": "login" - }, - "http_settings": { - "attr_type": "http_settings" - }, - "encryption_settings": { - "attr_type": "encryption_settings" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "type": { - "attr_type": null - }, - "system_data": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } + "properties": {} }, - "AuthConfigCollection": { + "ManagedCertificatesOperations": { "type": null, "methods": { "__init__": { @@ -7647,9 +7547,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { + "args": { "default": null, - "param_type": "keyword_only" + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -7659,78 +7559,125 @@ "is_async": false, "overloads": [] }, - "as_dict": { + "begin_create_or_update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "resource_group_name": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "environment_name": { + "default": null, "param_type": "positional_or_keyword" }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { + "managed_certificate_name": { "default": null, "param_type": "positional_or_keyword" }, - "content_type": { + "managed_certificate_envelope": { "default": "none", "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" } }, "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_envelope": { + "type": "Optional[ManagedCertificate]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_envelope": { + "type": "Optional[IO[bytes]]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] }, - "from_dict": { + "delete": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "resource_group_name": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { + "environment_name": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "managed_certificate_name": { + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -7740,36 +7687,24 @@ }, "is_async": false, "overloads": [] - } - }, - "properties": { - "value": { - "attr_type": "value" - }, - "next_link": { - "attr_type": null }, - "additional_properties": { - "attr_type": null - } - } - }, - "AuthPlatform": { - "type": null, - "methods": { - "__init__": { + "get": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "enabled": { - "default": "none", - "param_type": "keyword_only" + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" }, - "runtime_version": { - "default": "none", - "param_type": "keyword_only" + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "default": null, + "param_type": "positional_or_keyword" }, "kwargs": { "default": null, @@ -7779,18 +7714,18 @@ "is_async": false, "overloads": [] }, - "as_dict": { + "list": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "resource_group_name": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "environment_name": { + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -7801,56 +7736,26 @@ "is_async": false, "overloads": [] }, - "deserialize": { + "update": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { + "resource_group_name": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "environment_name": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { + "managed_certificate_name": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "managed_certificate_envelope": { + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -7859,37 +7764,96 @@ } }, "is_async": false, - "overloads": [] - } - }, - "properties": { - "enabled": { - "attr_type": "enabled" - }, - "runtime_version": { - "attr_type": "runtime_version" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "AvailableOperations": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_envelope": { + "type": "ManagedCertificatePatch", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_certificate_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "ManagedEnvironmentDiagnosticsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "value": { - "default": "none", - "param_type": "keyword_only" - }, - "next_link": { - "default": "none", - "param_type": "keyword_only" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -7899,18 +7863,22 @@ "is_async": false, "overloads": [] }, - "as_dict": { + "get_detector": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "resource_group_name": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "detector_name": { + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -7921,58 +7889,20 @@ "is_async": false, "overloads": [] }, - "deserialize": { + "list_detectors": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { + "resource_group_name": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { + "environment_name": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -7982,19 +7912,9 @@ "overloads": [] } }, - "properties": { - "value": { - "attr_type": "value" - }, - "next_link": { - "attr_type": "next_link" - }, - "additional_properties": { - "attr_type": null - } - } + "properties": {} }, - "AvailableWorkloadProfile": { + "ManagedEnvironmentPrivateEndpointConnectionsOperations": { "type": null, "methods": { "__init__": { @@ -8003,13 +7923,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "location": { - "default": "none", - "param_type": "keyword_only" - }, - "properties": { - "default": "none", - "param_type": "keyword_only" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -8019,18 +7935,26 @@ "is_async": false, "overloads": [] }, - "as_dict": { + "begin_create_or_update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "resource_group_name": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_envelope": { + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -8039,58 +7963,145 @@ } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_envelope": { + "type": "PrivateEndpointConnection", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] }, - "deserialize": { + "begin_delete": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_name": { + "default": null, "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "resource_group_name": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint_connection_name": { + "default": null, "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "list": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -8102,31 +8113,9 @@ "overloads": [] } }, - "properties": { - "location": { - "attr_type": "location" - }, - "properties": { - "attr_type": "properties" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "type": { - "attr_type": null - }, - "system_data": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } + "properties": {} }, - "AvailableWorkloadProfileProperties": { + "ManagedEnvironmentPrivateLinkResourcesOperations": { "type": null, "methods": { "__init__": { @@ -8135,29 +8124,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "category": { - "default": "none", - "param_type": "keyword_only" - }, - "applicability": { - "default": "none", - "param_type": "keyword_only" - }, - "cores": { - "default": "none", - "param_type": "keyword_only" - }, - "memory_gi_b": { - "default": "none", - "param_type": "keyword_only" - }, - "gpus": { - "default": "none", - "param_type": "keyword_only" - }, - "display_name": { - "default": "none", - "param_type": "keyword_only" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -8167,18 +8136,18 @@ "is_async": false, "overloads": [] }, - "as_dict": { + "list": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "resource_group_name": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "environment_name": { + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -8188,57 +8157,43 @@ }, "is_async": false, "overloads": [] - }, - "deserialize": { + } + }, + "properties": {} + }, + "ManagedEnvironmentUsagesOperations": { + "type": null, + "methods": { + "__init__": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { + "args": { "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" + "param_type": "var_positional" }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" + "kwargs": { + "default": null, + "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "list": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -8250,31 +8205,9 @@ "overloads": [] } }, - "properties": { - "category": { - "attr_type": "category" - }, - "applicability": { - "attr_type": "applicability" - }, - "cores": { - "attr_type": "cores" - }, - "memory_gi_b": { - "attr_type": "memory_gi_b" - }, - "gpus": { - "attr_type": "gpus" - }, - "display_name": { - "attr_type": "display_name" - }, - "additional_properties": { - "attr_type": null - } - } + "properties": {} }, - "AvailableWorkloadProfilesCollection": { + "ManagedEnvironmentsDiagnosticsOperations": { "type": null, "methods": { "__init__": { @@ -8283,9 +8216,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { + "args": { "default": null, - "param_type": "keyword_only" + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -8295,18 +8228,18 @@ "is_async": false, "overloads": [] }, - "as_dict": { + "get_root": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "resource_group_name": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "environment_name": { + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -8316,57 +8249,132 @@ }, "is_async": false, "overloads": [] - }, - "deserialize": { + } + }, + "properties": {} + }, + "ManagedEnvironmentsOperations": { + "type": null, + "methods": { + "__init__": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "begin_create_or_update": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "resource_group_name": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "environment_name": { + "default": null, "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" } }, "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "ManagedEnvironment", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] }, - "serialize": { + "begin_delete": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -8376,48 +8384,24 @@ }, "is_async": false, "overloads": [] - } - }, - "properties": { - "value": { - "attr_type": "value" - }, - "next_link": { - "attr_type": null }, - "additional_properties": { - "attr_type": null - } - } - }, - "AzureActiveDirectory": { - "type": null, - "methods": { - "__init__": { + "begin_update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "enabled": { - "default": "none", - "param_type": "keyword_only" - }, - "registration": { - "default": "none", - "param_type": "keyword_only" - }, - "login": { - "default": "none", - "param_type": "keyword_only" + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" }, - "validation": { - "default": "none", - "param_type": "keyword_only" + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" }, - "is_auto_provisioned": { - "default": "none", - "param_type": "keyword_only" + "environment_envelope": { + "default": null, + "param_type": "positional_or_keyword" }, "kwargs": { "default": null, @@ -8425,20 +8409,83 @@ } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "ManagedEnvironment", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] }, - "as_dict": { + "get": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "resource_group_name": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "environment_name": { + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -8449,56 +8496,72 @@ "is_async": false, "overloads": [] }, - "deserialize": { + "get_auth_token": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "list_by_resource_group": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "resource_group_name": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" + "kwargs": { + "default": null, + "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, "is_async": false, "overloads": [] }, - "serialize": { + "list_workload_profile_states": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -8510,28 +8573,9 @@ "overloads": [] } }, - "properties": { - "enabled": { - "attr_type": "enabled" - }, - "registration": { - "attr_type": "registration" - }, - "login": { - "attr_type": "login" - }, - "validation": { - "attr_type": "validation" - }, - "is_auto_provisioned": { - "attr_type": "is_auto_provisioned" - }, - "additional_properties": { - "attr_type": null - } - } + "properties": {} }, - "AzureActiveDirectoryLogin": { + "ManagedEnvironmentsStoragesOperations": { "type": null, "methods": { "__init__": { @@ -8540,13 +8584,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "login_parameters": { - "default": "none", - "param_type": "keyword_only" - }, - "disable_www_authenticate": { - "default": "none", - "param_type": "keyword_only" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -8556,18 +8596,26 @@ "is_async": false, "overloads": [] }, - "as_dict": { + "create_or_update": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "resource_group_name": { + "default": null, "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_envelope": { + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -8576,58 +8624,145 @@ } }, "is_async": false, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_envelope": { + "type": "ManagedEnvironmentStorage", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] }, - "deserialize": { + "delete": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "default": null, "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { + "get": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", + "resource_group_name": { + "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "default": null, "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "list": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -8639,19 +8774,9 @@ "overloads": [] } }, - "properties": { - "login_parameters": { - "attr_type": "login_parameters" - }, - "disable_www_authenticate": { - "attr_type": "disable_www_authenticate" - }, - "additional_properties": { - "attr_type": null - } - } + "properties": {} }, - "AzureActiveDirectoryRegistration": { + "NamespacesOperations": { "type": null, "methods": { "__init__": { @@ -8660,29 +8785,9 @@ "default": null, "param_type": "positional_or_keyword" }, - "open_id_issuer": { - "default": "none", - "param_type": "keyword_only" - }, - "client_id": { - "default": "none", - "param_type": "keyword_only" - }, - "client_secret_setting_name": { - "default": "none", - "param_type": "keyword_only" - }, - "client_secret_certificate_thumbprint": { - "default": "none", - "param_type": "keyword_only" - }, - "client_secret_certificate_subject_alternative_name": { - "default": "none", - "param_type": "keyword_only" - }, - "client_secret_certificate_issuer": { - "default": "none", - "param_type": "keyword_only" + "args": { + "default": null, + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -8692,18 +8797,22 @@ "is_async": false, "overloads": [] }, - "as_dict": { + "check_name_availability": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" }, - "key_transformer": { - "default": "attribute_transformer", + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "check_name_availability_request": { + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -8712,58 +8821,141 @@ } }, "is_async": false, - "overloads": [] - }, - "deserialize": { + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "check_name_availability_request": { + "type": "CheckNameAvailabilityRequest", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "check_name_availability_request": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "Operations": { + "type": null, + "methods": { + "__init__": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "enable_additional_properties_sending": { - "parameters": {}, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, "is_async": false, "overloads": [] - }, - "from_dict": { + } + }, + "properties": {} + }, + "UsagesOperations": { + "type": null, + "methods": { + "__init__": { "parameters": { - "data": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" + "args": { + "default": null, + "param_type": "var_positional" }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" + "kwargs": { + "default": null, + "param_type": "var_keyword" } }, "is_async": false, "overloads": [] }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { + "list": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "keep_readonly": { - "default": "bool", + "location": { + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -8775,31 +8967,235 @@ "overloads": [] } }, + "properties": {} + } + }, + "function_nodes": {} + }, + "azure.mgmt.appcontainers.models": { + "class_nodes": { + "AccessMode": { + "type": "Enum", + "methods": {}, "properties": { - "open_id_issuer": { - "attr_type": "open_id_issuer" - }, - "client_id": { - "attr_type": "client_id" - }, - "client_secret_setting_name": { - "attr_type": "client_secret_setting_name" - }, - "client_secret_certificate_thumbprint": { - "attr_type": "client_secret_certificate_thumbprint" - }, - "client_secret_certificate_subject_alternative_name": { - "attr_type": "client_secret_certificate_subject_alternative_name" - }, - "client_secret_certificate_issuer": { - "attr_type": "client_secret_certificate_issuer" - }, - "additional_properties": { - "attr_type": null - } + "READ_ONLY": "READ_ONLY", + "READ_WRITE": "READ_WRITE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" } }, - "AzureActiveDirectoryValidation": { + "Action": { + "type": "Enum", + "methods": {}, + "properties": { + "ALLOW": "ALLOW", + "DENY": "DENY", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ActiveRevisionsMode": { + "type": "Enum", + "methods": {}, + "properties": { + "LABELS": "LABELS", + "MULTIPLE": "MULTIPLE", + "SINGLE": "SINGLE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "Affinity": { + "type": "Enum", + "methods": {}, + "properties": { + "NONE": "NONE", + "STICKY": "STICKY", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "AllowedAudiencesValidation": { "type": null, "methods": { "__init__": { @@ -8808,18 +9204,10 @@ "default": null, "param_type": "positional_or_keyword" }, - "jwt_claim_checks": { - "default": "none", - "param_type": "keyword_only" - }, "allowed_audiences": { "default": "none", "param_type": "keyword_only" }, - "default_authorization_policy": { - "default": "none", - "param_type": "keyword_only" - }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -8912,21 +9300,15 @@ } }, "properties": { - "jwt_claim_checks": { - "attr_type": "jwt_claim_checks" - }, "allowed_audiences": { "attr_type": "allowed_audiences" }, - "default_authorization_policy": { - "attr_type": "default_authorization_policy" - }, "additional_properties": { "attr_type": null } } }, - "AzureCredentials": { + "AllowedPrincipals": { "type": null, "methods": { "__init__": { @@ -8935,23 +9317,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "client_id": { - "default": "none", - "param_type": "keyword_only" - }, - "client_secret": { - "default": "none", - "param_type": "keyword_only" - }, - "tenant_id": { - "default": "none", - "param_type": "keyword_only" - }, - "kind": { + "groups": { "default": "none", "param_type": "keyword_only" }, - "subscription_id": { + "identities": { "default": "none", "param_type": "keyword_only" }, @@ -9047,27 +9417,18 @@ } }, "properties": { - "client_id": { - "attr_type": "client_id" - }, - "client_secret": { - "attr_type": "client_secret" - }, - "tenant_id": { - "attr_type": "tenant_id" - }, - "kind": { - "attr_type": "kind" + "groups": { + "attr_type": "groups" }, - "subscription_id": { - "attr_type": "subscription_id" + "identities": { + "attr_type": "identities" }, "additional_properties": { "attr_type": null } } }, - "AzureFileProperties": { + "AppInsightsConfiguration": { "type": null, "methods": { "__init__": { @@ -9076,23 +9437,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "account_name": { - "default": "none", - "param_type": "keyword_only" - }, - "account_key": { - "default": "none", - "param_type": "keyword_only" - }, - "account_key_vault_properties": { - "default": "none", - "param_type": "keyword_only" - }, - "access_mode": { - "default": "none", - "param_type": "keyword_only" - }, - "share_name": { + "connection_string": { "default": "none", "param_type": "keyword_only" }, @@ -9188,27 +9533,15 @@ } }, "properties": { - "account_name": { - "attr_type": "account_name" - }, - "account_key": { - "attr_type": "account_key" - }, - "account_key_vault_properties": { - "attr_type": "account_key_vault_properties" - }, - "access_mode": { - "attr_type": "access_mode" - }, - "share_name": { - "attr_type": "share_name" + "connection_string": { + "attr_type": "connection_string" }, "additional_properties": { "attr_type": null } } }, - "AzureStaticWebApps": { + "AppLogsConfiguration": { "type": null, "methods": { "__init__": { @@ -9217,11 +9550,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "enabled": { + "destination": { "default": "none", "param_type": "keyword_only" }, - "registration": { + "log_analytics_configuration": { "default": "none", "param_type": "keyword_only" }, @@ -9317,41 +9650,100 @@ } }, "properties": { - "enabled": { - "attr_type": "enabled" + "destination": { + "attr_type": "destination" }, - "registration": { - "attr_type": "registration" + "log_analytics_configuration": { + "attr_type": "log_analytics_configuration" }, "additional_properties": { "attr_type": null } } }, - "AzureStaticWebAppsRegistration": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "client_id": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { + "AppProtocol": { + "type": "Enum", + "methods": {}, + "properties": { + "GRPC": "GRPC", + "HTTP": "HTTP", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "AppRegistration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "app_id": { + "default": "none", + "param_type": "keyword_only" + }, + "app_secret_setting_name": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { "default": null, "param_type": "positional_or_keyword" }, @@ -9433,15 +9825,18 @@ } }, "properties": { - "client_id": { - "attr_type": "client_id" + "app_id": { + "attr_type": "app_id" + }, + "app_secret_setting_name": { + "attr_type": "app_secret_setting_name" }, "additional_properties": { "attr_type": null } } }, - "BaseContainer": { + "AppResiliency": { "type": null, "methods": { "__init__": { @@ -9450,31 +9845,27 @@ "default": null, "param_type": "positional_or_keyword" }, - "image": { + "timeout_policy": { "default": "none", "param_type": "keyword_only" }, - "name": { + "http_retry_policy": { "default": "none", "param_type": "keyword_only" }, - "command": { + "tcp_retry_policy": { "default": "none", "param_type": "keyword_only" }, - "args": { + "circuit_breaker_policy": { "default": "none", "param_type": "keyword_only" }, - "env": { - "default": "none", - "param_type": "keyword_only" - }, - "resources": { + "http_connection_pool": { "default": "none", "param_type": "keyword_only" }, - "volume_mounts": { + "tcp_connection_pool": { "default": "none", "param_type": "keyword_only" }, @@ -9570,33 +9961,42 @@ } }, "properties": { - "image": { - "attr_type": "image" + "timeout_policy": { + "attr_type": "timeout_policy" }, - "name": { - "attr_type": "name" + "http_retry_policy": { + "attr_type": "http_retry_policy" }, - "command": { - "attr_type": "command" + "tcp_retry_policy": { + "attr_type": "tcp_retry_policy" }, - "args": { - "attr_type": "args" + "circuit_breaker_policy": { + "attr_type": "circuit_breaker_policy" }, - "env": { - "attr_type": "env" + "http_connection_pool": { + "attr_type": "http_connection_pool" }, - "resources": { - "attr_type": "resources" + "tcp_connection_pool": { + "attr_type": "tcp_connection_pool" }, - "volume_mounts": { - "attr_type": "volume_mounts" + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "BillingMeter": { + "AppResiliencyCollection": { "type": null, "methods": { "__init__": { @@ -9605,12 +10005,8 @@ "default": null, "param_type": "positional_or_keyword" }, - "location": { - "default": "none", - "param_type": "keyword_only" - }, - "properties": { - "default": "none", + "value": { + "default": null, "param_type": "keyword_only" }, "kwargs": { @@ -9705,22 +10101,10 @@ } }, "properties": { - "location": { - "attr_type": "location" - }, - "properties": { - "attr_type": "properties" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "type": { - "attr_type": null + "value": { + "attr_type": "value" }, - "system_data": { + "next_link": { "attr_type": null }, "additional_properties": { @@ -9728,7 +10112,7 @@ } } }, - "BillingMeterCollection": { + "Apple": { "type": null, "methods": { "__init__": { @@ -9737,8 +10121,16 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { - "default": null, + "enabled": { + "default": "none", + "param_type": "keyword_only" + }, + "registration": { + "default": "none", + "param_type": "keyword_only" + }, + "login": { + "default": "none", "param_type": "keyword_only" }, "kwargs": { @@ -9833,15 +10225,21 @@ } }, "properties": { - "value": { - "attr_type": "value" + "enabled": { + "attr_type": "enabled" + }, + "registration": { + "attr_type": "registration" + }, + "login": { + "attr_type": "login" }, "additional_properties": { "attr_type": null } } }, - "BillingMeterProperties": { + "AppleRegistration": { "type": null, "methods": { "__init__": { @@ -9850,15 +10248,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "category": { - "default": "none", - "param_type": "keyword_only" - }, - "meter_type": { + "client_id": { "default": "none", "param_type": "keyword_only" }, - "display_name": { + "client_secret_setting_name": { "default": "none", "param_type": "keyword_only" }, @@ -9954,27 +10348,23 @@ } }, "properties": { - "category": { - "attr_type": "category" - }, - "meter_type": { - "attr_type": "meter_type" + "client_id": { + "attr_type": "client_id" }, - "display_name": { - "attr_type": "display_name" + "client_secret_setting_name": { + "attr_type": "client_secret_setting_name" }, "additional_properties": { "attr_type": null } } }, - "BindingType": { + "Applicability": { "type": "Enum", "methods": {}, "properties": { - "AUTO": "AUTO", - "DISABLED": "DISABLED", - "SNI_ENABLED": "SNI_ENABLED", + "CUSTOM": "CUSTOM", + "LOCATION_DEFAULT": "LOCATION_DEFAULT", "capitalize": "capitalize", "casefold": "casefold", "center": "center", @@ -10024,7 +10414,7 @@ "zfill": "zfill" } }, - "BlobStorageTokenStore": { + "AuthConfig": { "type": null, "methods": { "__init__": { @@ -10033,8 +10423,28 @@ "default": null, "param_type": "positional_or_keyword" }, - "sas_url_setting_name": { - "default": null, + "platform": { + "default": "none", + "param_type": "keyword_only" + }, + "global_validation": { + "default": "none", + "param_type": "keyword_only" + }, + "identity_providers": { + "default": "none", + "param_type": "keyword_only" + }, + "login": { + "default": "none", + "param_type": "keyword_only" + }, + "http_settings": { + "default": "none", + "param_type": "keyword_only" + }, + "encryption_settings": { + "default": "none", "param_type": "keyword_only" }, "kwargs": { @@ -10129,15 +10539,42 @@ } }, "properties": { - "sas_url_setting_name": { - "attr_type": "sas_url_setting_name" + "platform": { + "attr_type": "platform" + }, + "global_validation": { + "attr_type": "global_validation" + }, + "identity_providers": { + "attr_type": "identity_providers" + }, + "login": { + "attr_type": "login" + }, + "http_settings": { + "attr_type": "http_settings" + }, + "encryption_settings": { + "attr_type": "encryption_settings" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "Certificate": { + "AuthConfigCollection": { "type": null, "methods": { "__init__": { @@ -10146,18 +10583,10 @@ "default": null, "param_type": "positional_or_keyword" }, - "location": { + "value": { "default": null, "param_type": "keyword_only" }, - "tags": { - "default": "none", - "param_type": "keyword_only" - }, - "properties": { - "default": "none", - "param_type": "keyword_only" - }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -10250,25 +10679,10 @@ } }, "properties": { - "properties": { - "attr_type": "properties" - }, - "tags": { - "attr_type": "tags" - }, - "location": { - "attr_type": "location" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "type": { - "attr_type": null + "value": { + "attr_type": "value" }, - "system_data": { + "next_link": { "attr_type": null }, "additional_properties": { @@ -10276,7 +10690,7 @@ } } }, - "CertificateCollection": { + "AuthPlatform": { "type": null, "methods": { "__init__": { @@ -10285,8 +10699,12 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { - "default": null, + "enabled": { + "default": "none", + "param_type": "keyword_only" + }, + "runtime_version": { + "default": "none", "param_type": "keyword_only" }, "kwargs": { @@ -10381,18 +10799,18 @@ } }, "properties": { - "value": { - "attr_type": "value" + "enabled": { + "attr_type": "enabled" }, - "next_link": { - "attr_type": null + "runtime_version": { + "attr_type": "runtime_version" }, "additional_properties": { "attr_type": null } } }, - "CertificateKeyVaultProperties": { + "AvailableOperations": { "type": null, "methods": { "__init__": { @@ -10401,11 +10819,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "identity": { + "value": { "default": "none", "param_type": "keyword_only" }, - "key_vault_url": { + "next_link": { "default": "none", "param_type": "keyword_only" }, @@ -10501,18 +10919,18 @@ } }, "properties": { - "identity": { - "attr_type": "identity" + "value": { + "attr_type": "value" }, - "key_vault_url": { - "attr_type": "key_vault_url" + "next_link": { + "attr_type": "next_link" }, "additional_properties": { "attr_type": null } } }, - "CertificatePatch": { + "AvailableWorkloadProfile": { "type": null, "methods": { "__init__": { @@ -10521,7 +10939,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "tags": { + "location": { + "default": "none", + "param_type": "keyword_only" + }, + "properties": { "default": "none", "param_type": "keyword_only" }, @@ -10617,15 +11039,30 @@ } }, "properties": { - "tags": { - "attr_type": "tags" + "location": { + "attr_type": "location" + }, + "properties": { + "attr_type": "properties" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "CertificateProperties": { + "AvailableWorkloadProfileProperties": { "type": null, "methods": { "__init__": { @@ -10634,15 +11071,27 @@ "default": null, "param_type": "positional_or_keyword" }, - "certificate_key_vault_properties": { + "category": { "default": "none", "param_type": "keyword_only" }, - "password": { + "applicability": { "default": "none", "param_type": "keyword_only" }, - "value": { + "cores": { + "default": "none", + "param_type": "keyword_only" + }, + "memory_gi_b": { + "default": "none", + "param_type": "keyword_only" + }, + "gpus": { + "default": "none", + "param_type": "keyword_only" + }, + "display_name": { "default": "none", "param_type": "keyword_only" }, @@ -10738,165 +11187,30 @@ } }, "properties": { - "provisioning_state": { - "attr_type": null - }, - "deployment_errors": { - "attr_type": null - }, - "certificate_key_vault_properties": { - "attr_type": "certificate_key_vault_properties" - }, - "password": { - "attr_type": "password" - }, - "subject_name": { - "attr_type": null - }, - "subject_alternative_names": { - "attr_type": null - }, - "value": { - "attr_type": "value" - }, - "issuer": { - "attr_type": null + "category": { + "attr_type": "category" }, - "issue_date": { - "attr_type": null + "applicability": { + "attr_type": "applicability" }, - "expiration_date": { - "attr_type": null + "cores": { + "attr_type": "cores" }, - "thumbprint": { - "attr_type": null + "memory_gi_b": { + "attr_type": "memory_gi_b" }, - "valid": { - "attr_type": null + "gpus": { + "attr_type": "gpus" }, - "public_key_hash": { - "attr_type": null + "display_name": { + "attr_type": "display_name" }, "additional_properties": { "attr_type": null } } }, - "CertificateProvisioningState": { - "type": "Enum", - "methods": {}, - "properties": { - "CANCELED": "CANCELED", - "DELETE_FAILED": "DELETE_FAILED", - "DELETING": "DELETING", - "FAILED": "FAILED", - "PENDING": "PENDING", - "SUCCEEDED": "SUCCEEDED", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "CheckNameAvailabilityReason": { - "type": "Enum", - "methods": {}, - "properties": { - "ALREADY_EXISTS": "ALREADY_EXISTS", - "INVALID": "INVALID", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "CheckNameAvailabilityRequest": { + "AvailableWorkloadProfilesCollection": { "type": null, "methods": { "__init__": { @@ -10905,12 +11219,8 @@ "default": null, "param_type": "positional_or_keyword" }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "type": { - "default": "none", + "value": { + "default": null, "param_type": "keyword_only" }, "kwargs": { @@ -11005,18 +11315,18 @@ } }, "properties": { - "name": { - "attr_type": "name" + "value": { + "attr_type": "value" }, - "type": { - "attr_type": "type" + "next_link": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "CheckNameAvailabilityResponse": { + "AzureActiveDirectory": { "type": null, "methods": { "__init__": { @@ -11025,15 +11335,23 @@ "default": null, "param_type": "positional_or_keyword" }, - "name_available": { + "enabled": { "default": "none", "param_type": "keyword_only" }, - "reason": { + "registration": { "default": "none", "param_type": "keyword_only" }, - "message": { + "login": { + "default": "none", + "param_type": "keyword_only" + }, + "validation": { + "default": "none", + "param_type": "keyword_only" + }, + "is_auto_provisioned": { "default": "none", "param_type": "keyword_only" }, @@ -11129,21 +11447,27 @@ } }, "properties": { - "name_available": { - "attr_type": "name_available" + "enabled": { + "attr_type": "enabled" }, - "reason": { - "attr_type": "reason" + "registration": { + "attr_type": "registration" }, - "message": { - "attr_type": "message" + "login": { + "attr_type": "login" + }, + "validation": { + "attr_type": "validation" + }, + "is_auto_provisioned": { + "attr_type": "is_auto_provisioned" }, "additional_properties": { "attr_type": null } } }, - "ClientRegistration": { + "AzureActiveDirectoryLogin": { "type": null, "methods": { "__init__": { @@ -11152,11 +11476,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "client_id": { + "login_parameters": { "default": "none", "param_type": "keyword_only" }, - "client_secret_setting_name": { + "disable_www_authenticate": { "default": "none", "param_type": "keyword_only" }, @@ -11252,18 +11576,18 @@ } }, "properties": { - "client_id": { - "attr_type": "client_id" + "login_parameters": { + "attr_type": "login_parameters" }, - "client_secret_setting_name": { - "attr_type": "client_secret_setting_name" + "disable_www_authenticate": { + "attr_type": "disable_www_authenticate" }, "additional_properties": { "attr_type": null } } }, - "Configuration": { + "AzureActiveDirectoryRegistration": { "type": null, "methods": { "__init__": { @@ -11272,39 +11596,27 @@ "default": null, "param_type": "positional_or_keyword" }, - "secrets": { - "default": "none", - "param_type": "keyword_only" - }, - "active_revisions_mode": { - "default": "str", - "param_type": "keyword_only" - }, - "ingress": { - "default": "none", - "param_type": "keyword_only" - }, - "registries": { + "open_id_issuer": { "default": "none", "param_type": "keyword_only" }, - "dapr": { + "client_id": { "default": "none", "param_type": "keyword_only" }, - "runtime": { + "client_secret_setting_name": { "default": "none", "param_type": "keyword_only" }, - "max_inactive_revisions": { + "client_secret_certificate_thumbprint": { "default": "none", "param_type": "keyword_only" }, - "service": { + "client_secret_certificate_subject_alternative_name": { "default": "none", "param_type": "keyword_only" }, - "identity_settings": { + "client_secret_certificate_issuer": { "default": "none", "param_type": "keyword_only" }, @@ -11400,39 +11712,30 @@ } }, "properties": { - "secrets": { - "attr_type": "secrets" - }, - "active_revisions_mode": { - "attr_type": "active_revisions_mode" - }, - "ingress": { - "attr_type": "ingress" - }, - "registries": { - "attr_type": "registries" + "open_id_issuer": { + "attr_type": "open_id_issuer" }, - "dapr": { - "attr_type": "dapr" + "client_id": { + "attr_type": "client_id" }, - "runtime": { - "attr_type": "runtime" + "client_secret_setting_name": { + "attr_type": "client_secret_setting_name" }, - "max_inactive_revisions": { - "attr_type": "max_inactive_revisions" + "client_secret_certificate_thumbprint": { + "attr_type": "client_secret_certificate_thumbprint" }, - "service": { - "attr_type": "service" + "client_secret_certificate_subject_alternative_name": { + "attr_type": "client_secret_certificate_subject_alternative_name" }, - "identity_settings": { - "attr_type": "identity_settings" + "client_secret_certificate_issuer": { + "attr_type": "client_secret_certificate_issuer" }, "additional_properties": { "attr_type": null } } }, - "ConnectedEnvironment": { + "AzureActiveDirectoryValidation": { "type": null, "methods": { "__init__": { @@ -11441,27 +11744,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "location": { - "default": null, - "param_type": "keyword_only" - }, - "tags": { - "default": "none", - "param_type": "keyword_only" - }, - "extended_location": { - "default": "none", - "param_type": "keyword_only" - }, - "static_ip": { + "jwt_claim_checks": { "default": "none", "param_type": "keyword_only" }, - "dapr_ai_connection_string": { + "allowed_audiences": { "default": "none", "param_type": "keyword_only" }, - "custom_domain_configuration": { + "default_authorization_policy": { "default": "none", "param_type": "keyword_only" }, @@ -11557,51 +11848,21 @@ } }, "properties": { - "extended_location": { - "attr_type": "extended_location" - }, - "provisioning_state": { - "attr_type": null - }, - "deployment_errors": { - "attr_type": null - }, - "default_domain": { - "attr_type": null - }, - "static_ip": { - "attr_type": "static_ip" - }, - "dapr_ai_connection_string": { - "attr_type": "dapr_ai_connection_string" - }, - "custom_domain_configuration": { - "attr_type": "custom_domain_configuration" - }, - "tags": { - "attr_type": "tags" - }, - "location": { - "attr_type": "location" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null + "jwt_claim_checks": { + "attr_type": "jwt_claim_checks" }, - "type": { - "attr_type": null + "allowed_audiences": { + "attr_type": "allowed_audiences" }, - "system_data": { - "attr_type": null + "default_authorization_policy": { + "attr_type": "default_authorization_policy" }, "additional_properties": { "attr_type": null } } }, - "ConnectedEnvironmentCollection": { + "AzureCredentials": { "type": null, "methods": { "__init__": { @@ -11610,123 +11871,23 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { + "client_id": { "default": "none", "param_type": "keyword_only" }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { + "client_secret": { "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" + "param_type": "keyword_only" }, - "key_extractors": { + "tenant_id": { "default": "none", - "param_type": "positional_or_keyword" + "param_type": "keyword_only" }, - "content_type": { + "kind": { "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "value": { - "attr_type": "value" - }, - "next_link": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "ConnectedEnvironmentPatchResource": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" + "param_type": "keyword_only" }, - "tags": { + "subscription_id": { "default": "none", "param_type": "keyword_only" }, @@ -11822,76 +11983,27 @@ } }, "properties": { - "tags": { - "attr_type": "tags" + "client_id": { + "attr_type": "client_id" + }, + "client_secret": { + "attr_type": "client_secret" + }, + "tenant_id": { + "attr_type": "tenant_id" + }, + "kind": { + "attr_type": "kind" + }, + "subscription_id": { + "attr_type": "subscription_id" }, "additional_properties": { "attr_type": null } } }, - "ConnectedEnvironmentProvisioningState": { - "type": "Enum", - "methods": {}, - "properties": { - "CANCELED": "CANCELED", - "FAILED": "FAILED", - "INFRASTRUCTURE_SETUP_COMPLETE": "INFRASTRUCTURE_SETUP_COMPLETE", - "INFRASTRUCTURE_SETUP_IN_PROGRESS": "INFRASTRUCTURE_SETUP_IN_PROGRESS", - "INITIALIZATION_IN_PROGRESS": "INITIALIZATION_IN_PROGRESS", - "SCHEDULED_FOR_DELETE": "SCHEDULED_FOR_DELETE", - "SUCCEEDED": "SUCCEEDED", - "WAITING": "WAITING", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "ConnectedEnvironmentStorage": { + "AzureFileProperties": { "type": null, "methods": { "__init__": { @@ -11900,7 +12012,23 @@ "default": null, "param_type": "positional_or_keyword" }, - "properties": { + "account_name": { + "default": "none", + "param_type": "keyword_only" + }, + "account_key": { + "default": "none", + "param_type": "keyword_only" + }, + "account_key_vault_properties": { + "default": "none", + "param_type": "keyword_only" + }, + "access_mode": { + "default": "none", + "param_type": "keyword_only" + }, + "share_name": { "default": "none", "param_type": "keyword_only" }, @@ -11996,27 +12124,27 @@ } }, "properties": { - "properties": { - "attr_type": "properties" + "account_name": { + "attr_type": "account_name" }, - "id": { - "attr_type": null + "account_key": { + "attr_type": "account_key" }, - "name": { - "attr_type": null + "account_key_vault_properties": { + "attr_type": "account_key_vault_properties" }, - "type": { - "attr_type": null + "access_mode": { + "attr_type": "access_mode" }, - "system_data": { - "attr_type": null + "share_name": { + "attr_type": "share_name" }, "additional_properties": { "attr_type": null } } }, - "ConnectedEnvironmentStorageProperties": { + "AzureStaticWebApps": { "type": null, "methods": { "__init__": { @@ -12025,7 +12153,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "azure_file": { + "enabled": { + "default": "none", + "param_type": "keyword_only" + }, + "registration": { "default": "none", "param_type": "keyword_only" }, @@ -12121,79 +12253,18 @@ } }, "properties": { - "azure_file": { - "attr_type": "azure_file" - }, - "provisioning_state": { - "attr_type": null + "enabled": { + "attr_type": "enabled" }, - "deployment_errors": { - "attr_type": null + "registration": { + "attr_type": "registration" }, "additional_properties": { "attr_type": null } } }, - "ConnectedEnvironmentStorageProvisioningState": { - "type": "Enum", - "methods": {}, - "properties": { - "CANCELED": "CANCELED", - "DELETING": "DELETING", - "FAILED": "FAILED", - "IN_PROGRESS": "IN_PROGRESS", - "SUCCEEDED": "SUCCEEDED", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "ConnectedEnvironmentStoragesCollection": { + "AzureStaticWebAppsRegistration": { "type": null, "methods": { "__init__": { @@ -12202,8 +12273,8 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { - "default": null, + "client_id": { + "default": "none", "param_type": "keyword_only" }, "kwargs": { @@ -12298,15 +12369,15 @@ } }, "properties": { - "value": { - "attr_type": "value" + "client_id": { + "attr_type": "client_id" }, "additional_properties": { "attr_type": null } } }, - "Container": { + "BaseContainer": { "type": null, "methods": { "__init__": { @@ -12319,6 +12390,10 @@ "default": "none", "param_type": "keyword_only" }, + "image_type": { + "default": "none", + "param_type": "keyword_only" + }, "name": { "default": "none", "param_type": "keyword_only" @@ -12343,10 +12418,6 @@ "default": "none", "param_type": "keyword_only" }, - "probes": { - "default": "none", - "param_type": "keyword_only" - }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -12439,12 +12510,12 @@ } }, "properties": { - "probes": { - "attr_type": "probes" - }, "image": { "attr_type": "image" }, + "image_type": { + "attr_type": "image_type" + }, "name": { "attr_type": "name" }, @@ -12468,7 +12539,7 @@ } } }, - "ContainerApp": { + "BillingMeter": { "type": null, "methods": { "__init__": { @@ -12478,46 +12549,10 @@ "param_type": "positional_or_keyword" }, "location": { - "default": null, - "param_type": "keyword_only" - }, - "tags": { - "default": "none", - "param_type": "keyword_only" - }, - "extended_location": { - "default": "none", - "param_type": "keyword_only" - }, - "identity": { - "default": "none", - "param_type": "keyword_only" - }, - "managed_by": { - "default": "none", - "param_type": "keyword_only" - }, - "kind": { - "default": "none", - "param_type": "keyword_only" - }, - "managed_environment_id": { - "default": "none", - "param_type": "keyword_only" - }, - "environment_id": { - "default": "none", - "param_type": "keyword_only" - }, - "workload_profile_name": { - "default": "none", - "param_type": "keyword_only" - }, - "configuration": { "default": "none", "param_type": "keyword_only" }, - "template": { + "properties": { "default": "none", "param_type": "keyword_only" }, @@ -12613,63 +12648,12 @@ } }, "properties": { - "extended_location": { - "attr_type": "extended_location" - }, - "identity": { - "attr_type": "identity" - }, - "managed_by": { - "attr_type": "managed_by" - }, - "kind": { - "attr_type": "kind" - }, - "provisioning_state": { - "attr_type": null - }, - "running_status": { - "attr_type": null - }, - "managed_environment_id": { - "attr_type": "managed_environment_id" - }, - "environment_id": { - "attr_type": "environment_id" - }, - "workload_profile_name": { - "attr_type": "workload_profile_name" - }, - "latest_revision_name": { - "attr_type": null - }, - "latest_ready_revision_name": { - "attr_type": null - }, - "latest_revision_fqdn": { - "attr_type": null - }, - "custom_domain_verification_id": { - "attr_type": null - }, - "configuration": { - "attr_type": "configuration" - }, - "template": { - "attr_type": "template" - }, - "outbound_ip_addresses": { - "attr_type": null - }, - "event_stream_endpoint": { - "attr_type": null - }, - "tags": { - "attr_type": "tags" - }, "location": { "attr_type": "location" }, + "properties": { + "attr_type": "properties" + }, "id": { "attr_type": null }, @@ -12687,7 +12671,7 @@ } } }, - "ContainerAppAuthToken": { + "BillingMeterCollection": { "type": null, "methods": { "__init__": { @@ -12696,14 +12680,10 @@ "default": null, "param_type": "positional_or_keyword" }, - "location": { + "value": { "default": null, "param_type": "keyword_only" }, - "tags": { - "default": "none", - "param_type": "keyword_only" - }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -12796,36 +12776,15 @@ } }, "properties": { - "token": { - "attr_type": null - }, - "expires": { - "attr_type": null - }, - "tags": { - "attr_type": "tags" - }, - "location": { - "attr_type": "location" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "type": { - "attr_type": null - }, - "system_data": { - "attr_type": null + "value": { + "attr_type": "value" }, "additional_properties": { "attr_type": null } } }, - "ContainerAppCollection": { + "BillingMeterProperties": { "type": null, "methods": { "__init__": { @@ -12834,8 +12793,16 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { - "default": null, + "category": { + "default": "none", + "param_type": "keyword_only" + }, + "meter_type": { + "default": "none", + "param_type": "keyword_only" + }, + "display_name": { + "default": "none", "param_type": "keyword_only" }, "kwargs": { @@ -12930,24 +12897,27 @@ } }, "properties": { - "value": { - "attr_type": "value" + "category": { + "attr_type": "category" }, - "next_link": { - "attr_type": null + "meter_type": { + "attr_type": "meter_type" + }, + "display_name": { + "attr_type": "display_name" }, "additional_properties": { "attr_type": null } } }, - "ContainerAppContainerRunningState": { + "BindingType": { "type": "Enum", "methods": {}, "properties": { - "RUNNING": "RUNNING", - "TERMINATED": "TERMINATED", - "WAITING": "WAITING", + "AUTO": "AUTO", + "DISABLED": "DISABLED", + "SNI_ENABLED": "SNI_ENABLED", "capitalize": "capitalize", "casefold": "casefold", "center": "center", @@ -12997,7 +12967,7 @@ "zfill": "zfill" } }, - "ContainerAppJobExecutions": { + "BlobStorageTokenStore": { "type": null, "methods": { "__init__": { @@ -13006,8 +12976,20 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { - "default": null, + "sas_url_setting_name": { + "default": "none", + "param_type": "keyword_only" + }, + "blob_container_uri": { + "default": "none", + "param_type": "keyword_only" + }, + "client_id": { + "default": "none", + "param_type": "keyword_only" + }, + "managed_identity_resource_id": { + "default": "none", "param_type": "keyword_only" }, "kwargs": { @@ -13102,18 +13084,24 @@ } }, "properties": { - "value": { - "attr_type": "value" + "sas_url_setting_name": { + "attr_type": "sas_url_setting_name" }, - "next_link": { - "attr_type": null + "blob_container_uri": { + "attr_type": "blob_container_uri" + }, + "client_id": { + "attr_type": "client_id" + }, + "managed_identity_resource_id": { + "attr_type": "managed_identity_resource_id" }, "additional_properties": { "attr_type": null } } }, - "ContainerAppProbe": { + "BuildCollection": { "type": null, "methods": { "__init__": { @@ -13122,39 +13110,143 @@ "default": null, "param_type": "positional_or_keyword" }, - "failure_threshold": { - "default": "none", + "value": { + "default": null, "param_type": "keyword_only" }, - "http_get": { + "next_link": { "default": "none", "param_type": "keyword_only" }, - "initial_delay_seconds": { + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { "default": "none", - "param_type": "keyword_only" + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" }, - "period_seconds": { + "key_extractors": { "default": "none", - "param_type": "keyword_only" + "param_type": "positional_or_keyword" }, - "success_threshold": { + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": "next_link" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "BuildConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "base_os": { "default": "none", "param_type": "keyword_only" }, - "tcp_socket": { + "platform": { "default": "none", "param_type": "keyword_only" }, - "termination_grace_period_seconds": { + "platform_version": { "default": "none", "param_type": "keyword_only" }, - "timeout_seconds": { + "environment_variables": { "default": "none", "param_type": "keyword_only" }, - "type": { + "pre_build_steps": { "default": "none", "param_type": "keyword_only" }, @@ -13250,39 +13342,86 @@ } }, "properties": { - "failure_threshold": { - "attr_type": "failure_threshold" + "base_os": { + "attr_type": "base_os" }, - "http_get": { - "attr_type": "http_get" - }, - "initial_delay_seconds": { - "attr_type": "initial_delay_seconds" - }, - "period_seconds": { - "attr_type": "period_seconds" - }, - "success_threshold": { - "attr_type": "success_threshold" - }, - "tcp_socket": { - "attr_type": "tcp_socket" + "platform": { + "attr_type": "platform" }, - "termination_grace_period_seconds": { - "attr_type": "termination_grace_period_seconds" + "platform_version": { + "attr_type": "platform_version" }, - "timeout_seconds": { - "attr_type": "timeout_seconds" + "environment_variables": { + "attr_type": "environment_variables" }, - "type": { - "attr_type": "type" + "pre_build_steps": { + "attr_type": "pre_build_steps" }, "additional_properties": { "attr_type": null } } }, - "ContainerAppProbeHttpGet": { + "BuildProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "CREATING": "CREATING", + "DELETING": "DELETING", + "FAILED": "FAILED", + "SUCCEEDED": "SUCCEEDED", + "UPDATING": "UPDATING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "BuildResource": { "type": null, "methods": { "__init__": { @@ -13291,23 +13430,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "port": { - "default": null, - "param_type": "keyword_only" - }, - "host": { - "default": "none", - "param_type": "keyword_only" - }, - "http_headers": { - "default": "none", - "param_type": "keyword_only" - }, - "path": { + "destination_container_registry": { "default": "none", "param_type": "keyword_only" }, - "scheme": { + "configuration": { "default": "none", "param_type": "keyword_only" }, @@ -13403,27 +13530,103 @@ } }, "properties": { - "host": { - "attr_type": "host" + "provisioning_state": { + "attr_type": null }, - "http_headers": { - "attr_type": "http_headers" + "build_status": { + "attr_type": null }, - "path": { - "attr_type": "path" + "destination_container_registry": { + "attr_type": "destination_container_registry" }, - "port": { - "attr_type": "port" + "configuration": { + "attr_type": "configuration" }, - "scheme": { - "attr_type": "scheme" + "upload_endpoint": { + "attr_type": null + }, + "log_stream_endpoint": { + "attr_type": null + }, + "token_endpoint": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "ContainerAppProbeHttpGetHttpHeadersItem": { + "BuildStatus": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "FAILED": "FAILED", + "IN_PROGRESS": "IN_PROGRESS", + "NOT_STARTED": "NOT_STARTED", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "BuildToken": { "type": null, "methods": { "__init__": { @@ -13432,14 +13635,6 @@ "default": null, "param_type": "positional_or_keyword" }, - "name": { - "default": null, - "param_type": "keyword_only" - }, - "value": { - "default": null, - "param_type": "keyword_only" - }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -13532,18 +13727,18 @@ } }, "properties": { - "name": { - "attr_type": "name" + "token": { + "attr_type": null }, - "value": { - "attr_type": "value" + "expires": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "ContainerAppProbeTcpSocket": { + "BuilderCollection": { "type": null, "methods": { "__init__": { @@ -13552,11 +13747,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "port": { + "value": { "default": null, "param_type": "keyword_only" }, - "host": { + "next_link": { "default": "none", "param_type": "keyword_only" }, @@ -13652,26 +13847,27 @@ } }, "properties": { - "host": { - "attr_type": "host" + "value": { + "attr_type": "value" }, - "port": { - "attr_type": "port" + "next_link": { + "attr_type": "next_link" }, "additional_properties": { "attr_type": null } } }, - "ContainerAppProvisioningState": { + "BuilderProvisioningState": { "type": "Enum", "methods": {}, "properties": { "CANCELED": "CANCELED", + "CREATING": "CREATING", "DELETING": "DELETING", "FAILED": "FAILED", - "IN_PROGRESS": "IN_PROGRESS", "SUCCEEDED": "SUCCEEDED", + "UPDATING": "UPDATING", "capitalize": "capitalize", "casefold": "casefold", "center": "center", @@ -13721,121 +13917,7 @@ "zfill": "zfill" } }, - "ContainerAppReplicaRunningState": { - "type": "Enum", - "methods": {}, - "properties": { - "NOT_RUNNING": "NOT_RUNNING", - "RUNNING": "RUNNING", - "UNKNOWN": "UNKNOWN", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "ContainerAppRunningStatus": { - "type": "Enum", - "methods": {}, - "properties": { - "PROGRESSING": "PROGRESSING", - "READY": "READY", - "RUNNING": "RUNNING", - "STOPPED": "STOPPED", - "SUSPENDED": "SUSPENDED", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "ContainerAppSecret": { + "BuilderResource": { "type": null, "methods": { "__init__": { @@ -13844,6 +13926,26 @@ "default": null, "param_type": "positional_or_keyword" }, + "location": { + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "environment_id": { + "default": "none", + "param_type": "keyword_only" + }, + "container_registries": { + "default": "none", + "param_type": "keyword_only" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -13936,16 +14038,34 @@ } }, "properties": { - "name": { + "identity": { + "attr_type": "identity" + }, + "provisioning_state": { "attr_type": null }, - "value": { + "environment_id": { + "attr_type": "environment_id" + }, + "container_registries": { + "attr_type": "container_registries" + }, + "tags": { + "attr_type": "tags" + }, + "location": { + "attr_type": "location" + }, + "id": { "attr_type": null }, - "identity": { + "name": { "attr_type": null }, - "key_vault_url": { + "type": { + "attr_type": null + }, + "system_data": { "attr_type": null }, "additional_properties": { @@ -13953,7 +14073,7 @@ } } }, - "ContainerResources": { + "BuilderResourceUpdate": { "type": null, "methods": { "__init__": { @@ -13962,11 +14082,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "cpu": { + "identity": { "default": "none", "param_type": "keyword_only" }, - "memory": { + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "environment_id": { "default": "none", "param_type": "keyword_only" }, @@ -14062,76 +14186,21 @@ } }, "properties": { - "cpu": { - "attr_type": "cpu" + "identity": { + "attr_type": "identity" }, - "memory": { - "attr_type": "memory" + "tags": { + "attr_type": "tags" }, - "ephemeral_storage": { - "attr_type": null + "environment_id": { + "attr_type": "environment_id" }, "additional_properties": { "attr_type": null } } }, - "ContainerType": { - "type": "Enum", - "methods": {}, - "properties": { - "CUSTOM_CONTAINER": "CUSTOM_CONTAINER", - "PYTHON_LTS": "PYTHON_LTS", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "CookieExpiration": { + "Certificate": { "type": null, "methods": { "__init__": { @@ -14140,11 +14209,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "convention": { + "location": { + "default": null, + "param_type": "keyword_only" + }, + "tags": { "default": "none", "param_type": "keyword_only" }, - "time_to_expiration": { + "properties": { "default": "none", "param_type": "keyword_only" }, @@ -14240,73 +14313,33 @@ } }, "properties": { - "convention": { - "attr_type": "convention" + "properties": { + "attr_type": "properties" }, - "time_to_expiration": { - "attr_type": "time_to_expiration" + "tags": { + "attr_type": "tags" + }, + "location": { + "attr_type": "location" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "CookieExpirationConvention": { - "type": "Enum", - "methods": {}, - "properties": { - "FIXED_TIME": "FIXED_TIME", - "IDENTITY_PROVIDER_DERIVED": "IDENTITY_PROVIDER_DERIVED", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "CorsPolicy": { + "CertificateCollection": { "type": null, "methods": { "__init__": { @@ -14315,30 +14348,10 @@ "default": null, "param_type": "positional_or_keyword" }, - "allowed_origins": { + "value": { "default": null, "param_type": "keyword_only" }, - "allowed_methods": { - "default": "none", - "param_type": "keyword_only" - }, - "allowed_headers": { - "default": "none", - "param_type": "keyword_only" - }, - "expose_headers": { - "default": "none", - "param_type": "keyword_only" - }, - "max_age": { - "default": "none", - "param_type": "keyword_only" - }, - "allow_credentials": { - "default": "none", - "param_type": "keyword_only" - }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -14431,87 +14444,18 @@ } }, "properties": { - "allowed_origins": { - "attr_type": "allowed_origins" - }, - "allowed_methods": { - "attr_type": "allowed_methods" - }, - "allowed_headers": { - "attr_type": "allowed_headers" - }, - "expose_headers": { - "attr_type": "expose_headers" - }, - "max_age": { - "attr_type": "max_age" + "value": { + "attr_type": "value" }, - "allow_credentials": { - "attr_type": "allow_credentials" + "next_link": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "CreatedByType": { - "type": "Enum", - "methods": {}, - "properties": { - "APPLICATION": "APPLICATION", - "KEY": "KEY", - "MANAGED_IDENTITY": "MANAGED_IDENTITY", - "USER": "USER", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "CustomContainerTemplate": { + "CertificateKeyVaultProperties": { "type": null, "methods": { "__init__": { @@ -14520,15 +14464,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "registry_credentials": { - "default": "none", - "param_type": "keyword_only" - }, - "containers": { + "identity": { "default": "none", "param_type": "keyword_only" }, - "ingress": { + "key_vault_url": { "default": "none", "param_type": "keyword_only" }, @@ -14624,21 +14564,18 @@ } }, "properties": { - "registry_credentials": { - "attr_type": "registry_credentials" - }, - "containers": { - "attr_type": "containers" + "identity": { + "attr_type": "identity" }, - "ingress": { - "attr_type": "ingress" + "key_vault_url": { + "attr_type": "key_vault_url" }, "additional_properties": { "attr_type": null } } }, - "CustomDomain": { + "CertificatePatch": { "type": null, "methods": { "__init__": { @@ -14647,15 +14584,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "name": { - "default": null, - "param_type": "keyword_only" - }, - "binding_type": { - "default": "none", - "param_type": "keyword_only" - }, - "certificate_id": { + "tags": { "default": "none", "param_type": "keyword_only" }, @@ -14751,21 +14680,15 @@ } }, "properties": { - "name": { - "attr_type": "name" - }, - "binding_type": { - "attr_type": "binding_type" - }, - "certificate_id": { - "attr_type": "certificate_id" + "tags": { + "attr_type": "tags" }, "additional_properties": { "attr_type": null } } }, - "CustomDomainConfiguration": { + "CertificateProperties": { "type": null, "methods": { "__init__": { @@ -14774,19 +14697,19 @@ "default": null, "param_type": "positional_or_keyword" }, - "dns_suffix": { + "certificate_key_vault_properties": { "default": "none", "param_type": "keyword_only" }, - "certificate_key_vault_properties": { + "password": { "default": "none", "param_type": "keyword_only" }, - "certificate_value": { + "value": { "default": "none", "param_type": "keyword_only" }, - "certificate_password": { + "certificate_type": { "default": "none", "param_type": "keyword_only" }, @@ -14882,20 +14805,32 @@ } }, "properties": { - "custom_domain_verification_id": { + "provisioning_state": { "attr_type": null }, - "dns_suffix": { - "attr_type": "dns_suffix" + "deployment_errors": { + "attr_type": null }, "certificate_key_vault_properties": { "attr_type": "certificate_key_vault_properties" }, - "certificate_value": { - "attr_type": "certificate_value" + "password": { + "attr_type": "password" }, - "certificate_password": { - "attr_type": "certificate_password" + "subject_name": { + "attr_type": null + }, + "subject_alternative_names": { + "attr_type": null + }, + "value": { + "attr_type": "value" + }, + "issuer": { + "attr_type": null + }, + "issue_date": { + "attr_type": null }, "expiration_date": { "attr_type": null @@ -14903,15 +14838,190 @@ "thumbprint": { "attr_type": null }, - "subject_name": { + "valid": { + "attr_type": null + }, + "public_key_hash": { "attr_type": null }, + "certificate_type": { + "attr_type": "certificate_type" + }, "additional_properties": { "attr_type": null } } }, - "CustomHostnameAnalysisResult": { + "CertificateProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "DELETE_FAILED": "DELETE_FAILED", + "DELETING": "DELETING", + "FAILED": "FAILED", + "PENDING": "PENDING", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "CertificateType": { + "type": "Enum", + "methods": {}, + "properties": { + "IMAGE_PULL_TRUSTED_CA": "IMAGE_PULL_TRUSTED_CA", + "SERVER_SSL_CERTIFICATE": "SERVER_SSL_CERTIFICATE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "CheckNameAvailabilityReason": { + "type": "Enum", + "methods": {}, + "properties": { + "ALREADY_EXISTS": "ALREADY_EXISTS", + "INVALID": "INVALID", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "CheckNameAvailabilityRequest": { "type": null, "methods": { "__init__": { @@ -14920,23 +15030,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "c_name_records": { - "default": "none", - "param_type": "keyword_only" - }, - "txt_records": { - "default": "none", - "param_type": "keyword_only" - }, - "a_records": { - "default": "none", - "param_type": "keyword_only" - }, - "alternate_c_name_records": { + "name": { "default": "none", "param_type": "keyword_only" }, - "alternate_txt_records": { + "type": { "default": "none", "param_type": "keyword_only" }, @@ -15032,48 +15130,18 @@ } }, "properties": { - "host_name": { - "attr_type": null - }, - "is_hostname_already_verified": { - "attr_type": null - }, - "custom_domain_verification_test": { - "attr_type": null - }, - "custom_domain_verification_failure_info": { - "attr_type": null - }, - "has_conflict_on_managed_environment": { - "attr_type": null - }, - "conflict_with_environment_custom_domain": { - "attr_type": null - }, - "conflicting_container_app_resource_id": { - "attr_type": null - }, - "c_name_records": { - "attr_type": "c_name_records" - }, - "txt_records": { - "attr_type": "txt_records" - }, - "a_records": { - "attr_type": "a_records" - }, - "alternate_c_name_records": { - "attr_type": "alternate_c_name_records" + "name": { + "attr_type": "name" }, - "alternate_txt_records": { - "attr_type": "alternate_txt_records" + "type": { + "attr_type": "type" }, "additional_properties": { "attr_type": null } } }, - "CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo": { + "CheckNameAvailabilityResponse": { "type": null, "methods": { "__init__": { @@ -15082,7 +15150,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "details": { + "name_available": { + "default": "none", + "param_type": "keyword_only" + }, + "reason": { + "default": "none", + "param_type": "keyword_only" + }, + "message": { "default": "none", "param_type": "keyword_only" }, @@ -15178,24 +15254,21 @@ } }, "properties": { - "code": { - "attr_type": null - }, - "message": { - "attr_type": null + "name_available": { + "attr_type": "name_available" }, - "target": { - "attr_type": null + "reason": { + "attr_type": "reason" }, - "details": { - "attr_type": "details" + "message": { + "attr_type": "message" }, "additional_properties": { "attr_type": null } } }, - "CustomHostnameAnalysisResultCustomDomainVerificationFailureInfoDetailsItem": { + "CircuitBreakerPolicy": { "type": null, "methods": { "__init__": { @@ -15204,6 +15277,18 @@ "default": null, "param_type": "positional_or_keyword" }, + "consecutive_errors": { + "default": "none", + "param_type": "keyword_only" + }, + "interval_in_seconds": { + "default": "none", + "param_type": "keyword_only" + }, + "max_ejection_percent": { + "default": "none", + "param_type": "keyword_only" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -15296,21 +15381,21 @@ } }, "properties": { - "code": { - "attr_type": null + "consecutive_errors": { + "attr_type": "consecutive_errors" }, - "message": { - "attr_type": null + "interval_in_seconds": { + "attr_type": "interval_in_seconds" }, - "target": { - "attr_type": null + "max_ejection_percent": { + "attr_type": "max_ejection_percent" }, "additional_properties": { "attr_type": null } } }, - "CustomOpenIdConnectProvider": { + "ClientRegistration": { "type": null, "methods": { "__init__": { @@ -15319,15 +15404,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "enabled": { - "default": "none", - "param_type": "keyword_only" - }, - "registration": { + "client_id": { "default": "none", "param_type": "keyword_only" }, - "login": { + "client_secret_setting_name": { "default": "none", "param_type": "keyword_only" }, @@ -15423,21 +15504,18 @@ } }, "properties": { - "enabled": { - "attr_type": "enabled" - }, - "registration": { - "attr_type": "registration" + "client_id": { + "attr_type": "client_id" }, - "login": { - "attr_type": "login" + "client_secret_setting_name": { + "attr_type": "client_secret_setting_name" }, "additional_properties": { "attr_type": null } } }, - "CustomScaleRule": { + "Configuration": { "type": null, "methods": { "__init__": { @@ -15446,19 +15524,47 @@ "default": null, "param_type": "positional_or_keyword" }, - "type": { + "secrets": { "default": "none", "param_type": "keyword_only" }, - "metadata": { + "active_revisions_mode": { + "default": "str", + "param_type": "keyword_only" + }, + "target_label": { "default": "none", "param_type": "keyword_only" }, - "auth": { + "ingress": { "default": "none", "param_type": "keyword_only" }, - "identity": { + "registries": { + "default": "none", + "param_type": "keyword_only" + }, + "dapr": { + "default": "none", + "param_type": "keyword_only" + }, + "runtime": { + "default": "none", + "param_type": "keyword_only" + }, + "max_inactive_revisions": { + "default": "none", + "param_type": "keyword_only" + }, + "revision_transition_threshold": { + "default": "none", + "param_type": "keyword_only" + }, + "service": { + "default": "none", + "param_type": "keyword_only" + }, + "identity_settings": { "default": "none", "param_type": "keyword_only" }, @@ -15554,24 +15660,45 @@ } }, "properties": { - "type": { - "attr_type": "type" + "secrets": { + "attr_type": "secrets" }, - "metadata": { - "attr_type": "metadata" + "active_revisions_mode": { + "attr_type": "active_revisions_mode" }, - "auth": { - "attr_type": "auth" + "target_label": { + "attr_type": "target_label" }, - "identity": { - "attr_type": "identity" + "ingress": { + "attr_type": "ingress" + }, + "registries": { + "attr_type": "registries" + }, + "dapr": { + "attr_type": "dapr" + }, + "runtime": { + "attr_type": "runtime" + }, + "max_inactive_revisions": { + "attr_type": "max_inactive_revisions" + }, + "revision_transition_threshold": { + "attr_type": "revision_transition_threshold" + }, + "service": { + "attr_type": "service" + }, + "identity_settings": { + "attr_type": "identity_settings" }, "additional_properties": { "attr_type": null } } }, - "Dapr": { + "ConnectedEnvironment": { "type": null, "methods": { "__init__": { @@ -15580,43 +15707,27 @@ "default": null, "param_type": "positional_or_keyword" }, - "enabled": { - "default": "bool", - "param_type": "keyword_only" - }, - "app_id": { - "default": "none", - "param_type": "keyword_only" - }, - "app_protocol": { - "default": "str", - "param_type": "keyword_only" - }, - "app_port": { - "default": "none", - "param_type": "keyword_only" - }, - "http_read_buffer_size": { - "default": "none", + "location": { + "default": null, "param_type": "keyword_only" }, - "http_max_request_size": { + "tags": { "default": "none", "param_type": "keyword_only" }, - "log_level": { + "extended_location": { "default": "none", "param_type": "keyword_only" }, - "enable_api_logging": { + "static_ip": { "default": "none", "param_type": "keyword_only" }, - "app_health": { + "dapr_ai_connection_string": { "default": "none", "param_type": "keyword_only" }, - "max_concurrency": { + "custom_domain_configuration": { "default": "none", "param_type": "keyword_only" }, @@ -15712,42 +15823,51 @@ } }, "properties": { - "enabled": { - "attr_type": "enabled" + "extended_location": { + "attr_type": "extended_location" }, - "app_id": { - "attr_type": "app_id" + "provisioning_state": { + "attr_type": null }, - "app_protocol": { - "attr_type": "app_protocol" + "deployment_errors": { + "attr_type": null }, - "app_port": { - "attr_type": "app_port" + "default_domain": { + "attr_type": null }, - "http_read_buffer_size": { - "attr_type": "http_read_buffer_size" + "static_ip": { + "attr_type": "static_ip" }, - "http_max_request_size": { - "attr_type": "http_max_request_size" + "dapr_ai_connection_string": { + "attr_type": "dapr_ai_connection_string" }, - "log_level": { - "attr_type": "log_level" + "custom_domain_configuration": { + "attr_type": "custom_domain_configuration" }, - "enable_api_logging": { - "attr_type": "enable_api_logging" + "tags": { + "attr_type": "tags" }, - "app_health": { - "attr_type": "app_health" + "location": { + "attr_type": "location" }, - "max_concurrency": { - "attr_type": "max_concurrency" + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "DaprAppHealth": { + "ConnectedEnvironmentCollection": { "type": null, "methods": { "__init__": { @@ -15756,23 +15876,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "enabled": { - "default": "none", - "param_type": "keyword_only" - }, - "path": { - "default": "none", - "param_type": "keyword_only" - }, - "probe_interval_seconds": { - "default": "none", - "param_type": "keyword_only" - }, - "probe_timeout_milliseconds": { - "default": "none", - "param_type": "keyword_only" - }, - "threshold": { + "value": { "default": "none", "param_type": "keyword_only" }, @@ -15868,27 +15972,18 @@ } }, "properties": { - "enabled": { - "attr_type": "enabled" - }, - "path": { - "attr_type": "path" - }, - "probe_interval_seconds": { - "attr_type": "probe_interval_seconds" - }, - "probe_timeout_milliseconds": { - "attr_type": "probe_timeout_milliseconds" + "value": { + "attr_type": "value" }, - "threshold": { - "attr_type": "threshold" + "next_link": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "DaprComponent": { + "ConnectedEnvironmentPatchResource": { "type": null, "methods": { "__init__": { @@ -15897,35 +15992,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "component_type": { - "default": "none", - "param_type": "keyword_only" - }, - "version": { - "default": "none", - "param_type": "keyword_only" - }, - "ignore_errors": { - "default": "bool", - "param_type": "keyword_only" - }, - "init_timeout": { - "default": "none", - "param_type": "keyword_only" - }, - "secrets": { - "default": "none", - "param_type": "keyword_only" - }, - "secret_store_component": { - "default": "none", - "param_type": "keyword_only" - }, - "metadata": { - "default": "none", - "param_type": "keyword_only" - }, - "scopes": { + "tags": { "default": "none", "param_type": "keyword_only" }, @@ -16021,62 +16088,26 @@ } }, "properties": { - "component_type": { - "attr_type": "component_type" - }, - "version": { - "attr_type": "version" - }, - "ignore_errors": { - "attr_type": "ignore_errors" - }, - "init_timeout": { - "attr_type": "init_timeout" - }, - "secrets": { - "attr_type": "secrets" - }, - "secret_store_component": { - "attr_type": "secret_store_component" - }, - "metadata": { - "attr_type": "metadata" - }, - "scopes": { - "attr_type": "scopes" - }, - "provisioning_state": { - "attr_type": null - }, - "deployment_errors": { - "attr_type": null - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "type": { - "attr_type": null - }, - "system_data": { - "attr_type": null + "tags": { + "attr_type": "tags" }, "additional_properties": { "attr_type": null } } }, - "DaprComponentProvisioningState": { + "ConnectedEnvironmentProvisioningState": { "type": "Enum", "methods": {}, "properties": { "CANCELED": "CANCELED", - "DELETING": "DELETING", "FAILED": "FAILED", - "IN_PROGRESS": "IN_PROGRESS", + "INFRASTRUCTURE_SETUP_COMPLETE": "INFRASTRUCTURE_SETUP_COMPLETE", + "INFRASTRUCTURE_SETUP_IN_PROGRESS": "INFRASTRUCTURE_SETUP_IN_PROGRESS", + "INITIALIZATION_IN_PROGRESS": "INITIALIZATION_IN_PROGRESS", + "SCHEDULED_FOR_DELETE": "SCHEDULED_FOR_DELETE", "SUCCEEDED": "SUCCEEDED", + "WAITING": "WAITING", "capitalize": "capitalize", "casefold": "casefold", "center": "center", @@ -16126,7 +16157,7 @@ "zfill": "zfill" } }, - "DaprComponentsCollection": { + "ConnectedEnvironmentStorage": { "type": null, "methods": { "__init__": { @@ -16135,8 +16166,8 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { - "default": null, + "properties": { + "default": "none", "param_type": "keyword_only" }, "kwargs": { @@ -16231,10 +16262,19 @@ } }, "properties": { - "value": { - "attr_type": "value" + "properties": { + "attr_type": "properties" }, - "next_link": { + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { "attr_type": null }, "additional_properties": { @@ -16242,7 +16282,7 @@ } } }, - "DaprConfiguration": { + "ConnectedEnvironmentStorageProperties": { "type": null, "methods": { "__init__": { @@ -16251,6 +16291,14 @@ "default": null, "param_type": "positional_or_keyword" }, + "azure_file": { + "default": "none", + "param_type": "keyword_only" + }, + "smb": { + "default": "none", + "param_type": "keyword_only" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -16343,15 +16391,82 @@ } }, "properties": { - "version": { + "provisioning_state": { "attr_type": null }, + "deployment_errors": { + "attr_type": null + }, + "azure_file": { + "attr_type": "azure_file" + }, + "smb": { + "attr_type": "smb" + }, "additional_properties": { "attr_type": null } } }, - "DaprMetadata": { + "ConnectedEnvironmentStorageProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "DELETING": "DELETING", + "FAILED": "FAILED", + "IN_PROGRESS": "IN_PROGRESS", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ConnectedEnvironmentStoragesCollection": { "type": null, "methods": { "__init__": { @@ -16360,16 +16475,8 @@ "default": null, "param_type": "positional_or_keyword" }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, "value": { - "default": "none", - "param_type": "keyword_only" - }, - "secret_ref": { - "default": "none", + "default": null, "param_type": "keyword_only" }, "kwargs": { @@ -16464,21 +16571,15 @@ } }, "properties": { - "name": { - "attr_type": "name" - }, "value": { "attr_type": "value" }, - "secret_ref": { - "attr_type": "secret_ref" - }, "additional_properties": { "attr_type": null } } }, - "DaprSecret": { + "Container": { "type": null, "methods": { "__init__": { @@ -16487,6 +16588,42 @@ "default": null, "param_type": "positional_or_keyword" }, + "image": { + "default": "none", + "param_type": "keyword_only" + }, + "image_type": { + "default": "none", + "param_type": "keyword_only" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "command": { + "default": "none", + "param_type": "keyword_only" + }, + "args": { + "default": "none", + "param_type": "keyword_only" + }, + "env": { + "default": "none", + "param_type": "keyword_only" + }, + "resources": { + "default": "none", + "param_type": "keyword_only" + }, + "volume_mounts": { + "default": "none", + "param_type": "keyword_only" + }, + "probes": { + "default": "none", + "param_type": "keyword_only" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -16579,18 +16716,39 @@ } }, "properties": { + "probes": { + "attr_type": "probes" + }, + "image": { + "attr_type": "image" + }, + "image_type": { + "attr_type": "image_type" + }, "name": { - "attr_type": null + "attr_type": "name" }, - "value": { - "attr_type": null + "command": { + "attr_type": "command" + }, + "args": { + "attr_type": "args" + }, + "env": { + "attr_type": "env" + }, + "resources": { + "attr_type": "resources" + }, + "volume_mounts": { + "attr_type": "volume_mounts" }, "additional_properties": { "attr_type": null } } }, - "DaprSecretsCollection": { + "ContainerApp": { "type": null, "methods": { "__init__": { @@ -16599,10 +16757,54 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { + "location": { "default": null, "param_type": "keyword_only" }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "extended_location": { + "default": "none", + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "managed_by": { + "default": "none", + "param_type": "keyword_only" + }, + "kind": { + "default": "none", + "param_type": "keyword_only" + }, + "managed_environment_id": { + "default": "none", + "param_type": "keyword_only" + }, + "environment_id": { + "default": "none", + "param_type": "keyword_only" + }, + "workload_profile_name": { + "default": "none", + "param_type": "keyword_only" + }, + "patching_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "template": { + "default": "none", + "param_type": "keyword_only" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -16695,15 +16897,87 @@ } }, "properties": { - "value": { - "attr_type": "value" + "extended_location": { + "attr_type": "extended_location" + }, + "identity": { + "attr_type": "identity" + }, + "managed_by": { + "attr_type": "managed_by" + }, + "kind": { + "attr_type": "kind" + }, + "provisioning_state": { + "attr_type": null + }, + "running_status": { + "attr_type": null + }, + "deployment_errors": { + "attr_type": null + }, + "managed_environment_id": { + "attr_type": "managed_environment_id" + }, + "environment_id": { + "attr_type": "environment_id" + }, + "workload_profile_name": { + "attr_type": "workload_profile_name" + }, + "patching_configuration": { + "attr_type": "patching_configuration" + }, + "latest_revision_name": { + "attr_type": null + }, + "latest_ready_revision_name": { + "attr_type": null + }, + "latest_revision_fqdn": { + "attr_type": null + }, + "custom_domain_verification_id": { + "attr_type": null + }, + "configuration": { + "attr_type": "configuration" + }, + "template": { + "attr_type": "template" + }, + "outbound_ip_addresses": { + "attr_type": null + }, + "event_stream_endpoint": { + "attr_type": null + }, + "tags": { + "attr_type": "tags" + }, + "location": { + "attr_type": "location" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "DefaultAuthorizationPolicy": { + "ContainerAppAuthToken": { "type": null, "methods": { "__init__": { @@ -16712,11 +16986,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "allowed_principals": { - "default": "none", + "location": { + "default": null, "param_type": "keyword_only" }, - "allowed_applications": { + "tags": { "default": "none", "param_type": "keyword_only" }, @@ -16812,18 +17086,36 @@ } }, "properties": { - "allowed_principals": { - "attr_type": "allowed_principals" + "token": { + "attr_type": null }, - "allowed_applications": { - "attr_type": "allowed_applications" + "expires": { + "attr_type": null + }, + "tags": { + "attr_type": "tags" + }, + "location": { + "attr_type": "location" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "DefaultErrorResponse": { + "ContainerAppCollection": { "type": null, "methods": { "__init__": { @@ -16832,6 +17124,10 @@ "default": null, "param_type": "positional_or_keyword" }, + "value": { + "default": null, + "param_type": "keyword_only" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -16924,7 +17220,10 @@ } }, "properties": { - "error": { + "value": { + "attr_type": "value" + }, + "next_link": { "attr_type": null }, "additional_properties": { @@ -16932,7 +17231,63 @@ } } }, - "DefaultErrorResponseError": { + "ContainerAppContainerRunningState": { + "type": "Enum", + "methods": {}, + "properties": { + "RUNNING": "RUNNING", + "TERMINATED": "TERMINATED", + "WAITING": "WAITING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerAppJobExecutions": { "type": null, "methods": { "__init__": { @@ -16941,8 +17296,8 @@ "default": null, "param_type": "positional_or_keyword" }, - "details": { - "default": "none", + "value": { + "default": null, "param_type": "keyword_only" }, "kwargs": { @@ -17037,19 +17392,10 @@ } }, "properties": { - "code": { - "attr_type": null - }, - "message": { - "attr_type": null - }, - "target": { - "attr_type": null - }, - "details": { - "attr_type": "details" + "value": { + "attr_type": "value" }, - "innererror": { + "next_link": { "attr_type": null }, "additional_properties": { @@ -17057,7 +17403,7 @@ } } }, - "DefaultErrorResponseErrorDetailsItem": { + "ContainerAppProbe": { "type": null, "methods": { "__init__": { @@ -17066,6 +17412,42 @@ "default": null, "param_type": "positional_or_keyword" }, + "failure_threshold": { + "default": "none", + "param_type": "keyword_only" + }, + "http_get": { + "default": "none", + "param_type": "keyword_only" + }, + "initial_delay_seconds": { + "default": "none", + "param_type": "keyword_only" + }, + "period_seconds": { + "default": "none", + "param_type": "keyword_only" + }, + "success_threshold": { + "default": "none", + "param_type": "keyword_only" + }, + "tcp_socket": { + "default": "none", + "param_type": "keyword_only" + }, + "termination_grace_period_seconds": { + "default": "none", + "param_type": "keyword_only" + }, + "timeout_seconds": { + "default": "none", + "param_type": "keyword_only" + }, + "type": { + "default": "none", + "param_type": "keyword_only" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -17158,21 +17540,39 @@ } }, "properties": { - "code": { - "attr_type": null + "failure_threshold": { + "attr_type": "failure_threshold" }, - "message": { - "attr_type": null + "http_get": { + "attr_type": "http_get" }, - "target": { - "attr_type": null + "initial_delay_seconds": { + "attr_type": "initial_delay_seconds" + }, + "period_seconds": { + "attr_type": "period_seconds" + }, + "success_threshold": { + "attr_type": "success_threshold" + }, + "tcp_socket": { + "attr_type": "tcp_socket" + }, + "termination_grace_period_seconds": { + "attr_type": "termination_grace_period_seconds" + }, + "timeout_seconds": { + "attr_type": "timeout_seconds" + }, + "type": { + "attr_type": "type" }, "additional_properties": { "attr_type": null } } }, - "DiagnosticDataProviderMetadata": { + "ContainerAppProbeHttpGet": { "type": null, "methods": { "__init__": { @@ -17181,11 +17581,23 @@ "default": null, "param_type": "positional_or_keyword" }, - "provider_name": { + "port": { + "default": null, + "param_type": "keyword_only" + }, + "host": { "default": "none", "param_type": "keyword_only" }, - "property_bag": { + "http_headers": { + "default": "none", + "param_type": "keyword_only" + }, + "path": { + "default": "none", + "param_type": "keyword_only" + }, + "scheme": { "default": "none", "param_type": "keyword_only" }, @@ -17281,18 +17693,27 @@ } }, "properties": { - "provider_name": { - "attr_type": "provider_name" + "host": { + "attr_type": "host" }, - "property_bag": { - "attr_type": "property_bag" + "http_headers": { + "attr_type": "http_headers" + }, + "path": { + "attr_type": "path" + }, + "port": { + "attr_type": "port" + }, + "scheme": { + "attr_type": "scheme" }, "additional_properties": { "attr_type": null } } }, - "DiagnosticDataProviderMetadataPropertyBagItem": { + "ContainerAppProbeHttpGetHttpHeadersItem": { "type": null, "methods": { "__init__": { @@ -17302,11 +17723,11 @@ "param_type": "positional_or_keyword" }, "name": { - "default": "none", + "default": null, "param_type": "keyword_only" }, "value": { - "default": "none", + "default": null, "param_type": "keyword_only" }, "kwargs": { @@ -17412,7 +17833,7 @@ } } }, - "DiagnosticDataTableResponseColumn": { + "ContainerAppProbeTcpSocket": { "type": null, "methods": { "__init__": { @@ -17421,15 +17842,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "column_name": { - "default": "none", - "param_type": "keyword_only" - }, - "data_type": { - "default": "none", + "port": { + "default": null, "param_type": "keyword_only" }, - "column_type": { + "host": { "default": "none", "param_type": "keyword_only" }, @@ -17525,21 +17942,18 @@ } }, "properties": { - "column_name": { - "attr_type": "column_name" - }, - "data_type": { - "attr_type": "data_type" + "host": { + "attr_type": "host" }, - "column_type": { - "attr_type": "column_type" + "port": { + "attr_type": "port" }, "additional_properties": { "attr_type": null } } }, - "DiagnosticDataTableResponseObject": { + "ContainerAppPropertiesPatchingConfiguration": { "type": null, "methods": { "__init__": { @@ -17548,15 +17962,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "table_name": { - "default": "none", - "param_type": "keyword_only" - }, - "columns": { - "default": "none", - "param_type": "keyword_only" - }, - "rows": { + "patching_mode": { "default": "none", "param_type": "keyword_only" }, @@ -17652,21 +18058,187 @@ } }, "properties": { - "table_name": { - "attr_type": "table_name" - }, - "columns": { - "attr_type": "columns" - }, - "rows": { - "attr_type": "rows" + "patching_mode": { + "attr_type": "patching_mode" }, "additional_properties": { "attr_type": null } } }, - "DiagnosticRendering": { + "ContainerAppProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "DELETING": "DELETING", + "FAILED": "FAILED", + "IN_PROGRESS": "IN_PROGRESS", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerAppReplicaRunningState": { + "type": "Enum", + "methods": {}, + "properties": { + "NOT_RUNNING": "NOT_RUNNING", + "RUNNING": "RUNNING", + "UNKNOWN": "UNKNOWN", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerAppRunningStatus": { + "type": "Enum", + "methods": {}, + "properties": { + "PROGRESSING": "PROGRESSING", + "READY": "READY", + "RUNNING": "RUNNING", + "STOPPED": "STOPPED", + "SUSPENDED": "SUSPENDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ContainerAppSecret": { "type": null, "methods": { "__init__": { @@ -17675,22 +18247,6 @@ "default": null, "param_type": "positional_or_keyword" }, - "type": { - "default": "none", - "param_type": "keyword_only" - }, - "title": { - "default": "none", - "param_type": "keyword_only" - }, - "description": { - "default": "none", - "param_type": "keyword_only" - }, - "is_visible": { - "default": "none", - "param_type": "keyword_only" - }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -17783,24 +18339,24 @@ } }, "properties": { - "type": { - "attr_type": "type" + "name": { + "attr_type": null }, - "title": { - "attr_type": "title" + "value": { + "attr_type": null }, - "description": { - "attr_type": "description" + "identity": { + "attr_type": null }, - "is_visible": { - "attr_type": "is_visible" + "key_vault_url": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "DiagnosticSupportTopic": { + "ContainerAppsBuildCollection": { "type": null, "methods": { "__init__": { @@ -17809,6 +18365,14 @@ "default": null, "param_type": "positional_or_keyword" }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "next_link": { + "default": "none", + "param_type": "keyword_only" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -17901,18 +18465,18 @@ } }, "properties": { - "id": { - "attr_type": null + "value": { + "attr_type": "value" }, - "pes_id": { - "attr_type": null + "next_link": { + "attr_type": "next_link" }, "additional_properties": { "attr_type": null } } }, - "Diagnostics": { + "ContainerAppsBuildConfiguration": { "type": null, "methods": { "__init__": { @@ -17921,10 +18485,6 @@ "default": null, "param_type": "positional_or_keyword" }, - "properties": { - "default": "none", - "param_type": "keyword_only" - }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -18017,19 +18577,19 @@ } }, "properties": { - "properties": { - "attr_type": "properties" + "base_os": { + "attr_type": null }, - "id": { + "platform": { "attr_type": null }, - "name": { + "platform_version": { "attr_type": null }, - "type": { + "environment_variables": { "attr_type": null }, - "system_data": { + "pre_build_steps": { "attr_type": null }, "additional_properties": { @@ -18037,7 +18597,7 @@ } } }, - "DiagnosticsCollection": { + "ContainerAppsBuildResource": { "type": null, "methods": { "__init__": { @@ -18046,10 +18606,6 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { - "default": null, - "param_type": "keyword_only" - }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -18142,10 +18698,31 @@ } }, "properties": { - "value": { - "attr_type": "value" + "provisioning_state": { + "attr_type": null }, - "next_link": { + "build_status": { + "attr_type": null + }, + "destination_container_registry": { + "attr_type": null + }, + "configuration": { + "attr_type": null + }, + "log_stream_endpoint": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { "attr_type": null }, "additional_properties": { @@ -18153,7 +18730,7 @@ } } }, - "DiagnosticsDataApiResponse": { + "ContainerAppsFunction": { "type": null, "methods": { "__init__": { @@ -18162,14 +18739,6 @@ "default": null, "param_type": "positional_or_keyword" }, - "table": { - "default": "none", - "param_type": "keyword_only" - }, - "rendering_properties": { - "default": "none", - "param_type": "keyword_only" - }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -18262,18 +18831,36 @@ } }, "properties": { - "table": { - "attr_type": "table" + "invoke_url_template": { + "attr_type": null }, - "rendering_properties": { - "attr_type": "rendering_properties" + "trigger_type": { + "attr_type": null + }, + "language": { + "attr_type": null + }, + "is_disabled": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "DiagnosticsDefinition": { + "ContainerAppsFunctionCollection": { "type": null, "methods": { "__init__": { @@ -18282,12 +18869,8 @@ "default": null, "param_type": "positional_or_keyword" }, - "support_topic_list": { - "default": "none", - "param_type": "keyword_only" - }, - "analysis_types": { - "default": "none", + "value": { + "default": null, "param_type": "keyword_only" }, "kwargs": { @@ -18382,31 +18965,10 @@ } }, "properties": { - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "description": { - "attr_type": null - }, - "author": { - "attr_type": null - }, - "category": { - "attr_type": null - }, - "support_topic_list": { - "attr_type": "support_topic_list" - }, - "analysis_types": { - "attr_type": "analysis_types" - }, - "type": { - "attr_type": null + "value": { + "attr_type": "value" }, - "score": { + "next_link": { "attr_type": null }, "additional_properties": { @@ -18414,7 +18976,7 @@ } } }, - "DiagnosticsProperties": { + "ContainerAppsPatchResource": { "type": null, "methods": { "__init__": { @@ -18423,22 +18985,6 @@ "default": null, "param_type": "positional_or_keyword" }, - "metadata": { - "default": "none", - "param_type": "keyword_only" - }, - "dataset": { - "default": "none", - "param_type": "keyword_only" - }, - "status": { - "default": "none", - "param_type": "keyword_only" - }, - "data_provider_metadata": { - "default": "none", - "param_type": "keyword_only" - }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -18531,24 +19077,27 @@ } }, "properties": { - "metadata": { - "attr_type": "metadata" + "properties": { + "attr_type": null }, - "dataset": { - "attr_type": "dataset" + "id": { + "attr_type": null }, - "status": { - "attr_type": "status" + "name": { + "attr_type": null }, - "data_provider_metadata": { - "attr_type": "data_provider_metadata" + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "DiagnosticsStatus": { + "ContainerExecutionStatus": { "type": null, "methods": { "__init__": { @@ -18557,11 +19106,19 @@ "default": null, "param_type": "positional_or_keyword" }, - "message": { + "name": { "default": "none", "param_type": "keyword_only" }, - "status_id": { + "code": { + "default": "none", + "param_type": "keyword_only" + }, + "additional_information": { + "default": "none", + "param_type": "keyword_only" + }, + "status": { "default": "none", "param_type": "keyword_only" }, @@ -18657,74 +19214,24 @@ } }, "properties": { - "message": { - "attr_type": "message" + "name": { + "attr_type": "name" }, - "status_id": { - "attr_type": "status_id" + "code": { + "attr_type": "code" + }, + "additional_information": { + "attr_type": "additional_information" + }, + "status": { + "attr_type": "status" }, "additional_properties": { "attr_type": null } } }, - "DnsVerificationTestResult": { - "type": "Enum", - "methods": {}, - "properties": { - "FAILED": "FAILED", - "PASSED": "PASSED", - "SKIPPED": "SKIPPED", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "DynamicPoolConfiguration": { + "ContainerRegistry": { "type": null, "methods": { "__init__": { @@ -18733,8 +19240,12 @@ "default": null, "param_type": "positional_or_keyword" }, - "lifecycle_configuration": { - "default": "none", + "container_registry_server": { + "default": null, + "param_type": "keyword_only" + }, + "identity_resource_id": { + "default": null, "param_type": "keyword_only" }, "kwargs": { @@ -18829,15 +19340,18 @@ } }, "properties": { - "lifecycle_configuration": { - "attr_type": "lifecycle_configuration" + "container_registry_server": { + "attr_type": "container_registry_server" + }, + "identity_resource_id": { + "attr_type": "identity_resource_id" }, "additional_properties": { "attr_type": null } } }, - "EncryptionSettings": { + "ContainerRegistryWithCustomImage": { "type": null, "methods": { "__init__": { @@ -18846,11 +19360,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_auth_encryption_secret_name": { - "default": "none", + "server": { + "default": null, "param_type": "keyword_only" }, - "container_app_auth_signing_secret_name": { + "image": { "default": "none", "param_type": "keyword_only" }, @@ -18946,18 +19460,18 @@ } }, "properties": { - "container_app_auth_encryption_secret_name": { - "attr_type": "container_app_auth_encryption_secret_name" + "server": { + "attr_type": "server" }, - "container_app_auth_signing_secret_name": { - "attr_type": "container_app_auth_signing_secret_name" + "image": { + "attr_type": "image" }, "additional_properties": { "attr_type": null } } }, - "EnvironmentAuthToken": { + "ContainerResources": { "type": null, "methods": { "__init__": { @@ -18966,11 +19480,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "location": { - "default": null, + "cpu": { + "default": "none", "param_type": "keyword_only" }, - "tags": { + "memory": { + "default": "none", + "param_type": "keyword_only" + }, + "gpu": { "default": "none", "param_type": "keyword_only" }, @@ -19066,49 +19584,31 @@ } }, "properties": { - "token": { - "attr_type": null - }, - "expires": { - "attr_type": null - }, - "tags": { - "attr_type": "tags" - }, - "location": { - "attr_type": "location" - }, - "id": { - "attr_type": null + "cpu": { + "attr_type": "cpu" }, - "name": { - "attr_type": null + "memory": { + "attr_type": "memory" }, - "type": { + "ephemeral_storage": { "attr_type": null }, - "system_data": { - "attr_type": null + "gpu": { + "attr_type": "gpu" }, "additional_properties": { "attr_type": null } } }, - "EnvironmentProvisioningState": { + "ContainerType": { "type": "Enum", "methods": {}, "properties": { - "CANCELED": "CANCELED", - "FAILED": "FAILED", - "INFRASTRUCTURE_SETUP_COMPLETE": "INFRASTRUCTURE_SETUP_COMPLETE", - "INFRASTRUCTURE_SETUP_IN_PROGRESS": "INFRASTRUCTURE_SETUP_IN_PROGRESS", - "INITIALIZATION_IN_PROGRESS": "INITIALIZATION_IN_PROGRESS", - "SCHEDULED_FOR_DELETE": "SCHEDULED_FOR_DELETE", - "SUCCEEDED": "SUCCEEDED", - "UPGRADE_FAILED": "UPGRADE_FAILED", - "UPGRADE_REQUESTED": "UPGRADE_REQUESTED", - "WAITING": "WAITING", + "CUSTOM_CONTAINER": "CUSTOM_CONTAINER", + "NODE_LTS": "NODE_LTS", + "PYTHON_LTS": "PYTHON_LTS", + "SHELL": "SHELL", "capitalize": "capitalize", "casefold": "casefold", "center": "center", @@ -19158,7 +19658,7 @@ "zfill": "zfill" } }, - "EnvironmentVar": { + "CookieExpiration": { "type": null, "methods": { "__init__": { @@ -19167,15 +19667,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "value": { + "convention": { "default": "none", "param_type": "keyword_only" }, - "secret_ref": { + "time_to_expiration": { "default": "none", "param_type": "keyword_only" }, @@ -19271,21 +19767,73 @@ } }, "properties": { - "name": { - "attr_type": "name" - }, - "value": { - "attr_type": "value" + "convention": { + "attr_type": "convention" }, - "secret_ref": { - "attr_type": "secret_ref" + "time_to_expiration": { + "attr_type": "time_to_expiration" }, "additional_properties": { "attr_type": null } } }, - "ErrorAdditionalInfo": { + "CookieExpirationConvention": { + "type": "Enum", + "methods": {}, + "properties": { + "FIXED_TIME": "FIXED_TIME", + "IDENTITY_PROVIDER_DERIVED": "IDENTITY_PROVIDER_DERIVED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "CorsPolicy": { "type": null, "methods": { "__init__": { @@ -19294,6 +19842,30 @@ "default": null, "param_type": "positional_or_keyword" }, + "allowed_origins": { + "default": null, + "param_type": "keyword_only" + }, + "allowed_methods": { + "default": "none", + "param_type": "keyword_only" + }, + "allowed_headers": { + "default": "none", + "param_type": "keyword_only" + }, + "expose_headers": { + "default": "none", + "param_type": "keyword_only" + }, + "max_age": { + "default": "none", + "param_type": "keyword_only" + }, + "allow_credentials": { + "default": "none", + "param_type": "keyword_only" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -19386,18 +19958,87 @@ } }, "properties": { - "type": { - "attr_type": null + "allowed_origins": { + "attr_type": "allowed_origins" }, - "info": { - "attr_type": null + "allowed_methods": { + "attr_type": "allowed_methods" + }, + "allowed_headers": { + "attr_type": "allowed_headers" + }, + "expose_headers": { + "attr_type": "expose_headers" + }, + "max_age": { + "attr_type": "max_age" + }, + "allow_credentials": { + "attr_type": "allow_credentials" }, "additional_properties": { "attr_type": null } } }, - "ErrorDetail": { + "CreatedByType": { + "type": "Enum", + "methods": {}, + "properties": { + "APPLICATION": "APPLICATION", + "KEY": "KEY", + "MANAGED_IDENTITY": "MANAGED_IDENTITY", + "USER": "USER", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "CustomContainerTemplate": { "type": null, "methods": { "__init__": { @@ -19406,6 +20047,18 @@ "default": null, "param_type": "positional_or_keyword" }, + "registry_credentials": { + "default": "none", + "param_type": "keyword_only" + }, + "containers": { + "default": "none", + "param_type": "keyword_only" + }, + "ingress": { + "default": "none", + "param_type": "keyword_only" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -19498,27 +20151,21 @@ } }, "properties": { - "code": { - "attr_type": null - }, - "message": { - "attr_type": null - }, - "target": { - "attr_type": null + "registry_credentials": { + "attr_type": "registry_credentials" }, - "details": { - "attr_type": null + "containers": { + "attr_type": "containers" }, - "additional_info": { - "attr_type": null + "ingress": { + "attr_type": "ingress" }, "additional_properties": { "attr_type": null } } }, - "ErrorEntity": { + "CustomDomain": { "type": null, "methods": { "__init__": { @@ -19527,35 +20174,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "extended_code": { - "default": "none", - "param_type": "keyword_only" - }, - "message_template": { - "default": "none", - "param_type": "keyword_only" - }, - "parameters": { - "default": "none", - "param_type": "keyword_only" - }, - "inner_errors": { - "default": "none", - "param_type": "keyword_only" - }, - "details": { - "default": "none", - "param_type": "keyword_only" - }, - "target": { - "default": "none", + "name": { + "default": null, "param_type": "keyword_only" }, - "code": { + "binding_type": { "default": "none", "param_type": "keyword_only" }, - "message": { + "certificate_id": { "default": "none", "param_type": "keyword_only" }, @@ -19651,36 +20278,21 @@ } }, "properties": { - "extended_code": { - "attr_type": "extended_code" - }, - "message_template": { - "attr_type": "message_template" - }, - "parameters": { - "attr_type": "parameters" - }, - "inner_errors": { - "attr_type": "inner_errors" - }, - "details": { - "attr_type": "details" - }, - "target": { - "attr_type": "target" + "name": { + "attr_type": "name" }, - "code": { - "attr_type": "code" + "binding_type": { + "attr_type": "binding_type" }, - "message": { - "attr_type": "message" + "certificate_id": { + "attr_type": "certificate_id" }, "additional_properties": { "attr_type": null } } }, - "ErrorResponse": { + "CustomDomainConfiguration": { "type": null, "methods": { "__init__": { @@ -19689,7 +20301,19 @@ "default": null, "param_type": "positional_or_keyword" }, - "error": { + "dns_suffix": { + "default": "none", + "param_type": "keyword_only" + }, + "certificate_key_vault_properties": { + "default": "none", + "param_type": "keyword_only" + }, + "certificate_value": { + "default": "none", + "param_type": "keyword_only" + }, + "certificate_password": { "default": "none", "param_type": "keyword_only" }, @@ -19785,15 +20409,36 @@ } }, "properties": { - "error": { - "attr_type": "error" + "custom_domain_verification_id": { + "attr_type": null + }, + "dns_suffix": { + "attr_type": "dns_suffix" + }, + "certificate_key_vault_properties": { + "attr_type": "certificate_key_vault_properties" + }, + "certificate_value": { + "attr_type": "certificate_value" + }, + "certificate_password": { + "attr_type": "certificate_password" + }, + "expiration_date": { + "attr_type": null + }, + "thumbprint": { + "attr_type": null + }, + "subject_name": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "ExtendedLocation": { + "CustomHostnameAnalysisResult": { "type": null, "methods": { "__init__": { @@ -19802,11 +20447,23 @@ "default": null, "param_type": "positional_or_keyword" }, - "name": { + "c_name_records": { "default": "none", "param_type": "keyword_only" }, - "type": { + "txt_records": { + "default": "none", + "param_type": "keyword_only" + }, + "a_records": { + "default": "none", + "param_type": "keyword_only" + }, + "alternate_c_name_records": { + "default": "none", + "param_type": "keyword_only" + }, + "alternate_txt_records": { "default": "none", "param_type": "keyword_only" }, @@ -19902,72 +20559,48 @@ } }, "properties": { - "name": { - "attr_type": "name" + "host_name": { + "attr_type": null }, - "type": { - "attr_type": "type" + "is_hostname_already_verified": { + "attr_type": null + }, + "custom_domain_verification_test": { + "attr_type": null + }, + "custom_domain_verification_failure_info": { + "attr_type": null + }, + "has_conflict_on_managed_environment": { + "attr_type": null + }, + "conflict_with_environment_custom_domain": { + "attr_type": null + }, + "conflicting_container_app_resource_id": { + "attr_type": null + }, + "c_name_records": { + "attr_type": "c_name_records" + }, + "txt_records": { + "attr_type": "txt_records" + }, + "a_records": { + "attr_type": "a_records" + }, + "alternate_c_name_records": { + "attr_type": "alternate_c_name_records" + }, + "alternate_txt_records": { + "attr_type": "alternate_txt_records" }, "additional_properties": { "attr_type": null } } }, - "ExtendedLocationTypes": { - "type": "Enum", - "methods": {}, - "properties": { - "CUSTOM_LOCATION": "CUSTOM_LOCATION", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "Facebook": { + "CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo": { "type": null, "methods": { "__init__": { @@ -19976,19 +20609,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "enabled": { - "default": "none", - "param_type": "keyword_only" - }, - "registration": { - "default": "none", - "param_type": "keyword_only" - }, - "graph_api_version": { - "default": "none", - "param_type": "keyword_only" - }, - "login": { + "details": { "default": "none", "param_type": "keyword_only" }, @@ -20084,24 +20705,24 @@ } }, "properties": { - "enabled": { - "attr_type": "enabled" + "code": { + "attr_type": null }, - "registration": { - "attr_type": "registration" + "message": { + "attr_type": null }, - "graph_api_version": { - "attr_type": "graph_api_version" + "target": { + "attr_type": null }, - "login": { - "attr_type": "login" + "details": { + "attr_type": "details" }, "additional_properties": { "attr_type": null } } }, - "ForwardProxy": { + "CustomHostnameAnalysisResultCustomDomainVerificationFailureInfoDetailsItem": { "type": null, "methods": { "__init__": { @@ -20110,18 +20731,6 @@ "default": null, "param_type": "positional_or_keyword" }, - "convention": { - "default": "none", - "param_type": "keyword_only" - }, - "custom_host_header_name": { - "default": "none", - "param_type": "keyword_only" - }, - "custom_proto_header_name": { - "default": "none", - "param_type": "keyword_only" - }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -20214,77 +20823,21 @@ } }, "properties": { - "convention": { - "attr_type": "convention" + "code": { + "attr_type": null }, - "custom_host_header_name": { - "attr_type": "custom_host_header_name" + "message": { + "attr_type": null }, - "custom_proto_header_name": { - "attr_type": "custom_proto_header_name" + "target": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "ForwardProxyConvention": { - "type": "Enum", - "methods": {}, - "properties": { - "CUSTOM": "CUSTOM", - "NO_PROXY": "NO_PROXY", - "STANDARD": "STANDARD", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "GitHub": { + "CustomOpenIdConnectProvider": { "type": null, "methods": { "__init__": { @@ -20411,7 +20964,7 @@ } } }, - "GithubActionConfiguration": { + "CustomScaleRule": { "type": null, "methods": { "__init__": { @@ -20420,39 +20973,19 @@ "default": null, "param_type": "positional_or_keyword" }, - "registry_info": { - "default": "none", - "param_type": "keyword_only" - }, - "azure_credentials": { - "default": "none", - "param_type": "keyword_only" - }, - "context_path": { - "default": "none", - "param_type": "keyword_only" - }, - "github_personal_access_token": { - "default": "none", - "param_type": "keyword_only" - }, - "image": { - "default": "none", - "param_type": "keyword_only" - }, - "publish_type": { + "type": { "default": "none", "param_type": "keyword_only" }, - "os": { + "metadata": { "default": "none", "param_type": "keyword_only" }, - "runtime_stack": { + "auth": { "default": "none", "param_type": "keyword_only" }, - "runtime_version": { + "identity": { "default": "none", "param_type": "keyword_only" }, @@ -20548,39 +21081,24 @@ } }, "properties": { - "registry_info": { - "attr_type": "registry_info" - }, - "azure_credentials": { - "attr_type": "azure_credentials" - }, - "context_path": { - "attr_type": "context_path" - }, - "github_personal_access_token": { - "attr_type": "github_personal_access_token" - }, - "image": { - "attr_type": "image" - }, - "publish_type": { - "attr_type": "publish_type" + "type": { + "attr_type": "type" }, - "os": { - "attr_type": "os" + "metadata": { + "attr_type": "metadata" }, - "runtime_stack": { - "attr_type": "runtime_stack" + "auth": { + "attr_type": "auth" }, - "runtime_version": { - "attr_type": "runtime_version" + "identity": { + "attr_type": "identity" }, "additional_properties": { "attr_type": null } } }, - "GlobalValidation": { + "Dapr": { "type": null, "methods": { "__init__": { @@ -20589,15 +21107,43 @@ "default": null, "param_type": "positional_or_keyword" }, - "unauthenticated_client_action": { + "enabled": { + "default": "bool", + "param_type": "keyword_only" + }, + "app_id": { "default": "none", "param_type": "keyword_only" }, - "redirect_to_provider": { + "app_protocol": { + "default": "str", + "param_type": "keyword_only" + }, + "app_port": { "default": "none", "param_type": "keyword_only" }, - "excluded_paths": { + "http_read_buffer_size": { + "default": "none", + "param_type": "keyword_only" + }, + "http_max_request_size": { + "default": "none", + "param_type": "keyword_only" + }, + "log_level": { + "default": "none", + "param_type": "keyword_only" + }, + "enable_api_logging": { + "default": "none", + "param_type": "keyword_only" + }, + "app_health": { + "default": "none", + "param_type": "keyword_only" + }, + "max_concurrency": { "default": "none", "param_type": "keyword_only" }, @@ -20693,21 +21239,42 @@ } }, "properties": { - "unauthenticated_client_action": { - "attr_type": "unauthenticated_client_action" + "enabled": { + "attr_type": "enabled" }, - "redirect_to_provider": { - "attr_type": "redirect_to_provider" + "app_id": { + "attr_type": "app_id" }, - "excluded_paths": { - "attr_type": "excluded_paths" + "app_protocol": { + "attr_type": "app_protocol" + }, + "app_port": { + "attr_type": "app_port" + }, + "http_read_buffer_size": { + "attr_type": "http_read_buffer_size" + }, + "http_max_request_size": { + "attr_type": "http_max_request_size" + }, + "log_level": { + "attr_type": "log_level" + }, + "enable_api_logging": { + "attr_type": "enable_api_logging" + }, + "app_health": { + "attr_type": "app_health" + }, + "max_concurrency": { + "attr_type": "max_concurrency" }, "additional_properties": { "attr_type": null } } }, - "Google": { + "DaprAppHealth": { "type": null, "methods": { "__init__": { @@ -20720,15 +21287,19 @@ "default": "none", "param_type": "keyword_only" }, - "registration": { + "path": { "default": "none", "param_type": "keyword_only" }, - "login": { + "probe_interval_seconds": { "default": "none", "param_type": "keyword_only" }, - "validation": { + "probe_timeout_milliseconds": { + "default": "none", + "param_type": "keyword_only" + }, + "threshold": { "default": "none", "param_type": "keyword_only" }, @@ -20827,21 +21398,24 @@ "enabled": { "attr_type": "enabled" }, - "registration": { - "attr_type": "registration" + "path": { + "attr_type": "path" }, - "login": { - "attr_type": "login" + "probe_interval_seconds": { + "attr_type": "probe_interval_seconds" }, - "validation": { - "attr_type": "validation" + "probe_timeout_milliseconds": { + "attr_type": "probe_timeout_milliseconds" + }, + "threshold": { + "attr_type": "threshold" }, "additional_properties": { "attr_type": null } } }, - "HttpRoute": { + "DaprComponent": { "type": null, "methods": { "__init__": { @@ -20850,127 +21424,39 @@ "default": null, "param_type": "positional_or_keyword" }, - "match": { + "component_type": { "default": "none", "param_type": "keyword_only" }, - "action": { + "version": { "default": "none", "param_type": "keyword_only" }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { + "ignore_errors": { "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" + "param_type": "keyword_only" }, - "content_type": { + "init_timeout": { "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" + "param_type": "keyword_only" }, - "key_extractors": { + "secrets": { "default": "none", - "param_type": "positional_or_keyword" + "param_type": "keyword_only" }, - "content_type": { + "secret_store_component": { "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" + "param_type": "keyword_only" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "metadata": { + "default": "none", + "param_type": "keyword_only" }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "match": { - "attr_type": "match" - }, - "action": { - "attr_type": "action" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "HttpRouteAction": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" + "scopes": { + "default": "none", + "param_type": "keyword_only" }, - "prefix_rewrite": { + "service_component_bind": { "default": "none", "param_type": "keyword_only" }, @@ -21066,15 +21552,115 @@ } }, "properties": { - "prefix_rewrite": { - "attr_type": "prefix_rewrite" + "component_type": { + "attr_type": "component_type" + }, + "version": { + "attr_type": "version" + }, + "ignore_errors": { + "attr_type": "ignore_errors" + }, + "init_timeout": { + "attr_type": "init_timeout" + }, + "secrets": { + "attr_type": "secrets" + }, + "secret_store_component": { + "attr_type": "secret_store_component" + }, + "metadata": { + "attr_type": "metadata" + }, + "scopes": { + "attr_type": "scopes" + }, + "service_component_bind": { + "attr_type": "service_component_bind" + }, + "provisioning_state": { + "attr_type": null + }, + "deployment_errors": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "HttpRouteConfig": { + "DaprComponentProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "DELETING": "DELETING", + "FAILED": "FAILED", + "IN_PROGRESS": "IN_PROGRESS", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "DaprComponentResiliencyPoliciesCollection": { "type": null, "methods": { "__init__": { @@ -21083,8 +21669,8 @@ "default": null, "param_type": "positional_or_keyword" }, - "properties": { - "default": "none", + "value": { + "default": null, "param_type": "keyword_only" }, "kwargs": { @@ -21179,19 +21765,10 @@ } }, "properties": { - "properties": { - "attr_type": "properties" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "type": { - "attr_type": null + "value": { + "attr_type": "value" }, - "system_data": { + "next_link": { "attr_type": null }, "additional_properties": { @@ -21199,7 +21776,7 @@ } } }, - "HttpRouteConfigCollection": { + "DaprComponentResiliencyPolicy": { "type": null, "methods": { "__init__": { @@ -21208,8 +21785,12 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { - "default": null, + "inbound_policy": { + "default": "none", + "param_type": "keyword_only" + }, + "outbound_policy": { + "default": "none", "param_type": "keyword_only" }, "kwargs": { @@ -21304,10 +21885,22 @@ } }, "properties": { - "value": { - "attr_type": "value" + "inbound_policy": { + "attr_type": "inbound_policy" }, - "next_link": { + "outbound_policy": { + "attr_type": "outbound_policy" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { "attr_type": null }, "additional_properties": { @@ -21315,7 +21908,7 @@ } } }, - "HttpRouteConfigProperties": { + "DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration": { "type": null, "methods": { "__init__": { @@ -21324,11 +21917,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "custom_domains": { + "consecutive_errors": { "default": "none", "param_type": "keyword_only" }, - "rules": { + "timeout_in_seconds": { + "default": "none", + "param_type": "keyword_only" + }, + "interval_in_seconds": { "default": "none", "param_type": "keyword_only" }, @@ -21424,27 +22021,21 @@ } }, "properties": { - "provisioning_state": { - "attr_type": null - }, - "provisioning_errors": { - "attr_type": null + "consecutive_errors": { + "attr_type": "consecutive_errors" }, - "fqdn": { - "attr_type": null + "timeout_in_seconds": { + "attr_type": "timeout_in_seconds" }, - "custom_domains": { - "attr_type": "custom_domains" - }, - "rules": { - "attr_type": "rules" + "interval_in_seconds": { + "attr_type": "interval_in_seconds" }, "additional_properties": { "attr_type": null } } }, - "HttpRouteMatch": { + "DaprComponentResiliencyPolicyConfiguration": { "type": null, "methods": { "__init__": { @@ -21453,19 +22044,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "prefix": { + "http_retry_policy": { "default": "none", "param_type": "keyword_only" }, - "path": { - "default": "none", - "param_type": "keyword_only" - }, - "path_separated_prefix": { + "timeout_policy": { "default": "none", "param_type": "keyword_only" }, - "case_sensitive": { + "circuit_breaker_policy": { "default": "none", "param_type": "keyword_only" }, @@ -21561,24 +22148,21 @@ } }, "properties": { - "prefix": { - "attr_type": "prefix" + "http_retry_policy": { + "attr_type": "http_retry_policy" }, - "path": { - "attr_type": "path" + "timeout_policy": { + "attr_type": "timeout_policy" }, - "path_separated_prefix": { - "attr_type": "path_separated_prefix" - }, - "case_sensitive": { - "attr_type": "case_sensitive" + "circuit_breaker_policy": { + "attr_type": "circuit_breaker_policy" }, "additional_properties": { "attr_type": null } } }, - "HttpRouteProvisioningErrors": { + "DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration": { "type": null, "methods": { "__init__": { @@ -21587,6 +22171,14 @@ "default": null, "param_type": "positional_or_keyword" }, + "initial_delay_in_milliseconds": { + "default": "none", + "param_type": "keyword_only" + }, + "max_interval_in_milliseconds": { + "default": "none", + "param_type": "keyword_only" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -21679,78 +22271,18 @@ } }, "properties": { - "timestamp": { - "attr_type": null + "initial_delay_in_milliseconds": { + "attr_type": "initial_delay_in_milliseconds" }, - "message": { - "attr_type": null + "max_interval_in_milliseconds": { + "attr_type": "max_interval_in_milliseconds" }, "additional_properties": { "attr_type": null } } }, - "HttpRouteProvisioningState": { - "type": "Enum", - "methods": {}, - "properties": { - "CANCELED": "CANCELED", - "DELETING": "DELETING", - "FAILED": "FAILED", - "PENDING": "PENDING", - "SUCCEEDED": "SUCCEEDED", - "UPDATING": "UPDATING", - "WAITING": "WAITING", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "HttpRouteRule": { + "DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration": { "type": null, "methods": { "__init__": { @@ -21759,15 +22291,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "targets": { - "default": "none", - "param_type": "keyword_only" - }, - "routes": { + "max_retries": { "default": "none", "param_type": "keyword_only" }, - "description": { + "retry_back_off": { "default": "none", "param_type": "keyword_only" }, @@ -21863,21 +22391,18 @@ } }, "properties": { - "targets": { - "attr_type": "targets" + "max_retries": { + "attr_type": "max_retries" }, - "routes": { - "attr_type": "routes" - }, - "description": { - "attr_type": "description" + "retry_back_off": { + "attr_type": "retry_back_off" }, "additional_properties": { "attr_type": null } } }, - "HttpRouteTarget": { + "DaprComponentResiliencyPolicyTimeoutPolicyConfiguration": { "type": null, "methods": { "__init__": { @@ -21886,15 +22411,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app": { - "default": null, - "param_type": "keyword_only" - }, - "revision": { - "default": "none", - "param_type": "keyword_only" - }, - "label": { + "response_timeout_in_seconds": { "default": "none", "param_type": "keyword_only" }, @@ -21990,21 +22507,15 @@ } }, "properties": { - "container_app": { - "attr_type": "container_app" - }, - "revision": { - "attr_type": "revision" - }, - "label": { - "attr_type": "label" + "response_timeout_in_seconds": { + "attr_type": "response_timeout_in_seconds" }, "additional_properties": { "attr_type": null } } }, - "HttpScaleRule": { + "DaprComponentServiceBinding": { "type": null, "methods": { "__init__": { @@ -22013,15 +22524,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "metadata": { + "name": { "default": "none", "param_type": "keyword_only" }, - "auth": { + "service_id": { "default": "none", "param_type": "keyword_only" }, - "identity": { + "metadata": { "default": "none", "param_type": "keyword_only" }, @@ -22117,21 +22628,21 @@ } }, "properties": { - "metadata": { - "attr_type": "metadata" + "name": { + "attr_type": "name" }, - "auth": { - "attr_type": "auth" + "service_id": { + "attr_type": "service_id" }, - "identity": { - "attr_type": "identity" + "metadata": { + "attr_type": "metadata" }, "additional_properties": { "attr_type": null } } }, - "HttpSettings": { + "DaprComponentsCollection": { "type": null, "methods": { "__init__": { @@ -22140,16 +22651,8 @@ "default": null, "param_type": "positional_or_keyword" }, - "require_https": { - "default": "none", - "param_type": "keyword_only" - }, - "routes": { - "default": "none", - "param_type": "keyword_only" - }, - "forward_proxy": { - "default": "none", + "value": { + "default": null, "param_type": "keyword_only" }, "kwargs": { @@ -22244,21 +22747,18 @@ } }, "properties": { - "require_https": { - "attr_type": "require_https" - }, - "routes": { - "attr_type": "routes" + "value": { + "attr_type": "value" }, - "forward_proxy": { - "attr_type": "forward_proxy" + "next_link": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "HttpSettingsRoutes": { + "DaprConfiguration": { "type": null, "methods": { "__init__": { @@ -22267,10 +22767,6 @@ "default": null, "param_type": "positional_or_keyword" }, - "api_prefix": { - "default": "none", - "param_type": "keyword_only" - }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -22363,15 +22859,15 @@ } }, "properties": { - "api_prefix": { - "attr_type": "api_prefix" + "version": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "IdentityProviders": { + "DaprMetadata": { "type": null, "methods": { "__init__": { @@ -22380,37 +22876,132 @@ "default": null, "param_type": "positional_or_keyword" }, - "azure_active_directory": { + "name": { "default": "none", "param_type": "keyword_only" }, - "facebook": { + "value": { "default": "none", "param_type": "keyword_only" }, - "git_hub": { + "secret_ref": { "default": "none", "param_type": "keyword_only" }, - "google": { - "default": "none", - "param_type": "keyword_only" + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" }, - "twitter": { - "default": "none", - "param_type": "keyword_only" + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" }, - "apple": { + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { "default": "none", - "param_type": "keyword_only" + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" }, - "azure_static_web_apps": { + "key_extractors": { "default": "none", - "param_type": "keyword_only" + "param_type": "positional_or_keyword" }, - "custom_open_id_connect_providers": { + "content_type": { "default": "none", - "param_type": "keyword_only" + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "value": { + "attr_type": "value" + }, + "secret_ref": { + "attr_type": "secret_ref" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DaprSecret": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" }, "kwargs": { "default": null, @@ -22504,36 +23095,131 @@ } }, "properties": { - "azure_active_directory": { - "attr_type": "azure_active_directory" + "name": { + "attr_type": null }, - "facebook": { - "attr_type": "facebook" + "value": { + "attr_type": null }, - "git_hub": { - "attr_type": "git_hub" + "additional_properties": { + "attr_type": null + } + } + }, + "DaprSecretsCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] }, - "google": { - "attr_type": "google" + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] }, - "twitter": { - "attr_type": "twitter" + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] }, - "apple": { - "attr_type": "apple" + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] }, - "azure_static_web_apps": { - "attr_type": "azure_static_web_apps" + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] }, - "custom_open_id_connect_providers": { - "attr_type": "custom_open_id_connect_providers" + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" }, "additional_properties": { "attr_type": null } } }, - "IdentitySettings": { + "DaprServiceBindMetadata": { "type": null, "methods": { "__init__": { @@ -22542,11 +23228,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "identity": { - "default": null, + "name": { + "default": "none", "param_type": "keyword_only" }, - "lifecycle": { + "value": { "default": "none", "param_type": "keyword_only" }, @@ -22642,75 +23328,18 @@ } }, "properties": { - "identity": { - "attr_type": "identity" + "name": { + "attr_type": "name" }, - "lifecycle": { - "attr_type": "lifecycle" + "value": { + "attr_type": "value" }, "additional_properties": { "attr_type": null } } }, - "IdentitySettingsLifeCycle": { - "type": "Enum", - "methods": {}, - "properties": { - "ALL": "ALL", - "INIT": "INIT", - "MAIN": "MAIN", - "NONE": "NONE", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "Ingress": { + "DaprSubscription": { "type": null, "methods": { "__init__": { @@ -22719,51 +23348,31 @@ "default": null, "param_type": "positional_or_keyword" }, - "external": { - "default": "bool", - "param_type": "keyword_only" - }, - "target_port": { + "pubsub_name": { "default": "none", "param_type": "keyword_only" }, - "exposed_port": { + "topic": { "default": "none", "param_type": "keyword_only" }, - "transport": { - "default": "str", - "param_type": "keyword_only" - }, - "traffic": { - "default": "none", - "param_type": "keyword_only" - }, - "custom_domains": { - "default": "none", - "param_type": "keyword_only" - }, - "allow_insecure": { - "default": "bool", - "param_type": "keyword_only" - }, - "ip_security_restrictions": { + "dead_letter_topic": { "default": "none", "param_type": "keyword_only" }, - "sticky_sessions": { + "routes": { "default": "none", "param_type": "keyword_only" }, - "client_certificate_mode": { + "scopes": { "default": "none", "param_type": "keyword_only" }, - "cors_policy": { + "metadata": { "default": "none", "param_type": "keyword_only" }, - "additional_port_mappings": { + "bulk_subscribe": { "default": "none", "param_type": "keyword_only" }, @@ -22859,107 +23468,45 @@ } }, "properties": { - "fqdn": { - "attr_type": null + "pubsub_name": { + "attr_type": "pubsub_name" }, - "external": { - "attr_type": "external" + "topic": { + "attr_type": "topic" }, - "target_port": { - "attr_type": "target_port" - }, - "exposed_port": { - "attr_type": "exposed_port" + "dead_letter_topic": { + "attr_type": "dead_letter_topic" }, - "transport": { - "attr_type": "transport" - }, - "traffic": { - "attr_type": "traffic" + "routes": { + "attr_type": "routes" }, - "custom_domains": { - "attr_type": "custom_domains" + "scopes": { + "attr_type": "scopes" }, - "allow_insecure": { - "attr_type": "allow_insecure" + "metadata": { + "attr_type": "metadata" }, - "ip_security_restrictions": { - "attr_type": "ip_security_restrictions" + "bulk_subscribe": { + "attr_type": "bulk_subscribe" }, - "sticky_sessions": { - "attr_type": "sticky_sessions" + "id": { + "attr_type": null }, - "client_certificate_mode": { - "attr_type": "client_certificate_mode" + "name": { + "attr_type": null }, - "cors_policy": { - "attr_type": "cors_policy" + "type": { + "attr_type": null }, - "additional_port_mappings": { - "attr_type": "additional_port_mappings" + "system_data": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "IngressClientCertificateMode": { - "type": "Enum", - "methods": {}, - "properties": { - "ACCEPT": "ACCEPT", - "IGNORE": "IGNORE", - "REQUIRE": "REQUIRE", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "IngressConfiguration": { + "DaprSubscriptionBulkSubscribeOptions": { "type": null, "methods": { "__init__": { @@ -22968,19 +23515,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "workload_profile_name": { - "default": "none", - "param_type": "keyword_only" - }, - "termination_grace_period_seconds": { - "default": "none", + "enabled": { + "default": "bool", "param_type": "keyword_only" }, - "header_count_limit": { + "max_messages_count": { "default": "none", "param_type": "keyword_only" }, - "request_idle_timeout": { + "max_await_duration_ms": { "default": "none", "param_type": "keyword_only" }, @@ -23076,24 +23619,21 @@ } }, "properties": { - "workload_profile_name": { - "attr_type": "workload_profile_name" - }, - "termination_grace_period_seconds": { - "attr_type": "termination_grace_period_seconds" + "enabled": { + "attr_type": "enabled" }, - "header_count_limit": { - "attr_type": "header_count_limit" + "max_messages_count": { + "attr_type": "max_messages_count" }, - "request_idle_timeout": { - "attr_type": "request_idle_timeout" + "max_await_duration_ms": { + "attr_type": "max_await_duration_ms" }, "additional_properties": { "attr_type": null } } }, - "IngressPortMapping": { + "DaprSubscriptionRouteRule": { "type": null, "methods": { "__init__": { @@ -23102,15 +23642,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "external": { - "default": null, - "param_type": "keyword_only" - }, - "target_port": { - "default": null, + "match": { + "default": "none", "param_type": "keyword_only" }, - "exposed_port": { + "path": { "default": "none", "param_type": "keyword_only" }, @@ -23206,21 +23742,18 @@ } }, "properties": { - "external": { - "attr_type": "external" - }, - "target_port": { - "attr_type": "target_port" + "match": { + "attr_type": "match" }, - "exposed_port": { - "attr_type": "exposed_port" + "path": { + "attr_type": "path" }, "additional_properties": { "attr_type": null } } }, - "IngressStickySessions": { + "DaprSubscriptionRoutes": { "type": null, "methods": { "__init__": { @@ -23229,7 +23762,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "affinity": { + "rules": { + "default": "none", + "param_type": "keyword_only" + }, + "default": { "default": "none", "param_type": "keyword_only" }, @@ -23325,72 +23862,18 @@ } }, "properties": { - "affinity": { - "attr_type": "affinity" + "rules": { + "attr_type": "rules" + }, + "default": { + "attr_type": "default" }, "additional_properties": { "attr_type": null } } }, - "IngressTransportMethod": { - "type": "Enum", - "methods": {}, - "properties": { - "AUTO": "AUTO", - "HTTP": "HTTP", - "HTTP2": "HTTP2", - "TCP": "TCP", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "InitContainer": { + "DaprSubscriptionsCollection": { "type": null, "methods": { "__init__": { @@ -23399,32 +23882,8 @@ "default": null, "param_type": "positional_or_keyword" }, - "image": { - "default": "none", - "param_type": "keyword_only" - }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "command": { - "default": "none", - "param_type": "keyword_only" - }, - "args": { - "default": "none", - "param_type": "keyword_only" - }, - "env": { - "default": "none", - "param_type": "keyword_only" - }, - "resources": { - "default": "none", - "param_type": "keyword_only" - }, - "volume_mounts": { - "default": "none", + "value": { + "default": null, "param_type": "keyword_only" }, "kwargs": { @@ -23519,33 +23978,18 @@ } }, "properties": { - "image": { - "attr_type": "image" - }, - "name": { - "attr_type": "name" - }, - "command": { - "attr_type": "command" - }, - "args": { - "attr_type": "args" - }, - "env": { - "attr_type": "env" - }, - "resources": { - "attr_type": "resources" + "value": { + "attr_type": "value" }, - "volume_mounts": { - "attr_type": "volume_mounts" + "next_link": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "IpSecurityRestrictionRule": { + "DataDogConfiguration": { "type": null, "methods": { "__init__": { @@ -23554,19 +23998,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "name": { - "default": null, - "param_type": "keyword_only" - }, - "ip_address_range": { - "default": null, - "param_type": "keyword_only" - }, - "action": { - "default": null, + "site": { + "default": "none", "param_type": "keyword_only" }, - "description": { + "key": { "default": "none", "param_type": "keyword_only" }, @@ -23662,24 +24098,18 @@ } }, "properties": { - "name": { - "attr_type": "name" - }, - "description": { - "attr_type": "description" - }, - "ip_address_range": { - "attr_type": "ip_address_range" + "site": { + "attr_type": "site" }, - "action": { - "attr_type": "action" + "key": { + "attr_type": "key" }, "additional_properties": { "attr_type": null } } }, - "JavaComponent": { + "DefaultAuthorizationPolicy": { "type": null, "methods": { "__init__": { @@ -23688,7 +24118,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "properties": { + "allowed_principals": { + "default": "none", + "param_type": "keyword_only" + }, + "allowed_applications": { "default": "none", "param_type": "keyword_only" }, @@ -23784,147 +24218,18 @@ } }, "properties": { - "properties": { - "attr_type": "properties" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "type": { - "attr_type": null - }, - "system_data": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "JavaComponentConfigurationProperty": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "property_name": { - "default": "none", - "param_type": "keyword_only" - }, - "value": { - "default": "none", - "param_type": "keyword_only" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "key_extractors": { - "default": "none", - "param_type": "positional_or_keyword" - }, - "content_type": { - "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "property_name": { - "attr_type": "property_name" + "allowed_principals": { + "attr_type": "allowed_principals" }, - "value": { - "attr_type": "value" + "allowed_applications": { + "attr_type": "allowed_applications" }, "additional_properties": { "attr_type": null } } }, - "JavaComponentIngress": { + "DefaultErrorResponse": { "type": null, "methods": { "__init__": { @@ -24025,7 +24330,7 @@ } }, "properties": { - "fqdn": { + "error": { "attr_type": null }, "additional_properties": { @@ -24033,7 +24338,7 @@ } } }, - "JavaComponentProperties": { + "DefaultErrorResponseError": { "type": null, "methods": { "__init__": { @@ -24042,15 +24347,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "configurations": { - "default": "none", - "param_type": "keyword_only" - }, - "scale": { - "default": "none", - "param_type": "keyword_only" - }, - "service_binds": { + "details": { "default": "none", "param_type": "keyword_only" }, @@ -24146,27 +24443,27 @@ } }, "properties": { - "component_type": { + "code": { "attr_type": null }, - "provisioning_state": { + "message": { "attr_type": null }, - "configurations": { - "attr_type": "configurations" + "target": { + "attr_type": null }, - "scale": { - "attr_type": "scale" + "details": { + "attr_type": "details" }, - "service_binds": { - "attr_type": "service_binds" + "innererror": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "JavaComponentPropertiesScale": { + "DefaultErrorResponseErrorDetailsItem": { "type": null, "methods": { "__init__": { @@ -24175,14 +24472,6 @@ "default": null, "param_type": "positional_or_keyword" }, - "min_replicas": { - "default": "none", - "param_type": "keyword_only" - }, - "max_replicas": { - "default": "none", - "param_type": "keyword_only" - }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -24275,76 +24564,21 @@ } }, "properties": { - "min_replicas": { - "attr_type": "min_replicas" + "code": { + "attr_type": null }, - "max_replicas": { - "attr_type": "max_replicas" + "message": { + "attr_type": null + }, + "target": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "JavaComponentProvisioningState": { - "type": "Enum", - "methods": {}, - "properties": { - "CANCELED": "CANCELED", - "DELETING": "DELETING", - "FAILED": "FAILED", - "IN_PROGRESS": "IN_PROGRESS", - "SUCCEEDED": "SUCCEEDED", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "JavaComponentServiceBind": { + "DestinationsConfiguration": { "type": null, "methods": { "__init__": { @@ -24353,11 +24587,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "name": { + "data_dog_configuration": { "default": "none", "param_type": "keyword_only" }, - "service_id": { + "otlp_configurations": { "default": "none", "param_type": "keyword_only" }, @@ -24453,24 +24687,24 @@ } }, "properties": { - "name": { - "attr_type": "name" + "data_dog_configuration": { + "attr_type": "data_dog_configuration" }, - "service_id": { - "attr_type": "service_id" + "otlp_configurations": { + "attr_type": "otlp_configurations" }, "additional_properties": { "attr_type": null } } }, - "JavaComponentType": { + "DetectionStatus": { "type": "Enum", "methods": {}, "properties": { - "SPRING_BOOT_ADMIN": "SPRING_BOOT_ADMIN", - "SPRING_CLOUD_CONFIG": "SPRING_CLOUD_CONFIG", - "SPRING_CLOUD_EUREKA": "SPRING_CLOUD_EUREKA", + "FAILED": "FAILED", + "REGISTRY_LOGIN_FAILED": "REGISTRY_LOGIN_FAILED", + "SUCCEEDED": "SUCCEEDED", "capitalize": "capitalize", "casefold": "casefold", "center": "center", @@ -24520,7 +24754,7 @@ "zfill": "zfill" } }, - "JavaComponentsCollection": { + "DiagnosticDataProviderMetadata": { "type": null, "methods": { "__init__": { @@ -24529,8 +24763,12 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { - "default": null, + "provider_name": { + "default": "none", + "param_type": "keyword_only" + }, + "property_bag": { + "default": "none", "param_type": "keyword_only" }, "kwargs": { @@ -24625,18 +24863,18 @@ } }, "properties": { - "value": { - "attr_type": "value" + "provider_name": { + "attr_type": "provider_name" }, - "next_link": { - "attr_type": null + "property_bag": { + "attr_type": "property_bag" }, "additional_properties": { "attr_type": null } } }, - "Job": { + "DiagnosticDataProviderMetadataPropertyBagItem": { "type": null, "methods": { "__init__": { @@ -24645,31 +24883,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "location": { - "default": null, - "param_type": "keyword_only" - }, - "tags": { - "default": "none", - "param_type": "keyword_only" - }, - "identity": { - "default": "none", - "param_type": "keyword_only" - }, - "environment_id": { - "default": "none", - "param_type": "keyword_only" - }, - "workload_profile_name": { - "default": "none", - "param_type": "keyword_only" - }, - "configuration": { + "name": { "default": "none", "param_type": "keyword_only" }, - "template": { + "value": { "default": "none", "param_type": "keyword_only" }, @@ -24765,54 +24983,18 @@ } }, "properties": { - "identity": { - "attr_type": "identity" - }, - "provisioning_state": { - "attr_type": null - }, - "environment_id": { - "attr_type": "environment_id" - }, - "workload_profile_name": { - "attr_type": "workload_profile_name" - }, - "configuration": { - "attr_type": "configuration" - }, - "template": { - "attr_type": "template" - }, - "outbound_ip_addresses": { - "attr_type": null - }, - "event_stream_endpoint": { - "attr_type": null - }, - "tags": { - "attr_type": "tags" - }, - "location": { - "attr_type": "location" - }, - "id": { - "attr_type": null - }, "name": { - "attr_type": null - }, - "type": { - "attr_type": null + "attr_type": "name" }, - "system_data": { - "attr_type": null + "value": { + "attr_type": "value" }, "additional_properties": { "attr_type": null } } }, - "JobConfiguration": { + "DiagnosticDataTableResponseColumn": { "type": null, "methods": { "__init__": { @@ -24821,39 +25003,142 @@ "default": null, "param_type": "positional_or_keyword" }, - "trigger_type": { - "default": "str", + "column_name": { + "default": "none", "param_type": "keyword_only" }, - "replica_timeout": { - "default": null, + "data_type": { + "default": "none", "param_type": "keyword_only" }, - "secrets": { + "column_type": { "default": "none", "param_type": "keyword_only" }, - "replica_retry_limit": { + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { "default": "none", - "param_type": "keyword_only" + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" }, - "manual_trigger_config": { + "key_extractors": { "default": "none", - "param_type": "keyword_only" + "param_type": "positional_or_keyword" }, - "schedule_trigger_config": { + "content_type": { "default": "none", - "param_type": "keyword_only" + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" }, - "event_trigger_config": { + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "column_name": { + "attr_type": "column_name" + }, + "data_type": { + "attr_type": "data_type" + }, + "column_type": { + "attr_type": "column_type" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DiagnosticDataTableResponseObject": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "table_name": { "default": "none", "param_type": "keyword_only" }, - "registries": { + "columns": { "default": "none", "param_type": "keyword_only" }, - "identity_settings": { + "rows": { "default": "none", "param_type": "keyword_only" }, @@ -24949,39 +25234,21 @@ } }, "properties": { - "secrets": { - "attr_type": "secrets" - }, - "trigger_type": { - "attr_type": "trigger_type" - }, - "replica_timeout": { - "attr_type": "replica_timeout" - }, - "replica_retry_limit": { - "attr_type": "replica_retry_limit" - }, - "manual_trigger_config": { - "attr_type": "manual_trigger_config" - }, - "schedule_trigger_config": { - "attr_type": "schedule_trigger_config" - }, - "event_trigger_config": { - "attr_type": "event_trigger_config" + "table_name": { + "attr_type": "table_name" }, - "registries": { - "attr_type": "registries" + "columns": { + "attr_type": "columns" }, - "identity_settings": { - "attr_type": "identity_settings" + "rows": { + "attr_type": "rows" }, "additional_properties": { "attr_type": null } } }, - "JobConfigurationEventTriggerConfig": { + "DiagnosticRendering": { "type": null, "methods": { "__init__": { @@ -24990,15 +25257,19 @@ "default": null, "param_type": "positional_or_keyword" }, - "replica_completion_count": { + "type": { "default": "none", "param_type": "keyword_only" }, - "parallelism": { + "title": { "default": "none", "param_type": "keyword_only" }, - "scale": { + "description": { + "default": "none", + "param_type": "keyword_only" + }, + "is_visible": { "default": "none", "param_type": "keyword_only" }, @@ -25094,21 +25365,24 @@ } }, "properties": { - "replica_completion_count": { - "attr_type": "replica_completion_count" + "type": { + "attr_type": "type" }, - "parallelism": { - "attr_type": "parallelism" + "title": { + "attr_type": "title" }, - "scale": { - "attr_type": "scale" + "description": { + "attr_type": "description" + }, + "is_visible": { + "attr_type": "is_visible" }, "additional_properties": { "attr_type": null } } }, - "JobConfigurationManualTriggerConfig": { + "DiagnosticSupportTopic": { "type": null, "methods": { "__init__": { @@ -25117,14 +25391,6 @@ "default": null, "param_type": "positional_or_keyword" }, - "replica_completion_count": { - "default": "none", - "param_type": "keyword_only" - }, - "parallelism": { - "default": "none", - "param_type": "keyword_only" - }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -25217,18 +25483,18 @@ } }, "properties": { - "replica_completion_count": { - "attr_type": "replica_completion_count" + "id": { + "attr_type": null }, - "parallelism": { - "attr_type": "parallelism" + "pes_id": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "JobConfigurationScheduleTriggerConfig": { + "Diagnostics": { "type": null, "methods": { "__init__": { @@ -25237,15 +25503,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "cron_expression": { - "default": null, - "param_type": "keyword_only" - }, - "replica_completion_count": { - "default": "none", - "param_type": "keyword_only" - }, - "parallelism": { + "properties": { "default": "none", "param_type": "keyword_only" }, @@ -25341,21 +25599,27 @@ } }, "properties": { - "replica_completion_count": { - "attr_type": "replica_completion_count" + "properties": { + "attr_type": "properties" }, - "cron_expression": { - "attr_type": "cron_expression" + "id": { + "attr_type": null }, - "parallelism": { - "attr_type": "parallelism" + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "JobExecution": { + "DiagnosticsCollection": { "type": null, "methods": { "__init__": { @@ -25364,27 +25628,127 @@ "default": null, "param_type": "positional_or_keyword" }, - "name": { - "default": "none", + "value": { + "default": null, "param_type": "keyword_only" }, - "id": { + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { "default": "none", - "param_type": "keyword_only" + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" }, - "type": { + "key_extractors": { "default": "none", - "param_type": "keyword_only" + "param_type": "positional_or_keyword" }, - "start_time": { + "content_type": { "default": "none", - "param_type": "keyword_only" + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" }, - "end_time": { + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DiagnosticsDataApiResponse": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "table": { "default": "none", "param_type": "keyword_only" }, - "template": { + "rendering_properties": { "default": "none", "param_type": "keyword_only" }, @@ -25480,33 +25844,18 @@ } }, "properties": { - "name": { - "attr_type": "name" - }, - "id": { - "attr_type": "id" - }, - "type": { - "attr_type": "type" - }, - "status": { - "attr_type": null - }, - "start_time": { - "attr_type": "start_time" - }, - "end_time": { - "attr_type": "end_time" + "table": { + "attr_type": "table" }, - "template": { - "attr_type": "template" + "rendering_properties": { + "attr_type": "rendering_properties" }, "additional_properties": { "attr_type": null } } }, - "JobExecutionBase": { + "DiagnosticsDefinition": { "type": null, "methods": { "__init__": { @@ -25515,11 +25864,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "name": { + "support_topic_list": { "default": "none", "param_type": "keyword_only" }, - "id": { + "analysis_types": { "default": "none", "param_type": "keyword_only" }, @@ -25615,18 +25964,39 @@ } }, "properties": { + "id": { + "attr_type": null + }, "name": { - "attr_type": "name" + "attr_type": null }, - "id": { - "attr_type": "id" + "description": { + "attr_type": null + }, + "author": { + "attr_type": null + }, + "category": { + "attr_type": null + }, + "support_topic_list": { + "attr_type": "support_topic_list" + }, + "analysis_types": { + "attr_type": "analysis_types" + }, + "type": { + "attr_type": null + }, + "score": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "JobExecutionContainer": { + "DiagnosticsProperties": { "type": null, "methods": { "__init__": { @@ -25635,27 +26005,19 @@ "default": null, "param_type": "positional_or_keyword" }, - "image": { - "default": "none", - "param_type": "keyword_only" - }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "command": { + "metadata": { "default": "none", "param_type": "keyword_only" }, - "args": { + "dataset": { "default": "none", "param_type": "keyword_only" }, - "env": { + "status": { "default": "none", "param_type": "keyword_only" }, - "resources": { + "data_provider_metadata": { "default": "none", "param_type": "keyword_only" }, @@ -25751,30 +26113,24 @@ } }, "properties": { - "image": { - "attr_type": "image" - }, - "name": { - "attr_type": "name" - }, - "command": { - "attr_type": "command" + "metadata": { + "attr_type": "metadata" }, - "args": { - "attr_type": "args" + "dataset": { + "attr_type": "dataset" }, - "env": { - "attr_type": "env" + "status": { + "attr_type": "status" }, - "resources": { - "attr_type": "resources" + "data_provider_metadata": { + "attr_type": "data_provider_metadata" }, "additional_properties": { "attr_type": null } } }, - "JobExecutionNamesCollection": { + "DiagnosticsStatus": { "type": null, "methods": { "__init__": { @@ -25783,8 +26139,12 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { - "default": null, + "message": { + "default": "none", + "param_type": "keyword_only" + }, + "status_id": { + "default": "none", "param_type": "keyword_only" }, "kwargs": { @@ -25879,75 +26239,18 @@ } }, "properties": { - "value": { - "attr_type": "value" + "message": { + "attr_type": "message" + }, + "status_id": { + "attr_type": "status_id" }, "additional_properties": { "attr_type": null } } }, - "JobExecutionRunningState": { - "type": "Enum", - "methods": {}, - "properties": { - "DEGRADED": "DEGRADED", - "FAILED": "FAILED", - "PROCESSING": "PROCESSING", - "RUNNING": "RUNNING", - "STOPPED": "STOPPED", - "SUCCEEDED": "SUCCEEDED", - "UNKNOWN": "UNKNOWN", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "JobExecutionTemplate": { + "DiskEncryptionConfiguration": { "type": null, "methods": { "__init__": { @@ -25956,11 +26259,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "containers": { - "default": "none", - "param_type": "keyword_only" - }, - "init_containers": { + "key_vault_configuration": { "default": "none", "param_type": "keyword_only" }, @@ -26056,18 +26355,15 @@ } }, "properties": { - "containers": { - "attr_type": "containers" - }, - "init_containers": { - "attr_type": "init_containers" + "key_vault_configuration": { + "attr_type": "key_vault_configuration" }, "additional_properties": { "attr_type": null } } }, - "JobPatchProperties": { + "DiskEncryptionConfigurationKeyVaultConfiguration": { "type": null, "methods": { "__init__": { @@ -26076,15 +26372,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "identity": { + "key_url": { "default": "none", "param_type": "keyword_only" }, - "tags": { - "default": "none", - "param_type": "keyword_only" - }, - "properties": { + "auth": { "default": "none", "param_type": "keyword_only" }, @@ -26180,21 +26472,18 @@ } }, "properties": { - "identity": { - "attr_type": "identity" - }, - "tags": { - "attr_type": "tags" + "key_url": { + "attr_type": "key_url" }, - "properties": { - "attr_type": "properties" + "auth": { + "attr_type": "auth" }, "additional_properties": { "attr_type": null } } }, - "JobPatchPropertiesProperties": { + "DiskEncryptionConfigurationKeyVaultConfigurationAuth": { "type": null, "methods": { "__init__": { @@ -26203,23 +26492,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_id": { - "default": "none", - "param_type": "keyword_only" - }, - "configuration": { - "default": "none", - "param_type": "keyword_only" - }, - "template": { - "default": "none", - "param_type": "keyword_only" - }, - "outbound_ip_addresses": { - "default": "none", - "param_type": "keyword_only" - }, - "event_stream_endpoint": { + "identity": { "default": "none", "param_type": "keyword_only" }, @@ -26315,35 +26588,21 @@ } }, "properties": { - "environment_id": { - "attr_type": "environment_id" - }, - "configuration": { - "attr_type": "configuration" - }, - "template": { - "attr_type": "template" - }, - "outbound_ip_addresses": { - "attr_type": "outbound_ip_addresses" - }, - "event_stream_endpoint": { - "attr_type": "event_stream_endpoint" + "identity": { + "attr_type": "identity" }, "additional_properties": { "attr_type": null } } }, - "JobProvisioningState": { + "DnsVerificationTestResult": { "type": "Enum", "methods": {}, "properties": { - "CANCELED": "CANCELED", - "DELETING": "DELETING", "FAILED": "FAILED", - "IN_PROGRESS": "IN_PROGRESS", - "SUCCEEDED": "SUCCEEDED", + "PASSED": "PASSED", + "SKIPPED": "SKIPPED", "capitalize": "capitalize", "casefold": "casefold", "center": "center", @@ -26393,7 +26652,7 @@ "zfill": "zfill" } }, - "JobScale": { + "DotNetComponent": { "type": null, "methods": { "__init__": { @@ -26402,19 +26661,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "polling_interval": { + "component_type": { "default": "none", "param_type": "keyword_only" }, - "min_executions": { - "default": "int", - "param_type": "keyword_only" - }, - "max_executions": { - "default": "int", + "configurations": { + "default": "none", "param_type": "keyword_only" }, - "rules": { + "service_binds": { "default": "none", "param_type": "keyword_only" }, @@ -26510,24 +26765,36 @@ } }, "properties": { - "polling_interval": { - "attr_type": "polling_interval" + "component_type": { + "attr_type": "component_type" }, - "min_executions": { - "attr_type": "min_executions" + "provisioning_state": { + "attr_type": null }, - "max_executions": { - "attr_type": "max_executions" + "configurations": { + "attr_type": "configurations" }, - "rules": { - "attr_type": "rules" + "service_binds": { + "attr_type": "service_binds" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "JobScaleRule": { + "DotNetComponentConfigurationProperty": { "type": null, "methods": { "__init__": { @@ -26536,23 +26803,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "type": { - "default": "none", - "param_type": "keyword_only" - }, - "metadata": { - "default": "none", - "param_type": "keyword_only" - }, - "auth": { + "property_name": { "default": "none", "param_type": "keyword_only" }, - "identity": { + "value": { "default": "none", "param_type": "keyword_only" }, @@ -26648,27 +26903,76 @@ } }, "properties": { - "name": { - "attr_type": "name" - }, - "type": { - "attr_type": "type" - }, - "metadata": { - "attr_type": "metadata" - }, - "auth": { - "attr_type": "auth" + "property_name": { + "attr_type": "property_name" }, - "identity": { - "attr_type": "identity" + "value": { + "attr_type": "value" }, "additional_properties": { "attr_type": null } } }, - "JobSecretsCollection": { + "DotNetComponentProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "DELETING": "DELETING", + "FAILED": "FAILED", + "IN_PROGRESS": "IN_PROGRESS", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "DotNetComponentServiceBind": { "type": null, "methods": { "__init__": { @@ -26677,8 +26981,12 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { - "default": null, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "service_id": { + "default": "none", "param_type": "keyword_only" }, "kwargs": { @@ -26773,15 +27081,72 @@ } }, "properties": { - "value": { - "attr_type": "value" + "name": { + "attr_type": "name" + }, + "service_id": { + "attr_type": "service_id" }, "additional_properties": { "attr_type": null } } }, - "JobTemplate": { + "DotNetComponentType": { + "type": "Enum", + "methods": {}, + "properties": { + "ASPIRE_DASHBOARD": "ASPIRE_DASHBOARD", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "DotNetComponentsCollection": { "type": null, "methods": { "__init__": { @@ -26790,16 +27155,8 @@ "default": null, "param_type": "positional_or_keyword" }, - "init_containers": { - "default": "none", - "param_type": "keyword_only" - }, - "containers": { - "default": "none", - "param_type": "keyword_only" - }, - "volumes": { - "default": "none", + "value": { + "default": null, "param_type": "keyword_only" }, "kwargs": { @@ -26894,21 +27251,18 @@ } }, "properties": { - "init_containers": { - "attr_type": "init_containers" - }, - "containers": { - "attr_type": "containers" + "value": { + "attr_type": "value" }, - "volumes": { - "attr_type": "volumes" + "next_link": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "JobsCollection": { + "DynamicPoolConfiguration": { "type": null, "methods": { "__init__": { @@ -26917,8 +27271,8 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { - "default": null, + "lifecycle_configuration": { + "default": "none", "param_type": "keyword_only" }, "kwargs": { @@ -27013,18 +27367,15 @@ } }, "properties": { - "value": { - "attr_type": "value" - }, - "next_link": { - "attr_type": null + "lifecycle_configuration": { + "attr_type": "lifecycle_configuration" }, "additional_properties": { "attr_type": null } } }, - "JwtClaimChecks": { + "EncryptionSettings": { "type": null, "methods": { "__init__": { @@ -27033,11 +27384,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "allowed_groups": { + "container_app_auth_encryption_secret_name": { "default": "none", "param_type": "keyword_only" }, - "allowed_client_applications": { + "container_app_auth_signing_secret_name": { "default": "none", "param_type": "keyword_only" }, @@ -27133,18 +27484,18 @@ } }, "properties": { - "allowed_groups": { - "attr_type": "allowed_groups" + "container_app_auth_encryption_secret_name": { + "attr_type": "container_app_auth_encryption_secret_name" }, - "allowed_client_applications": { - "attr_type": "allowed_client_applications" + "container_app_auth_signing_secret_name": { + "attr_type": "container_app_auth_signing_secret_name" }, "additional_properties": { "attr_type": null } } }, - "KedaConfiguration": { + "EnvironmentAuthToken": { "type": null, "methods": { "__init__": { @@ -27153,6 +27504,14 @@ "default": null, "param_type": "positional_or_keyword" }, + "location": { + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -27245,7 +27604,28 @@ } }, "properties": { - "version": { + "token": { + "attr_type": null + }, + "expires": { + "attr_type": null + }, + "tags": { + "attr_type": "tags" + }, + "location": { + "attr_type": "location" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { "attr_type": null }, "additional_properties": { @@ -27253,12 +27633,20 @@ } } }, - "Kind": { + "EnvironmentProvisioningState": { "type": "Enum", "methods": {}, "properties": { - "FUNCTIONAPP": "FUNCTIONAPP", - "WORKFLOWAPP": "WORKFLOWAPP", + "CANCELED": "CANCELED", + "FAILED": "FAILED", + "INFRASTRUCTURE_SETUP_COMPLETE": "INFRASTRUCTURE_SETUP_COMPLETE", + "INFRASTRUCTURE_SETUP_IN_PROGRESS": "INFRASTRUCTURE_SETUP_IN_PROGRESS", + "INITIALIZATION_IN_PROGRESS": "INITIALIZATION_IN_PROGRESS", + "SCHEDULED_FOR_DELETE": "SCHEDULED_FOR_DELETE", + "SUCCEEDED": "SUCCEEDED", + "UPGRADE_FAILED": "UPGRADE_FAILED", + "UPGRADE_REQUESTED": "UPGRADE_REQUESTED", + "WAITING": "WAITING", "capitalize": "capitalize", "casefold": "casefold", "center": "center", @@ -27308,7 +27696,7 @@ "zfill": "zfill" } }, - "LifecycleConfiguration": { + "EnvironmentVar": { "type": null, "methods": { "__init__": { @@ -27317,15 +27705,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "lifecycle_type": { + "name": { "default": "none", "param_type": "keyword_only" }, - "cooldown_period_in_seconds": { + "value": { "default": "none", "param_type": "keyword_only" }, - "max_alive_period_in_seconds": { + "secret_ref": { "default": "none", "param_type": "keyword_only" }, @@ -27421,76 +27809,21 @@ } }, "properties": { - "lifecycle_type": { - "attr_type": "lifecycle_type" + "name": { + "attr_type": "name" }, - "cooldown_period_in_seconds": { - "attr_type": "cooldown_period_in_seconds" + "value": { + "attr_type": "value" }, - "max_alive_period_in_seconds": { - "attr_type": "max_alive_period_in_seconds" + "secret_ref": { + "attr_type": "secret_ref" }, "additional_properties": { "attr_type": null } } }, - "LifecycleType": { - "type": "Enum", - "methods": {}, - "properties": { - "ON_CONTAINER_EXIT": "ON_CONTAINER_EXIT", - "TIMED": "TIMED", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "ListUsagesResult": { + "EnvironmentVariable": { "type": null, "methods": { "__init__": { @@ -27499,12 +27832,12 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { - "default": "none", + "name": { + "default": null, "param_type": "keyword_only" }, - "next_link": { - "default": "none", + "value": { + "default": null, "param_type": "keyword_only" }, "kwargs": { @@ -27599,18 +27932,18 @@ } }, "properties": { + "name": { + "attr_type": "name" + }, "value": { "attr_type": "value" }, - "next_link": { - "attr_type": "next_link" - }, "additional_properties": { "attr_type": null } } }, - "LogAnalyticsConfiguration": { + "ErrorAdditionalInfo": { "type": null, "methods": { "__init__": { @@ -27619,14 +27952,6 @@ "default": null, "param_type": "positional_or_keyword" }, - "customer_id": { - "default": "none", - "param_type": "keyword_only" - }, - "shared_key": { - "default": "none", - "param_type": "keyword_only" - }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -27719,75 +28044,18 @@ } }, "properties": { - "customer_id": { - "attr_type": "customer_id" + "type": { + "attr_type": null }, - "shared_key": { - "attr_type": "shared_key" + "info": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "LogLevel": { - "type": "Enum", - "methods": {}, - "properties": { - "DEBUG": "DEBUG", - "ERROR": "ERROR", - "INFO": "INFO", - "WARN": "WARN", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "LogicApp": { + "ErrorDetail": { "type": null, "methods": { "__init__": { @@ -27888,16 +28156,19 @@ } }, "properties": { - "id": { + "code": { "attr_type": null }, - "name": { + "message": { "attr_type": null }, - "type": { + "target": { "attr_type": null }, - "system_data": { + "details": { + "attr_type": null + }, + "additional_info": { "attr_type": null }, "additional_properties": { @@ -27905,7 +28176,7 @@ } } }, - "Login": { + "ErrorEntity": { "type": null, "methods": { "__init__": { @@ -27914,27 +28185,35 @@ "default": null, "param_type": "positional_or_keyword" }, - "routes": { + "extended_code": { "default": "none", "param_type": "keyword_only" }, - "token_store": { + "message_template": { "default": "none", "param_type": "keyword_only" }, - "preserve_url_fragments_for_logins": { + "parameters": { "default": "none", "param_type": "keyword_only" }, - "allowed_external_redirect_urls": { + "inner_errors": { "default": "none", "param_type": "keyword_only" }, - "cookie_expiration": { + "details": { "default": "none", "param_type": "keyword_only" }, - "nonce": { + "target": { + "default": "none", + "param_type": "keyword_only" + }, + "code": { + "default": "none", + "param_type": "keyword_only" + }, + "message": { "default": "none", "param_type": "keyword_only" }, @@ -28030,30 +28309,36 @@ } }, "properties": { - "routes": { - "attr_type": "routes" + "extended_code": { + "attr_type": "extended_code" }, - "token_store": { - "attr_type": "token_store" + "message_template": { + "attr_type": "message_template" }, - "preserve_url_fragments_for_logins": { - "attr_type": "preserve_url_fragments_for_logins" + "parameters": { + "attr_type": "parameters" }, - "allowed_external_redirect_urls": { - "attr_type": "allowed_external_redirect_urls" + "inner_errors": { + "attr_type": "inner_errors" }, - "cookie_expiration": { - "attr_type": "cookie_expiration" + "details": { + "attr_type": "details" }, - "nonce": { - "attr_type": "nonce" + "target": { + "attr_type": "target" + }, + "code": { + "attr_type": "code" + }, + "message": { + "attr_type": "message" }, "additional_properties": { "attr_type": null } } }, - "LoginRoutes": { + "ErrorResponse": { "type": null, "methods": { "__init__": { @@ -28062,7 +28347,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "logout_endpoint": { + "error": { "default": "none", "param_type": "keyword_only" }, @@ -28158,15 +28443,15 @@ } }, "properties": { - "logout_endpoint": { - "attr_type": "logout_endpoint" + "error": { + "attr_type": "error" }, "additional_properties": { "attr_type": null } } }, - "LoginScopes": { + "ExecutionStatus": { "type": null, "methods": { "__init__": { @@ -28175,7 +28460,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "scopes": { + "replicas": { "default": "none", "param_type": "keyword_only" }, @@ -28271,15 +28556,15 @@ } }, "properties": { - "scopes": { - "attr_type": "scopes" + "replicas": { + "attr_type": "replicas" }, "additional_properties": { "attr_type": null } } }, - "MaintenanceConfigurationCollection": { + "ExtendedLocation": { "type": null, "methods": { "__init__": { @@ -28288,7 +28573,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "type": { "default": "none", "param_type": "keyword_only" }, @@ -28384,18 +28673,72 @@ } }, "properties": { - "value": { - "attr_type": "value" + "name": { + "attr_type": "name" }, - "next_link": { - "attr_type": null + "type": { + "attr_type": "type" }, "additional_properties": { "attr_type": null } } }, - "MaintenanceConfigurationResource": { + "ExtendedLocationTypes": { + "type": "Enum", + "methods": {}, + "properties": { + "CUSTOM_LOCATION": "CUSTOM_LOCATION", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "Facebook": { "type": null, "methods": { "__init__": { @@ -28404,7 +28747,19 @@ "default": null, "param_type": "positional_or_keyword" }, - "scheduled_entries": { + "enabled": { + "default": "none", + "param_type": "keyword_only" + }, + "registration": { + "default": "none", + "param_type": "keyword_only" + }, + "graph_api_version": { + "default": "none", + "param_type": "keyword_only" + }, + "login": { "default": "none", "param_type": "keyword_only" }, @@ -28500,27 +28855,24 @@ } }, "properties": { - "scheduled_entries": { - "attr_type": "scheduled_entries" - }, - "id": { - "attr_type": null + "enabled": { + "attr_type": "enabled" }, - "name": { - "attr_type": null + "registration": { + "attr_type": "registration" }, - "type": { - "attr_type": null + "graph_api_version": { + "attr_type": "graph_api_version" }, - "system_data": { - "attr_type": null + "login": { + "attr_type": "login" }, "additional_properties": { "attr_type": null } } }, - "ManagedCertificate": { + "ForwardProxy": { "type": null, "methods": { "__init__": { @@ -28529,15 +28881,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "location": { - "default": null, + "convention": { + "default": "none", "param_type": "keyword_only" }, - "tags": { + "custom_host_header_name": { "default": "none", "param_type": "keyword_only" }, - "properties": { + "custom_proto_header_name": { "default": "none", "param_type": "keyword_only" }, @@ -28633,33 +28985,77 @@ } }, "properties": { - "properties": { - "attr_type": "properties" - }, - "tags": { - "attr_type": "tags" - }, - "location": { - "attr_type": "location" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null + "convention": { + "attr_type": "convention" }, - "type": { - "attr_type": null + "custom_host_header_name": { + "attr_type": "custom_host_header_name" }, - "system_data": { - "attr_type": null + "custom_proto_header_name": { + "attr_type": "custom_proto_header_name" }, "additional_properties": { "attr_type": null } } }, - "ManagedCertificateCollection": { + "ForwardProxyConvention": { + "type": "Enum", + "methods": {}, + "properties": { + "CUSTOM": "CUSTOM", + "NO_PROXY": "NO_PROXY", + "STANDARD": "STANDARD", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "GitHub": { "type": null, "methods": { "__init__": { @@ -28668,8 +29064,16 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { - "default": null, + "enabled": { + "default": "none", + "param_type": "keyword_only" + }, + "registration": { + "default": "none", + "param_type": "keyword_only" + }, + "login": { + "default": "none", "param_type": "keyword_only" }, "kwargs": { @@ -28764,74 +29168,21 @@ } }, "properties": { - "value": { - "attr_type": "value" + "enabled": { + "attr_type": "enabled" }, - "next_link": { - "attr_type": null + "registration": { + "attr_type": "registration" + }, + "login": { + "attr_type": "login" }, "additional_properties": { "attr_type": null } } }, - "ManagedCertificateDomainControlValidation": { - "type": "Enum", - "methods": {}, - "properties": { - "CNAME": "CNAME", - "HTTP": "HTTP", - "TXT": "TXT", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "ManagedCertificatePatch": { + "GithubActionConfiguration": { "type": null, "methods": { "__init__": { @@ -28840,7 +29191,47 @@ "default": null, "param_type": "positional_or_keyword" }, - "tags": { + "registry_info": { + "default": "none", + "param_type": "keyword_only" + }, + "azure_credentials": { + "default": "none", + "param_type": "keyword_only" + }, + "context_path": { + "default": "none", + "param_type": "keyword_only" + }, + "dockerfile_path": { + "default": "none", + "param_type": "keyword_only" + }, + "github_personal_access_token": { + "default": "none", + "param_type": "keyword_only" + }, + "image": { + "default": "none", + "param_type": "keyword_only" + }, + "publish_type": { + "default": "none", + "param_type": "keyword_only" + }, + "os": { + "default": "none", + "param_type": "keyword_only" + }, + "runtime_stack": { + "default": "none", + "param_type": "keyword_only" + }, + "runtime_version": { + "default": "none", + "param_type": "keyword_only" + }, + "build_environment_variables": { "default": "none", "param_type": "keyword_only" }, @@ -28936,15 +29327,45 @@ } }, "properties": { - "tags": { - "attr_type": "tags" + "registry_info": { + "attr_type": "registry_info" + }, + "azure_credentials": { + "attr_type": "azure_credentials" + }, + "context_path": { + "attr_type": "context_path" + }, + "dockerfile_path": { + "attr_type": "dockerfile_path" + }, + "github_personal_access_token": { + "attr_type": "github_personal_access_token" + }, + "image": { + "attr_type": "image" + }, + "publish_type": { + "attr_type": "publish_type" + }, + "os": { + "attr_type": "os" + }, + "runtime_stack": { + "attr_type": "runtime_stack" + }, + "runtime_version": { + "attr_type": "runtime_version" + }, + "build_environment_variables": { + "attr_type": "build_environment_variables" }, "additional_properties": { "attr_type": null } } }, - "ManagedCertificateProperties": { + "GlobalValidation": { "type": null, "methods": { "__init__": { @@ -28953,11 +29374,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "subject_name": { + "unauthenticated_client_action": { "default": "none", "param_type": "keyword_only" }, - "domain_control_validation": { + "redirect_to_provider": { + "default": "none", + "param_type": "keyword_only" + }, + "excluded_paths": { "default": "none", "param_type": "keyword_only" }, @@ -29053,27 +29478,21 @@ } }, "properties": { - "provisioning_state": { - "attr_type": null - }, - "subject_name": { - "attr_type": "subject_name" - }, - "error": { - "attr_type": null + "unauthenticated_client_action": { + "attr_type": "unauthenticated_client_action" }, - "domain_control_validation": { - "attr_type": "domain_control_validation" + "redirect_to_provider": { + "attr_type": "redirect_to_provider" }, - "validation_token": { - "attr_type": null + "excluded_paths": { + "attr_type": "excluded_paths" }, "additional_properties": { "attr_type": null } } }, - "ManagedEnvironment": { + "Google": { "type": null, "methods": { "__init__": { @@ -29082,75 +29501,19 @@ "default": null, "param_type": "positional_or_keyword" }, - "location": { - "default": null, - "param_type": "keyword_only" - }, - "tags": { - "default": "none", - "param_type": "keyword_only" - }, - "kind": { - "default": "none", - "param_type": "keyword_only" - }, - "identity": { - "default": "none", - "param_type": "keyword_only" - }, - "dapr_ai_instrumentation_key": { - "default": "none", - "param_type": "keyword_only" - }, - "dapr_ai_connection_string": { - "default": "none", - "param_type": "keyword_only" - }, - "vnet_configuration": { - "default": "none", - "param_type": "keyword_only" - }, - "app_logs_configuration": { - "default": "none", - "param_type": "keyword_only" - }, - "zone_redundant": { - "default": "none", - "param_type": "keyword_only" - }, - "custom_domain_configuration": { - "default": "none", - "param_type": "keyword_only" - }, - "workload_profiles": { - "default": "none", - "param_type": "keyword_only" - }, - "keda_configuration": { - "default": "none", - "param_type": "keyword_only" - }, - "dapr_configuration": { - "default": "none", - "param_type": "keyword_only" - }, - "infrastructure_resource_group": { - "default": "none", - "param_type": "keyword_only" - }, - "peer_authentication": { + "enabled": { "default": "none", "param_type": "keyword_only" }, - "peer_traffic_configuration": { + "registration": { "default": "none", "param_type": "keyword_only" }, - "ingress_configuration": { + "login": { "default": "none", "param_type": "keyword_only" }, - "public_network_access": { + "validation": { "default": "none", "param_type": "keyword_only" }, @@ -29246,96 +29609,24 @@ } }, "properties": { - "kind": { - "attr_type": "kind" - }, - "identity": { - "attr_type": "identity" - }, - "provisioning_state": { - "attr_type": null - }, - "dapr_ai_instrumentation_key": { - "attr_type": "dapr_ai_instrumentation_key" - }, - "dapr_ai_connection_string": { - "attr_type": "dapr_ai_connection_string" - }, - "vnet_configuration": { - "attr_type": "vnet_configuration" - }, - "deployment_errors": { - "attr_type": null - }, - "default_domain": { - "attr_type": null - }, - "static_ip": { - "attr_type": null - }, - "app_logs_configuration": { - "attr_type": "app_logs_configuration" - }, - "zone_redundant": { - "attr_type": "zone_redundant" - }, - "custom_domain_configuration": { - "attr_type": "custom_domain_configuration" - }, - "event_stream_endpoint": { - "attr_type": null - }, - "workload_profiles": { - "attr_type": "workload_profiles" - }, - "keda_configuration": { - "attr_type": "keda_configuration" - }, - "dapr_configuration": { - "attr_type": "dapr_configuration" - }, - "infrastructure_resource_group": { - "attr_type": "infrastructure_resource_group" - }, - "peer_authentication": { - "attr_type": "peer_authentication" - }, - "peer_traffic_configuration": { - "attr_type": "peer_traffic_configuration" - }, - "ingress_configuration": { - "attr_type": "ingress_configuration" - }, - "private_endpoint_connections": { - "attr_type": null - }, - "public_network_access": { - "attr_type": "public_network_access" - }, - "tags": { - "attr_type": "tags" - }, - "location": { - "attr_type": "location" - }, - "id": { - "attr_type": null + "enabled": { + "attr_type": "enabled" }, - "name": { - "attr_type": null + "registration": { + "attr_type": "registration" }, - "type": { - "attr_type": null + "login": { + "attr_type": "login" }, - "system_data": { - "attr_type": null + "validation": { + "attr_type": "validation" }, "additional_properties": { "attr_type": null } } }, - "ManagedEnvironmentPropertiesPeerAuthentication": { + "Header": { "type": null, "methods": { "__init__": { @@ -29344,7 +29635,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "mtls": { + "key": { + "default": "none", + "param_type": "keyword_only" + }, + "value": { "default": "none", "param_type": "keyword_only" }, @@ -29440,15 +29735,18 @@ } }, "properties": { - "mtls": { - "attr_type": "mtls" + "key": { + "attr_type": "key" + }, + "value": { + "attr_type": "value" }, "additional_properties": { "attr_type": null } } }, - "ManagedEnvironmentPropertiesPeerTrafficConfiguration": { + "HeaderMatch": { "type": null, "methods": { "__init__": { @@ -29457,7 +29755,23 @@ "default": null, "param_type": "positional_or_keyword" }, - "encryption": { + "header": { + "default": "none", + "param_type": "keyword_only" + }, + "exact_match": { + "default": "none", + "param_type": "keyword_only" + }, + "prefix_match": { + "default": "none", + "param_type": "keyword_only" + }, + "suffix_match": { + "default": "none", + "param_type": "keyword_only" + }, + "regex_match": { "default": "none", "param_type": "keyword_only" }, @@ -29553,15 +29867,27 @@ } }, "properties": { - "encryption": { - "attr_type": "encryption" + "header": { + "attr_type": "header" + }, + "exact_match": { + "attr_type": "exact_match" + }, + "prefix_match": { + "attr_type": "prefix_match" + }, + "suffix_match": { + "attr_type": "suffix_match" + }, + "regex_match": { + "attr_type": "regex_match" }, "additional_properties": { "attr_type": null } } }, - "ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryption": { + "HttpConnectionPool": { "type": null, "methods": { "__init__": { @@ -29570,7 +29896,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "enabled": { + "http1_max_pending_requests": { + "default": "none", + "param_type": "keyword_only" + }, + "http2_max_requests": { "default": "none", "param_type": "keyword_only" }, @@ -29666,15 +29996,18 @@ } }, "properties": { - "enabled": { - "attr_type": "enabled" + "http1_max_pending_requests": { + "attr_type": "http1_max_pending_requests" + }, + "http2_max_requests": { + "attr_type": "http2_max_requests" }, "additional_properties": { "attr_type": null } } }, - "ManagedEnvironmentStorage": { + "HttpGet": { "type": null, "methods": { "__init__": { @@ -29683,7 +30016,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "properties": { + "url": { + "default": null, + "param_type": "keyword_only" + }, + "file_name": { + "default": "none", + "param_type": "keyword_only" + }, + "headers": { "default": "none", "param_type": "keyword_only" }, @@ -29779,27 +30120,21 @@ } }, "properties": { - "properties": { - "attr_type": "properties" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null + "url": { + "attr_type": "url" }, - "type": { - "attr_type": null + "file_name": { + "attr_type": "file_name" }, - "system_data": { - "attr_type": null + "headers": { + "attr_type": "headers" }, "additional_properties": { "attr_type": null } } }, - "ManagedEnvironmentStorageProperties": { + "HttpRetryPolicy": { "type": null, "methods": { "__init__": { @@ -29808,128 +30143,28 @@ "default": null, "param_type": "positional_or_keyword" }, - "azure_file": { + "max_retries": { "default": "none", "param_type": "keyword_only" }, - "nfs_azure_file": { + "headers": { "default": "none", "param_type": "keyword_only" }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { + "http_status_codes": { "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" + "param_type": "keyword_only" }, - "key_extractors": { + "errors": { "default": "none", - "param_type": "positional_or_keyword" + "param_type": "keyword_only" }, - "content_type": { + "initial_delay_in_milliseconds": { "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "azure_file": { - "attr_type": "azure_file" - }, - "nfs_azure_file": { - "attr_type": "nfs_azure_file" - }, - "additional_properties": { - "attr_type": null - } - } - }, - "ManagedEnvironmentStoragesCollection": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" + "param_type": "keyword_only" }, - "value": { - "default": null, + "max_interval_in_milliseconds": { + "default": "none", "param_type": "keyword_only" }, "kwargs": { @@ -30024,15 +30259,30 @@ } }, "properties": { - "value": { - "attr_type": "value" + "max_retries": { + "attr_type": "max_retries" + }, + "headers": { + "attr_type": "headers" + }, + "http_status_codes": { + "attr_type": "http_status_codes" + }, + "errors": { + "attr_type": "errors" + }, + "initial_delay_in_milliseconds": { + "attr_type": "initial_delay_in_milliseconds" + }, + "max_interval_in_milliseconds": { + "attr_type": "max_interval_in_milliseconds" }, "additional_properties": { "attr_type": null } } }, - "ManagedEnvironmentsCollection": { + "HttpRoute": { "type": null, "methods": { "__init__": { @@ -30041,8 +30291,12 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { - "default": null, + "match": { + "default": "none", + "param_type": "keyword_only" + }, + "action": { + "default": "none", "param_type": "keyword_only" }, "kwargs": { @@ -30137,18 +30391,18 @@ } }, "properties": { - "value": { - "attr_type": "value" + "match": { + "attr_type": "match" }, - "next_link": { - "attr_type": null + "action": { + "attr_type": "action" }, "additional_properties": { "attr_type": null } } }, - "ManagedIdentitySetting": { + "HttpRouteAction": { "type": null, "methods": { "__init__": { @@ -30157,11 +30411,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "identity": { - "default": null, - "param_type": "keyword_only" - }, - "lifecycle": { + "prefix_rewrite": { "default": "none", "param_type": "keyword_only" }, @@ -30257,18 +30507,15 @@ } }, "properties": { - "identity": { - "attr_type": "identity" - }, - "lifecycle": { - "attr_type": "lifecycle" + "prefix_rewrite": { + "attr_type": "prefix_rewrite" }, "additional_properties": { "attr_type": null } } }, - "ManagedServiceIdentity": { + "HttpRouteConfig": { "type": null, "methods": { "__init__": { @@ -30277,11 +30524,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "type": { - "default": null, - "param_type": "keyword_only" - }, - "user_assigned_identities": { + "properties": { "default": "none", "param_type": "keyword_only" }, @@ -30377,81 +30620,27 @@ } }, "properties": { - "principal_id": { + "properties": { + "attr_type": "properties" + }, + "id": { "attr_type": null }, - "tenant_id": { + "name": { "attr_type": null }, "type": { - "attr_type": "type" + "attr_type": null }, - "user_assigned_identities": { - "attr_type": "user_assigned_identities" + "system_data": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "ManagedServiceIdentityType": { - "type": "Enum", - "methods": {}, - "properties": { - "NONE": "NONE", - "SYSTEM_ASSIGNED": "SYSTEM_ASSIGNED", - "SYSTEM_ASSIGNED_USER_ASSIGNED": "SYSTEM_ASSIGNED_USER_ASSIGNED", - "USER_ASSIGNED": "USER_ASSIGNED", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "Mtls": { + "HttpRouteConfigCollection": { "type": null, "methods": { "__init__": { @@ -30460,8 +30649,8 @@ "default": null, "param_type": "positional_or_keyword" }, - "enabled": { - "default": "none", + "value": { + "default": null, "param_type": "keyword_only" }, "kwargs": { @@ -30556,15 +30745,18 @@ } }, "properties": { - "enabled": { - "attr_type": "enabled" + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "NfsAzureFileProperties": { + "HttpRouteConfigProperties": { "type": null, "methods": { "__init__": { @@ -30573,15 +30765,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "server": { - "default": "none", - "param_type": "keyword_only" - }, - "access_mode": { + "custom_domains": { "default": "none", "param_type": "keyword_only" }, - "share_name": { + "rules": { "default": "none", "param_type": "keyword_only" }, @@ -30677,21 +30865,27 @@ } }, "properties": { - "server": { - "attr_type": "server" + "provisioning_state": { + "attr_type": null }, - "access_mode": { - "attr_type": "access_mode" + "provisioning_errors": { + "attr_type": null }, - "share_name": { - "attr_type": "share_name" + "fqdn": { + "attr_type": null + }, + "custom_domains": { + "attr_type": "custom_domains" + }, + "rules": { + "attr_type": "rules" }, "additional_properties": { "attr_type": null } } }, - "Nonce": { + "HttpRouteMatch": { "type": null, "methods": { "__init__": { @@ -30700,11 +30894,19 @@ "default": null, "param_type": "positional_or_keyword" }, - "validate_nonce": { + "prefix": { "default": "none", "param_type": "keyword_only" }, - "nonce_expiration_interval": { + "path": { + "default": "none", + "param_type": "keyword_only" + }, + "path_separated_prefix": { + "default": "none", + "param_type": "keyword_only" + }, + "case_sensitive": { "default": "none", "param_type": "keyword_only" }, @@ -30800,18 +31002,24 @@ } }, "properties": { - "validate_nonce": { - "attr_type": "validate_nonce" + "prefix": { + "attr_type": "prefix" }, - "nonce_expiration_interval": { - "attr_type": "nonce_expiration_interval" + "path": { + "attr_type": "path" + }, + "path_separated_prefix": { + "attr_type": "path_separated_prefix" + }, + "case_sensitive": { + "attr_type": "case_sensitive" }, "additional_properties": { "attr_type": null } } }, - "OpenIdConnectClientCredential": { + "HttpRouteProvisioningErrors": { "type": null, "methods": { "__init__": { @@ -30820,14 +31028,6 @@ "default": null, "param_type": "positional_or_keyword" }, - "method": { - "default": "none", - "param_type": "keyword_only" - }, - "client_secret_setting_name": { - "default": "none", - "param_type": "keyword_only" - }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -30920,18 +31120,78 @@ } }, "properties": { - "method": { - "attr_type": "method" + "timestamp": { + "attr_type": null }, - "client_secret_setting_name": { - "attr_type": "client_secret_setting_name" + "message": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "OpenIdConnectConfig": { + "HttpRouteProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "DELETING": "DELETING", + "FAILED": "FAILED", + "PENDING": "PENDING", + "SUCCEEDED": "SUCCEEDED", + "UPDATING": "UPDATING", + "WAITING": "WAITING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "HttpRouteRule": { "type": null, "methods": { "__init__": { @@ -30940,23 +31200,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "authorization_endpoint": { - "default": "none", - "param_type": "keyword_only" - }, - "token_endpoint": { - "default": "none", - "param_type": "keyword_only" - }, - "issuer": { + "targets": { "default": "none", "param_type": "keyword_only" }, - "certification_uri": { + "routes": { "default": "none", "param_type": "keyword_only" }, - "well_known_open_id_configuration": { + "description": { "default": "none", "param_type": "keyword_only" }, @@ -31052,27 +31304,21 @@ } }, "properties": { - "authorization_endpoint": { - "attr_type": "authorization_endpoint" - }, - "token_endpoint": { - "attr_type": "token_endpoint" - }, - "issuer": { - "attr_type": "issuer" + "targets": { + "attr_type": "targets" }, - "certification_uri": { - "attr_type": "certification_uri" + "routes": { + "attr_type": "routes" }, - "well_known_open_id_configuration": { - "attr_type": "well_known_open_id_configuration" + "description": { + "attr_type": "description" }, "additional_properties": { "attr_type": null } } }, - "OpenIdConnectLogin": { + "HttpRouteTarget": { "type": null, "methods": { "__init__": { @@ -31081,11 +31327,19 @@ "default": null, "param_type": "positional_or_keyword" }, - "name_claim_type": { + "container_app": { + "default": null, + "param_type": "keyword_only" + }, + "revision": { "default": "none", "param_type": "keyword_only" }, - "scopes": { + "label": { + "default": "none", + "param_type": "keyword_only" + }, + "weight": { "default": "none", "param_type": "keyword_only" }, @@ -31181,18 +31435,24 @@ } }, "properties": { - "name_claim_type": { - "attr_type": "name_claim_type" + "container_app": { + "attr_type": "container_app" }, - "scopes": { - "attr_type": "scopes" + "revision": { + "attr_type": "revision" + }, + "label": { + "attr_type": "label" + }, + "weight": { + "attr_type": "weight" }, "additional_properties": { "attr_type": null } } }, - "OpenIdConnectRegistration": { + "HttpScaleRule": { "type": null, "methods": { "__init__": { @@ -31201,15 +31461,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "client_id": { + "metadata": { "default": "none", "param_type": "keyword_only" }, - "client_credential": { + "auth": { "default": "none", "param_type": "keyword_only" }, - "open_id_connect_configuration": { + "identity": { "default": "none", "param_type": "keyword_only" }, @@ -31305,21 +31565,21 @@ } }, "properties": { - "client_id": { - "attr_type": "client_id" + "metadata": { + "attr_type": "metadata" }, - "client_credential": { - "attr_type": "client_credential" + "auth": { + "attr_type": "auth" }, - "open_id_connect_configuration": { - "attr_type": "open_id_connect_configuration" + "identity": { + "attr_type": "identity" }, "additional_properties": { "attr_type": null } } }, - "OperationDetail": { + "HttpSettings": { "type": null, "methods": { "__init__": { @@ -31328,19 +31588,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "is_data_action": { + "require_https": { "default": "none", "param_type": "keyword_only" }, - "display": { + "routes": { "default": "none", "param_type": "keyword_only" }, - "origin": { + "forward_proxy": { "default": "none", "param_type": "keyword_only" }, @@ -31436,24 +31692,21 @@ } }, "properties": { - "name": { - "attr_type": "name" - }, - "is_data_action": { - "attr_type": "is_data_action" + "require_https": { + "attr_type": "require_https" }, - "display": { - "attr_type": "display" + "routes": { + "attr_type": "routes" }, - "origin": { - "attr_type": "origin" + "forward_proxy": { + "attr_type": "forward_proxy" }, "additional_properties": { "attr_type": null } } }, - "OperationDisplay": { + "HttpSettingsRoutes": { "type": null, "methods": { "__init__": { @@ -31462,19 +31715,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "provider": { - "default": "none", - "param_type": "keyword_only" - }, - "resource": { - "default": "none", - "param_type": "keyword_only" - }, - "operation": { - "default": "none", - "param_type": "keyword_only" - }, - "description": { + "api_prefix": { "default": "none", "param_type": "keyword_only" }, @@ -31570,79 +31811,15 @@ } }, "properties": { - "provider": { - "attr_type": "provider" - }, - "resource": { - "attr_type": "resource" - }, - "operation": { - "attr_type": "operation" - }, - "description": { - "attr_type": "description" + "api_prefix": { + "attr_type": "api_prefix" }, "additional_properties": { "attr_type": null } } }, - "PoolManagementType": { - "type": "Enum", - "methods": {}, - "properties": { - "DYNAMIC": "DYNAMIC", - "MANUAL": "MANUAL", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "PrivateEndpoint": { + "IdentityProviders": { "type": null, "methods": { "__init__": { @@ -31651,120 +31828,35 @@ "default": null, "param_type": "positional_or_keyword" }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "as_dict": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" - }, - "key_transformer": { - "default": "attribute_transformer", - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "deserialize": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" + "azure_active_directory": { + "default": "none", + "param_type": "keyword_only" }, - "content_type": { + "facebook": { "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "enable_additional_properties_sending": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "from_dict": { - "parameters": { - "data": { - "default": null, - "param_type": "positional_or_keyword" + "param_type": "keyword_only" }, - "key_extractors": { + "git_hub": { "default": "none", - "param_type": "positional_or_keyword" + "param_type": "keyword_only" }, - "content_type": { + "google": { "default": "none", - "param_type": "positional_or_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "is_xml_model": { - "parameters": {}, - "is_async": false, - "overloads": [] - }, - "serialize": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" + "param_type": "keyword_only" }, - "keep_readonly": { - "default": "bool", - "param_type": "positional_or_keyword" + "twitter": { + "default": "none", + "param_type": "keyword_only" }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": { - "id": { - "attr_type": null - }, - "additional_properties": { - "attr_type": null - } - } - }, - "PrivateEndpointConnection": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" + "apple": { + "default": "none", + "param_type": "keyword_only" }, - "private_endpoint": { + "azure_static_web_apps": { "default": "none", "param_type": "keyword_only" }, - "private_link_service_connection_state": { + "custom_open_id_connect_providers": { "default": "none", "param_type": "keyword_only" }, @@ -31860,36 +31952,36 @@ } }, "properties": { - "group_ids": { - "attr_type": null + "azure_active_directory": { + "attr_type": "azure_active_directory" }, - "private_endpoint": { - "attr_type": "private_endpoint" + "facebook": { + "attr_type": "facebook" }, - "private_link_service_connection_state": { - "attr_type": "private_link_service_connection_state" + "git_hub": { + "attr_type": "git_hub" }, - "provisioning_state": { - "attr_type": null + "google": { + "attr_type": "google" }, - "id": { - "attr_type": null + "twitter": { + "attr_type": "twitter" }, - "name": { - "attr_type": null + "apple": { + "attr_type": "apple" }, - "type": { - "attr_type": null + "azure_static_web_apps": { + "attr_type": "azure_static_web_apps" }, - "system_data": { - "attr_type": null + "custom_open_id_connect_providers": { + "attr_type": "custom_open_id_connect_providers" }, "additional_properties": { "attr_type": null } } }, - "PrivateEndpointConnectionListResult": { + "IdentitySettings": { "type": null, "methods": { "__init__": { @@ -31898,7 +31990,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { + "identity": { + "default": null, + "param_type": "keyword_only" + }, + "lifecycle": { "default": "none", "param_type": "keyword_only" }, @@ -31994,28 +32090,25 @@ } }, "properties": { - "value": { - "attr_type": "value" + "identity": { + "attr_type": "identity" }, - "next_link": { - "attr_type": null + "lifecycle": { + "attr_type": "lifecycle" }, "additional_properties": { "attr_type": null } } }, - "PrivateEndpointConnectionProvisioningState": { + "IdentitySettingsLifeCycle": { "type": "Enum", "methods": {}, "properties": { - "CANCELED": "CANCELED", - "DELETING": "DELETING", - "FAILED": "FAILED", - "PENDING": "PENDING", - "SUCCEEDED": "SUCCEEDED", - "UPDATING": "UPDATING", - "WAITING": "WAITING", + "ALL": "ALL", + "INIT": "INIT", + "MAIN": "MAIN", + "NONE": "NONE", "capitalize": "capitalize", "casefold": "casefold", "center": "center", @@ -32065,14 +32158,12 @@ "zfill": "zfill" } }, - "PrivateEndpointServiceConnectionStatus": { + "ImageType": { "type": "Enum", "methods": {}, "properties": { - "APPROVED": "APPROVED", - "DISCONNECTED": "DISCONNECTED", - "PENDING": "PENDING", - "REJECTED": "REJECTED", + "CLOUD_BUILD": "CLOUD_BUILD", + "CONTAINER_IMAGE": "CONTAINER_IMAGE", "capitalize": "capitalize", "casefold": "casefold", "center": "center", @@ -32122,7 +32213,7 @@ "zfill": "zfill" } }, - "PrivateLinkResource": { + "Ingress": { "type": null, "methods": { "__init__": { @@ -32131,7 +32222,55 @@ "default": null, "param_type": "positional_or_keyword" }, - "required_zone_names": { + "external": { + "default": "bool", + "param_type": "keyword_only" + }, + "target_port": { + "default": "none", + "param_type": "keyword_only" + }, + "exposed_port": { + "default": "none", + "param_type": "keyword_only" + }, + "transport": { + "default": "str", + "param_type": "keyword_only" + }, + "traffic": { + "default": "none", + "param_type": "keyword_only" + }, + "custom_domains": { + "default": "none", + "param_type": "keyword_only" + }, + "allow_insecure": { + "default": "bool", + "param_type": "keyword_only" + }, + "ip_security_restrictions": { + "default": "none", + "param_type": "keyword_only" + }, + "sticky_sessions": { + "default": "none", + "param_type": "keyword_only" + }, + "client_certificate_mode": { + "default": "none", + "param_type": "keyword_only" + }, + "cors_policy": { + "default": "none", + "param_type": "keyword_only" + }, + "additional_port_mappings": { + "default": "none", + "param_type": "keyword_only" + }, + "target_port_http_scheme": { "default": "none", "param_type": "keyword_only" }, @@ -32227,33 +32366,110 @@ } }, "properties": { - "group_id": { + "fqdn": { "attr_type": null }, - "required_members": { - "attr_type": null + "external": { + "attr_type": "external" }, - "required_zone_names": { - "attr_type": "required_zone_names" + "target_port": { + "attr_type": "target_port" }, - "id": { - "attr_type": null + "exposed_port": { + "attr_type": "exposed_port" }, - "name": { - "attr_type": null + "transport": { + "attr_type": "transport" }, - "type": { - "attr_type": null + "traffic": { + "attr_type": "traffic" }, - "system_data": { - "attr_type": null + "custom_domains": { + "attr_type": "custom_domains" + }, + "allow_insecure": { + "attr_type": "allow_insecure" + }, + "ip_security_restrictions": { + "attr_type": "ip_security_restrictions" + }, + "sticky_sessions": { + "attr_type": "sticky_sessions" + }, + "client_certificate_mode": { + "attr_type": "client_certificate_mode" + }, + "cors_policy": { + "attr_type": "cors_policy" + }, + "additional_port_mappings": { + "attr_type": "additional_port_mappings" + }, + "target_port_http_scheme": { + "attr_type": "target_port_http_scheme" }, "additional_properties": { "attr_type": null } } }, - "PrivateLinkResourceListResult": { + "IngressClientCertificateMode": { + "type": "Enum", + "methods": {}, + "properties": { + "ACCEPT": "ACCEPT", + "IGNORE": "IGNORE", + "REQUIRE": "REQUIRE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "IngressConfiguration": { "type": null, "methods": { "__init__": { @@ -32262,7 +32478,19 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { + "workload_profile_name": { + "default": "none", + "param_type": "keyword_only" + }, + "termination_grace_period_seconds": { + "default": "none", + "param_type": "keyword_only" + }, + "header_count_limit": { + "default": "none", + "param_type": "keyword_only" + }, + "request_idle_timeout": { "default": "none", "param_type": "keyword_only" }, @@ -32358,18 +32586,24 @@ } }, "properties": { - "value": { - "attr_type": "value" + "workload_profile_name": { + "attr_type": "workload_profile_name" }, - "next_link": { - "attr_type": null + "termination_grace_period_seconds": { + "attr_type": "termination_grace_period_seconds" + }, + "header_count_limit": { + "attr_type": "header_count_limit" + }, + "request_idle_timeout": { + "attr_type": "request_idle_timeout" }, "additional_properties": { "attr_type": null } } }, - "PrivateLinkServiceConnectionState": { + "IngressPortMapping": { "type": null, "methods": { "__init__": { @@ -32378,15 +32612,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "status": { - "default": "none", + "external": { + "default": null, "param_type": "keyword_only" }, - "description": { - "default": "none", + "target_port": { + "default": null, "param_type": "keyword_only" }, - "actions_required": { + "exposed_port": { "default": "none", "param_type": "keyword_only" }, @@ -32482,21 +32716,21 @@ } }, "properties": { - "status": { - "attr_type": "status" + "external": { + "attr_type": "external" }, - "description": { - "attr_type": "description" + "target_port": { + "attr_type": "target_port" }, - "actions_required": { - "attr_type": "actions_required" + "exposed_port": { + "attr_type": "exposed_port" }, "additional_properties": { "attr_type": null } } }, - "ProxyResource": { + "IngressStickySessions": { "type": null, "methods": { "__init__": { @@ -32505,6 +32739,10 @@ "default": null, "param_type": "positional_or_keyword" }, + "affinity": { + "default": "none", + "param_type": "keyword_only" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -32597,29 +32835,20 @@ } }, "properties": { - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "type": { - "attr_type": null - }, - "system_data": { - "attr_type": null + "affinity": { + "attr_type": "affinity" }, "additional_properties": { "attr_type": null } } }, - "PublicNetworkAccess": { + "IngressTargetPortHttpScheme": { "type": "Enum", "methods": {}, "properties": { - "DISABLED": "DISABLED", - "ENABLED": "ENABLED", + "HTTP": "HTTP", + "HTTPS": "HTTPS", "capitalize": "capitalize", "casefold": "casefold", "center": "center", @@ -32669,7 +32898,64 @@ "zfill": "zfill" } }, - "QueueScaleRule": { + "IngressTransportMethod": { + "type": "Enum", + "methods": {}, + "properties": { + "AUTO": "AUTO", + "HTTP": "HTTP", + "HTTP2": "HTTP2", + "TCP": "TCP", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "InitContainer": { "type": null, "methods": { "__init__": { @@ -32678,23 +32964,35 @@ "default": null, "param_type": "positional_or_keyword" }, - "account_name": { + "image": { "default": "none", "param_type": "keyword_only" }, - "queue_name": { + "image_type": { "default": "none", "param_type": "keyword_only" }, - "queue_length": { + "name": { "default": "none", "param_type": "keyword_only" }, - "auth": { + "command": { "default": "none", "param_type": "keyword_only" }, - "identity": { + "args": { + "default": "none", + "param_type": "keyword_only" + }, + "env": { + "default": "none", + "param_type": "keyword_only" + }, + "resources": { + "default": "none", + "param_type": "keyword_only" + }, + "volume_mounts": { "default": "none", "param_type": "keyword_only" }, @@ -32790,27 +33088,36 @@ } }, "properties": { - "account_name": { - "attr_type": "account_name" + "image": { + "attr_type": "image" }, - "queue_name": { - "attr_type": "queue_name" + "image_type": { + "attr_type": "image_type" }, - "queue_length": { - "attr_type": "queue_length" + "name": { + "attr_type": "name" }, - "auth": { - "attr_type": "auth" + "command": { + "attr_type": "command" }, - "identity": { - "attr_type": "identity" + "args": { + "attr_type": "args" + }, + "env": { + "attr_type": "env" + }, + "resources": { + "attr_type": "resources" + }, + "volume_mounts": { + "attr_type": "volume_mounts" }, "additional_properties": { "attr_type": null } } }, - "RegistryCredentials": { + "IpSecurityRestrictionRule": { "type": null, "methods": { "__init__": { @@ -32819,19 +33126,19 @@ "default": null, "param_type": "positional_or_keyword" }, - "server": { - "default": "none", + "name": { + "default": null, "param_type": "keyword_only" }, - "username": { - "default": "none", + "ip_address_range": { + "default": null, "param_type": "keyword_only" }, - "password_secret_ref": { - "default": "none", + "action": { + "default": null, "param_type": "keyword_only" }, - "identity": { + "description": { "default": "none", "param_type": "keyword_only" }, @@ -32927,24 +33234,24 @@ } }, "properties": { - "server": { - "attr_type": "server" + "name": { + "attr_type": "name" }, - "username": { - "attr_type": "username" + "description": { + "attr_type": "description" }, - "password_secret_ref": { - "attr_type": "password_secret_ref" + "ip_address_range": { + "attr_type": "ip_address_range" }, - "identity": { - "attr_type": "identity" + "action": { + "attr_type": "action" }, "additional_properties": { "attr_type": null } } }, - "RegistryInfo": { + "JavaComponent": { "type": null, "methods": { "__init__": { @@ -32953,15 +33260,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "registry_url": { - "default": "none", - "param_type": "keyword_only" - }, - "registry_user_name": { - "default": "none", - "param_type": "keyword_only" - }, - "registry_password": { + "properties": { "default": "none", "param_type": "keyword_only" }, @@ -33057,21 +33356,27 @@ } }, "properties": { - "registry_url": { - "attr_type": "registry_url" + "properties": { + "attr_type": "properties" }, - "registry_user_name": { - "attr_type": "registry_user_name" + "id": { + "attr_type": null }, - "registry_password": { - "attr_type": "registry_password" + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "Replica": { + "JavaComponentConfigurationProperty": { "type": null, "methods": { "__init__": { @@ -33080,11 +33385,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "containers": { + "property_name": { "default": "none", "param_type": "keyword_only" }, - "init_containers": { + "value": { "default": "none", "param_type": "keyword_only" }, @@ -33180,39 +33485,18 @@ } }, "properties": { - "created_time": { - "attr_type": null - }, - "running_state": { - "attr_type": null - }, - "running_state_details": { - "attr_type": null - }, - "containers": { - "attr_type": "containers" - }, - "init_containers": { - "attr_type": "init_containers" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "type": { - "attr_type": null + "property_name": { + "attr_type": "property_name" }, - "system_data": { - "attr_type": null + "value": { + "attr_type": "value" }, "additional_properties": { "attr_type": null } } }, - "ReplicaCollection": { + "JavaComponentIngress": { "type": null, "methods": { "__init__": { @@ -33221,10 +33505,6 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { - "default": null, - "param_type": "keyword_only" - }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -33317,15 +33597,15 @@ } }, "properties": { - "value": { - "attr_type": "value" + "fqdn": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "ReplicaContainer": { + "JavaComponentProperties": { "type": null, "methods": { "__init__": { @@ -33334,23 +33614,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "container_id": { - "default": "none", - "param_type": "keyword_only" - }, - "ready": { + "configurations": { "default": "none", "param_type": "keyword_only" }, - "started": { + "scale": { "default": "none", "param_type": "keyword_only" }, - "restart_count": { + "service_binds": { "default": "none", "param_type": "keyword_only" }, @@ -33446,39 +33718,205 @@ } }, "properties": { - "name": { - "attr_type": "name" + "component_type": { + "attr_type": null }, - "container_id": { - "attr_type": "container_id" + "provisioning_state": { + "attr_type": null }, - "ready": { - "attr_type": "ready" + "configurations": { + "attr_type": "configurations" }, - "started": { - "attr_type": "started" + "scale": { + "attr_type": "scale" }, - "restart_count": { - "attr_type": "restart_count" + "service_binds": { + "attr_type": "service_binds" }, - "running_state": { + "additional_properties": { "attr_type": null + } + } + }, + "JavaComponentPropertiesScale": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "min_replicas": { + "default": "none", + "param_type": "keyword_only" + }, + "max_replicas": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] }, - "running_state_details": { - "attr_type": null + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] }, - "log_stream_endpoint": { - "attr_type": null + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] }, - "exec_endpoint": { - "attr_type": null + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "min_replicas": { + "attr_type": "min_replicas" + }, + "max_replicas": { + "attr_type": "max_replicas" }, "additional_properties": { "attr_type": null } } }, - "Resource": { + "JavaComponentProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "DELETING": "DELETING", + "FAILED": "FAILED", + "IN_PROGRESS": "IN_PROGRESS", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "JavaComponentServiceBind": { "type": null, "methods": { "__init__": { @@ -33487,6 +33925,14 @@ "default": null, "param_type": "positional_or_keyword" }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "service_id": { + "default": "none", + "param_type": "keyword_only" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -33579,24 +34025,76 @@ } }, "properties": { - "id": { - "attr_type": null - }, "name": { - "attr_type": null - }, - "type": { - "attr_type": null + "attr_type": "name" }, - "system_data": { - "attr_type": null + "service_id": { + "attr_type": "service_id" }, "additional_properties": { "attr_type": null } } }, - "ResourceTags": { + "JavaComponentType": { + "type": "Enum", + "methods": {}, + "properties": { + "NACOS": "NACOS", + "SPRING_BOOT_ADMIN": "SPRING_BOOT_ADMIN", + "SPRING_CLOUD_CONFIG": "SPRING_CLOUD_CONFIG", + "SPRING_CLOUD_EUREKA": "SPRING_CLOUD_EUREKA", + "SPRING_CLOUD_GATEWAY": "SPRING_CLOUD_GATEWAY", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "JavaComponentsCollection": { "type": null, "methods": { "__init__": { @@ -33605,8 +34103,8 @@ "default": null, "param_type": "positional_or_keyword" }, - "tags": { - "default": "none", + "value": { + "default": null, "param_type": "keyword_only" }, "kwargs": { @@ -33701,15 +34199,18 @@ } }, "properties": { - "tags": { - "attr_type": "tags" + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "Revision": { + "Job": { "type": null, "methods": { "__init__": { @@ -33718,6 +34219,38 @@ "default": null, "param_type": "positional_or_keyword" }, + "location": { + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "extended_location": { + "default": "none", + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "environment_id": { + "default": "none", + "param_type": "keyword_only" + }, + "workload_profile_name": { + "default": "none", + "param_type": "keyword_only" + }, + "configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "template": { + "default": "none", + "param_type": "keyword_only" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -33810,38 +34343,41 @@ } }, "properties": { - "created_time": { - "attr_type": null + "extended_location": { + "attr_type": "extended_location" }, - "last_active_time": { - "attr_type": null + "identity": { + "attr_type": "identity" }, - "fqdn": { + "provisioning_state": { "attr_type": null }, - "template": { + "running_state": { "attr_type": null }, - "active": { - "attr_type": null + "environment_id": { + "attr_type": "environment_id" }, - "replicas": { - "attr_type": null + "workload_profile_name": { + "attr_type": "workload_profile_name" }, - "traffic_weight": { - "attr_type": null + "configuration": { + "attr_type": "configuration" }, - "provisioning_error": { - "attr_type": null + "template": { + "attr_type": "template" }, - "health_state": { + "outbound_ip_addresses": { "attr_type": null }, - "provisioning_state": { + "event_stream_endpoint": { "attr_type": null }, - "running_state": { - "attr_type": null + "tags": { + "attr_type": "tags" + }, + "location": { + "attr_type": "location" }, "id": { "attr_type": null @@ -33860,7 +34396,7 @@ } } }, - "RevisionCollection": { + "JobConfiguration": { "type": null, "methods": { "__init__": { @@ -33869,10 +34405,42 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { + "trigger_type": { + "default": "str", + "param_type": "keyword_only" + }, + "replica_timeout": { "default": null, "param_type": "keyword_only" }, + "secrets": { + "default": "none", + "param_type": "keyword_only" + }, + "replica_retry_limit": { + "default": "none", + "param_type": "keyword_only" + }, + "manual_trigger_config": { + "default": "none", + "param_type": "keyword_only" + }, + "schedule_trigger_config": { + "default": "none", + "param_type": "keyword_only" + }, + "event_trigger_config": { + "default": "none", + "param_type": "keyword_only" + }, + "registries": { + "default": "none", + "param_type": "keyword_only" + }, + "identity_settings": { + "default": "none", + "param_type": "keyword_only" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -33965,191 +34533,39 @@ } }, "properties": { - "value": { - "attr_type": "value" + "secrets": { + "attr_type": "secrets" }, - "next_link": { - "attr_type": null + "trigger_type": { + "attr_type": "trigger_type" + }, + "replica_timeout": { + "attr_type": "replica_timeout" + }, + "replica_retry_limit": { + "attr_type": "replica_retry_limit" + }, + "manual_trigger_config": { + "attr_type": "manual_trigger_config" + }, + "schedule_trigger_config": { + "attr_type": "schedule_trigger_config" + }, + "event_trigger_config": { + "attr_type": "event_trigger_config" + }, + "registries": { + "attr_type": "registries" + }, + "identity_settings": { + "attr_type": "identity_settings" }, "additional_properties": { "attr_type": null } } }, - "RevisionHealthState": { - "type": "Enum", - "methods": {}, - "properties": { - "HEALTHY": "HEALTHY", - "NONE": "NONE", - "UNHEALTHY": "UNHEALTHY", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "RevisionProvisioningState": { - "type": "Enum", - "methods": {}, - "properties": { - "DEPROVISIONED": "DEPROVISIONED", - "DEPROVISIONING": "DEPROVISIONING", - "FAILED": "FAILED", - "PROVISIONED": "PROVISIONED", - "PROVISIONING": "PROVISIONING", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "RevisionRunningState": { - "type": "Enum", - "methods": {}, - "properties": { - "DEGRADED": "DEGRADED", - "FAILED": "FAILED", - "PROCESSING": "PROCESSING", - "RUNNING": "RUNNING", - "STOPPED": "STOPPED", - "UNKNOWN": "UNKNOWN", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "Runtime": { + "JobConfigurationEventTriggerConfig": { "type": null, "methods": { "__init__": { @@ -34158,7 +34574,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "java": { + "replica_completion_count": { + "default": "none", + "param_type": "keyword_only" + }, + "parallelism": { + "default": "none", + "param_type": "keyword_only" + }, + "scale": { "default": "none", "param_type": "keyword_only" }, @@ -34254,15 +34678,21 @@ } }, "properties": { - "java": { - "attr_type": "java" + "replica_completion_count": { + "attr_type": "replica_completion_count" + }, + "parallelism": { + "attr_type": "parallelism" + }, + "scale": { + "attr_type": "scale" }, "additional_properties": { "attr_type": null } } }, - "RuntimeJava": { + "JobConfigurationManualTriggerConfig": { "type": null, "methods": { "__init__": { @@ -34271,7 +34701,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "enable_metrics": { + "replica_completion_count": { + "default": "none", + "param_type": "keyword_only" + }, + "parallelism": { "default": "none", "param_type": "keyword_only" }, @@ -34367,15 +34801,18 @@ } }, "properties": { - "enable_metrics": { - "attr_type": "enable_metrics" + "replica_completion_count": { + "attr_type": "replica_completion_count" + }, + "parallelism": { + "attr_type": "parallelism" }, "additional_properties": { "attr_type": null } } }, - "Scale": { + "JobConfigurationScheduleTriggerConfig": { "type": null, "methods": { "__init__": { @@ -34384,23 +34821,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "min_replicas": { - "default": "none", - "param_type": "keyword_only" - }, - "max_replicas": { - "default": "int", - "param_type": "keyword_only" - }, - "cooldown_period": { - "default": "none", + "cron_expression": { + "default": null, "param_type": "keyword_only" }, - "polling_interval": { + "replica_completion_count": { "default": "none", "param_type": "keyword_only" }, - "rules": { + "parallelism": { "default": "none", "param_type": "keyword_only" }, @@ -34496,27 +34925,21 @@ } }, "properties": { - "min_replicas": { - "attr_type": "min_replicas" - }, - "max_replicas": { - "attr_type": "max_replicas" - }, - "cooldown_period": { - "attr_type": "cooldown_period" + "replica_completion_count": { + "attr_type": "replica_completion_count" }, - "polling_interval": { - "attr_type": "polling_interval" + "cron_expression": { + "attr_type": "cron_expression" }, - "rules": { - "attr_type": "rules" + "parallelism": { + "attr_type": "parallelism" }, "additional_properties": { "attr_type": null } } }, - "ScaleConfiguration": { + "JobExecution": { "type": null, "methods": { "__init__": { @@ -34525,11 +34948,31 @@ "default": null, "param_type": "positional_or_keyword" }, - "max_concurrent_sessions": { + "name": { "default": "none", "param_type": "keyword_only" }, - "ready_session_instances": { + "id": { + "default": "none", + "param_type": "keyword_only" + }, + "type": { + "default": "none", + "param_type": "keyword_only" + }, + "start_time": { + "default": "none", + "param_type": "keyword_only" + }, + "end_time": { + "default": "none", + "param_type": "keyword_only" + }, + "template": { + "default": "none", + "param_type": "keyword_only" + }, + "detailed_status": { "default": "none", "param_type": "keyword_only" }, @@ -34625,18 +35068,42 @@ } }, "properties": { - "max_concurrent_sessions": { - "attr_type": "max_concurrent_sessions" + "name": { + "attr_type": "name" }, - "ready_session_instances": { - "attr_type": "ready_session_instances" + "id": { + "attr_type": "id" + }, + "type": { + "attr_type": "type" + }, + "status": { + "attr_type": null + }, + "start_time": { + "attr_type": "start_time" + }, + "end_time": { + "attr_type": "end_time" + }, + "template": { + "attr_type": "template" + }, + "detailed_status": { + "attr_type": "detailed_status" + }, + "reason": { + "attr_type": null + }, + "message": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "ScaleRule": { + "JobExecutionBase": { "type": null, "methods": { "__init__": { @@ -34649,19 +35116,7 @@ "default": "none", "param_type": "keyword_only" }, - "azure_queue": { - "default": "none", - "param_type": "keyword_only" - }, - "custom": { - "default": "none", - "param_type": "keyword_only" - }, - "http": { - "default": "none", - "param_type": "keyword_only" - }, - "tcp": { + "id": { "default": "none", "param_type": "keyword_only" }, @@ -34760,24 +35215,15 @@ "name": { "attr_type": "name" }, - "azure_queue": { - "attr_type": "azure_queue" - }, - "custom": { - "attr_type": "custom" - }, - "http": { - "attr_type": "http" - }, - "tcp": { - "attr_type": "tcp" + "id": { + "attr_type": "id" }, "additional_properties": { "attr_type": null } } }, - "ScaleRuleAuth": { + "JobExecutionContainer": { "type": null, "methods": { "__init__": { @@ -34786,11 +35232,27 @@ "default": null, "param_type": "positional_or_keyword" }, - "secret_ref": { + "image": { "default": "none", "param_type": "keyword_only" }, - "trigger_parameter": { + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "command": { + "default": "none", + "param_type": "keyword_only" + }, + "args": { + "default": "none", + "param_type": "keyword_only" + }, + "env": { + "default": "none", + "param_type": "keyword_only" + }, + "resources": { "default": "none", "param_type": "keyword_only" }, @@ -34886,18 +35348,30 @@ } }, "properties": { - "secret_ref": { - "attr_type": "secret_ref" + "image": { + "attr_type": "image" }, - "trigger_parameter": { - "attr_type": "trigger_parameter" + "name": { + "attr_type": "name" + }, + "command": { + "attr_type": "command" + }, + "args": { + "attr_type": "args" + }, + "env": { + "attr_type": "env" + }, + "resources": { + "attr_type": "resources" }, "additional_properties": { "attr_type": null } } }, - "ScheduledEntry": { + "JobExecutionNamesCollection": { "type": null, "methods": { "__init__": { @@ -34906,15 +35380,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "week_day": { - "default": null, - "param_type": "keyword_only" - }, - "start_hour_utc": { - "default": null, - "param_type": "keyword_only" - }, - "duration_hours": { + "value": { "default": null, "param_type": "keyword_only" }, @@ -35010,26 +35476,25 @@ } }, "properties": { - "week_day": { - "attr_type": "week_day" - }, - "start_hour_utc": { - "attr_type": "start_hour_utc" - }, - "duration_hours": { - "attr_type": "duration_hours" + "value": { + "attr_type": "value" }, "additional_properties": { "attr_type": null } } }, - "Scheme": { + "JobExecutionRunningState": { "type": "Enum", "methods": {}, "properties": { - "HTTP": "HTTP", - "HTTPS": "HTTPS", + "DEGRADED": "DEGRADED", + "FAILED": "FAILED", + "PROCESSING": "PROCESSING", + "RUNNING": "RUNNING", + "STOPPED": "STOPPED", + "SUCCEEDED": "SUCCEEDED", + "UNKNOWN": "UNKNOWN", "capitalize": "capitalize", "casefold": "casefold", "center": "center", @@ -35079,7 +35544,7 @@ "zfill": "zfill" } }, - "Secret": { + "JobExecutionTemplate": { "type": null, "methods": { "__init__": { @@ -35088,19 +35553,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "value": { - "default": "none", - "param_type": "keyword_only" - }, - "identity": { + "containers": { "default": "none", "param_type": "keyword_only" }, - "key_vault_url": { + "init_containers": { "default": "none", "param_type": "keyword_only" }, @@ -35196,24 +35653,18 @@ } }, "properties": { - "name": { - "attr_type": "name" - }, - "value": { - "attr_type": "value" - }, - "identity": { - "attr_type": "identity" + "containers": { + "attr_type": "containers" }, - "key_vault_url": { - "attr_type": "key_vault_url" + "init_containers": { + "attr_type": "init_containers" }, "additional_properties": { "attr_type": null } } }, - "SecretKeyVaultProperties": { + "JobPatchProperties": { "type": null, "methods": { "__init__": { @@ -35222,11 +35673,19 @@ "default": null, "param_type": "positional_or_keyword" }, + "extended_location": { + "default": "none", + "param_type": "keyword_only" + }, "identity": { "default": "none", "param_type": "keyword_only" }, - "key_vault_url": { + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "properties": { "default": "none", "param_type": "keyword_only" }, @@ -35322,18 +35781,24 @@ } }, "properties": { + "extended_location": { + "attr_type": "extended_location" + }, "identity": { "attr_type": "identity" }, - "key_vault_url": { - "attr_type": "key_vault_url" + "tags": { + "attr_type": "tags" + }, + "properties": { + "attr_type": "properties" }, "additional_properties": { "attr_type": null } } }, - "SecretVolumeItem": { + "JobPatchPropertiesProperties": { "type": null, "methods": { "__init__": { @@ -35342,11 +35807,23 @@ "default": null, "param_type": "positional_or_keyword" }, - "secret_ref": { + "environment_id": { "default": "none", "param_type": "keyword_only" }, - "path": { + "configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "template": { + "default": "none", + "param_type": "keyword_only" + }, + "outbound_ip_addresses": { + "default": "none", + "param_type": "keyword_only" + }, + "event_stream_endpoint": { "default": "none", "param_type": "keyword_only" }, @@ -35442,18 +35919,141 @@ } }, "properties": { - "secret_ref": { - "attr_type": "secret_ref" + "environment_id": { + "attr_type": "environment_id" }, - "path": { - "attr_type": "path" + "configuration": { + "attr_type": "configuration" + }, + "template": { + "attr_type": "template" + }, + "outbound_ip_addresses": { + "attr_type": "outbound_ip_addresses" + }, + "event_stream_endpoint": { + "attr_type": "event_stream_endpoint" }, "additional_properties": { "attr_type": null } } }, - "SecretsCollection": { + "JobProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "DELETING": "DELETING", + "FAILED": "FAILED", + "IN_PROGRESS": "IN_PROGRESS", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "JobRunningState": { + "type": "Enum", + "methods": {}, + "properties": { + "PROGRESSING": "PROGRESSING", + "READY": "READY", + "SUSPENDED": "SUSPENDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "JobScale": { "type": null, "methods": { "__init__": { @@ -35462,8 +36062,20 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { - "default": null, + "polling_interval": { + "default": "none", + "param_type": "keyword_only" + }, + "min_executions": { + "default": "int", + "param_type": "keyword_only" + }, + "max_executions": { + "default": "int", + "param_type": "keyword_only" + }, + "rules": { + "default": "none", "param_type": "keyword_only" }, "kwargs": { @@ -35558,15 +36170,24 @@ } }, "properties": { - "value": { - "attr_type": "value" + "polling_interval": { + "attr_type": "polling_interval" + }, + "min_executions": { + "attr_type": "min_executions" + }, + "max_executions": { + "attr_type": "max_executions" + }, + "rules": { + "attr_type": "rules" }, "additional_properties": { "attr_type": null } } }, - "Service": { + "JobScaleRule": { "type": null, "methods": { "__init__": { @@ -35575,8 +36196,24 @@ "default": null, "param_type": "positional_or_keyword" }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, "type": { - "default": null, + "default": "none", + "param_type": "keyword_only" + }, + "metadata": { + "default": "none", + "param_type": "keyword_only" + }, + "auth": { + "default": "none", + "param_type": "keyword_only" + }, + "identity": { + "default": "none", "param_type": "keyword_only" }, "kwargs": { @@ -35671,15 +36308,27 @@ } }, "properties": { + "name": { + "attr_type": "name" + }, "type": { "attr_type": "type" }, + "metadata": { + "attr_type": "metadata" + }, + "auth": { + "attr_type": "auth" + }, + "identity": { + "attr_type": "identity" + }, "additional_properties": { "attr_type": null } } }, - "ServiceBind": { + "JobSecretsCollection": { "type": null, "methods": { "__init__": { @@ -35688,12 +36337,8 @@ "default": null, "param_type": "positional_or_keyword" }, - "service_id": { - "default": "none", - "param_type": "keyword_only" - }, - "name": { - "default": "none", + "value": { + "default": null, "param_type": "keyword_only" }, "kwargs": { @@ -35788,18 +36433,15 @@ } }, "properties": { - "service_id": { - "attr_type": "service_id" - }, - "name": { - "attr_type": "name" + "value": { + "attr_type": "value" }, "additional_properties": { "attr_type": null } } }, - "SessionContainer": { + "JobTemplate": { "type": null, "methods": { "__init__": { @@ -35808,28 +36450,135 @@ "default": null, "param_type": "positional_or_keyword" }, - "image": { + "init_containers": { "default": "none", "param_type": "keyword_only" }, - "name": { + "containers": { "default": "none", "param_type": "keyword_only" }, - "command": { + "volumes": { "default": "none", "param_type": "keyword_only" }, - "args": { + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { "default": "none", - "param_type": "keyword_only" + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" }, - "env": { + "key_extractors": { "default": "none", - "param_type": "keyword_only" + "param_type": "positional_or_keyword" }, - "resources": { + "content_type": { "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "init_containers": { + "attr_type": "init_containers" + }, + "containers": { + "attr_type": "containers" + }, + "volumes": { + "attr_type": "volumes" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "JobsCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, "param_type": "keyword_only" }, "kwargs": { @@ -35924,30 +36673,18 @@ } }, "properties": { - "image": { - "attr_type": "image" - }, - "name": { - "attr_type": "name" - }, - "command": { - "attr_type": "command" - }, - "args": { - "attr_type": "args" - }, - "env": { - "attr_type": "env" + "value": { + "attr_type": "value" }, - "resources": { - "attr_type": "resources" + "next_link": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "SessionContainerResources": { + "JwtClaimChecks": { "type": null, "methods": { "__init__": { @@ -35956,11 +36693,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "cpu": { + "allowed_groups": { "default": "none", "param_type": "keyword_only" }, - "memory": { + "allowed_client_applications": { "default": "none", "param_type": "keyword_only" }, @@ -36056,18 +36793,18 @@ } }, "properties": { - "cpu": { - "attr_type": "cpu" + "allowed_groups": { + "attr_type": "allowed_groups" }, - "memory": { - "attr_type": "memory" + "allowed_client_applications": { + "attr_type": "allowed_client_applications" }, "additional_properties": { "attr_type": null } } }, - "SessionIngress": { + "KedaConfiguration": { "type": null, "methods": { "__init__": { @@ -36076,10 +36813,6 @@ "default": null, "param_type": "positional_or_keyword" }, - "target_port": { - "default": "none", - "param_type": "keyword_only" - }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -36172,15 +36905,70 @@ } }, "properties": { - "target_port": { - "attr_type": "target_port" + "version": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "SessionNetworkConfiguration": { + "Kind": { + "type": "Enum", + "methods": {}, + "properties": { + "FUNCTIONAPP": "FUNCTIONAPP", + "WORKFLOWAPP": "WORKFLOWAPP", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "LabelHistory": { "type": null, "methods": { "__init__": { @@ -36189,7 +36977,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "status": { + "properties": { "default": "none", "param_type": "keyword_only" }, @@ -36285,70 +37073,27 @@ } }, "properties": { - "status": { - "attr_type": "status" + "properties": { + "attr_type": "properties" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "SessionNetworkStatus": { - "type": "Enum", - "methods": {}, - "properties": { - "EGRESS_DISABLED": "EGRESS_DISABLED", - "EGRESS_ENABLED": "EGRESS_ENABLED", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "SessionPool": { + "LabelHistoryCollection": { "type": null, "methods": { "__init__": { @@ -36357,53 +37102,121 @@ "default": null, "param_type": "positional_or_keyword" }, - "location": { + "value": { "default": null, "param_type": "keyword_only" }, - "tags": { - "default": "none", - "param_type": "keyword_only" - }, - "identity": { - "default": "none", - "param_type": "keyword_only" - }, - "environment_id": { - "default": "none", - "param_type": "keyword_only" + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" }, - "container_type": { - "default": "none", - "param_type": "keyword_only" + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" }, - "pool_management_type": { - "default": "none", - "param_type": "keyword_only" + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" }, - "scale_configuration": { - "default": "none", - "param_type": "keyword_only" + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" }, - "secrets": { + "content_type": { "default": "none", - "param_type": "keyword_only" + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" }, - "dynamic_pool_configuration": { + "key_extractors": { "default": "none", - "param_type": "keyword_only" + "param_type": "positional_or_keyword" }, - "custom_container_template": { + "content_type": { "default": "none", - "param_type": "keyword_only" + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" }, - "session_network_configuration": { - "default": "none", - "param_type": "keyword_only" + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" }, - "managed_identity_settings": { - "default": "none", - "param_type": "keyword_only" + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "LabelHistoryProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" }, "kwargs": { "default": null, @@ -36497,61 +37310,7 @@ } }, "properties": { - "identity": { - "attr_type": "identity" - }, - "environment_id": { - "attr_type": "environment_id" - }, - "container_type": { - "attr_type": "container_type" - }, - "pool_management_type": { - "attr_type": "pool_management_type" - }, - "node_count": { - "attr_type": null - }, - "scale_configuration": { - "attr_type": "scale_configuration" - }, - "secrets": { - "attr_type": "secrets" - }, - "dynamic_pool_configuration": { - "attr_type": "dynamic_pool_configuration" - }, - "custom_container_template": { - "attr_type": "custom_container_template" - }, - "session_network_configuration": { - "attr_type": "session_network_configuration" - }, - "pool_management_endpoint": { - "attr_type": null - }, - "provisioning_state": { - "attr_type": null - }, - "managed_identity_settings": { - "attr_type": "managed_identity_settings" - }, - "tags": { - "attr_type": "tags" - }, - "location": { - "attr_type": "location" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "type": { - "attr_type": null - }, - "system_data": { + "records": { "attr_type": null }, "additional_properties": { @@ -36559,7 +37318,7 @@ } } }, - "SessionPoolCollection": { + "LabelHistoryRecordItem": { "type": null, "methods": { "__init__": { @@ -36568,10 +37327,6 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { - "default": null, - "param_type": "keyword_only" - }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -36664,10 +37419,16 @@ } }, "properties": { - "value": { - "attr_type": "value" + "revision": { + "attr_type": null }, - "next_link": { + "start": { + "attr_type": null + }, + "stop": { + "attr_type": null + }, + "status": { "attr_type": null }, "additional_properties": { @@ -36675,15 +37436,16 @@ } } }, - "SessionPoolProvisioningState": { + "Level": { "type": "Enum", "methods": {}, "properties": { - "CANCELED": "CANCELED", - "DELETING": "DELETING", - "FAILED": "FAILED", - "IN_PROGRESS": "IN_PROGRESS", - "SUCCEEDED": "SUCCEEDED", + "DEBUG": "DEBUG", + "ERROR": "ERROR", + "INFO": "INFO", + "OFF": "OFF", + "TRACE": "TRACE", + "WARN": "WARN", "capitalize": "capitalize", "casefold": "casefold", "center": "center", @@ -36733,7 +37495,7 @@ "zfill": "zfill" } }, - "SessionPoolSecret": { + "LifecycleConfiguration": { "type": null, "methods": { "__init__": { @@ -36742,11 +37504,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "name": { + "lifecycle_type": { "default": "none", "param_type": "keyword_only" }, - "value": { + "cooldown_period_in_seconds": { + "default": "none", + "param_type": "keyword_only" + }, + "max_alive_period_in_seconds": { "default": "none", "param_type": "keyword_only" }, @@ -36842,18 +37608,76 @@ } }, "properties": { - "name": { - "attr_type": "name" + "lifecycle_type": { + "attr_type": "lifecycle_type" }, - "value": { - "attr_type": "value" + "cooldown_period_in_seconds": { + "attr_type": "cooldown_period_in_seconds" + }, + "max_alive_period_in_seconds": { + "attr_type": "max_alive_period_in_seconds" }, "additional_properties": { "attr_type": null } } }, - "SessionPoolUpdatableProperties": { + "LifecycleType": { + "type": "Enum", + "methods": {}, + "properties": { + "ON_CONTAINER_EXIT": "ON_CONTAINER_EXIT", + "TIMED": "TIMED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ListUsagesResult": { "type": null, "methods": { "__init__": { @@ -36862,31 +37686,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "tags": { - "default": "none", - "param_type": "keyword_only" - }, - "identity": { - "default": "none", - "param_type": "keyword_only" - }, - "scale_configuration": { - "default": "none", - "param_type": "keyword_only" - }, - "secrets": { - "default": "none", - "param_type": "keyword_only" - }, - "dynamic_pool_configuration": { - "default": "none", - "param_type": "keyword_only" - }, - "custom_container_template": { + "value": { "default": "none", "param_type": "keyword_only" }, - "session_network_configuration": { + "next_link": { "default": "none", "param_type": "keyword_only" }, @@ -36982,33 +37786,18 @@ } }, "properties": { - "tags": { - "attr_type": "tags" - }, - "identity": { - "attr_type": "identity" - }, - "scale_configuration": { - "attr_type": "scale_configuration" - }, - "secrets": { - "attr_type": "secrets" - }, - "dynamic_pool_configuration": { - "attr_type": "dynamic_pool_configuration" - }, - "custom_container_template": { - "attr_type": "custom_container_template" + "value": { + "attr_type": "value" }, - "session_network_configuration": { - "attr_type": "session_network_configuration" + "next_link": { + "attr_type": "next_link" }, "additional_properties": { "attr_type": null } } }, - "SessionRegistryCredentials": { + "LogAnalyticsConfiguration": { "type": null, "methods": { "__init__": { @@ -37017,19 +37806,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "server": { - "default": "none", - "param_type": "keyword_only" - }, - "username": { + "customer_id": { "default": "none", "param_type": "keyword_only" }, - "password_secret_ref": { + "shared_key": { "default": "none", "param_type": "keyword_only" }, - "identity": { + "dynamic_json_columns": { "default": "none", "param_type": "keyword_only" }, @@ -37125,24 +37910,78 @@ } }, "properties": { - "server": { - "attr_type": "server" - }, - "username": { - "attr_type": "username" + "customer_id": { + "attr_type": "customer_id" }, - "password_secret_ref": { - "attr_type": "password_secret_ref" + "shared_key": { + "attr_type": "shared_key" }, - "identity": { - "attr_type": "identity" + "dynamic_json_columns": { + "attr_type": "dynamic_json_columns" }, "additional_properties": { "attr_type": null } } }, - "SourceControl": { + "LogLevel": { + "type": "Enum", + "methods": {}, + "properties": { + "DEBUG": "DEBUG", + "ERROR": "ERROR", + "INFO": "INFO", + "WARN": "WARN", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "LoggerSetting": { "type": null, "methods": { "__init__": { @@ -37151,16 +37990,12 @@ "default": null, "param_type": "positional_or_keyword" }, - "repo_url": { - "default": "none", - "param_type": "keyword_only" - }, - "branch": { - "default": "none", + "logger": { + "default": null, "param_type": "keyword_only" }, - "github_action_configuration": { - "default": "none", + "level": { + "default": null, "param_type": "keyword_only" }, "kwargs": { @@ -37255,36 +38090,18 @@ } }, "properties": { - "operation_state": { - "attr_type": null + "logger": { + "attr_type": "logger" }, - "repo_url": { - "attr_type": "repo_url" - }, - "branch": { - "attr_type": "branch" - }, - "github_action_configuration": { - "attr_type": "github_action_configuration" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "type": { - "attr_type": null - }, - "system_data": { - "attr_type": null + "level": { + "attr_type": "level" }, "additional_properties": { "attr_type": null } } }, - "SourceControlCollection": { + "LogicApp": { "type": null, "methods": { "__init__": { @@ -37293,8 +38110,8 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { - "default": null, + "properties": { + "default": "none", "param_type": "keyword_only" }, "kwargs": { @@ -37389,10 +38206,19 @@ } }, "properties": { - "value": { - "attr_type": "value" + "properties": { + "attr_type": "properties" }, - "next_link": { + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { "attr_type": null }, "additional_properties": { @@ -37400,14 +38226,12 @@ } } }, - "SourceControlOperationState": { + "LogicAppsProxyMethod": { "type": "Enum", "methods": {}, "properties": { - "CANCELED": "CANCELED", - "FAILED": "FAILED", - "IN_PROGRESS": "IN_PROGRESS", - "SUCCEEDED": "SUCCEEDED", + "GET": "GET", + "POST": "POST", "capitalize": "capitalize", "casefold": "casefold", "center": "center", @@ -37457,7 +38281,7 @@ "zfill": "zfill" } }, - "SpringBootAdminComponent": { + "Login": { "type": null, "methods": { "__init__": { @@ -37466,19 +38290,27 @@ "default": null, "param_type": "positional_or_keyword" }, - "configurations": { + "routes": { "default": "none", "param_type": "keyword_only" }, - "scale": { + "token_store": { "default": "none", "param_type": "keyword_only" }, - "service_binds": { + "preserve_url_fragments_for_logins": { "default": "none", "param_type": "keyword_only" }, - "ingress": { + "allowed_external_redirect_urls": { + "default": "none", + "param_type": "keyword_only" + }, + "cookie_expiration": { + "default": "none", + "param_type": "keyword_only" + }, + "nonce": { "default": "none", "param_type": "keyword_only" }, @@ -37574,30 +38406,30 @@ } }, "properties": { - "component_type": { - "attr_type": null + "routes": { + "attr_type": "routes" }, - "ingress": { - "attr_type": "ingress" + "token_store": { + "attr_type": "token_store" }, - "provisioning_state": { - "attr_type": null + "preserve_url_fragments_for_logins": { + "attr_type": "preserve_url_fragments_for_logins" }, - "configurations": { - "attr_type": "configurations" + "allowed_external_redirect_urls": { + "attr_type": "allowed_external_redirect_urls" }, - "scale": { - "attr_type": "scale" + "cookie_expiration": { + "attr_type": "cookie_expiration" }, - "service_binds": { - "attr_type": "service_binds" + "nonce": { + "attr_type": "nonce" }, "additional_properties": { "attr_type": null } } }, - "SpringCloudConfigComponent": { + "LoginRoutes": { "type": null, "methods": { "__init__": { @@ -37606,15 +38438,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "configurations": { - "default": "none", - "param_type": "keyword_only" - }, - "scale": { - "default": "none", - "param_type": "keyword_only" - }, - "service_binds": { + "logout_endpoint": { "default": "none", "param_type": "keyword_only" }, @@ -37710,27 +38534,15 @@ } }, "properties": { - "component_type": { - "attr_type": null - }, - "provisioning_state": { - "attr_type": null - }, - "configurations": { - "attr_type": "configurations" - }, - "scale": { - "attr_type": "scale" - }, - "service_binds": { - "attr_type": "service_binds" + "logout_endpoint": { + "attr_type": "logout_endpoint" }, "additional_properties": { "attr_type": null } } }, - "SpringCloudEurekaComponent": { + "LoginScopes": { "type": null, "methods": { "__init__": { @@ -37739,19 +38551,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "configurations": { - "default": "none", - "param_type": "keyword_only" - }, - "scale": { - "default": "none", - "param_type": "keyword_only" - }, - "service_binds": { - "default": "none", - "param_type": "keyword_only" - }, - "ingress": { + "scopes": { "default": "none", "param_type": "keyword_only" }, @@ -37847,87 +38647,15 @@ } }, "properties": { - "component_type": { - "attr_type": null - }, - "ingress": { - "attr_type": "ingress" - }, - "provisioning_state": { - "attr_type": null - }, - "configurations": { - "attr_type": "configurations" - }, - "scale": { - "attr_type": "scale" - }, - "service_binds": { - "attr_type": "service_binds" + "scopes": { + "attr_type": "scopes" }, "additional_properties": { "attr_type": null } } }, - "StorageType": { - "type": "Enum", - "methods": {}, - "properties": { - "AZURE_FILE": "AZURE_FILE", - "EMPTY_DIR": "EMPTY_DIR", - "NFS_AZURE_FILE": "NFS_AZURE_FILE", - "SECRET": "SECRET", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "SystemData": { + "LogsConfiguration": { "type": null, "methods": { "__init__": { @@ -37936,27 +38664,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "created_by": { - "default": "none", - "param_type": "keyword_only" - }, - "created_by_type": { - "default": "none", - "param_type": "keyword_only" - }, - "created_at": { - "default": "none", - "param_type": "keyword_only" - }, - "last_modified_by": { - "default": "none", - "param_type": "keyword_only" - }, - "last_modified_by_type": { - "default": "none", - "param_type": "keyword_only" - }, - "last_modified_at": { + "destinations": { "default": "none", "param_type": "keyword_only" }, @@ -38052,30 +38760,15 @@ } }, "properties": { - "created_by": { - "attr_type": "created_by" - }, - "created_by_type": { - "attr_type": "created_by_type" - }, - "created_at": { - "attr_type": "created_at" - }, - "last_modified_by": { - "attr_type": "last_modified_by" - }, - "last_modified_by_type": { - "attr_type": "last_modified_by_type" - }, - "last_modified_at": { - "attr_type": "last_modified_at" + "destinations": { + "attr_type": "destinations" }, "additional_properties": { "attr_type": null } } }, - "TcpScaleRule": { + "MaintenanceConfigurationCollection": { "type": null, "methods": { "__init__": { @@ -38084,15 +38777,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "metadata": { - "default": "none", - "param_type": "keyword_only" - }, - "auth": { - "default": "none", - "param_type": "keyword_only" - }, - "identity": { + "value": { "default": "none", "param_type": "keyword_only" }, @@ -38188,21 +38873,18 @@ } }, "properties": { - "metadata": { - "attr_type": "metadata" - }, - "auth": { - "attr_type": "auth" + "value": { + "attr_type": "value" }, - "identity": { - "attr_type": "identity" + "next_link": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "Template": { + "MaintenanceConfigurationResource": { "type": null, "methods": { "__init__": { @@ -38211,31 +38893,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "revision_suffix": { - "default": "none", - "param_type": "keyword_only" - }, - "termination_grace_period_seconds": { - "default": "none", - "param_type": "keyword_only" - }, - "init_containers": { - "default": "none", - "param_type": "keyword_only" - }, - "containers": { - "default": "none", - "param_type": "keyword_only" - }, - "scale": { - "default": "none", - "param_type": "keyword_only" - }, - "volumes": { - "default": "none", - "param_type": "keyword_only" - }, - "service_binds": { + "scheduled_entries": { "default": "none", "param_type": "keyword_only" }, @@ -38331,33 +38989,27 @@ } }, "properties": { - "revision_suffix": { - "attr_type": "revision_suffix" - }, - "termination_grace_period_seconds": { - "attr_type": "termination_grace_period_seconds" - }, - "init_containers": { - "attr_type": "init_containers" + "scheduled_entries": { + "attr_type": "scheduled_entries" }, - "containers": { - "attr_type": "containers" + "id": { + "attr_type": null }, - "scale": { - "attr_type": "scale" + "name": { + "attr_type": null }, - "volumes": { - "attr_type": "volumes" + "type": { + "attr_type": null }, - "service_binds": { - "attr_type": "service_binds" + "system_data": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "TokenStore": { + "ManagedCertificate": { "type": null, "methods": { "__init__": { @@ -38366,15 +39018,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "enabled": { - "default": "none", + "location": { + "default": null, "param_type": "keyword_only" }, - "token_refresh_extension_hours": { + "tags": { "default": "none", "param_type": "keyword_only" }, - "azure_blob_storage": { + "properties": { "default": "none", "param_type": "keyword_only" }, @@ -38470,21 +39122,33 @@ } }, "properties": { - "enabled": { - "attr_type": "enabled" + "properties": { + "attr_type": "properties" }, - "token_refresh_extension_hours": { - "attr_type": "token_refresh_extension_hours" + "tags": { + "attr_type": "tags" }, - "azure_blob_storage": { - "attr_type": "azure_blob_storage" + "location": { + "attr_type": "location" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "TrackedResource": { + "ManagedCertificateCollection": { "type": null, "methods": { "__init__": { @@ -38493,14 +39157,10 @@ "default": null, "param_type": "positional_or_keyword" }, - "location": { + "value": { "default": null, "param_type": "keyword_only" }, - "tags": { - "default": "none", - "param_type": "keyword_only" - }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -38593,22 +39253,10 @@ } }, "properties": { - "tags": { - "attr_type": "tags" - }, - "location": { - "attr_type": "location" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "type": { - "attr_type": null + "value": { + "attr_type": "value" }, - "system_data": { + "next_link": { "attr_type": null }, "additional_properties": { @@ -38616,7 +39264,63 @@ } } }, - "TrafficWeight": { + "ManagedCertificateDomainControlValidation": { + "type": "Enum", + "methods": {}, + "properties": { + "CNAME": "CNAME", + "HTTP": "HTTP", + "TXT": "TXT", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ManagedCertificatePatch": { "type": null, "methods": { "__init__": { @@ -38625,19 +39329,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "revision_name": { - "default": "none", - "param_type": "keyword_only" - }, - "weight": { - "default": "none", - "param_type": "keyword_only" - }, - "latest_revision": { - "default": "bool", - "param_type": "keyword_only" - }, - "label": { + "tags": { "default": "none", "param_type": "keyword_only" }, @@ -38733,80 +39425,15 @@ } }, "properties": { - "revision_name": { - "attr_type": "revision_name" - }, - "weight": { - "attr_type": "weight" - }, - "latest_revision": { - "attr_type": "latest_revision" - }, - "label": { - "attr_type": "label" + "tags": { + "attr_type": "tags" }, "additional_properties": { "attr_type": null } } }, - "TriggerType": { - "type": "Enum", - "methods": {}, - "properties": { - "EVENT": "EVENT", - "MANUAL": "MANUAL", - "SCHEDULE": "SCHEDULE", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "Twitter": { + "ManagedCertificateProperties": { "type": null, "methods": { "__init__": { @@ -38815,11 +39442,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "enabled": { + "subject_name": { "default": "none", "param_type": "keyword_only" }, - "registration": { + "domain_control_validation": { "default": "none", "param_type": "keyword_only" }, @@ -38915,18 +39542,27 @@ } }, "properties": { - "enabled": { - "attr_type": "enabled" + "provisioning_state": { + "attr_type": null }, - "registration": { - "attr_type": "registration" + "subject_name": { + "attr_type": "subject_name" + }, + "error": { + "attr_type": null + }, + "domain_control_validation": { + "attr_type": "domain_control_validation" + }, + "validation_token": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "TwitterRegistration": { + "ManagedEnvironment": { "type": null, "methods": { "__init__": { @@ -38935,11 +39571,91 @@ "default": null, "param_type": "positional_or_keyword" }, - "consumer_key": { + "location": { + "default": null, + "param_type": "keyword_only" + }, + "tags": { "default": "none", "param_type": "keyword_only" }, - "consumer_secret_setting_name": { + "kind": { + "default": "none", + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "dapr_ai_instrumentation_key": { + "default": "none", + "param_type": "keyword_only" + }, + "dapr_ai_connection_string": { + "default": "none", + "param_type": "keyword_only" + }, + "vnet_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "app_logs_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "app_insights_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "open_telemetry_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "zone_redundant": { + "default": "none", + "param_type": "keyword_only" + }, + "availability_zones": { + "default": "none", + "param_type": "keyword_only" + }, + "custom_domain_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "workload_profiles": { + "default": "none", + "param_type": "keyword_only" + }, + "keda_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "dapr_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "infrastructure_resource_group": { + "default": "none", + "param_type": "keyword_only" + }, + "peer_authentication": { + "default": "none", + "param_type": "keyword_only" + }, + "peer_traffic_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "ingress_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "public_network_access": { + "default": "none", + "param_type": "keyword_only" + }, + "disk_encryption_configuration": { "default": "none", "param_type": "keyword_only" }, @@ -39035,131 +39751,111 @@ } }, "properties": { - "consumer_key": { - "attr_type": "consumer_key" + "kind": { + "attr_type": "kind" }, - "consumer_secret_setting_name": { - "attr_type": "consumer_secret_setting_name" + "identity": { + "attr_type": "identity" + }, + "provisioning_state": { + "attr_type": null + }, + "dapr_ai_instrumentation_key": { + "attr_type": "dapr_ai_instrumentation_key" + }, + "dapr_ai_connection_string": { + "attr_type": "dapr_ai_connection_string" + }, + "vnet_configuration": { + "attr_type": "vnet_configuration" + }, + "deployment_errors": { + "attr_type": null + }, + "default_domain": { + "attr_type": null + }, + "private_link_default_domain": { + "attr_type": null + }, + "static_ip": { + "attr_type": null + }, + "app_logs_configuration": { + "attr_type": "app_logs_configuration" + }, + "app_insights_configuration": { + "attr_type": "app_insights_configuration" + }, + "open_telemetry_configuration": { + "attr_type": "open_telemetry_configuration" + }, + "zone_redundant": { + "attr_type": "zone_redundant" + }, + "availability_zones": { + "attr_type": "availability_zones" + }, + "custom_domain_configuration": { + "attr_type": "custom_domain_configuration" + }, + "event_stream_endpoint": { + "attr_type": null + }, + "workload_profiles": { + "attr_type": "workload_profiles" + }, + "keda_configuration": { + "attr_type": "keda_configuration" + }, + "dapr_configuration": { + "attr_type": "dapr_configuration" + }, + "infrastructure_resource_group": { + "attr_type": "infrastructure_resource_group" + }, + "peer_authentication": { + "attr_type": "peer_authentication" + }, + "peer_traffic_configuration": { + "attr_type": "peer_traffic_configuration" + }, + "ingress_configuration": { + "attr_type": "ingress_configuration" + }, + "private_endpoint_connections": { + "attr_type": null + }, + "public_network_access": { + "attr_type": "public_network_access" + }, + "disk_encryption_configuration": { + "attr_type": "disk_encryption_configuration" + }, + "tags": { + "attr_type": "tags" + }, + "location": { + "attr_type": "location" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "Type": { - "type": "Enum", - "methods": {}, - "properties": { - "LIVENESS": "LIVENESS", - "READINESS": "READINESS", - "STARTUP": "STARTUP", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "UnauthenticatedClientActionV2": { - "type": "Enum", - "methods": {}, - "properties": { - "ALLOW_ANONYMOUS": "ALLOW_ANONYMOUS", - "REDIRECT_TO_LOGIN_PAGE": "REDIRECT_TO_LOGIN_PAGE", - "RETURN401": "RETURN401", - "RETURN403": "RETURN403", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "Usage": { + "ManagedEnvironmentPropertiesPeerAuthentication": { "type": null, "methods": { "__init__": { @@ -39168,16 +39864,8 @@ "default": null, "param_type": "positional_or_keyword" }, - "current_value": { - "default": null, - "param_type": "keyword_only" - }, - "limit": { - "default": null, - "param_type": "keyword_only" - }, - "name": { - "default": null, + "mtls": { + "default": "none", "param_type": "keyword_only" }, "kwargs": { @@ -39272,21 +39960,15 @@ } }, "properties": { - "current_value": { - "attr_type": "current_value" - }, - "limit": { - "attr_type": "limit" - }, - "name": { - "attr_type": "name" + "mtls": { + "attr_type": "mtls" }, "additional_properties": { "attr_type": null } } }, - "UsageName": { + "ManagedEnvironmentPropertiesPeerTrafficConfiguration": { "type": null, "methods": { "__init__": { @@ -39295,11 +39977,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { - "default": "none", - "param_type": "keyword_only" - }, - "localized_value": { + "encryption": { "default": "none", "param_type": "keyword_only" }, @@ -39395,18 +40073,15 @@ } }, "properties": { - "value": { - "attr_type": "value" - }, - "localized_value": { - "attr_type": "localized_value" + "encryption": { + "attr_type": "encryption" }, "additional_properties": { "attr_type": null } } }, - "UserAssignedIdentity": { + "ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryption": { "type": null, "methods": { "__init__": { @@ -39415,6 +40090,10 @@ "default": null, "param_type": "positional_or_keyword" }, + "enabled": { + "default": "none", + "param_type": "keyword_only" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -39507,18 +40186,15 @@ } }, "properties": { - "principal_id": { - "attr_type": null - }, - "client_id": { - "attr_type": null + "enabled": { + "attr_type": "enabled" }, "additional_properties": { "attr_type": null } } }, - "VnetConfiguration": { + "ManagedEnvironmentStorage": { "type": null, "methods": { "__init__": { @@ -39527,23 +40203,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "internal": { - "default": "none", - "param_type": "keyword_only" - }, - "infrastructure_subnet_id": { - "default": "none", - "param_type": "keyword_only" - }, - "docker_bridge_cidr": { - "default": "none", - "param_type": "keyword_only" - }, - "platform_reserved_cidr": { - "default": "none", - "param_type": "keyword_only" - }, - "platform_reserved_dns_ip": { + "properties": { "default": "none", "param_type": "keyword_only" }, @@ -39639,27 +40299,27 @@ } }, "properties": { - "internal": { - "attr_type": "internal" + "properties": { + "attr_type": "properties" }, - "infrastructure_subnet_id": { - "attr_type": "infrastructure_subnet_id" + "id": { + "attr_type": null }, - "docker_bridge_cidr": { - "attr_type": "docker_bridge_cidr" + "name": { + "attr_type": null }, - "platform_reserved_cidr": { - "attr_type": "platform_reserved_cidr" + "type": { + "attr_type": null }, - "platform_reserved_dns_ip": { - "attr_type": "platform_reserved_dns_ip" + "system_data": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "Volume": { + "ManagedEnvironmentStorageProperties": { "type": null, "methods": { "__init__": { @@ -39668,23 +40328,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "name": { - "default": "none", - "param_type": "keyword_only" - }, - "storage_type": { - "default": "none", - "param_type": "keyword_only" - }, - "storage_name": { - "default": "none", - "param_type": "keyword_only" - }, - "secrets": { + "azure_file": { "default": "none", "param_type": "keyword_only" }, - "mount_options": { + "nfs_azure_file": { "default": "none", "param_type": "keyword_only" }, @@ -39780,27 +40428,18 @@ } }, "properties": { - "name": { - "attr_type": "name" - }, - "storage_type": { - "attr_type": "storage_type" - }, - "storage_name": { - "attr_type": "storage_name" - }, - "secrets": { - "attr_type": "secrets" + "azure_file": { + "attr_type": "azure_file" }, - "mount_options": { - "attr_type": "mount_options" + "nfs_azure_file": { + "attr_type": "nfs_azure_file" }, "additional_properties": { "attr_type": null } } }, - "VolumeMount": { + "ManagedEnvironmentStoragesCollection": { "type": null, "methods": { "__init__": { @@ -39809,16 +40448,121 @@ "default": null, "param_type": "positional_or_keyword" }, - "volume_name": { - "default": "none", + "value": { + "default": null, "param_type": "keyword_only" }, - "mount_path": { + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { "default": "none", - "param_type": "keyword_only" + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" }, - "sub_path": { + "key_extractors": { "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ManagedEnvironmentsCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, "param_type": "keyword_only" }, "kwargs": { @@ -39913,81 +40657,18 @@ } }, "properties": { - "volume_name": { - "attr_type": "volume_name" - }, - "mount_path": { - "attr_type": "mount_path" + "value": { + "attr_type": "value" }, - "sub_path": { - "attr_type": "sub_path" + "next_link": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "WeekDay": { - "type": "Enum", - "methods": {}, - "properties": { - "FRIDAY": "FRIDAY", - "MONDAY": "MONDAY", - "SATURDAY": "SATURDAY", - "SUNDAY": "SUNDAY", - "THURSDAY": "THURSDAY", - "TUESDAY": "TUESDAY", - "WEDNESDAY": "WEDNESDAY", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "WorkflowEnvelope": { + "ManagedIdentitySetting": { "type": null, "methods": { "__init__": { @@ -39996,11 +40677,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "kind": { - "default": "none", + "identity": { + "default": null, "param_type": "keyword_only" }, - "properties": { + "lifecycle": { "default": "none", "param_type": "keyword_only" }, @@ -40096,30 +40777,18 @@ } }, "properties": { - "kind": { - "attr_type": "kind" - }, - "properties": { - "attr_type": "properties" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "type": { - "attr_type": null + "identity": { + "attr_type": "identity" }, - "system_data": { - "attr_type": null + "lifecycle": { + "attr_type": "lifecycle" }, "additional_properties": { "attr_type": null } } }, - "WorkflowEnvelopeCollection": { + "ManagedServiceIdentity": { "type": null, "methods": { "__init__": { @@ -40128,10 +40797,14 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { + "type": { "default": null, "param_type": "keyword_only" }, + "user_assigned_identities": { + "default": "none", + "param_type": "keyword_only" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -40224,18 +40897,81 @@ } }, "properties": { - "value": { - "attr_type": "value" + "principal_id": { + "attr_type": null }, - "next_link": { + "tenant_id": { "attr_type": null }, + "type": { + "attr_type": "type" + }, + "user_assigned_identities": { + "attr_type": "user_assigned_identities" + }, "additional_properties": { "attr_type": null } } }, - "WorkflowEnvelopeProperties": { + "ManagedServiceIdentityType": { + "type": "Enum", + "methods": {}, + "properties": { + "NONE": "NONE", + "SYSTEM_ASSIGNED": "SYSTEM_ASSIGNED", + "SYSTEM_ASSIGNED_USER_ASSIGNED": "SYSTEM_ASSIGNED_USER_ASSIGNED", + "USER_ASSIGNED": "USER_ASSIGNED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "McpServerCredential": { "type": null, "methods": { "__init__": { @@ -40244,18 +40980,6 @@ "default": null, "param_type": "positional_or_keyword" }, - "files": { - "default": "none", - "param_type": "keyword_only" - }, - "flow_state": { - "default": "none", - "param_type": "keyword_only" - }, - "health": { - "default": "none", - "param_type": "keyword_only" - }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -40348,21 +41072,15 @@ } }, "properties": { - "files": { - "attr_type": "files" - }, - "flow_state": { - "attr_type": "flow_state" - }, - "health": { - "attr_type": "health" + "api_key": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "WorkflowHealth": { + "McpServerSettings": { "type": null, "methods": { "__init__": { @@ -40371,12 +41089,12 @@ "default": null, "param_type": "positional_or_keyword" }, - "state": { - "default": null, + "is_mcp_server_enabled": { + "default": "bool", "param_type": "keyword_only" }, - "error": { - "default": "none", + "is_mcp_server_api_key_disabled": { + "default": "bool", "param_type": "keyword_only" }, "kwargs": { @@ -40471,190 +41189,21 @@ } }, "properties": { - "state": { - "attr_type": "state" + "is_mcp_server_enabled": { + "attr_type": "is_mcp_server_enabled" }, - "error": { - "attr_type": "error" + "is_mcp_server_api_key_disabled": { + "attr_type": "is_mcp_server_api_key_disabled" + }, + "mcp_server_endpoint": { + "attr_type": null }, "additional_properties": { "attr_type": null } } }, - "WorkflowHealthState": { - "type": "Enum", - "methods": {}, - "properties": { - "HEALTHY": "HEALTHY", - "NOT_SPECIFIED": "NOT_SPECIFIED", - "UNHEALTHY": "UNHEALTHY", - "UNKNOWN": "UNKNOWN", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "WorkflowKind": { - "type": "Enum", - "methods": {}, - "properties": { - "AGENTIC": "AGENTIC", - "STATEFUL": "STATEFUL", - "STATELESS": "STATELESS", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "WorkflowState": { - "type": "Enum", - "methods": {}, - "properties": { - "COMPLETED": "COMPLETED", - "DELETED": "DELETED", - "DISABLED": "DISABLED", - "ENABLED": "ENABLED", - "NOT_SPECIFIED": "NOT_SPECIFIED", - "SUSPENDED": "SUSPENDED", - "capitalize": "capitalize", - "casefold": "casefold", - "center": "center", - "count": "count", - "encode": "encode", - "endswith": "endswith", - "expandtabs": "expandtabs", - "find": "find", - "format": "format", - "format_map": "format_map", - "index": "index", - "isalnum": "isalnum", - "isalpha": "isalpha", - "isascii": "isascii", - "isdecimal": "isdecimal", - "isdigit": "isdigit", - "isidentifier": "isidentifier", - "islower": "islower", - "isnumeric": "isnumeric", - "isprintable": "isprintable", - "isspace": "isspace", - "istitle": "istitle", - "isupper": "isupper", - "join": "join", - "ljust": "ljust", - "lower": "lower", - "lstrip": "lstrip", - "maketrans": "maketrans", - "partition": "partition", - "removeprefix": "removeprefix", - "removesuffix": "removesuffix", - "replace": "replace", - "rfind": "rfind", - "rindex": "rindex", - "rjust": "rjust", - "rpartition": "rpartition", - "rsplit": "rsplit", - "rstrip": "rstrip", - "split": "split", - "splitlines": "splitlines", - "startswith": "startswith", - "strip": "strip", - "swapcase": "swapcase", - "title": "title", - "translate": "translate", - "upper": "upper", - "zfill": "zfill" - } - }, - "WorkloadProfile": { + "MetricsConfiguration": { "type": null, "methods": { "__init__": { @@ -40663,19 +41212,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "name": { - "default": null, - "param_type": "keyword_only" - }, - "workload_profile_type": { - "default": null, - "param_type": "keyword_only" - }, - "minimum_count": { + "include_keda": { "default": "none", "param_type": "keyword_only" }, - "maximum_count": { + "destinations": { "default": "none", "param_type": "keyword_only" }, @@ -40771,24 +41312,18 @@ } }, "properties": { - "name": { - "attr_type": "name" - }, - "workload_profile_type": { - "attr_type": "workload_profile_type" - }, - "minimum_count": { - "attr_type": "minimum_count" + "include_keda": { + "attr_type": "include_keda" }, - "maximum_count": { - "attr_type": "maximum_count" + "destinations": { + "attr_type": "destinations" }, "additional_properties": { "attr_type": null } } }, - "WorkloadProfileStates": { + "Mtls": { "type": null, "methods": { "__init__": { @@ -40797,7 +41332,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "properties": { + "enabled": { "default": "none", "param_type": "keyword_only" }, @@ -40893,27 +41428,15 @@ } }, "properties": { - "properties": { - "attr_type": "properties" - }, - "id": { - "attr_type": null - }, - "name": { - "attr_type": null - }, - "type": { - "attr_type": null - }, - "system_data": { - "attr_type": null + "enabled": { + "attr_type": "enabled" }, "additional_properties": { "attr_type": null } } }, - "WorkloadProfileStatesCollection": { + "NacosComponent": { "type": null, "methods": { "__init__": { @@ -40922,8 +41445,20 @@ "default": null, "param_type": "positional_or_keyword" }, - "value": { - "default": null, + "configurations": { + "default": "none", + "param_type": "keyword_only" + }, + "scale": { + "default": "none", + "param_type": "keyword_only" + }, + "service_binds": { + "default": "none", + "param_type": "keyword_only" + }, + "ingress": { + "default": "none", "param_type": "keyword_only" }, "kwargs": { @@ -41018,18 +41553,30 @@ } }, "properties": { - "value": { - "attr_type": "value" + "component_type": { + "attr_type": null }, - "next_link": { + "ingress": { + "attr_type": "ingress" + }, + "provisioning_state": { "attr_type": null }, + "configurations": { + "attr_type": "configurations" + }, + "scale": { + "attr_type": "scale" + }, + "service_binds": { + "attr_type": "service_binds" + }, "additional_properties": { "attr_type": null } } }, - "WorkloadProfileStatesProperties": { + "NfsAzureFileProperties": { "type": null, "methods": { "__init__": { @@ -41038,15 +41585,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "minimum_count": { + "server": { "default": "none", "param_type": "keyword_only" }, - "maximum_count": { + "access_mode": { "default": "none", "param_type": "keyword_only" }, - "current_count": { + "share_name": { "default": "none", "param_type": "keyword_only" }, @@ -41142,26 +41689,21 @@ } }, "properties": { - "minimum_count": { - "attr_type": "minimum_count" + "server": { + "attr_type": "server" }, - "maximum_count": { - "attr_type": "maximum_count" + "access_mode": { + "attr_type": "access_mode" }, - "current_count": { - "attr_type": "current_count" + "share_name": { + "attr_type": "share_name" }, "additional_properties": { "attr_type": null } } - } - }, - "function_nodes": {} - }, - "azure.mgmt.appcontainers.aio": { - "class_nodes": { - "ContainerAppsAPIClient": { + }, + "Nonce": { "type": null, "methods": { "__init__": { @@ -41170,21 +41712,95 @@ "default": null, "param_type": "positional_or_keyword" }, - "credential": { + "validate_nonce": { + "default": "none", + "param_type": "keyword_only" + }, + "nonce_expiration_interval": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "subscription_id": { + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { "default": null, "param_type": "positional_or_keyword" }, - "base_url": { + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { "default": "none", "param_type": "positional_or_keyword" }, - "cloud_setting": { + "content_type": { "default": "none", - "param_type": "keyword_only" + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" }, "kwargs": { "default": null, @@ -41193,166 +41809,663 @@ }, "is_async": false, "overloads": [] + } + }, + "properties": { + "validate_nonce": { + "attr_type": "validate_nonce" }, - "close": { + "nonce_expiration_interval": { + "attr_type": "nonce_expiration_interval" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "OpenIdConnectClientCredential": { + "type": null, + "methods": { + "__init__": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" + }, + "method": { + "default": "none", + "param_type": "keyword_only" + }, + "client_secret_setting_name": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" } }, - "is_async": true, + "is_async": false, "overloads": [] }, - "get_custom_domain_verification_id": { + "as_dict": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, "kwargs": { "default": null, "param_type": "var_keyword" } }, - "is_async": true, + "is_async": false, "overloads": [] }, - "job_execution": { + "deserialize": { "parameters": { - "self": { + "data": { "default": null, "param_type": "positional_or_keyword" }, - "resource_group_name": { + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { "default": null, "param_type": "positional_or_keyword" }, - "job_name": { - "default": null, + "key_extractors": { + "default": "none", "param_type": "positional_or_keyword" }, - "job_execution_name": { + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { "default": null, "param_type": "positional_or_keyword" }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, "kwargs": { "default": null, "param_type": "var_keyword" } }, - "is_async": true, + "is_async": false, "overloads": [] } }, "properties": { - "client_side_validation": { - "attr_type": false + "method": { + "attr_type": "method" }, - "container_apps_auth_configs": { - "attr_type": "ContainerAppsAuthConfigsOperations" + "client_secret_setting_name": { + "attr_type": "client_secret_setting_name" }, - "available_workload_profiles": { - "attr_type": "AvailableWorkloadProfilesOperations" + "additional_properties": { + "attr_type": null + } + } + }, + "OpenIdConnectConfig": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "authorization_endpoint": { + "default": "none", + "param_type": "keyword_only" + }, + "token_endpoint": { + "default": "none", + "param_type": "keyword_only" + }, + "issuer": { + "default": "none", + "param_type": "keyword_only" + }, + "certification_uri": { + "default": "none", + "param_type": "keyword_only" + }, + "well_known_open_id_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] }, - "billing_meters": { - "attr_type": "BillingMetersOperations" + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] }, - "connected_environments": { - "attr_type": "ConnectedEnvironmentsOperations" + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] }, - "connected_environments_certificates": { - "attr_type": "ConnectedEnvironmentsCertificatesOperations" + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] }, - "connected_environments_dapr_components": { - "attr_type": "ConnectedEnvironmentsDaprComponentsOperations" + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] }, - "connected_environments_storages": { - "attr_type": "ConnectedEnvironmentsStoragesOperations" + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] }, - "container_apps": { - "attr_type": "ContainerAppsOperations" + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "authorization_endpoint": { + "attr_type": "authorization_endpoint" }, - "container_apps_revisions": { - "attr_type": "ContainerAppsRevisionsOperations" + "token_endpoint": { + "attr_type": "token_endpoint" }, - "container_apps_revision_replicas": { - "attr_type": "ContainerAppsRevisionReplicasOperations" + "issuer": { + "attr_type": "issuer" }, - "container_apps_diagnostics": { - "attr_type": "ContainerAppsDiagnosticsOperations" + "certification_uri": { + "attr_type": "certification_uri" }, - "managed_environment_diagnostics": { - "attr_type": "ManagedEnvironmentDiagnosticsOperations" + "well_known_open_id_configuration": { + "attr_type": "well_known_open_id_configuration" }, - "managed_environments_diagnostics": { - "attr_type": "ManagedEnvironmentsDiagnosticsOperations" + "additional_properties": { + "attr_type": null + } + } + }, + "OpenIdConnectLogin": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name_claim_type": { + "default": "none", + "param_type": "keyword_only" + }, + "scopes": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] }, - "jobs": { - "attr_type": "JobsOperations" + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] }, - "operations": { - "attr_type": "Operations" + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] }, - "java_components": { - "attr_type": "JavaComponentsOperations" + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] }, - "jobs_executions": { - "attr_type": "JobsExecutionsOperations" + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] }, - "managed_environments": { - "attr_type": "ManagedEnvironmentsOperations" + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] }, - "certificates": { - "attr_type": "CertificatesOperations" + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name_claim_type": { + "attr_type": "name_claim_type" }, - "managed_certificates": { - "attr_type": "ManagedCertificatesOperations" + "scopes": { + "attr_type": "scopes" }, - "namespaces": { - "attr_type": "NamespacesOperations" + "additional_properties": { + "attr_type": null + } + } + }, + "OpenIdConnectRegistration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_id": { + "default": "none", + "param_type": "keyword_only" + }, + "client_credential": { + "default": "none", + "param_type": "keyword_only" + }, + "open_id_connect_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] }, - "managed_environment_private_endpoint_connections": { - "attr_type": "ManagedEnvironmentPrivateEndpointConnectionsOperations" + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] }, - "managed_environment_private_link_resources": { - "attr_type": "ManagedEnvironmentPrivateLinkResourcesOperations" + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] }, - "dapr_components": { - "attr_type": "DaprComponentsOperations" + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] }, - "http_route_config": { - "attr_type": "HttpRouteConfigOperations" + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] }, - "maintenance_configurations": { - "attr_type": "MaintenanceConfigurationsOperations" + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] }, - "managed_environments_storages": { - "attr_type": "ManagedEnvironmentsStoragesOperations" + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "client_id": { + "attr_type": "client_id" }, - "container_apps_session_pools": { - "attr_type": "ContainerAppsSessionPoolsOperations" + "client_credential": { + "attr_type": "client_credential" }, - "container_apps_source_controls": { - "attr_type": "ContainerAppsSourceControlsOperations" + "open_id_connect_configuration": { + "attr_type": "open_id_connect_configuration" }, - "usages": { - "attr_type": "UsagesOperations" + "additional_properties": { + "attr_type": null + } + } + }, + "OpenTelemetryConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "destinations_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "traces_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "logs_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "metrics_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] }, - "managed_environment_usages": { - "attr_type": "ManagedEnvironmentUsagesOperations" + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] }, - "logic_apps": { - "attr_type": "LogicAppsOperations" + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "destinations_configuration": { + "attr_type": "destinations_configuration" + }, + "traces_configuration": { + "attr_type": "traces_configuration" + }, + "logs_configuration": { + "attr_type": "logs_configuration" + }, + "metrics_configuration": { + "attr_type": "metrics_configuration" + }, + "additional_properties": { + "attr_type": null } } - } - }, - "function_nodes": {} - }, - "azure.mgmt.appcontainers.aio.operations": { - "class_nodes": { - "AvailableWorkloadProfilesOperations": { + }, + "OperationDetail": { "type": null, "methods": { "__init__": { @@ -41361,16 +42474,15588 @@ "default": null, "param_type": "positional_or_keyword" }, - "args": { + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "is_data_action": { + "default": "none", + "param_type": "keyword_only" + }, + "display": { + "default": "none", + "param_type": "keyword_only" + }, + "origin": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "is_data_action": { + "attr_type": "is_data_action" + }, + "display": { + "attr_type": "display" + }, + "origin": { + "attr_type": "origin" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "OperationDisplay": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "provider": { + "default": "none", + "param_type": "keyword_only" + }, + "resource": { + "default": "none", + "param_type": "keyword_only" + }, + "operation": { + "default": "none", + "param_type": "keyword_only" + }, + "description": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "provider": { + "attr_type": "provider" + }, + "resource": { + "attr_type": "resource" + }, + "operation": { + "attr_type": "operation" + }, + "description": { + "attr_type": "description" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "OtlpConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "endpoint": { + "default": "none", + "param_type": "keyword_only" + }, + "insecure": { + "default": "none", + "param_type": "keyword_only" + }, + "headers": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "endpoint": { + "attr_type": "endpoint" + }, + "insecure": { + "attr_type": "insecure" + }, + "headers": { + "attr_type": "headers" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "PatchApplyStatus": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "CREATING_REVISION": "CREATING_REVISION", + "IMAGE_PUSH_PULL_FAILED": "IMAGE_PUSH_PULL_FAILED", + "MANUALLY_SKIPPED": "MANUALLY_SKIPPED", + "NOT_STARTED": "NOT_STARTED", + "REBASE_FAILED": "REBASE_FAILED", + "REBASE_IN_PROGRESS": "REBASE_IN_PROGRESS", + "REVISION_CREATION_FAILED": "REVISION_CREATION_FAILED", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "PatchCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "next_link": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": "next_link" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "PatchDetails": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "target_container_name": { + "attr_type": null + }, + "target_image": { + "attr_type": null + }, + "last_detection_time": { + "attr_type": null + }, + "detection_status": { + "attr_type": null + }, + "new_image_name": { + "attr_type": null + }, + "new_layer": { + "attr_type": null + }, + "old_layer": { + "attr_type": null + }, + "patch_type": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "PatchDetailsNewLayer": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "framework_and_version": { + "default": "none", + "param_type": "keyword_only" + }, + "os_and_version": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "framework_and_version": { + "attr_type": "framework_and_version" + }, + "os_and_version": { + "attr_type": "os_and_version" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "PatchDetailsOldLayer": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "framework_and_version": { + "default": "none", + "param_type": "keyword_only" + }, + "os_and_version": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "framework_and_version": { + "attr_type": "framework_and_version" + }, + "os_and_version": { + "attr_type": "os_and_version" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "PatchProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_environment_id": { + "default": "none", + "param_type": "keyword_only" + }, + "target_container_app_id": { + "default": "none", + "param_type": "keyword_only" + }, + "target_revision_id": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "target_environment_id": { + "attr_type": "target_environment_id" + }, + "target_container_app_id": { + "attr_type": "target_container_app_id" + }, + "target_revision_id": { + "attr_type": "target_revision_id" + }, + "patch_apply_status": { + "attr_type": null + }, + "created_at": { + "attr_type": null + }, + "last_modified_at": { + "attr_type": null + }, + "patch_details": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "PatchSkipConfig": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "skip": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "skip": { + "attr_type": "skip" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "PatchType": { + "type": "Enum", + "methods": {}, + "properties": { + "FRAMEWORK_AND_OS_SECURITY": "FRAMEWORK_AND_OS_SECURITY", + "FRAMEWORK_SECURITY": "FRAMEWORK_SECURITY", + "OS_SECURITY": "OS_SECURITY", + "OTHER": "OTHER", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "PatchingMode": { + "type": "Enum", + "methods": {}, + "properties": { + "AUTOMATIC": "AUTOMATIC", + "DISABLED": "DISABLED", + "MANUAL": "MANUAL", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "PoolManagementType": { + "type": "Enum", + "methods": {}, + "properties": { + "DYNAMIC": "DYNAMIC", + "MANUAL": "MANUAL", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "PreBuildStep": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "description": { + "default": "none", + "param_type": "keyword_only" + }, + "scripts": { + "default": "none", + "param_type": "keyword_only" + }, + "http_get": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "description": { + "attr_type": "description" + }, + "scripts": { + "attr_type": "scripts" + }, + "http_get": { + "attr_type": "http_get" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "PrivateEndpoint": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "PrivateEndpointConnection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "private_endpoint": { + "default": "none", + "param_type": "keyword_only" + }, + "private_link_service_connection_state": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "group_ids": { + "attr_type": null + }, + "private_endpoint": { + "attr_type": "private_endpoint" + }, + "private_link_service_connection_state": { + "attr_type": "private_link_service_connection_state" + }, + "provisioning_state": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "PrivateEndpointConnectionListResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "PrivateEndpointConnectionProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "DELETING": "DELETING", + "FAILED": "FAILED", + "PENDING": "PENDING", + "SUCCEEDED": "SUCCEEDED", + "UPDATING": "UPDATING", + "WAITING": "WAITING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "PrivateEndpointServiceConnectionStatus": { + "type": "Enum", + "methods": {}, + "properties": { + "APPROVED": "APPROVED", + "DISCONNECTED": "DISCONNECTED", + "PENDING": "PENDING", + "REJECTED": "REJECTED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "PrivateLinkResource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "required_zone_names": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "group_id": { + "attr_type": null + }, + "required_members": { + "attr_type": null + }, + "required_zone_names": { + "attr_type": "required_zone_names" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "PrivateLinkResourceListResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "PrivateLinkServiceConnectionState": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "status": { + "default": "none", + "param_type": "keyword_only" + }, + "description": { + "default": "none", + "param_type": "keyword_only" + }, + "actions_required": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "status": { + "attr_type": "status" + }, + "description": { + "attr_type": "description" + }, + "actions_required": { + "attr_type": "actions_required" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ProxyResource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "PublicNetworkAccess": { + "type": "Enum", + "methods": {}, + "properties": { + "DISABLED": "DISABLED", + "ENABLED": "ENABLED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "QueueScaleRule": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "account_name": { + "default": "none", + "param_type": "keyword_only" + }, + "queue_name": { + "default": "none", + "param_type": "keyword_only" + }, + "queue_length": { + "default": "none", + "param_type": "keyword_only" + }, + "auth": { + "default": "none", + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "account_name": { + "attr_type": "account_name" + }, + "queue_name": { + "attr_type": "queue_name" + }, + "queue_length": { + "attr_type": "queue_length" + }, + "auth": { + "attr_type": "auth" + }, + "identity": { + "attr_type": "identity" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "RegistryCredentials": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "server": { + "default": "none", + "param_type": "keyword_only" + }, + "username": { + "default": "none", + "param_type": "keyword_only" + }, + "password_secret_ref": { + "default": "none", + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "server": { + "attr_type": "server" + }, + "username": { + "attr_type": "username" + }, + "password_secret_ref": { + "attr_type": "password_secret_ref" + }, + "identity": { + "attr_type": "identity" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "RegistryInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "registry_url": { + "default": "none", + "param_type": "keyword_only" + }, + "registry_user_name": { + "default": "none", + "param_type": "keyword_only" + }, + "registry_password": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "registry_url": { + "attr_type": "registry_url" + }, + "registry_user_name": { + "attr_type": "registry_user_name" + }, + "registry_password": { + "attr_type": "registry_password" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Replica": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "containers": { + "default": "none", + "param_type": "keyword_only" + }, + "init_containers": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "created_time": { + "attr_type": null + }, + "running_state": { + "attr_type": null + }, + "running_state_details": { + "attr_type": null + }, + "containers": { + "attr_type": "containers" + }, + "init_containers": { + "attr_type": "init_containers" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ReplicaCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ReplicaContainer": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "container_id": { + "default": "none", + "param_type": "keyword_only" + }, + "ready": { + "default": "none", + "param_type": "keyword_only" + }, + "started": { + "default": "none", + "param_type": "keyword_only" + }, + "restart_count": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "container_id": { + "attr_type": "container_id" + }, + "ready": { + "attr_type": "ready" + }, + "started": { + "attr_type": "started" + }, + "restart_count": { + "attr_type": "restart_count" + }, + "running_state": { + "attr_type": null + }, + "running_state_details": { + "attr_type": null + }, + "log_stream_endpoint": { + "attr_type": null + }, + "exec_endpoint": { + "attr_type": null + }, + "debug_endpoint": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ReplicaExecutionStatus": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "containers": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "containers": { + "attr_type": "containers" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Resource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ResourceTags": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "tags": { + "attr_type": "tags" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Revision": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "created_time": { + "attr_type": null + }, + "last_active_time": { + "attr_type": null + }, + "fqdn": { + "attr_type": null + }, + "template": { + "attr_type": null + }, + "active": { + "attr_type": null + }, + "replicas": { + "attr_type": null + }, + "traffic_weight": { + "attr_type": null + }, + "labels": { + "attr_type": null + }, + "provisioning_error": { + "attr_type": null + }, + "health_state": { + "attr_type": null + }, + "provisioning_state": { + "attr_type": null + }, + "running_state": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "RevisionCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "RevisionHealthState": { + "type": "Enum", + "methods": {}, + "properties": { + "HEALTHY": "HEALTHY", + "NONE": "NONE", + "UNHEALTHY": "UNHEALTHY", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "RevisionProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "DEPROVISIONED": "DEPROVISIONED", + "DEPROVISIONING": "DEPROVISIONING", + "FAILED": "FAILED", + "PROVISIONED": "PROVISIONED", + "PROVISIONING": "PROVISIONING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "RevisionRunningState": { + "type": "Enum", + "methods": {}, + "properties": { + "DEGRADED": "DEGRADED", + "FAILED": "FAILED", + "PROCESSING": "PROCESSING", + "RUNNING": "RUNNING", + "STOPPED": "STOPPED", + "UNKNOWN": "UNKNOWN", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "Runtime": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "java": { + "default": "none", + "param_type": "keyword_only" + }, + "dotnet": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "java": { + "attr_type": "java" + }, + "dotnet": { + "attr_type": "dotnet" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "RuntimeDotnet": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "auto_configure_data_protection": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "auto_configure_data_protection": { + "attr_type": "auto_configure_data_protection" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "RuntimeJava": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "enable_metrics": { + "default": "none", + "param_type": "keyword_only" + }, + "java_agent": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enable_metrics": { + "attr_type": "enable_metrics" + }, + "java_agent": { + "attr_type": "java_agent" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "RuntimeJavaAgent": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "enabled": { + "default": "none", + "param_type": "keyword_only" + }, + "logging": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enabled": { + "attr_type": "enabled" + }, + "logging": { + "attr_type": "logging" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "RuntimeJavaAgentLogging": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logger_settings": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "logger_settings": { + "attr_type": "logger_settings" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Scale": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "min_replicas": { + "default": "none", + "param_type": "keyword_only" + }, + "max_replicas": { + "default": "int", + "param_type": "keyword_only" + }, + "cooldown_period": { + "default": "none", + "param_type": "keyword_only" + }, + "polling_interval": { + "default": "none", + "param_type": "keyword_only" + }, + "rules": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "min_replicas": { + "attr_type": "min_replicas" + }, + "max_replicas": { + "attr_type": "max_replicas" + }, + "cooldown_period": { + "attr_type": "cooldown_period" + }, + "polling_interval": { + "attr_type": "polling_interval" + }, + "rules": { + "attr_type": "rules" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ScaleConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "max_concurrent_sessions": { + "default": "none", + "param_type": "keyword_only" + }, + "ready_session_instances": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "max_concurrent_sessions": { + "attr_type": "max_concurrent_sessions" + }, + "ready_session_instances": { + "attr_type": "ready_session_instances" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ScaleRule": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "azure_queue": { + "default": "none", + "param_type": "keyword_only" + }, + "custom": { + "default": "none", + "param_type": "keyword_only" + }, + "http": { + "default": "none", + "param_type": "keyword_only" + }, + "tcp": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "azure_queue": { + "attr_type": "azure_queue" + }, + "custom": { + "attr_type": "custom" + }, + "http": { + "attr_type": "http" + }, + "tcp": { + "attr_type": "tcp" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ScaleRuleAuth": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "secret_ref": { + "default": "none", + "param_type": "keyword_only" + }, + "trigger_parameter": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "secret_ref": { + "attr_type": "secret_ref" + }, + "trigger_parameter": { + "attr_type": "trigger_parameter" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ScgRoute": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "id": { + "default": null, + "param_type": "keyword_only" + }, + "uri": { + "default": null, + "param_type": "keyword_only" + }, + "predicates": { + "default": "none", + "param_type": "keyword_only" + }, + "filters": { + "default": "none", + "param_type": "keyword_only" + }, + "order": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": "id" + }, + "uri": { + "attr_type": "uri" + }, + "predicates": { + "attr_type": "predicates" + }, + "filters": { + "attr_type": "filters" + }, + "order": { + "attr_type": "order" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ScheduledEntry": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "week_day": { + "default": null, + "param_type": "keyword_only" + }, + "start_hour_utc": { + "default": null, + "param_type": "keyword_only" + }, + "duration_hours": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "week_day": { + "attr_type": "week_day" + }, + "start_hour_utc": { + "attr_type": "start_hour_utc" + }, + "duration_hours": { + "attr_type": "duration_hours" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Scheme": { + "type": "Enum", + "methods": {}, + "properties": { + "HTTP": "HTTP", + "HTTPS": "HTTPS", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "Secret": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "key_vault_url": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "value": { + "attr_type": "value" + }, + "identity": { + "attr_type": "identity" + }, + "key_vault_url": { + "attr_type": "key_vault_url" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SecretKeyVaultProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "key_vault_url": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "identity": { + "attr_type": "identity" + }, + "key_vault_url": { + "attr_type": "key_vault_url" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SecretVolumeItem": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "secret_ref": { + "default": "none", + "param_type": "keyword_only" + }, + "path": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "secret_ref": { + "attr_type": "secret_ref" + }, + "path": { + "attr_type": "path" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SecretsCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Service": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "type": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "type": { + "attr_type": "type" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ServiceBind": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_id": { + "default": "none", + "param_type": "keyword_only" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "client_type": { + "default": "none", + "param_type": "keyword_only" + }, + "customized_keys": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "service_id": { + "attr_type": "service_id" + }, + "name": { + "attr_type": "name" + }, + "client_type": { + "attr_type": "client_type" + }, + "customized_keys": { + "attr_type": "customized_keys" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SessionContainer": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "image": { + "default": "none", + "param_type": "keyword_only" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "command": { + "default": "none", + "param_type": "keyword_only" + }, + "args": { + "default": "none", + "param_type": "keyword_only" + }, + "env": { + "default": "none", + "param_type": "keyword_only" + }, + "resources": { + "default": "none", + "param_type": "keyword_only" + }, + "probes": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "image": { + "attr_type": "image" + }, + "name": { + "attr_type": "name" + }, + "command": { + "attr_type": "command" + }, + "args": { + "attr_type": "args" + }, + "env": { + "attr_type": "env" + }, + "resources": { + "attr_type": "resources" + }, + "probes": { + "attr_type": "probes" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SessionContainerResources": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "cpu": { + "default": "none", + "param_type": "keyword_only" + }, + "memory": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "cpu": { + "attr_type": "cpu" + }, + "memory": { + "attr_type": "memory" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SessionIngress": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_port": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "target_port": { + "attr_type": "target_port" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SessionNetworkConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "status": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "status": { + "attr_type": "status" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SessionNetworkStatus": { + "type": "Enum", + "methods": {}, + "properties": { + "EGRESS_DISABLED": "EGRESS_DISABLED", + "EGRESS_ENABLED": "EGRESS_ENABLED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SessionPool": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "environment_id": { + "default": "none", + "param_type": "keyword_only" + }, + "container_type": { + "default": "none", + "param_type": "keyword_only" + }, + "pool_management_type": { + "default": "none", + "param_type": "keyword_only" + }, + "scale_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "secrets": { + "default": "none", + "param_type": "keyword_only" + }, + "dynamic_pool_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "custom_container_template": { + "default": "none", + "param_type": "keyword_only" + }, + "session_network_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "managed_identity_settings": { + "default": "none", + "param_type": "keyword_only" + }, + "mcp_server_settings": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "identity": { + "attr_type": "identity" + }, + "environment_id": { + "attr_type": "environment_id" + }, + "container_type": { + "attr_type": "container_type" + }, + "pool_management_type": { + "attr_type": "pool_management_type" + }, + "node_count": { + "attr_type": null + }, + "scale_configuration": { + "attr_type": "scale_configuration" + }, + "secrets": { + "attr_type": "secrets" + }, + "dynamic_pool_configuration": { + "attr_type": "dynamic_pool_configuration" + }, + "custom_container_template": { + "attr_type": "custom_container_template" + }, + "session_network_configuration": { + "attr_type": "session_network_configuration" + }, + "template_update_status": { + "attr_type": null + }, + "pool_management_endpoint": { + "attr_type": null + }, + "provisioning_state": { + "attr_type": null + }, + "managed_identity_settings": { + "attr_type": "managed_identity_settings" + }, + "mcp_server_settings": { + "attr_type": "mcp_server_settings" + }, + "tags": { + "attr_type": "tags" + }, + "location": { + "attr_type": "location" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SessionPoolCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SessionPoolProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "DELETING": "DELETING", + "FAILED": "FAILED", + "IN_PROGRESS": "IN_PROGRESS", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SessionPoolSecret": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "value": { + "attr_type": "value" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SessionPoolUpdatableProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "scale_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "secrets": { + "default": "none", + "param_type": "keyword_only" + }, + "dynamic_pool_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "custom_container_template": { + "default": "none", + "param_type": "keyword_only" + }, + "session_network_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "tags": { + "attr_type": "tags" + }, + "identity": { + "attr_type": "identity" + }, + "scale_configuration": { + "attr_type": "scale_configuration" + }, + "secrets": { + "attr_type": "secrets" + }, + "dynamic_pool_configuration": { + "attr_type": "dynamic_pool_configuration" + }, + "custom_container_template": { + "attr_type": "custom_container_template" + }, + "session_network_configuration": { + "attr_type": "session_network_configuration" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SessionProbe": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "type": { + "default": "none", + "param_type": "keyword_only" + }, + "http_get": { + "default": "none", + "param_type": "keyword_only" + }, + "tcp_socket": { + "default": "none", + "param_type": "keyword_only" + }, + "failure_threshold": { + "default": "none", + "param_type": "keyword_only" + }, + "initial_delay_seconds": { + "default": "none", + "param_type": "keyword_only" + }, + "period_seconds": { + "default": "none", + "param_type": "keyword_only" + }, + "success_threshold": { + "default": "none", + "param_type": "keyword_only" + }, + "termination_grace_period_seconds": { + "default": "none", + "param_type": "keyword_only" + }, + "timeout_seconds": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "type": { + "attr_type": "type" + }, + "http_get": { + "attr_type": "http_get" + }, + "tcp_socket": { + "attr_type": "tcp_socket" + }, + "failure_threshold": { + "attr_type": "failure_threshold" + }, + "initial_delay_seconds": { + "attr_type": "initial_delay_seconds" + }, + "period_seconds": { + "attr_type": "period_seconds" + }, + "success_threshold": { + "attr_type": "success_threshold" + }, + "termination_grace_period_seconds": { + "attr_type": "termination_grace_period_seconds" + }, + "timeout_seconds": { + "attr_type": "timeout_seconds" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SessionProbeHttpGet": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "port": { + "default": null, + "param_type": "keyword_only" + }, + "host": { + "default": "none", + "param_type": "keyword_only" + }, + "http_headers": { + "default": "none", + "param_type": "keyword_only" + }, + "path": { + "default": "none", + "param_type": "keyword_only" + }, + "scheme": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "host": { + "attr_type": "host" + }, + "http_headers": { + "attr_type": "http_headers" + }, + "path": { + "attr_type": "path" + }, + "port": { + "attr_type": "port" + }, + "scheme": { + "attr_type": "scheme" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SessionProbeHttpGetHttpHeadersItem": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "keyword_only" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "value": { + "attr_type": "value" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SessionProbeTcpSocket": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "port": { + "default": null, + "param_type": "keyword_only" + }, + "host": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "host": { + "attr_type": "host" + }, + "port": { + "attr_type": "port" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SessionProbeType": { + "type": "Enum", + "methods": {}, + "properties": { + "LIVENESS": "LIVENESS", + "STARTUP": "STARTUP", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SessionRegistryCredentials": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "server": { + "default": "none", + "param_type": "keyword_only" + }, + "username": { + "default": "none", + "param_type": "keyword_only" + }, + "password_secret_ref": { + "default": "none", + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "server": { + "attr_type": "server" + }, + "username": { + "attr_type": "username" + }, + "password_secret_ref": { + "attr_type": "password_secret_ref" + }, + "identity": { + "attr_type": "identity" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SmbStorage": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "host": { + "default": "none", + "param_type": "keyword_only" + }, + "share_name": { + "default": "none", + "param_type": "keyword_only" + }, + "username": { + "default": "none", + "param_type": "keyword_only" + }, + "domain": { + "default": "none", + "param_type": "keyword_only" + }, + "password": { + "default": "none", + "param_type": "keyword_only" + }, + "access_mode": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "host": { + "attr_type": "host" + }, + "share_name": { + "attr_type": "share_name" + }, + "username": { + "attr_type": "username" + }, + "domain": { + "attr_type": "domain" + }, + "password": { + "attr_type": "password" + }, + "access_mode": { + "attr_type": "access_mode" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SourceControl": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "repo_url": { + "default": "none", + "param_type": "keyword_only" + }, + "branch": { + "default": "none", + "param_type": "keyword_only" + }, + "github_action_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "operation_state": { + "attr_type": null + }, + "repo_url": { + "attr_type": "repo_url" + }, + "branch": { + "attr_type": "branch" + }, + "github_action_configuration": { + "attr_type": "github_action_configuration" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SourceControlCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SourceControlOperationState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "FAILED": "FAILED", + "IN_PROGRESS": "IN_PROGRESS", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SpringBootAdminComponent": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "configurations": { + "default": "none", + "param_type": "keyword_only" + }, + "scale": { + "default": "none", + "param_type": "keyword_only" + }, + "service_binds": { + "default": "none", + "param_type": "keyword_only" + }, + "ingress": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "component_type": { + "attr_type": null + }, + "ingress": { + "attr_type": "ingress" + }, + "provisioning_state": { + "attr_type": null + }, + "configurations": { + "attr_type": "configurations" + }, + "scale": { + "attr_type": "scale" + }, + "service_binds": { + "attr_type": "service_binds" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SpringCloudConfigComponent": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "configurations": { + "default": "none", + "param_type": "keyword_only" + }, + "scale": { + "default": "none", + "param_type": "keyword_only" + }, + "service_binds": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "component_type": { + "attr_type": null + }, + "provisioning_state": { + "attr_type": null + }, + "configurations": { + "attr_type": "configurations" + }, + "scale": { + "attr_type": "scale" + }, + "service_binds": { + "attr_type": "service_binds" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SpringCloudEurekaComponent": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "configurations": { + "default": "none", + "param_type": "keyword_only" + }, + "scale": { + "default": "none", + "param_type": "keyword_only" + }, + "service_binds": { + "default": "none", + "param_type": "keyword_only" + }, + "ingress": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "component_type": { + "attr_type": null + }, + "ingress": { + "attr_type": "ingress" + }, + "provisioning_state": { + "attr_type": null + }, + "configurations": { + "attr_type": "configurations" + }, + "scale": { + "attr_type": "scale" + }, + "service_binds": { + "attr_type": "service_binds" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SpringCloudGatewayComponent": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "configurations": { + "default": "none", + "param_type": "keyword_only" + }, + "scale": { + "default": "none", + "param_type": "keyword_only" + }, + "service_binds": { + "default": "none", + "param_type": "keyword_only" + }, + "ingress": { + "default": "none", + "param_type": "keyword_only" + }, + "spring_cloud_gateway_routes": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "component_type": { + "attr_type": null + }, + "ingress": { + "attr_type": "ingress" + }, + "spring_cloud_gateway_routes": { + "attr_type": "spring_cloud_gateway_routes" + }, + "provisioning_state": { + "attr_type": null + }, + "configurations": { + "attr_type": "configurations" + }, + "scale": { + "attr_type": "scale" + }, + "service_binds": { + "attr_type": "service_binds" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Status": { + "type": "Enum", + "methods": {}, + "properties": { + "FAILED": "FAILED", + "STARTING": "STARTING", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "StorageType": { + "type": "Enum", + "methods": {}, + "properties": { + "AZURE_FILE": "AZURE_FILE", + "EMPTY_DIR": "EMPTY_DIR", + "NFS_AZURE_FILE": "NFS_AZURE_FILE", + "SECRET": "SECRET", + "SMB": "SMB", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SystemData": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "created_by": { + "default": "none", + "param_type": "keyword_only" + }, + "created_by_type": { + "default": "none", + "param_type": "keyword_only" + }, + "created_at": { + "default": "none", + "param_type": "keyword_only" + }, + "last_modified_by": { + "default": "none", + "param_type": "keyword_only" + }, + "last_modified_by_type": { + "default": "none", + "param_type": "keyword_only" + }, + "last_modified_at": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "created_by": { + "attr_type": "created_by" + }, + "created_by_type": { + "attr_type": "created_by_type" + }, + "created_at": { + "attr_type": "created_at" + }, + "last_modified_by": { + "attr_type": "last_modified_by" + }, + "last_modified_by_type": { + "attr_type": "last_modified_by_type" + }, + "last_modified_at": { + "attr_type": "last_modified_at" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "TcpConnectionPool": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "max_connections": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "max_connections": { + "attr_type": "max_connections" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "TcpRetryPolicy": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "max_connect_attempts": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "max_connect_attempts": { + "attr_type": "max_connect_attempts" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "TcpScaleRule": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "metadata": { + "default": "none", + "param_type": "keyword_only" + }, + "auth": { + "default": "none", + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "metadata": { + "attr_type": "metadata" + }, + "auth": { + "attr_type": "auth" + }, + "identity": { + "attr_type": "identity" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Template": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_suffix": { + "default": "none", + "param_type": "keyword_only" + }, + "termination_grace_period_seconds": { + "default": "none", + "param_type": "keyword_only" + }, + "init_containers": { + "default": "none", + "param_type": "keyword_only" + }, + "containers": { + "default": "none", + "param_type": "keyword_only" + }, + "scale": { + "default": "none", + "param_type": "keyword_only" + }, + "volumes": { + "default": "none", + "param_type": "keyword_only" + }, + "service_binds": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "revision_suffix": { + "attr_type": "revision_suffix" + }, + "termination_grace_period_seconds": { + "attr_type": "termination_grace_period_seconds" + }, + "init_containers": { + "attr_type": "init_containers" + }, + "containers": { + "attr_type": "containers" + }, + "scale": { + "attr_type": "scale" + }, + "volumes": { + "attr_type": "volumes" + }, + "service_binds": { + "attr_type": "service_binds" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "TemplatePoolStatus": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "expected_count": { + "default": "none", + "param_type": "keyword_only" + }, + "ready_count": { + "default": "none", + "param_type": "keyword_only" + }, + "pending_count": { + "default": "none", + "param_type": "keyword_only" + }, + "image_pull_fail_count": { + "default": "none", + "param_type": "keyword_only" + }, + "crash_count": { + "default": "none", + "param_type": "keyword_only" + }, + "allocated_count": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "expected_count": { + "attr_type": "expected_count" + }, + "ready_count": { + "attr_type": "ready_count" + }, + "pending_count": { + "attr_type": "pending_count" + }, + "image_pull_fail_count": { + "attr_type": "image_pull_fail_count" + }, + "crash_count": { + "attr_type": "crash_count" + }, + "allocated_count": { + "attr_type": "allocated_count" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "TemplateStatus": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "details": { + "default": "none", + "param_type": "keyword_only" + }, + "created_time": { + "default": "none", + "param_type": "keyword_only" + }, + "status": { + "default": "none", + "param_type": "keyword_only" + }, + "containers": { + "default": "none", + "param_type": "keyword_only" + }, + "ingress": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "details": { + "attr_type": "details" + }, + "created_time": { + "attr_type": "created_time" + }, + "status": { + "attr_type": "status" + }, + "containers": { + "attr_type": "containers" + }, + "ingress": { + "attr_type": "ingress" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "TemplateUpdateStatus": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "active_template": { + "default": "none", + "param_type": "keyword_only" + }, + "desired_template": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "active_template": { + "attr_type": "active_template" + }, + "desired_template": { + "attr_type": "desired_template" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "TimeoutPolicy": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "response_timeout_in_seconds": { + "default": "none", + "param_type": "keyword_only" + }, + "connection_timeout_in_seconds": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "response_timeout_in_seconds": { + "attr_type": "response_timeout_in_seconds" + }, + "connection_timeout_in_seconds": { + "attr_type": "connection_timeout_in_seconds" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "TokenStore": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "enabled": { + "default": "none", + "param_type": "keyword_only" + }, + "token_refresh_extension_hours": { + "default": "none", + "param_type": "keyword_only" + }, + "azure_blob_storage": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enabled": { + "attr_type": "enabled" + }, + "token_refresh_extension_hours": { + "attr_type": "token_refresh_extension_hours" + }, + "azure_blob_storage": { + "attr_type": "azure_blob_storage" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "TracesConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "include_dapr": { + "default": "none", + "param_type": "keyword_only" + }, + "destinations": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "include_dapr": { + "attr_type": "include_dapr" + }, + "destinations": { + "attr_type": "destinations" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "TrackedResource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "tags": { + "attr_type": "tags" + }, + "location": { + "attr_type": "location" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "TrafficWeight": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": "none", + "param_type": "keyword_only" + }, + "weight": { + "default": "none", + "param_type": "keyword_only" + }, + "latest_revision": { + "default": "bool", + "param_type": "keyword_only" + }, + "label": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "revision_name": { + "attr_type": "revision_name" + }, + "weight": { + "attr_type": "weight" + }, + "latest_revision": { + "attr_type": "latest_revision" + }, + "label": { + "attr_type": "label" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "TriggerType": { + "type": "Enum", + "methods": {}, + "properties": { + "EVENT": "EVENT", + "MANUAL": "MANUAL", + "SCHEDULE": "SCHEDULE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "Twitter": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "enabled": { + "default": "none", + "param_type": "keyword_only" + }, + "registration": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enabled": { + "attr_type": "enabled" + }, + "registration": { + "attr_type": "registration" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "TwitterRegistration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "consumer_key": { + "default": "none", + "param_type": "keyword_only" + }, + "consumer_secret_setting_name": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "consumer_key": { + "attr_type": "consumer_key" + }, + "consumer_secret_setting_name": { + "attr_type": "consumer_secret_setting_name" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Type": { + "type": "Enum", + "methods": {}, + "properties": { + "LIVENESS": "LIVENESS", + "READINESS": "READINESS", + "STARTUP": "STARTUP", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "UnauthenticatedClientActionV2": { + "type": "Enum", + "methods": {}, + "properties": { + "ALLOW_ANONYMOUS": "ALLOW_ANONYMOUS", + "REDIRECT_TO_LOGIN_PAGE": "REDIRECT_TO_LOGIN_PAGE", + "RETURN401": "RETURN401", + "RETURN403": "RETURN403", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "Usage": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "current_value": { + "default": null, + "param_type": "keyword_only" + }, + "limit": { + "default": null, + "param_type": "keyword_only" + }, + "name": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "current_value": { + "attr_type": "current_value" + }, + "limit": { + "attr_type": "limit" + }, + "name": { + "attr_type": "name" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "UsageName": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "localized_value": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "localized_value": { + "attr_type": "localized_value" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "UserAssignedIdentity": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "principal_id": { + "attr_type": null + }, + "client_id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "VnetConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "internal": { + "default": "none", + "param_type": "keyword_only" + }, + "infrastructure_subnet_id": { + "default": "none", + "param_type": "keyword_only" + }, + "docker_bridge_cidr": { + "default": "none", + "param_type": "keyword_only" + }, + "platform_reserved_cidr": { + "default": "none", + "param_type": "keyword_only" + }, + "platform_reserved_dns_ip": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "internal": { + "attr_type": "internal" + }, + "infrastructure_subnet_id": { + "attr_type": "infrastructure_subnet_id" + }, + "docker_bridge_cidr": { + "attr_type": "docker_bridge_cidr" + }, + "platform_reserved_cidr": { + "attr_type": "platform_reserved_cidr" + }, + "platform_reserved_dns_ip": { + "attr_type": "platform_reserved_dns_ip" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Volume": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "storage_type": { + "default": "none", + "param_type": "keyword_only" + }, + "storage_name": { + "default": "none", + "param_type": "keyword_only" + }, + "secrets": { + "default": "none", + "param_type": "keyword_only" + }, + "mount_options": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "storage_type": { + "attr_type": "storage_type" + }, + "storage_name": { + "attr_type": "storage_name" + }, + "secrets": { + "attr_type": "secrets" + }, + "mount_options": { + "attr_type": "mount_options" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "VolumeMount": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "volume_name": { + "default": "none", + "param_type": "keyword_only" + }, + "mount_path": { + "default": "none", + "param_type": "keyword_only" + }, + "sub_path": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "volume_name": { + "attr_type": "volume_name" + }, + "mount_path": { + "attr_type": "mount_path" + }, + "sub_path": { + "attr_type": "sub_path" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "WeekDay": { + "type": "Enum", + "methods": {}, + "properties": { + "FRIDAY": "FRIDAY", + "MONDAY": "MONDAY", + "SATURDAY": "SATURDAY", + "SUNDAY": "SUNDAY", + "THURSDAY": "THURSDAY", + "TUESDAY": "TUESDAY", + "WEDNESDAY": "WEDNESDAY", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "WorkflowArtifacts": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "app_settings": { + "default": "none", + "param_type": "keyword_only" + }, + "files": { + "default": "none", + "param_type": "keyword_only" + }, + "files_to_delete": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "app_settings": { + "attr_type": "app_settings" + }, + "files": { + "attr_type": "files" + }, + "files_to_delete": { + "attr_type": "files_to_delete" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "WorkflowEnvelope": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kind": { + "default": "none", + "param_type": "keyword_only" + }, + "properties": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "kind": { + "attr_type": "kind" + }, + "properties": { + "attr_type": "properties" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "WorkflowEnvelopeCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "WorkflowEnvelopeProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "files": { + "default": "none", + "param_type": "keyword_only" + }, + "flow_state": { + "default": "none", + "param_type": "keyword_only" + }, + "health": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "files": { + "attr_type": "files" + }, + "flow_state": { + "attr_type": "flow_state" + }, + "health": { + "attr_type": "health" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "WorkflowHealth": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "state": { + "default": null, + "param_type": "keyword_only" + }, + "error": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "state": { + "attr_type": "state" + }, + "error": { + "attr_type": "error" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "WorkflowHealthState": { + "type": "Enum", + "methods": {}, + "properties": { + "HEALTHY": "HEALTHY", + "NOT_SPECIFIED": "NOT_SPECIFIED", + "UNHEALTHY": "UNHEALTHY", + "UNKNOWN": "UNKNOWN", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "WorkflowKind": { + "type": "Enum", + "methods": {}, + "properties": { + "AGENTIC": "AGENTIC", + "STATEFUL": "STATEFUL", + "STATELESS": "STATELESS", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "WorkflowState": { + "type": "Enum", + "methods": {}, + "properties": { + "COMPLETED": "COMPLETED", + "DELETED": "DELETED", + "DISABLED": "DISABLED", + "ENABLED": "ENABLED", + "NOT_SPECIFIED": "NOT_SPECIFIED", + "SUSPENDED": "SUSPENDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "WorkloadProfile": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "keyword_only" + }, + "workload_profile_type": { + "default": null, + "param_type": "keyword_only" + }, + "enable_fips": { + "default": "bool", + "param_type": "keyword_only" + }, + "minimum_count": { + "default": "none", + "param_type": "keyword_only" + }, + "maximum_count": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "enable_fips": { + "attr_type": "enable_fips" + }, + "workload_profile_type": { + "attr_type": "workload_profile_type" + }, + "minimum_count": { + "attr_type": "minimum_count" + }, + "maximum_count": { + "attr_type": "maximum_count" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "WorkloadProfileStates": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": { + "attr_type": "properties" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "WorkloadProfileStatesCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "WorkloadProfileStatesProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "minimum_count": { + "default": "none", + "param_type": "keyword_only" + }, + "maximum_count": { + "default": "none", + "param_type": "keyword_only" + }, + "current_count": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "minimum_count": { + "attr_type": "minimum_count" + }, + "maximum_count": { + "attr_type": "maximum_count" + }, + "current_count": { + "attr_type": "current_count" + }, + "additional_properties": { + "attr_type": null + } + } + } + }, + "function_nodes": {} + }, + "azure.mgmt.appcontainers.aio": { + "class_nodes": { + "ContainerAppsAPIClient": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "credential": { + "default": null, + "param_type": "positional_or_keyword" + }, + "subscription_id": { + "default": null, + "param_type": "positional_or_keyword" + }, + "base_url": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "cloud_setting": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "close": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get_custom_domain_verification_id": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "job_execution": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_execution_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": { + "client_side_validation": { + "attr_type": false + }, + "app_resiliency": { + "attr_type": "AppResiliencyOperations" + }, + "container_apps_auth_configs": { + "attr_type": "ContainerAppsAuthConfigsOperations" + }, + "available_workload_profiles": { + "attr_type": "AvailableWorkloadProfilesOperations" + }, + "billing_meters": { + "attr_type": "BillingMetersOperations" + }, + "builders": { + "attr_type": "BuildersOperations" + }, + "builds_by_builder_resource": { + "attr_type": "BuildsByBuilderResourceOperations" + }, + "builds": { + "attr_type": "BuildsOperations" + }, + "build_auth_token": { + "attr_type": "BuildAuthTokenOperations" + }, + "connected_environments": { + "attr_type": "ConnectedEnvironmentsOperations" + }, + "connected_environments_certificates": { + "attr_type": "ConnectedEnvironmentsCertificatesOperations" + }, + "connected_environments_dapr_components": { + "attr_type": "ConnectedEnvironmentsDaprComponentsOperations" + }, + "connected_environments_storages": { + "attr_type": "ConnectedEnvironmentsStoragesOperations" + }, + "container_apps": { + "attr_type": "ContainerAppsOperations" + }, + "container_apps_builds_by_container_app": { + "attr_type": "ContainerAppsBuildsByContainerAppOperations" + }, + "container_apps_builds": { + "attr_type": "ContainerAppsBuildsOperations" + }, + "container_apps_revision_functions": { + "attr_type": "ContainerAppsRevisionFunctionsOperations" + }, + "container_apps_functions": { + "attr_type": "ContainerAppsFunctionsOperations" + }, + "container_apps_label_history": { + "attr_type": "ContainerAppsLabelHistoryOperations" + }, + "container_apps_patches": { + "attr_type": "ContainerAppsPatchesOperations" + }, + "container_apps_revisions": { + "attr_type": "ContainerAppsRevisionsOperations" + }, + "container_apps_revision_replicas": { + "attr_type": "ContainerAppsRevisionReplicasOperations" + }, + "container_apps_diagnostics": { + "attr_type": "ContainerAppsDiagnosticsOperations" + }, + "managed_environment_diagnostics": { + "attr_type": "ManagedEnvironmentDiagnosticsOperations" + }, + "managed_environments_diagnostics": { + "attr_type": "ManagedEnvironmentsDiagnosticsOperations" + }, + "jobs": { + "attr_type": "JobsOperations" + }, + "dot_net_components": { + "attr_type": "DotNetComponentsOperations" + }, + "functions_extension": { + "attr_type": "FunctionsExtensionOperations" + }, + "operations": { + "attr_type": "Operations" + }, + "java_components": { + "attr_type": "JavaComponentsOperations" + }, + "jobs_executions": { + "attr_type": "JobsExecutionsOperations" + }, + "logic_apps": { + "attr_type": "LogicAppsOperations" + }, + "managed_environments": { + "attr_type": "ManagedEnvironmentsOperations" + }, + "certificates": { + "attr_type": "CertificatesOperations" + }, + "managed_certificates": { + "attr_type": "ManagedCertificatesOperations" + }, + "namespaces": { + "attr_type": "NamespacesOperations" + }, + "managed_environment_private_endpoint_connections": { + "attr_type": "ManagedEnvironmentPrivateEndpointConnectionsOperations" + }, + "managed_environment_private_link_resources": { + "attr_type": "ManagedEnvironmentPrivateLinkResourcesOperations" + }, + "dapr_component_resiliency_policies": { + "attr_type": "DaprComponentResiliencyPoliciesOperations" + }, + "dapr_components": { + "attr_type": "DaprComponentsOperations" + }, + "dapr_subscriptions": { + "attr_type": "DaprSubscriptionsOperations" + }, + "http_route_config": { + "attr_type": "HttpRouteConfigOperations" + }, + "maintenance_configurations": { + "attr_type": "MaintenanceConfigurationsOperations" + }, + "managed_environments_storages": { + "attr_type": "ManagedEnvironmentsStoragesOperations" + }, + "container_apps_session_pools": { + "attr_type": "ContainerAppsSessionPoolsOperations" + }, + "container_apps_source_controls": { + "attr_type": "ContainerAppsSourceControlsOperations" + }, + "usages": { + "attr_type": "UsagesOperations" + }, + "managed_environment_usages": { + "attr_type": "ManagedEnvironmentUsagesOperations" + } + } + } + }, + "function_nodes": {} + }, + "azure.mgmt.appcontainers.aio.operations": { + "class_nodes": { + "AppResiliencyOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resiliency_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resiliency_envelope": { + "type": "AppResiliency", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resiliency_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resiliency_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resiliency_envelope": { + "type": "AppResiliency", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "resiliency_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "AvailableWorkloadProfilesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "BillingMetersOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "BuildAuthTokenOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "build_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "BuildersOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_envelope": { + "type": "BuilderResource", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_envelope": { + "type": "BuilderResourceUpdate", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "BuildsByBuilderResourceOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "BuildsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "build_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "build_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "build_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "build_envelope": { + "type": "BuildResource", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "build_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "build_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "build_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "builder_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "build_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "CertificatesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "Optional[Certificate]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "Optional[IO[bytes]]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "CertificatePatch", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "ConnectedEnvironmentsCertificatesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "Optional[Certificate]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "Optional[IO[bytes]]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "CertificatePatch", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ConnectedEnvironmentsDaprComponentsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_envelope": { + "type": "DaprComponent", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { "default": null, - "param_type": "var_positional" + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "default": null, + "param_type": "positional_or_keyword" }, "kwargs": { "default": null, "param_type": "var_keyword" } }, - "is_async": false, + "is_async": true, "overloads": [] }, "get": { @@ -41379,7 +58064,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "location": { + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -41388,24 +58081,22 @@ "param_type": "var_keyword" } }, - "is_async": false, + "is_async": true, "overloads": [] - } - }, - "properties": {} - }, - "BillingMetersOperations": { - "type": null, - "methods": { - "__init__": { + }, + "list": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "args": { + "resource_group_name": { "default": null, - "param_type": "var_positional" + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" }, "kwargs": { "default": null, @@ -41415,13 +58106,21 @@ "is_async": false, "overloads": [] }, - "get": { + "list_secrets": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "location": { + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -41436,7 +58135,7 @@ }, "properties": {} }, - "CertificatesOperations": { + "ConnectedEnvironmentsOperations": { "type": null, "methods": { "__init__": { @@ -41457,7 +58156,7 @@ "is_async": false, "overloads": [] }, - "create_or_update": { + "begin_create_or_update": { "parameters": { "self": { "default": null, @@ -41467,18 +58166,14 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "connected_environment_name": { "default": null, "param_type": "positional_or_keyword" }, - "certificate_name": { + "environment_envelope": { "default": null, "param_type": "positional_or_keyword" }, - "certificate_envelope": { - "default": "none", - "param_type": "positional_or_keyword" - }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -41498,18 +58193,44 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "connected_environment_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "certificate_name": { + "environment_envelope": { + "type": "ConnectedEnvironment", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "certificate_envelope": { - "type": "Optional[Certificate]", + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" }, @@ -41521,7 +58242,56 @@ }, "is_async": true, "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "check_name_availability": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "check_name_availability_request": { + "default": null, + "param_type": "positional_or_keyword" }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ { "parameters": { "self": { @@ -41534,18 +58304,44 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "connected_environment_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "certificate_name": { + "check_name_availability_request": { + "type": "CheckNameAvailabilityRequest", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "certificate_envelope": { - "type": "Optional[IO[bytes]]", + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "check_name_availability_request": { + "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" }, @@ -41560,7 +58356,7 @@ } ] }, - "delete": { + "get": { "parameters": { "self": { "default": null, @@ -41570,11 +58366,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "certificate_name": { + "connected_environment_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -41586,7 +58378,7 @@ "is_async": true, "overloads": [] }, - "get": { + "list_by_resource_group": { "parameters": { "self": { "default": null, @@ -41596,11 +58388,17 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "kwargs": { "default": null, - "param_type": "positional_or_keyword" - }, - "certificate_name": { + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { "default": null, "param_type": "positional_or_keyword" }, @@ -41609,10 +58407,10 @@ "param_type": "var_keyword" } }, - "is_async": true, + "is_async": false, "overloads": [] }, - "list": { + "update": { "parameters": { "self": { "default": null, @@ -41622,10 +58420,101 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "Optional[ConnectedEnvironmentPatchResource]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_envelope": { + "type": "Optional[IO[bytes]]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "ConnectedEnvironmentsStoragesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { "default": null, "param_type": "positional_or_keyword" }, + "args": { + "default": null, + "param_type": "var_positional" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -41634,7 +58523,7 @@ "is_async": false, "overloads": [] }, - "update": { + "begin_create_or_update": { "parameters": { "self": { "default": null, @@ -41644,15 +58533,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "connected_environment_name": { "default": null, "param_type": "positional_or_keyword" }, - "certificate_name": { + "storage_name": { "default": null, "param_type": "positional_or_keyword" }, - "certificate_envelope": { + "storage_envelope": { "default": null, "param_type": "positional_or_keyword" }, @@ -41675,18 +58564,18 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "connected_environment_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "certificate_name": { + "storage_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "certificate_envelope": { - "type": "CertificatePatch", + "storage_envelope": { + "type": "ConnectedEnvironmentStorage", "default": null, "param_type": "positional_or_keyword" }, @@ -41711,17 +58600,17 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "connected_environment_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "certificate_name": { + "storage_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "certificate_envelope": { + "storage_envelope": { "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" @@ -41736,11 +58625,85 @@ "return_type": null } ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connected_environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] } }, "properties": {} }, - "ConnectedEnvironmentsCertificatesOperations": { + "ContainerAppsAuthConfigsOperations": { "type": null, "methods": { "__init__": { @@ -41761,7 +58724,7 @@ "is_async": false, "overloads": [] }, - "begin_create_or_update": { + "create_or_update": { "parameters": { "self": { "default": null, @@ -41771,16 +58734,16 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, - "certificate_name": { + "auth_config_name": { "default": null, "param_type": "positional_or_keyword" }, - "certificate_envelope": { - "default": "none", + "auth_config_envelope": { + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -41802,18 +58765,18 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "container_app_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "certificate_name": { + "auth_config_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "certificate_envelope": { - "type": "Optional[Certificate]", + "auth_config_envelope": { + "type": "AuthConfig", "default": null, "param_type": "positional_or_keyword" }, @@ -41838,18 +58801,18 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "container_app_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "certificate_name": { + "auth_config_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "certificate_envelope": { - "type": "Optional[IO[bytes]]", + "auth_config_envelope": { + "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" }, @@ -41864,7 +58827,7 @@ } ] }, - "begin_delete": { + "delete": { "parameters": { "self": { "default": null, @@ -41874,23 +58837,95 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_config_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_by_container_app": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsBuildsByContainerAppOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "certificate_name": { + "args": { "default": null, - "param_type": "positional_or_keyword" + "param_type": "var_positional" }, "kwargs": { "default": null, "param_type": "var_keyword" } }, - "is_async": true, + "is_async": false, "overloads": [] }, - "begin_update": { + "list": { "parameters": { "self": { "default": null, @@ -41900,100 +58935,43 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, - "certificate_name": { + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsBuildsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "certificate_envelope": { + "args": { "default": null, - "param_type": "positional_or_keyword" + "param_type": "var_positional" }, "kwargs": { "default": null, "param_type": "var_keyword" } }, - "is_async": true, - "overloads": [ - { - "parameters": { - "self": { - "type": null, - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "connected_environment_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "certificate_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "certificate_envelope": { - "type": "CertificatePatch", - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "type": "str", - "default": "application/json", - "param_type": "keyword_only" - } - }, - "is_async": true, - "return_type": null - }, - { - "parameters": { - "self": { - "type": null, - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "connected_environment_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "certificate_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "certificate_envelope": { - "type": "IO[bytes]", - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "type": "str", - "default": "application/json", - "param_type": "keyword_only" - } - }, - "is_async": true, - "return_type": null - } - ] + "is_async": false, + "overloads": [] }, - "get": { + "begin_delete": { "parameters": { "self": { "default": null, @@ -42003,11 +58981,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, - "certificate_name": { + "build_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -42019,7 +58997,7 @@ "is_async": true, "overloads": [] }, - "list": { + "get": { "parameters": { "self": { "default": null, @@ -42029,7 +59007,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "build_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -42038,13 +59020,13 @@ "param_type": "var_keyword" } }, - "is_async": false, + "is_async": true, "overloads": [] } }, "properties": {} }, - "ConnectedEnvironmentsDaprComponentsOperations": { + "ContainerAppsDiagnosticsOperations": { "type": null, "methods": { "__init__": { @@ -42065,7 +59047,7 @@ "is_async": false, "overloads": [] }, - "begin_create_or_update": { + "get_detector": { "parameters": { "self": { "default": null, @@ -42075,15 +59057,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "component_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, - "dapr_component_envelope": { + "detector_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -42093,82 +59071,9 @@ } }, "is_async": true, - "overloads": [ - { - "parameters": { - "self": { - "type": null, - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "connected_environment_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "component_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "dapr_component_envelope": { - "type": "DaprComponent", - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "type": "str", - "default": "application/json", - "param_type": "keyword_only" - } - }, - "is_async": true, - "return_type": null - }, - { - "parameters": { - "self": { - "type": null, - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "connected_environment_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "component_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "dapr_component_envelope": { - "type": "IO[bytes]", - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "type": "str", - "default": "application/json", - "param_type": "keyword_only" - } - }, - "is_async": true, - "return_type": null - } - ] + "overloads": [] }, - "begin_delete": { + "get_revision": { "parameters": { "self": { "default": null, @@ -42178,11 +59083,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, - "component_name": { + "revision_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -42194,7 +59099,7 @@ "is_async": true, "overloads": [] }, - "get": { + "get_root": { "parameters": { "self": { "default": null, @@ -42204,11 +59109,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "component_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -42220,7 +59121,7 @@ "is_async": true, "overloads": [] }, - "list": { + "list_detectors": { "parameters": { "self": { "default": null, @@ -42230,7 +59131,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -42242,7 +59143,7 @@ "is_async": false, "overloads": [] }, - "list_secrets": { + "list_revisions": { "parameters": { "self": { "default": null, @@ -42252,12 +59153,12 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, - "component_name": { - "default": null, + "filter": { + "default": "none", "param_type": "positional_or_keyword" }, "kwargs": { @@ -42265,13 +59166,13 @@ "param_type": "var_keyword" } }, - "is_async": true, + "is_async": false, "overloads": [] } }, "properties": {} }, - "ConnectedEnvironmentsOperations": { + "ContainerAppsFunctionsOperations": { "type": null, "methods": { "__init__": { @@ -42292,7 +59193,7 @@ "is_async": false, "overloads": [] }, - "begin_create_or_update": { + "get": { "parameters": { "self": { "default": null, @@ -42302,11 +59203,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, - "environment_envelope": { + "function_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -42316,72 +59217,9 @@ } }, "is_async": true, - "overloads": [ - { - "parameters": { - "self": { - "type": null, - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "connected_environment_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "environment_envelope": { - "type": "ConnectedEnvironment", - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "type": "str", - "default": "application/json", - "param_type": "keyword_only" - } - }, - "is_async": true, - "return_type": null - }, - { - "parameters": { - "self": { - "type": null, - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "connected_environment_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "environment_envelope": { - "type": "IO[bytes]", - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "type": "str", - "default": "application/json", - "param_type": "keyword_only" - } - }, - "is_async": true, - "return_type": null - } - ] + "overloads": [] }, - "begin_delete": { + "list": { "parameters": { "self": { "default": null, @@ -42391,7 +59229,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -42400,10 +59238,34 @@ "param_type": "var_keyword" } }, - "is_async": true, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsLabelHistoryOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, "overloads": [] }, - "check_name_availability": { + "delete_label_history": { "parameters": { "self": { "default": null, @@ -42413,11 +59275,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, - "check_name_availability_request": { + "label_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -42427,72 +59289,9 @@ } }, "is_async": true, - "overloads": [ - { - "parameters": { - "self": { - "type": null, - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "connected_environment_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "check_name_availability_request": { - "type": "CheckNameAvailabilityRequest", - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "type": "str", - "default": "application/json", - "param_type": "keyword_only" - } - }, - "is_async": true, - "return_type": null - }, - { - "parameters": { - "self": { - "type": null, - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "connected_environment_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "check_name_availability_request": { - "type": "IO[bytes]", - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "type": "str", - "default": "application/json", - "param_type": "keyword_only" - } - }, - "is_async": true, - "return_type": null - } - ] + "overloads": [] }, - "get": { + "get_label_history": { "parameters": { "self": { "default": null, @@ -42502,7 +59301,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "label_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -42514,7 +59317,7 @@ "is_async": true, "overloads": [] }, - "list_by_resource_group": { + "list_label_history": { "parameters": { "self": { "default": null, @@ -42524,6 +59327,14 @@ "default": null, "param_type": "positional_or_keyword" }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "filter": { + "default": "none", + "param_type": "positional_or_keyword" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -42531,13 +59342,23 @@ }, "is_async": false, "overloads": [] - }, - "list_by_subscription": { + } + }, + "properties": {} + }, + "ContainerAppsOperations": { + "type": null, + "methods": { + "__init__": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, + "args": { + "default": null, + "param_type": "var_positional" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -42546,7 +59367,7 @@ "is_async": false, "overloads": [] }, - "update": { + "begin_create_or_update": { "parameters": { "self": { "default": null, @@ -42556,11 +59377,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, - "environment_envelope": { + "container_app_envelope": { "default": null, "param_type": "positional_or_keyword" }, @@ -42583,13 +59404,13 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "container_app_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "environment_envelope": { - "type": "ConnectedEnvironmentPatchResource", + "container_app_envelope": { + "type": "ContainerApp", "default": null, "param_type": "positional_or_keyword" }, @@ -42614,12 +59435,12 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "container_app_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "environment_envelope": { + "container_app_envelope": { "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" @@ -42634,32 +59455,74 @@ "return_type": null } ] - } - }, - "properties": {} - }, - "ConnectedEnvironmentsStoragesOperations": { - "type": null, - "methods": { - "__init__": { + }, + "begin_delete": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "args": { + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_start": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_stop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { "default": null, - "param_type": "var_positional" + "param_type": "positional_or_keyword" }, "kwargs": { "default": null, "param_type": "var_keyword" } }, - "is_async": false, + "is_async": true, "overloads": [] }, - "begin_create_or_update": { + "begin_update": { "parameters": { "self": { "default": null, @@ -42669,15 +59532,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "storage_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, - "storage_envelope": { + "container_app_envelope": { "default": null, "param_type": "positional_or_keyword" }, @@ -42700,18 +59559,13 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "storage_name": { + "container_app_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "storage_envelope": { - "type": "ConnectedEnvironmentStorage", + "container_app_envelope": { + "type": "ContainerApp", "default": null, "param_type": "positional_or_keyword" }, @@ -42736,17 +59590,12 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "storage_name": { + "container_app_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "storage_envelope": { + "container_app_envelope": { "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" @@ -42762,7 +59611,7 @@ } ] }, - "begin_delete": { + "get": { "parameters": { "self": { "default": null, @@ -42772,11 +59621,29 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, - "storage_name": { + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get_auth_token": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -42788,7 +59655,7 @@ "is_async": true, "overloads": [] }, - "get": { + "list_by_resource_group": { "parameters": { "self": { "default": null, @@ -42798,14 +59665,46 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { "default": null, "param_type": "positional_or_keyword" }, - "storage_name": { + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_custom_host_name_analysis": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, + "custom_hostname": { + "default": "none", + "param_type": "positional_or_keyword" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -42814,7 +59713,7 @@ "is_async": true, "overloads": [] }, - "list": { + "list_secrets": { "parameters": { "self": { "default": null, @@ -42824,7 +59723,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "connected_environment_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -42839,7 +59738,7 @@ }, "properties": {} }, - "ContainerAppsAuthConfigsOperations": { + "ContainerAppsPatchesOperations": { "type": null, "methods": { "__init__": { @@ -42860,7 +59759,7 @@ "is_async": false, "overloads": [] }, - "create_or_update": { + "begin_apply": { "parameters": { "self": { "default": null, @@ -42874,11 +59773,63 @@ "default": null, "param_type": "positional_or_keyword" }, - "auth_config_name": { + "patch_name": { "default": null, "param_type": "positional_or_keyword" }, - "auth_config_envelope": { + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "patch_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_skip_configure": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "patch_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "patch_skip_config": { "default": null, "param_type": "positional_or_keyword" }, @@ -42906,13 +59857,13 @@ "default": null, "param_type": "positional_or_keyword" }, - "auth_config_name": { + "patch_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "auth_config_envelope": { - "type": "AuthConfig", + "patch_skip_config": { + "type": "PatchSkipConfig", "default": null, "param_type": "positional_or_keyword" }, @@ -42942,12 +59893,12 @@ "default": null, "param_type": "positional_or_keyword" }, - "auth_config_name": { + "patch_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "auth_config_envelope": { + "patch_skip_config": { "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" @@ -42963,7 +59914,7 @@ } ] }, - "delete": { + "get": { "parameters": { "self": { "default": null, @@ -42977,7 +59928,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "auth_config_name": { + "patch_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -42989,6 +59940,56 @@ "is_async": true, "overloads": [] }, + "list_by_container_app": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "filter": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsRevisionFunctionsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, "get": { "parameters": { "self": { @@ -43003,7 +60004,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "auth_config_name": { + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "function_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -43015,7 +60020,7 @@ "is_async": true, "overloads": [] }, - "list_by_container_app": { + "list": { "parameters": { "self": { "default": null, @@ -43029,6 +60034,10 @@ "default": null, "param_type": "positional_or_keyword" }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -43040,7 +60049,7 @@ }, "properties": {} }, - "ContainerAppsDiagnosticsOperations": { + "ContainerAppsRevisionReplicasOperations": { "type": null, "methods": { "__init__": { @@ -43061,7 +60070,7 @@ "is_async": false, "overloads": [] }, - "get_detector": { + "get_replica": { "parameters": { "self": { "default": null, @@ -43075,7 +60084,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "detector_name": { + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "replica_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -43087,7 +60100,57 @@ "is_async": true, "overloads": [] }, - "get_revision": { + "list_replicas": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "ContainerAppsRevisionsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "activate_revision": { "parameters": { "self": { "default": null, @@ -43113,7 +60176,7 @@ "is_async": true, "overloads": [] }, - "get_root": { + "deactivate_revision": { "parameters": { "self": { "default": null, @@ -43127,6 +60190,10 @@ "default": null, "param_type": "positional_or_keyword" }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -43135,7 +60202,7 @@ "is_async": true, "overloads": [] }, - "list_detectors": { + "get_revision": { "parameters": { "self": { "default": null, @@ -43149,12 +60216,16 @@ "default": null, "param_type": "positional_or_keyword" }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, "kwargs": { "default": null, "param_type": "var_keyword" } }, - "is_async": false, + "is_async": true, "overloads": [] }, "list_revisions": { @@ -43182,11 +60253,37 @@ }, "is_async": false, "overloads": [] + }, + "restart_revision": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] } }, "properties": {} }, - "ContainerAppsOperations": { + "ContainerAppsSessionPoolsOperations": { "type": null, "methods": { "__init__": { @@ -43217,11 +60314,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { + "session_pool_name": { "default": null, "param_type": "positional_or_keyword" }, - "container_app_envelope": { + "session_pool_envelope": { "default": null, "param_type": "positional_or_keyword" }, @@ -43244,13 +60341,13 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { + "session_pool_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "container_app_envelope": { - "type": "ContainerApp", + "session_pool_envelope": { + "type": "SessionPool", "default": null, "param_type": "positional_or_keyword" }, @@ -43275,12 +60372,12 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { + "session_pool_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "container_app_envelope": { + "session_pool_envelope": { "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" @@ -43302,23 +60399,188 @@ "default": null, "param_type": "positional_or_keyword" }, - "resource_group_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "container_app_name": { - "default": null, - "param_type": "positional_or_keyword" - }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_envelope": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_envelope": { + "type": "SessionPoolUpdatableProperties", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "fetch_mcp_server_credentials": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "session_pool_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, "kwargs": { "default": null, "param_type": "var_keyword" } }, - "is_async": true, + "is_async": false, "overloads": [] }, - "begin_start": { + "rotate_mcp_server_credentials": { "parameters": { "self": { "default": null, @@ -43328,7 +60590,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { + "session_pool_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -43339,30 +60601,32 @@ }, "is_async": true, "overloads": [] - }, - "begin_stop": { + } + }, + "properties": {} + }, + "ContainerAppsSourceControlsOperations": { + "type": null, + "methods": { + "__init__": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "resource_group_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "container_app_name": { + "args": { "default": null, - "param_type": "positional_or_keyword" + "param_type": "var_positional" }, "kwargs": { "default": null, "param_type": "var_keyword" } }, - "is_async": true, + "is_async": false, "overloads": [] }, - "begin_update": { + "begin_create_or_update": { "parameters": { "self": { "default": null, @@ -43376,10 +60640,18 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_envelope": { + "source_control_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_envelope": { "default": null, "param_type": "positional_or_keyword" }, + "x_ms_github_auxiliary": { + "default": "none", + "param_type": "positional_or_keyword" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -43404,8 +60676,18 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_envelope": { - "type": "ContainerApp", + "source_control_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_envelope": { + "type": "SourceControl", + "default": null, + "param_type": "positional_or_keyword" + }, + "x_ms_github_auxiliary": { + "type": "Optional[str]", "default": null, "param_type": "positional_or_keyword" }, @@ -43435,11 +60717,21 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_envelope": { + "source_control_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "source_control_envelope": { "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" }, + "x_ms_github_auxiliary": { + "type": "Optional[str]", + "default": null, + "param_type": "positional_or_keyword" + }, "content_type": { "type": "str", "default": "application/json", @@ -43451,7 +60743,7 @@ } ] }, - "get": { + "begin_delete": { "parameters": { "self": { "default": null, @@ -43465,6 +60757,22 @@ "default": null, "param_type": "positional_or_keyword" }, + "source_control_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "x_ms_github_auxiliary": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "ignore_workflow_deletion_failure": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "delete_workflow": { + "default": "none", + "param_type": "positional_or_keyword" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -43473,7 +60781,7 @@ "is_async": true, "overloads": [] }, - "get_auth_token": { + "get": { "parameters": { "self": { "default": null, @@ -43487,6 +60795,10 @@ "default": null, "param_type": "positional_or_keyword" }, + "source_control_name": { + "default": null, + "param_type": "positional_or_keyword" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -43495,7 +60807,7 @@ "is_async": true, "overloads": [] }, - "list_by_resource_group": { + "list_by_container_app": { "parameters": { "self": { "default": null, @@ -43505,6 +60817,10 @@ "default": null, "param_type": "positional_or_keyword" }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -43512,13 +60828,23 @@ }, "is_async": false, "overloads": [] - }, - "list_by_subscription": { + } + }, + "properties": {} + }, + "DaprComponentResiliencyPoliciesOperations": { + "type": null, + "methods": { + "__init__": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, + "args": { + "default": null, + "param_type": "var_positional" + }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -43527,7 +60853,7 @@ "is_async": false, "overloads": [] }, - "list_custom_host_name_analysis": { + "create_or_update": { "parameters": { "self": { "default": null, @@ -43537,12 +60863,20 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { + "environment_name": { "default": null, "param_type": "positional_or_keyword" }, - "custom_hostname": { - "default": "none", + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_resiliency_policy_envelope": { + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -43551,9 +60885,92 @@ } }, "is_async": true, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_resiliency_policy_envelope": { + "type": "DaprComponentResiliencyPolicy", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_resiliency_policy_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] }, - "list_secrets": { + "delete": { "parameters": { "self": { "default": null, @@ -43563,43 +60980,27 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { + "environment_name": { "default": null, "param_type": "positional_or_keyword" }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": true, - "overloads": [] - } - }, - "properties": {} - }, - "ContainerAppsRevisionReplicasOperations": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { + "component_name": { "default": null, "param_type": "positional_or_keyword" }, - "args": { + "name": { "default": null, - "param_type": "var_positional" + "param_type": "positional_or_keyword" }, "kwargs": { "default": null, "param_type": "var_keyword" } }, - "is_async": false, + "is_async": true, "overloads": [] }, - "get_replica": { + "get": { "parameters": { "self": { "default": null, @@ -43609,15 +61010,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { + "environment_name": { "default": null, "param_type": "positional_or_keyword" }, - "revision_name": { + "component_name": { "default": null, "param_type": "positional_or_keyword" }, - "replica_name": { + "name": { "default": null, "param_type": "positional_or_keyword" }, @@ -43629,7 +61030,7 @@ "is_async": true, "overloads": [] }, - "list_replicas": { + "list": { "parameters": { "self": { "default": null, @@ -43639,11 +61040,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { + "environment_name": { "default": null, "param_type": "positional_or_keyword" }, - "revision_name": { + "component_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -43652,13 +61053,13 @@ "param_type": "var_keyword" } }, - "is_async": true, + "is_async": false, "overloads": [] } }, "properties": {} }, - "ContainerAppsRevisionsOperations": { + "DaprComponentsOperations": { "type": null, "methods": { "__init__": { @@ -43679,7 +61080,7 @@ "is_async": false, "overloads": [] }, - "activate_revision": { + "create_or_update": { "parameters": { "self": { "default": null, @@ -43689,11 +61090,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { + "environment_name": { "default": null, "param_type": "positional_or_keyword" }, - "revision_name": { + "component_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_envelope": { "default": null, "param_type": "positional_or_keyword" }, @@ -43703,9 +61108,82 @@ } }, "is_async": true, - "overloads": [] + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_envelope": { + "type": "DaprComponent", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "environment_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "component_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_component_envelope": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] }, - "deactivate_revision": { + "delete": { "parameters": { "self": { "default": null, @@ -43715,11 +61193,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { + "environment_name": { "default": null, "param_type": "positional_or_keyword" }, - "revision_name": { + "component_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -43731,7 +61209,7 @@ "is_async": true, "overloads": [] }, - "get_revision": { + "get": { "parameters": { "self": { "default": null, @@ -43741,11 +61219,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { + "environment_name": { "default": null, "param_type": "positional_or_keyword" }, - "revision_name": { + "component_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -43757,7 +61235,7 @@ "is_async": true, "overloads": [] }, - "list_revisions": { + "list": { "parameters": { "self": { "default": null, @@ -43767,14 +61245,10 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { + "environment_name": { "default": null, "param_type": "positional_or_keyword" }, - "filter": { - "default": "none", - "param_type": "positional_or_keyword" - }, "kwargs": { "default": null, "param_type": "var_keyword" @@ -43783,7 +61257,7 @@ "is_async": false, "overloads": [] }, - "restart_revision": { + "list_secrets": { "parameters": { "self": { "default": null, @@ -43793,11 +61267,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { + "environment_name": { "default": null, "param_type": "positional_or_keyword" }, - "revision_name": { + "component_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -43812,7 +61286,7 @@ }, "properties": {} }, - "ContainerAppsSessionPoolsOperations": { + "DaprSubscriptionsOperations": { "type": null, "methods": { "__init__": { @@ -43833,7 +61307,7 @@ "is_async": false, "overloads": [] }, - "begin_create_or_update": { + "create_or_update": { "parameters": { "self": { "default": null, @@ -43843,11 +61317,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "session_pool_name": { + "environment_name": { "default": null, "param_type": "positional_or_keyword" }, - "session_pool_envelope": { + "name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_subscription_envelope": { "default": null, "param_type": "positional_or_keyword" }, @@ -43870,13 +61348,18 @@ "default": null, "param_type": "positional_or_keyword" }, - "session_pool_name": { + "environment_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "session_pool_envelope": { - "type": "SessionPool", + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_subscription_envelope": { + "type": "DaprSubscription", "default": null, "param_type": "positional_or_keyword" }, @@ -43901,12 +61384,17 @@ "default": null, "param_type": "positional_or_keyword" }, - "session_pool_name": { + "environment_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "session_pool_envelope": { + "name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "dapr_subscription_envelope": { "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" @@ -43922,29 +61410,7 @@ } ] }, - "begin_delete": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "session_pool_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": true, - "overloads": [] - }, - "begin_update": { + "delete": { "parameters": { "self": { "default": null, @@ -43954,11 +61420,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "session_pool_name": { + "environment_name": { "default": null, "param_type": "positional_or_keyword" }, - "session_pool_envelope": { + "name": { "default": null, "param_type": "positional_or_keyword" }, @@ -43968,70 +61434,7 @@ } }, "is_async": true, - "overloads": [ - { - "parameters": { - "self": { - "type": null, - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "session_pool_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "session_pool_envelope": { - "type": "SessionPoolUpdatableProperties", - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "type": "str", - "default": "application/json", - "param_type": "keyword_only" - } - }, - "is_async": true, - "return_type": null - }, - { - "parameters": { - "self": { - "type": null, - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "session_pool_name": { - "type": "str", - "default": null, - "param_type": "positional_or_keyword" - }, - "session_pool_envelope": { - "type": "IO[bytes]", - "default": null, - "param_type": "positional_or_keyword" - }, - "content_type": { - "type": "str", - "default": "application/json", - "param_type": "keyword_only" - } - }, - "is_async": true, - "return_type": null - } - ] + "overloads": [] }, "get": { "parameters": { @@ -44043,7 +61446,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "session_pool_name": { + "environment_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { "default": null, "param_type": "positional_or_keyword" }, @@ -44055,7 +61462,7 @@ "is_async": true, "overloads": [] }, - "list_by_resource_group": { + "list": { "parameters": { "self": { "default": null, @@ -44065,17 +61472,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "list_by_subscription": { - "parameters": { - "self": { + "environment_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -44090,7 +61487,7 @@ }, "properties": {} }, - "ContainerAppsSourceControlsOperations": { + "DotNetComponentsOperations": { "type": null, "methods": { "__init__": { @@ -44121,15 +61518,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { + "environment_name": { "default": null, "param_type": "positional_or_keyword" }, - "source_control_name": { + "name": { "default": null, "param_type": "positional_or_keyword" }, - "source_control_envelope": { + "dot_net_component_envelope": { "default": null, "param_type": "positional_or_keyword" }, @@ -44152,18 +61549,18 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { + "environment_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "source_control_name": { + "name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "source_control_envelope": { - "type": "SourceControl", + "dot_net_component_envelope": { + "type": "DotNetComponent", "default": null, "param_type": "positional_or_keyword" }, @@ -44188,17 +61585,17 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { + "environment_name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "source_control_name": { + "name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "source_control_envelope": { + "dot_net_component_envelope": { "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" @@ -44224,37 +61621,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "container_app_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "source_control_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": true, - "overloads": [] - }, - "get": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "container_app_name": { + "environment_name": { "default": null, "param_type": "positional_or_keyword" }, - "source_control_name": { + "name": { "default": null, "param_type": "positional_or_keyword" }, @@ -44266,53 +61637,7 @@ "is_async": true, "overloads": [] }, - "list_by_container_app": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "resource_group_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "container_app_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - } - }, - "properties": {} - }, - "DaprComponentsOperations": { - "type": null, - "methods": { - "__init__": { - "parameters": { - "self": { - "default": null, - "param_type": "positional_or_keyword" - }, - "args": { - "default": null, - "param_type": "var_positional" - }, - "kwargs": { - "default": null, - "param_type": "var_keyword" - } - }, - "is_async": false, - "overloads": [] - }, - "create_or_update": { + "begin_update": { "parameters": { "self": { "default": null, @@ -44326,11 +61651,11 @@ "default": null, "param_type": "positional_or_keyword" }, - "component_name": { + "name": { "default": null, "param_type": "positional_or_keyword" }, - "dapr_component_envelope": { + "dot_net_component_envelope": { "default": null, "param_type": "positional_or_keyword" }, @@ -44358,13 +61683,13 @@ "default": null, "param_type": "positional_or_keyword" }, - "component_name": { + "name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "dapr_component_envelope": { - "type": "DaprComponent", + "dot_net_component_envelope": { + "type": "DotNetComponent", "default": null, "param_type": "positional_or_keyword" }, @@ -44394,12 +61719,12 @@ "default": null, "param_type": "positional_or_keyword" }, - "component_name": { + "name": { "type": "str", "default": null, "param_type": "positional_or_keyword" }, - "dapr_component_envelope": { + "dot_net_component_envelope": { "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" @@ -44415,7 +61740,7 @@ } ] }, - "delete": { + "get": { "parameters": { "self": { "default": null, @@ -44429,7 +61754,7 @@ "default": null, "param_type": "positional_or_keyword" }, - "component_name": { + "name": { "default": null, "param_type": "positional_or_keyword" }, @@ -44441,7 +61766,7 @@ "is_async": true, "overloads": [] }, - "get": { + "list": { "parameters": { "self": { "default": null, @@ -44455,31 +61780,29 @@ "default": null, "param_type": "positional_or_keyword" }, - "component_name": { - "default": null, - "param_type": "positional_or_keyword" - }, "kwargs": { "default": null, "param_type": "var_keyword" } }, - "is_async": true, + "is_async": false, "overloads": [] - }, - "list": { + } + }, + "properties": {} + }, + "FunctionsExtensionOperations": { + "type": null, + "methods": { + "__init__": { "parameters": { "self": { "default": null, "param_type": "positional_or_keyword" }, - "resource_group_name": { - "default": null, - "param_type": "positional_or_keyword" - }, - "environment_name": { + "args": { "default": null, - "param_type": "positional_or_keyword" + "param_type": "var_positional" }, "kwargs": { "default": null, @@ -44489,7 +61812,7 @@ "is_async": false, "overloads": [] }, - "list_secrets": { + "invoke_functions_host": { "parameters": { "self": { "default": null, @@ -44499,11 +61822,15 @@ "default": null, "param_type": "positional_or_keyword" }, - "environment_name": { + "container_app_name": { "default": null, "param_type": "positional_or_keyword" }, - "component_name": { + "revision_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "function_app_name": { "default": null, "param_type": "positional_or_keyword" }, @@ -45308,6 +62635,28 @@ "is_async": true, "overloads": [] }, + "begin_resume": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, "begin_start": { "parameters": { "self": { @@ -45445,6 +62794,28 @@ "is_async": true, "overloads": [] }, + "begin_suspend": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "job_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, "begin_update": { "parameters": { "self": { @@ -45727,7 +63098,7 @@ "param_type": "positional_or_keyword" }, "resource": { - "default": "none", + "default": null, "param_type": "positional_or_keyword" }, "kwargs": { @@ -45760,7 +63131,7 @@ "param_type": "positional_or_keyword" }, "resource": { - "type": "Optional[LogicApp]", + "type": "LogicApp", "default": null, "param_type": "positional_or_keyword" }, @@ -45796,7 +63167,7 @@ "param_type": "positional_or_keyword" }, "resource": { - "type": "Optional[IO[bytes]]", + "type": "IO[bytes]", "default": null, "param_type": "positional_or_keyword" }, @@ -45837,6 +63208,109 @@ "is_async": true, "overloads": [] }, + "deploy_workflow_artifacts": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "workflow_artifacts": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "workflow_artifacts": { + "type": "Optional[WorkflowArtifacts]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "workflow_artifacts": { + "type": "Optional[IO[bytes]]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, "get": { "parameters": { "self": { @@ -45893,6 +63367,40 @@ "is_async": true, "overloads": [] }, + "invoke": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "container_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "logic_app_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "x_ms_logic_apps_proxy_path": { + "default": null, + "param_type": "positional_or_keyword" + }, + "x_ms_logic_apps_proxy_method": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, "list_workflows": { "parameters": { "self": { From ef15b4f27f51f6773f6722ac3108f9bd9d61f239 Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com> Date: Thu, 9 Apr 2026 10:37:22 +0800 Subject: [PATCH 7/7] Update CHANGELOG.md --- .../azure-mgmt-appcontainers/CHANGELOG.md | 97 ++++--------------- 1 file changed, 18 insertions(+), 79 deletions(-) diff --git a/sdk/appcontainers/azure-mgmt-appcontainers/CHANGELOG.md b/sdk/appcontainers/azure-mgmt-appcontainers/CHANGELOG.md index f6d751b6c857..0739c0c7a7e0 100644 --- a/sdk/appcontainers/azure-mgmt-appcontainers/CHANGELOG.md +++ b/sdk/appcontainers/azure-mgmt-appcontainers/CHANGELOG.md @@ -5,99 +5,38 @@ ### Features Added - Client `ContainerAppsAPIClient` added method `send_request` - - Model `BuildResource` added property `properties` - - Model `BuilderResource` added property `properties` - - Model `ContainerAppsBuildResource` added property `properties` - - Model `HeaderMatch` added property `match` - - Model `HttpRetryPolicy` added property `retry_back_off` - - Model `HttpRetryPolicy` added property `matches` - Model `JobExecution` added property `system_data` - - Model `MaintenanceConfigurationResource` added property `properties` - Model `Usage` added property `unit` - - Added model `BuildProperties` - - Added model `BuilderProperties` - - Added model `ContainerAppsBuildProperties` - - Added model `HeaderMatchMatch` - - Added model `HttpRetryPolicyMatches` - - Added model `HttpRetryPolicyRetryBackOff` - Added model `LogicAppProperties` - Added model `Object` - - Added model `ScheduledEntries` ### Breaking Changes - - Method `BaseContainer.__init__` removed default value `None` from its parameter `args` + - Parameter `args` of `BaseContainer.__init__` is now required - Method `BaseContainer.__init__` changed its parameter `args` from `keyword_only` to `var_positional` - - Model `BuildResource` deleted or renamed its instance variable `provisioning_state` - - Model `BuildResource` deleted or renamed its instance variable `build_status` - - Model `BuildResource` deleted or renamed its instance variable `destination_container_registry` - - Model `BuildResource` deleted or renamed its instance variable `configuration` - - Model `BuildResource` deleted or renamed its instance variable `upload_endpoint` - - Model `BuildResource` deleted or renamed its instance variable `log_stream_endpoint` - - Model `BuildResource` deleted or renamed its instance variable `token_endpoint` - - Model `BuilderResource` deleted or renamed its instance variable `provisioning_state` - - Model `BuilderResource` deleted or renamed its instance variable `environment_id` - - Model `BuilderResource` deleted or renamed its instance variable `container_registries` - - Method `Container.__init__` removed default value `None` from its parameter `args` + - Parameter `args` of `Container.__init__` is now required - Method `Container.__init__` changed its parameter `args` from `keyword_only` to `var_positional` - - Model `ContainerAppsBuildResource` deleted or renamed its instance variable `provisioning_state` - - Model `ContainerAppsBuildResource` deleted or renamed its instance variable `build_status` - - Model `ContainerAppsBuildResource` deleted or renamed its instance variable `destination_container_registry` - - Model `ContainerAppsBuildResource` deleted or renamed its instance variable `configuration` - - Model `ContainerAppsBuildResource` deleted or renamed its instance variable `log_stream_endpoint` - - Model `HeaderMatch` deleted or renamed its instance variable `exact_match` - - Model `HeaderMatch` deleted or renamed its instance variable `prefix_match` - - Model `HeaderMatch` deleted or renamed its instance variable `suffix_match` - - Model `HeaderMatch` deleted or renamed its instance variable `regex_match` - - Model `HttpRetryPolicy` deleted or renamed its instance variable `headers` - - Model `HttpRetryPolicy` deleted or renamed its instance variable `http_status_codes` - - Model `HttpRetryPolicy` deleted or renamed its instance variable `errors` - - Model `HttpRetryPolicy` deleted or renamed its instance variable `initial_delay_in_milliseconds` - - Model `HttpRetryPolicy` deleted or renamed its instance variable `max_interval_in_milliseconds` - - Method `InitContainer.__init__` removed default value `None` from its parameter `args` + - Parameter `args` of `InitContainer.__init__` is now required - Method `InitContainer.__init__` changed its parameter `args` from `keyword_only` to `var_positional` - - Method `JobExecutionContainer.__init__` removed default value `None` from its parameter `args` + - Parameter `args` of `JobExecutionContainer.__init__` is now required - Method `JobExecutionContainer.__init__` changed its parameter `args` from `keyword_only` to `var_positional` - - Model `MaintenanceConfigurationResource` deleted or renamed its instance variable `scheduled_entries` - - Method `SessionContainer.__init__` removed default value `None` from its parameter `args` + - Parameter `args` of `SessionContainer.__init__` is now required - Method `SessionContainer.__init__` changed its parameter `args` from `keyword_only` to `var_positional` - - Deleted or renamed model `AppResiliencyCollection` - - Deleted or renamed model `AuthConfigCollection` - - Deleted or renamed model `AvailableOperations` - - Deleted or renamed model `AvailableWorkloadProfilesCollection` - - Deleted or renamed model `BuildCollection` - - Deleted or renamed model `BuilderCollection` - - Deleted or renamed model `CertificateCollection` - - Deleted or renamed model `ConnectedEnvironmentCollection` - - Deleted or renamed model `ContainerAppCollection` - - Deleted or renamed model `ContainerAppsBuildCollection` - - Deleted or renamed model `ContainerAppsFunctionCollection` - - Deleted or renamed model `DaprComponentResiliencyPoliciesCollection` - - Deleted or renamed model `DaprComponentsCollection` - - Deleted or renamed model `DaprSubscriptionsCollection` - - Deleted or renamed model `DotNetComponentsCollection` - - Deleted or renamed model `HttpRouteConfigCollection` - - Deleted or renamed model `JavaComponentsCollection` - - Deleted or renamed model `JobExecutionNamesCollection` - - Deleted or renamed model `JobsCollection` - - Deleted or renamed model `LabelHistoryCollection` - - Deleted or renamed model `ListUsagesResult` - - Deleted or renamed model `MaintenanceConfigurationCollection` - - Deleted or renamed model `ManagedCertificateCollection` - - Deleted or renamed model `ManagedEnvironmentsCollection` - - Deleted or renamed model `PatchCollection` - - Deleted or renamed model `RevisionCollection` - - Deleted or renamed model `SessionPoolCollection` - - Deleted or renamed model `SourceControlCollection` - - Deleted or renamed model `WorkflowEnvelopeCollection` - - Deleted or renamed model `WorkloadProfileStatesCollection` + - Model `BuildResource` moved instance variable `provisioning_state`, `build_status`, `destination_container_registry`, `configuration`, `upload_endpoint`, `log_stream_endpoint` and `token_endpoint` under property `properties` whose type is `BuildProperties` + - Model `BuilderResource` moved instance variable `provisioning_state`, `environment_id` and `container_registries` under property `properties` whose type is `BuilderProperties` + - Model `ContainerAppsBuildResource` moved instance variable `provisioning_state`, `build_status`, `destination_container_registry`, `configuration` and `log_stream_endpoint` under property `properties` whose type is `ContainerAppsBuildProperties` + - Model `HeaderMatch` moved instance variable `exact_match`, `prefix_match`, `suffix_match` and `regex_match` under property `match` whose type is `HeaderMatchMatch` + - Model `HttpRetryPolicy` moved instance variable `headers`, `http_status_codes` and `errors` under property `matches` whose type is `HttpRetryPolicyMatches` + - Model `HttpRetryPolicy` moved instance variable `initial_delay_in_milliseconds` and `max_interval_in_milliseconds` under property `retry_back_off` whose type is `HttpRetryPolicyRetryBackOff` + - Model `MaintenanceConfigurationResource` moved instance variable `scheduled_entries` under property `properties` whose type is `ScheduledEntries` - Method `ContainerAppsOperations.list_custom_host_name_analysis` changed its parameter `custom_hostname` from `positional_or_keyword` to `keyword_only` - Method `ContainerAppsSourceControlsOperations.begin_create_or_update` changed its parameter `x_ms_github_auxiliary` from `positional_or_keyword` to `keyword_only` - - Method `ContainerAppsSourceControlsOperations.begin_delete` changed its parameter `x_ms_github_auxiliary` from `positional_or_keyword` to `keyword_only` - - Method `ContainerAppsSourceControlsOperations.begin_delete` changed its parameter `ignore_workflow_deletion_failure` from `positional_or_keyword` to `keyword_only` - - Method `ContainerAppsSourceControlsOperations.begin_delete` changed its parameter `delete_workflow` from `positional_or_keyword` to `keyword_only` - - Method `LogicAppsOperations.invoke` changed its parameter `x_ms_logic_apps_proxy_path` from `positional_or_keyword` to `keyword_only` - - Method `LogicAppsOperations.invoke` changed its parameter `x_ms_logic_apps_proxy_method` from `positional_or_keyword` to `keyword_only` + - Method `ContainerAppsSourceControlsOperations.begin_delete` changed its parameter `x_ms_github_auxiliary`/`ignore_workflow_deletion_failure`/`delete_workflow` from `positional_or_keyword` to `keyword_only` + - Method `LogicAppsOperations.invoke` changed its parameter `x_ms_logic_apps_proxy_path`/`x_ms_logic_apps_proxy_method` from `positional_or_keyword` to `keyword_only` + +### Other Changes + + - Deleted model `AvailableOperations`/`AppResiliencyCollection`/`AuthConfigCollection`/`AvailableWorkloadProfilesCollection`/`BuildCollection`/`BuilderCollection`/`CertificateCollection`/`ConnectedEnvironmentCollection`/`ContainerAppCollection`/`ContainerAppsBuildCollection`/`ContainerAppsFunctionCollection`/`DaprComponentResiliencyPoliciesCollection`/`DaprComponentsCollection`/`DaprSubscriptionsCollection`/`DotNetComponentsCollection`/`HttpRouteConfigCollection`/`JavaComponentsCollection`/`JobExecutionNamesCollection`/`JobsCollection`/`LabelHistoryCollection`/`ListUsagesResult`/`MaintenanceConfigurationCollection`/`ManagedCertificateCollection`/`ManagedEnvironmentsCollection`/`PatchCollection`/`RevisionCollection`/`SessionPoolCollection`/`SourceControlCollection`/`WorkflowEnvelopeCollection`/`WorkloadProfileStatesCollection` which actually were not used by SDK users ## 4.0.0 (2025-10-24)